diff --git a/bun.lock b/bun.lock index e332d452..cdf926bc 100644 --- a/bun.lock +++ b/bun.lock @@ -145,6 +145,23 @@ "vitest": "^4.1.4", }, }, + "packages/db": { + "name": "@shumai/db", + "version": "0.1.0", + "dependencies": { + "@prisma/client": "^7.7.0", + }, + "devDependencies": { + "prisma": "^7.7.0", + }, + }, + "packages/dtos": { + "name": "@shumai/dtos", + "version": "0.1.0", + "dependencies": { + "zod": "^4.4.3", + }, + }, }, "packages": { "@alloc/quick-lru": ["@alloc/quick-lru@5.2.0", "", {}, "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw=="], @@ -925,6 +942,10 @@ "@shikijs/vscode-textmate": ["@shikijs/vscode-textmate@10.0.2", "", {}, "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg=="], + "@shumai/db": ["@shumai/db@workspace:packages/db"], + + "@shumai/dtos": ["@shumai/dtos@workspace:packages/dtos"], + "@sinclair/typebox": ["@sinclair/typebox@0.34.49", "", {}, "sha512-brySQQs7Jtn0joV8Xh9ZV/hZb9Ozb0pmazDIASBkYKCjXrXU3mpcFahmK/z4YDhGkQvP9mWJbVyahdtU5wQA+A=="], "@smithy/chunked-blob-reader": ["@smithy/chunked-blob-reader@5.2.2", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-St+kVicSyayWQca+I1rGitaOEH6uKgE8IUWoYnnEX26SWdWQcL6LvMSD19Lg+vYHKdT9B2Zuu7rd3i6Wnyb/iw=="], diff --git a/package.json b/package.json index 834320c6..043ca4ff 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,9 @@ "version": "0.1.0", "private": true, "type": "module", + "workspaces": [ + "packages/*" + ], "scripts": { "dev": "bun run --hot src/index.ts serve", "typecheck": "tsc --noEmit", diff --git a/packages/db/package.json b/packages/db/package.json new file mode 100644 index 00000000..829f1eb2 --- /dev/null +++ b/packages/db/package.json @@ -0,0 +1,14 @@ +{ + "name": "@shumai/db", + "version": "0.1.0", + "private": true, + "type": "module", + "main": "./src/index.ts", + "types": "./src/index.ts", + "dependencies": { + "@prisma/client": "^7.7.0" + }, + "devDependencies": { + "prisma": "^7.7.0" + } +} diff --git a/prisma/migrations/000000000000_squashed_migrations/migration.sql b/packages/db/prisma/migrations/000000000000_squashed_migrations/migration.sql similarity index 100% rename from prisma/migrations/000000000000_squashed_migrations/migration.sql rename to packages/db/prisma/migrations/000000000000_squashed_migrations/migration.sql diff --git a/prisma/migrations/20260529071403_add_hnsw_index_to_asset_embeddings/migration.sql b/packages/db/prisma/migrations/20260529071403_add_hnsw_index_to_asset_embeddings/migration.sql similarity index 100% rename from prisma/migrations/20260529071403_add_hnsw_index_to_asset_embeddings/migration.sql rename to packages/db/prisma/migrations/20260529071403_add_hnsw_index_to_asset_embeddings/migration.sql diff --git a/prisma/migrations/20260529071410_add_natural_sort_collation_to_assets_name/migration.sql b/packages/db/prisma/migrations/20260529071410_add_natural_sort_collation_to_assets_name/migration.sql similarity index 100% rename from prisma/migrations/20260529071410_add_natural_sort_collation_to_assets_name/migration.sql rename to packages/db/prisma/migrations/20260529071410_add_natural_sort_collation_to_assets_name/migration.sql diff --git a/prisma/migrations/20260530090320_add_agent_tool_call/migration.sql b/packages/db/prisma/migrations/20260530090320_add_agent_tool_call/migration.sql similarity index 100% rename from prisma/migrations/20260530090320_add_agent_tool_call/migration.sql rename to packages/db/prisma/migrations/20260530090320_add_agent_tool_call/migration.sql diff --git a/prisma/migrations/migration_lock.toml b/packages/db/prisma/migrations/migration_lock.toml similarity index 100% rename from prisma/migrations/migration_lock.toml rename to packages/db/prisma/migrations/migration_lock.toml diff --git a/prisma/schema.prisma b/packages/db/prisma/schema.prisma similarity index 100% rename from prisma/schema.prisma rename to packages/db/prisma/schema.prisma diff --git a/src/db-test-hooks.ts b/packages/db/src/db-test-hooks.ts similarity index 84% rename from src/db-test-hooks.ts rename to packages/db/src/db-test-hooks.ts index e45dad76..8960c857 100644 --- a/src/db-test-hooks.ts +++ b/packages/db/src/db-test-hooks.ts @@ -1,5 +1,5 @@ import { afterEach, beforeEach } from 'vitest' -import { getPrismaTestingHelper } from '@/db' +import { getPrismaTestingHelper } from './index' export function setupTestDbHooks() { beforeEach(async () => { diff --git a/packages/db/src/generated/prisma/browser.ts b/packages/db/src/generated/prisma/browser.ts new file mode 100644 index 00000000..0e1134ca --- /dev/null +++ b/packages/db/src/generated/prisma/browser.ts @@ -0,0 +1,178 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file should be your main import to use Prisma-related types and utilities in a browser. + * Use it to get access to models, enums, and input types. + * + * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only. + * See `client.ts` for the standard, server-side entry point. + * + * 🟢 You can import this file directly. + */ + +import * as Prisma from './internal/prismaNamespaceBrowser.ts' +export { Prisma } +export * as $Enums from './enums.ts' +export * from './enums.ts' +/** + * Model User + * + */ +export type User = Prisma.UserModel +/** + * Model Session + * + */ +export type Session = Prisma.SessionModel +/** + * Model Account + * + */ +export type Account = Prisma.AccountModel +/** + * Model Verification + * + */ +export type Verification = Prisma.VerificationModel +/** + * Model AuthToken + * + */ +export type AuthToken = Prisma.AuthTokenModel +/** + * Model Team + * + */ +export type Team = Prisma.TeamModel +/** + * Model Sandbox + * + */ +export type Sandbox = Prisma.SandboxModel +/** + * Model Skill + * + */ +export type Skill = Prisma.SkillModel +/** + * Model TeamMember + * + */ +export type TeamMember = Prisma.TeamMemberModel +/** + * Model Project + * + */ +export type Project = Prisma.ProjectModel +/** + * Model ProjectMember + * + */ +export type ProjectMember = Prisma.ProjectMemberModel +/** + * Model ShareLink + * + */ +export type ShareLink = Prisma.ShareLinkModel +/** + * Model Asset + * + */ +export type Asset = Prisma.AssetModel +/** + * Model StorageKey + * + */ +export type StorageKey = Prisma.StorageKeyModel +/** + * Model AssetMetadataValue + * + */ +export type AssetMetadataValue = Prisma.AssetMetadataValueModel +/** + * Model AssetComment + * + */ +export type AssetComment = Prisma.AssetCommentModel +/** + * Model AssetCommentAttachment + * + */ +export type AssetCommentAttachment = Prisma.AssetCommentAttachmentModel +/** + * Model AssetEmbedding + * + */ +export type AssetEmbedding = Prisma.AssetEmbeddingModel +/** + * Model Invite + * + */ +export type Invite = Prisma.InviteModel +/** + * Model MetadataField + * + */ +export type MetadataField = Prisma.MetadataFieldModel +/** + * Model Notification + * + */ +export type Notification = Prisma.NotificationModel +/** + * Model SystemSettings + * + */ +export type SystemSettings = Prisma.SystemSettingsModel +/** + * Model Task + * + */ +export type Task = Prisma.TaskModel +/** + * Model WorkflowTask + * + */ +export type WorkflowTask = Prisma.WorkflowTaskModel +/** + * Model Agent + * + */ +export type Agent = Prisma.AgentModel +/** + * Model AgentSkill + * + */ +export type AgentSkill = Prisma.AgentSkillModel +/** + * Model AgentSession + * + */ +export type AgentSession = Prisma.AgentSessionModel +/** + * Model AgentSessionEntry + * + */ +export type AgentSessionEntry = Prisma.AgentSessionEntryModel +/** + * Model UserMetadata + * + */ +export type UserMetadata = Prisma.UserMetadataModel +/** + * Model Model + * + */ +export type Model = Prisma.ModelModel +/** + * Model Provider + * + */ +export type Provider = Prisma.ProviderModel +/** + * Model Collection + * + */ +export type Collection = Prisma.CollectionModel diff --git a/packages/db/src/generated/prisma/client.ts b/packages/db/src/generated/prisma/client.ts new file mode 100644 index 00000000..d1c4ef14 --- /dev/null +++ b/packages/db/src/generated/prisma/client.ts @@ -0,0 +1,206 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types. + * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead. + * + * 🟢 You can import this file directly. + */ + +import * as process from 'node:process' +import * as path from 'node:path' +import { fileURLToPath } from 'node:url' +globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url)) + +import * as runtime from '@prisma/client/runtime/client' +import * as $Enums from './enums.ts' +import * as $Class from './internal/class.ts' +import * as Prisma from './internal/prismaNamespace.ts' + +export * as $Enums from './enums.ts' +export * from './enums.ts' +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient({ + * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) + * }) + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ +export const PrismaClient = $Class.getPrismaClientClass() +export type PrismaClient< + LogOpts extends Prisma.LogLevel = never, + OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = $Class.PrismaClient +export { Prisma } + +/** + * Model User + * + */ +export type User = Prisma.UserModel +/** + * Model Session + * + */ +export type Session = Prisma.SessionModel +/** + * Model Account + * + */ +export type Account = Prisma.AccountModel +/** + * Model Verification + * + */ +export type Verification = Prisma.VerificationModel +/** + * Model AuthToken + * + */ +export type AuthToken = Prisma.AuthTokenModel +/** + * Model Team + * + */ +export type Team = Prisma.TeamModel +/** + * Model Sandbox + * + */ +export type Sandbox = Prisma.SandboxModel +/** + * Model Skill + * + */ +export type Skill = Prisma.SkillModel +/** + * Model TeamMember + * + */ +export type TeamMember = Prisma.TeamMemberModel +/** + * Model Project + * + */ +export type Project = Prisma.ProjectModel +/** + * Model ProjectMember + * + */ +export type ProjectMember = Prisma.ProjectMemberModel +/** + * Model ShareLink + * + */ +export type ShareLink = Prisma.ShareLinkModel +/** + * Model Asset + * + */ +export type Asset = Prisma.AssetModel +/** + * Model StorageKey + * + */ +export type StorageKey = Prisma.StorageKeyModel +/** + * Model AssetMetadataValue + * + */ +export type AssetMetadataValue = Prisma.AssetMetadataValueModel +/** + * Model AssetComment + * + */ +export type AssetComment = Prisma.AssetCommentModel +/** + * Model AssetCommentAttachment + * + */ +export type AssetCommentAttachment = Prisma.AssetCommentAttachmentModel +/** + * Model AssetEmbedding + * + */ +export type AssetEmbedding = Prisma.AssetEmbeddingModel +/** + * Model Invite + * + */ +export type Invite = Prisma.InviteModel +/** + * Model MetadataField + * + */ +export type MetadataField = Prisma.MetadataFieldModel +/** + * Model Notification + * + */ +export type Notification = Prisma.NotificationModel +/** + * Model SystemSettings + * + */ +export type SystemSettings = Prisma.SystemSettingsModel +/** + * Model Task + * + */ +export type Task = Prisma.TaskModel +/** + * Model WorkflowTask + * + */ +export type WorkflowTask = Prisma.WorkflowTaskModel +/** + * Model Agent + * + */ +export type Agent = Prisma.AgentModel +/** + * Model AgentSkill + * + */ +export type AgentSkill = Prisma.AgentSkillModel +/** + * Model AgentSession + * + */ +export type AgentSession = Prisma.AgentSessionModel +/** + * Model AgentSessionEntry + * + */ +export type AgentSessionEntry = Prisma.AgentSessionEntryModel +/** + * Model UserMetadata + * + */ +export type UserMetadata = Prisma.UserMetadataModel +/** + * Model Model + * + */ +export type Model = Prisma.ModelModel +/** + * Model Provider + * + */ +export type Provider = Prisma.ProviderModel +/** + * Model Collection + * + */ +export type Collection = Prisma.CollectionModel diff --git a/packages/db/src/generated/prisma/commonInputTypes.ts b/packages/db/src/generated/prisma/commonInputTypes.ts new file mode 100644 index 00000000..6acc4193 --- /dev/null +++ b/packages/db/src/generated/prisma/commonInputTypes.ts @@ -0,0 +1,1377 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports various common sort, input & filter types that are not directly linked to a particular model. + * + * 🟢 You can import this file directly. + */ + +import type * as runtime from '@prisma/client/runtime/client' +import * as $Enums from './enums.ts' +import type * as Prisma from './internal/prismaNamespace.ts' + +export type StringFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +export type EnumUserTypeFilter<$PrismaModel = never> = { + equals?: $Enums.UserType | Prisma.EnumUserTypeFieldRefInput<$PrismaModel> + in?: $Enums.UserType[] | Prisma.ListEnumUserTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.UserType[] | Prisma.ListEnumUserTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumUserTypeFilter<$PrismaModel> | $Enums.UserType +} + +export type BoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +export type StringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type JsonNullableFilter<$PrismaModel = never> = + | Prisma.PatchUndefined< + Prisma.Either< + Required>, + Exclude>, 'path'> + >, + Required> + > + | Prisma.OptionalFlat>, 'path'>> + +export type JsonNullableFilterBase<$PrismaModel = never> = { + equals?: + | runtime.InputJsonValue + | Prisma.JsonFieldRefInput<$PrismaModel> + | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter +} + +export type DateTimeFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string +} + +export type SortOrderInput = { + sort: Prisma.SortOrder + nulls?: Prisma.NullsOrder +} + +export type StringWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type EnumUserTypeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.UserType | Prisma.EnumUserTypeFieldRefInput<$PrismaModel> + in?: $Enums.UserType[] | Prisma.ListEnumUserTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.UserType[] | Prisma.ListEnumUserTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumUserTypeWithAggregatesFilter<$PrismaModel> | $Enums.UserType + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumUserTypeFilter<$PrismaModel> + _max?: Prisma.NestedEnumUserTypeFilter<$PrismaModel> +} + +export type BoolWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedBoolFilter<$PrismaModel> + _max?: Prisma.NestedBoolFilter<$PrismaModel> +} + +export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = + | Prisma.PatchUndefined< + Prisma.Either< + Required>, + Exclude>, 'path'> + >, + Required> + > + | Prisma.OptionalFlat>, 'path'>> + +export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = { + equals?: + | runtime.InputJsonValue + | Prisma.JsonFieldRefInput<$PrismaModel> + | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedJsonNullableFilter<$PrismaModel> + _max?: Prisma.NestedJsonNullableFilter<$PrismaModel> +} + +export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeFilter<$PrismaModel> +} + +export type DateTimeNullableFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null +} + +export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> +} + +export type EnumTeamMemberRoleFilter<$PrismaModel = never> = { + equals?: $Enums.TeamMemberRole | Prisma.EnumTeamMemberRoleFieldRefInput<$PrismaModel> + in?: $Enums.TeamMemberRole[] | Prisma.ListEnumTeamMemberRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.TeamMemberRole[] | Prisma.ListEnumTeamMemberRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTeamMemberRoleFilter<$PrismaModel> | $Enums.TeamMemberRole +} + +export type EnumTeamMemberScopeFilter<$PrismaModel = never> = { + equals?: $Enums.TeamMemberScope | Prisma.EnumTeamMemberScopeFieldRefInput<$PrismaModel> + in?: $Enums.TeamMemberScope[] | Prisma.ListEnumTeamMemberScopeFieldRefInput<$PrismaModel> + notIn?: $Enums.TeamMemberScope[] | Prisma.ListEnumTeamMemberScopeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTeamMemberScopeFilter<$PrismaModel> | $Enums.TeamMemberScope +} + +export type EnumTeamMemberRoleWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TeamMemberRole | Prisma.EnumTeamMemberRoleFieldRefInput<$PrismaModel> + in?: $Enums.TeamMemberRole[] | Prisma.ListEnumTeamMemberRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.TeamMemberRole[] | Prisma.ListEnumTeamMemberRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTeamMemberRoleWithAggregatesFilter<$PrismaModel> | $Enums.TeamMemberRole + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumTeamMemberRoleFilter<$PrismaModel> + _max?: Prisma.NestedEnumTeamMemberRoleFilter<$PrismaModel> +} + +export type EnumTeamMemberScopeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TeamMemberScope | Prisma.EnumTeamMemberScopeFieldRefInput<$PrismaModel> + in?: $Enums.TeamMemberScope[] | Prisma.ListEnumTeamMemberScopeFieldRefInput<$PrismaModel> + notIn?: $Enums.TeamMemberScope[] | Prisma.ListEnumTeamMemberScopeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTeamMemberScopeWithAggregatesFilter<$PrismaModel> | $Enums.TeamMemberScope + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumTeamMemberScopeFilter<$PrismaModel> + _max?: Prisma.NestedEnumTeamMemberScopeFilter<$PrismaModel> +} + +export type EnumProjectMemberRoleFilter<$PrismaModel = never> = { + equals?: $Enums.ProjectMemberRole | Prisma.EnumProjectMemberRoleFieldRefInput<$PrismaModel> + in?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel> | $Enums.ProjectMemberRole +} + +export type EnumProjectMemberRoleWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.ProjectMemberRole | Prisma.EnumProjectMemberRoleFieldRefInput<$PrismaModel> + in?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> + not?: + | Prisma.NestedEnumProjectMemberRoleWithAggregatesFilter<$PrismaModel> + | $Enums.ProjectMemberRole + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel> + _max?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel> +} + +export type EnumAssetTypeFilter<$PrismaModel = never> = { + equals?: $Enums.AssetType | Prisma.EnumAssetTypeFieldRefInput<$PrismaModel> + in?: $Enums.AssetType[] | Prisma.ListEnumAssetTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.AssetType[] | Prisma.ListEnumAssetTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAssetTypeFilter<$PrismaModel> | $Enums.AssetType +} + +export type IntFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntFilter<$PrismaModel> | number +} + +export type EnumAssetStatusFilter<$PrismaModel = never> = { + equals?: $Enums.AssetStatus | Prisma.EnumAssetStatusFieldRefInput<$PrismaModel> + in?: $Enums.AssetStatus[] | Prisma.ListEnumAssetStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.AssetStatus[] | Prisma.ListEnumAssetStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAssetStatusFilter<$PrismaModel> | $Enums.AssetStatus +} + +export type EnumAssetTypeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.AssetType | Prisma.EnumAssetTypeFieldRefInput<$PrismaModel> + in?: $Enums.AssetType[] | Prisma.ListEnumAssetTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.AssetType[] | Prisma.ListEnumAssetTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAssetTypeWithAggregatesFilter<$PrismaModel> | $Enums.AssetType + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumAssetTypeFilter<$PrismaModel> + _max?: Prisma.NestedEnumAssetTypeFilter<$PrismaModel> +} + +export type IntWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedIntFilter<$PrismaModel> + _max?: Prisma.NestedIntFilter<$PrismaModel> +} + +export type EnumAssetStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.AssetStatus | Prisma.EnumAssetStatusFieldRefInput<$PrismaModel> + in?: $Enums.AssetStatus[] | Prisma.ListEnumAssetStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.AssetStatus[] | Prisma.ListEnumAssetStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAssetStatusWithAggregatesFilter<$PrismaModel> | $Enums.AssetStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumAssetStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumAssetStatusFilter<$PrismaModel> +} + +export type EnumStorageKeyStatusFilter<$PrismaModel = never> = { + equals?: $Enums.StorageKeyStatus | Prisma.EnumStorageKeyStatusFieldRefInput<$PrismaModel> + in?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel> | $Enums.StorageKeyStatus +} + +export type EnumStorageKeyStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.StorageKeyStatus | Prisma.EnumStorageKeyStatusFieldRefInput<$PrismaModel> + in?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> + not?: + | Prisma.NestedEnumStorageKeyStatusWithAggregatesFilter<$PrismaModel> + | $Enums.StorageKeyStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel> +} + +export type FloatNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null +} + +export type BoolNullableFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null +} + +export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _min?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _max?: Prisma.NestedFloatNullableFilter<$PrismaModel> +} + +export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedBoolNullableFilter<$PrismaModel> + _max?: Prisma.NestedBoolNullableFilter<$PrismaModel> +} + +export type EnumInviteRoleNullableFilter<$PrismaModel = never> = { + equals?: $Enums.InviteRole | Prisma.EnumInviteRoleFieldRefInput<$PrismaModel> | null + in?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null + notIn?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel> | $Enums.InviteRole | null +} + +export type EnumInviteRoleNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.InviteRole | Prisma.EnumInviteRoleFieldRefInput<$PrismaModel> | null + in?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null + notIn?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null + not?: + | Prisma.NestedEnumInviteRoleNullableWithAggregatesFilter<$PrismaModel> + | $Enums.InviteRole + | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel> + _max?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel> +} + +export type EnumMetadataFieldScopeNullableFilter<$PrismaModel = never> = { + equals?: + | $Enums.MetadataFieldScope + | Prisma.EnumMetadataFieldScopeFieldRefInput<$PrismaModel> + | 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> = { + equals?: + | $Enums.MetadataFieldScope + | Prisma.EnumMetadataFieldScopeFieldRefInput<$PrismaModel> + | 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> + _min?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel> + _max?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel> +} + +export type EnumNotificationTypeNullableFilter<$PrismaModel = never> = { + equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> | null + in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null + notIn?: + | $Enums.NotificationType[] + | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> + | null + not?: + | Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel> + | $Enums.NotificationType + | null +} + +export type EnumNotificationTypeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> | null + in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null + notIn?: + | $Enums.NotificationType[] + | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> + | null + not?: + | Prisma.NestedEnumNotificationTypeNullableWithAggregatesFilter<$PrismaModel> + | $Enums.NotificationType + | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel> + _max?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel> +} + +export type EnumTaskTypeNullableFilter<$PrismaModel = never> = { + equals?: $Enums.TaskType | Prisma.EnumTaskTypeFieldRefInput<$PrismaModel> | null + in?: $Enums.TaskType[] | Prisma.ListEnumTaskTypeFieldRefInput<$PrismaModel> | null + notIn?: $Enums.TaskType[] | Prisma.ListEnumTaskTypeFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedEnumTaskTypeNullableFilter<$PrismaModel> | $Enums.TaskType | null +} + +export type EnumTaskStatusFilter<$PrismaModel = never> = { + equals?: $Enums.TaskStatus | Prisma.EnumTaskStatusFieldRefInput<$PrismaModel> + in?: $Enums.TaskStatus[] | Prisma.ListEnumTaskStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.TaskStatus[] | Prisma.ListEnumTaskStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTaskStatusFilter<$PrismaModel> | $Enums.TaskStatus +} + +export type IntNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null +} + +export type EnumTaskTypeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TaskType | Prisma.EnumTaskTypeFieldRefInput<$PrismaModel> | null + in?: $Enums.TaskType[] | Prisma.ListEnumTaskTypeFieldRefInput<$PrismaModel> | null + notIn?: $Enums.TaskType[] | Prisma.ListEnumTaskTypeFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedEnumTaskTypeNullableWithAggregatesFilter<$PrismaModel> | $Enums.TaskType | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedEnumTaskTypeNullableFilter<$PrismaModel> + _max?: Prisma.NestedEnumTaskTypeNullableFilter<$PrismaModel> +} + +export type EnumTaskStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TaskStatus | Prisma.EnumTaskStatusFieldRefInput<$PrismaModel> + in?: $Enums.TaskStatus[] | Prisma.ListEnumTaskStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.TaskStatus[] | Prisma.ListEnumTaskStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTaskStatusWithAggregatesFilter<$PrismaModel> | $Enums.TaskStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumTaskStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumTaskStatusFilter<$PrismaModel> +} + +export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedIntNullableFilter<$PrismaModel> + _max?: Prisma.NestedIntNullableFilter<$PrismaModel> +} + +export type UuidFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedUuidFilter<$PrismaModel> | string +} + +export type EnumWorkflowTaskTypeNullableFilter<$PrismaModel = never> = { + equals?: $Enums.WorkflowTaskType | Prisma.EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null + in?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null + notIn?: + | $Enums.WorkflowTaskType[] + | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> + | null + not?: + | Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel> + | $Enums.WorkflowTaskType + | null +} + +export type EnumWorkflowTaskStatusNullableFilter<$PrismaModel = never> = { + equals?: + | $Enums.WorkflowTaskStatus + | Prisma.EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> + | 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> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedUuidWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type EnumWorkflowTaskTypeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.WorkflowTaskType | Prisma.EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null + in?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null + notIn?: + | $Enums.WorkflowTaskType[] + | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> + | null + not?: + | Prisma.NestedEnumWorkflowTaskTypeNullableWithAggregatesFilter<$PrismaModel> + | $Enums.WorkflowTaskType + | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel> + _max?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel> +} + +export type EnumWorkflowTaskStatusNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: + | $Enums.WorkflowTaskStatus + | Prisma.EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> + | 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> + _min?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel> + _max?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel> +} + +export type EnumAgentTypeFilter<$PrismaModel = never> = { + equals?: $Enums.AgentType | Prisma.EnumAgentTypeFieldRefInput<$PrismaModel> + in?: $Enums.AgentType[] | Prisma.ListEnumAgentTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.AgentType[] | Prisma.ListEnumAgentTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAgentTypeFilter<$PrismaModel> | $Enums.AgentType +} + +export type JsonFilter<$PrismaModel = never> = + | Prisma.PatchUndefined< + Prisma.Either< + Required>, + Exclude>, 'path'> + >, + Required> + > + | Prisma.OptionalFlat>, 'path'>> + +export type JsonFilterBase<$PrismaModel = never> = { + equals?: + | runtime.InputJsonValue + | Prisma.JsonFieldRefInput<$PrismaModel> + | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter +} + +export type EnumAgentTypeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.AgentType | Prisma.EnumAgentTypeFieldRefInput<$PrismaModel> + in?: $Enums.AgentType[] | Prisma.ListEnumAgentTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.AgentType[] | Prisma.ListEnumAgentTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAgentTypeWithAggregatesFilter<$PrismaModel> | $Enums.AgentType + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumAgentTypeFilter<$PrismaModel> + _max?: Prisma.NestedEnumAgentTypeFilter<$PrismaModel> +} + +export type JsonWithAggregatesFilter<$PrismaModel = never> = + | Prisma.PatchUndefined< + Prisma.Either< + Required>, + Exclude>, 'path'> + >, + Required> + > + | Prisma.OptionalFlat>, 'path'>> + +export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { + equals?: + | runtime.InputJsonValue + | Prisma.JsonFieldRefInput<$PrismaModel> + | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedJsonFilter<$PrismaModel> + _max?: Prisma.NestedJsonFilter<$PrismaModel> +} + +export type NestedStringFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +export type NestedEnumUserTypeFilter<$PrismaModel = never> = { + equals?: $Enums.UserType | Prisma.EnumUserTypeFieldRefInput<$PrismaModel> + in?: $Enums.UserType[] | Prisma.ListEnumUserTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.UserType[] | Prisma.ListEnumUserTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumUserTypeFilter<$PrismaModel> | $Enums.UserType +} + +export type NestedBoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +export type NestedStringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type NestedDateTimeFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string +} + +export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type NestedIntFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntFilter<$PrismaModel> | number +} + +export type NestedEnumUserTypeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.UserType | Prisma.EnumUserTypeFieldRefInput<$PrismaModel> + in?: $Enums.UserType[] | Prisma.ListEnumUserTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.UserType[] | Prisma.ListEnumUserTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumUserTypeWithAggregatesFilter<$PrismaModel> | $Enums.UserType + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumUserTypeFilter<$PrismaModel> + _max?: Prisma.NestedEnumUserTypeFilter<$PrismaModel> +} + +export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedBoolFilter<$PrismaModel> + _max?: Prisma.NestedBoolFilter<$PrismaModel> +} + +export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type NestedIntNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null +} + +export type NestedJsonNullableFilter<$PrismaModel = never> = + | Prisma.PatchUndefined< + Prisma.Either< + Required>, + Exclude>, 'path'> + >, + Required> + > + | Prisma.OptionalFlat>, 'path'>> + +export type NestedJsonNullableFilterBase<$PrismaModel = never> = { + equals?: + | runtime.InputJsonValue + | Prisma.JsonFieldRefInput<$PrismaModel> + | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter +} + +export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeFilter<$PrismaModel> +} + +export type NestedDateTimeNullableFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null +} + +export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> +} + +export type NestedEnumTeamMemberRoleFilter<$PrismaModel = never> = { + equals?: $Enums.TeamMemberRole | Prisma.EnumTeamMemberRoleFieldRefInput<$PrismaModel> + in?: $Enums.TeamMemberRole[] | Prisma.ListEnumTeamMemberRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.TeamMemberRole[] | Prisma.ListEnumTeamMemberRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTeamMemberRoleFilter<$PrismaModel> | $Enums.TeamMemberRole +} + +export type NestedEnumTeamMemberScopeFilter<$PrismaModel = never> = { + equals?: $Enums.TeamMemberScope | Prisma.EnumTeamMemberScopeFieldRefInput<$PrismaModel> + in?: $Enums.TeamMemberScope[] | Prisma.ListEnumTeamMemberScopeFieldRefInput<$PrismaModel> + notIn?: $Enums.TeamMemberScope[] | Prisma.ListEnumTeamMemberScopeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTeamMemberScopeFilter<$PrismaModel> | $Enums.TeamMemberScope +} + +export type NestedEnumTeamMemberRoleWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TeamMemberRole | Prisma.EnumTeamMemberRoleFieldRefInput<$PrismaModel> + in?: $Enums.TeamMemberRole[] | Prisma.ListEnumTeamMemberRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.TeamMemberRole[] | Prisma.ListEnumTeamMemberRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTeamMemberRoleWithAggregatesFilter<$PrismaModel> | $Enums.TeamMemberRole + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumTeamMemberRoleFilter<$PrismaModel> + _max?: Prisma.NestedEnumTeamMemberRoleFilter<$PrismaModel> +} + +export type NestedEnumTeamMemberScopeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TeamMemberScope | Prisma.EnumTeamMemberScopeFieldRefInput<$PrismaModel> + in?: $Enums.TeamMemberScope[] | Prisma.ListEnumTeamMemberScopeFieldRefInput<$PrismaModel> + notIn?: $Enums.TeamMemberScope[] | Prisma.ListEnumTeamMemberScopeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTeamMemberScopeWithAggregatesFilter<$PrismaModel> | $Enums.TeamMemberScope + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumTeamMemberScopeFilter<$PrismaModel> + _max?: Prisma.NestedEnumTeamMemberScopeFilter<$PrismaModel> +} + +export type NestedEnumProjectMemberRoleFilter<$PrismaModel = never> = { + equals?: $Enums.ProjectMemberRole | Prisma.EnumProjectMemberRoleFieldRefInput<$PrismaModel> + in?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel> | $Enums.ProjectMemberRole +} + +export type NestedEnumProjectMemberRoleWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.ProjectMemberRole | Prisma.EnumProjectMemberRoleFieldRefInput<$PrismaModel> + in?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> + notIn?: $Enums.ProjectMemberRole[] | Prisma.ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> + not?: + | Prisma.NestedEnumProjectMemberRoleWithAggregatesFilter<$PrismaModel> + | $Enums.ProjectMemberRole + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel> + _max?: Prisma.NestedEnumProjectMemberRoleFilter<$PrismaModel> +} + +export type NestedEnumAssetTypeFilter<$PrismaModel = never> = { + equals?: $Enums.AssetType | Prisma.EnumAssetTypeFieldRefInput<$PrismaModel> + in?: $Enums.AssetType[] | Prisma.ListEnumAssetTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.AssetType[] | Prisma.ListEnumAssetTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAssetTypeFilter<$PrismaModel> | $Enums.AssetType +} + +export type NestedEnumAssetStatusFilter<$PrismaModel = never> = { + equals?: $Enums.AssetStatus | Prisma.EnumAssetStatusFieldRefInput<$PrismaModel> + in?: $Enums.AssetStatus[] | Prisma.ListEnumAssetStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.AssetStatus[] | Prisma.ListEnumAssetStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAssetStatusFilter<$PrismaModel> | $Enums.AssetStatus +} + +export type NestedEnumAssetTypeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.AssetType | Prisma.EnumAssetTypeFieldRefInput<$PrismaModel> + in?: $Enums.AssetType[] | Prisma.ListEnumAssetTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.AssetType[] | Prisma.ListEnumAssetTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAssetTypeWithAggregatesFilter<$PrismaModel> | $Enums.AssetType + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumAssetTypeFilter<$PrismaModel> + _max?: Prisma.NestedEnumAssetTypeFilter<$PrismaModel> +} + +export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedIntFilter<$PrismaModel> + _max?: Prisma.NestedIntFilter<$PrismaModel> +} + +export type NestedFloatFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatFilter<$PrismaModel> | number +} + +export type NestedEnumAssetStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.AssetStatus | Prisma.EnumAssetStatusFieldRefInput<$PrismaModel> + in?: $Enums.AssetStatus[] | Prisma.ListEnumAssetStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.AssetStatus[] | Prisma.ListEnumAssetStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAssetStatusWithAggregatesFilter<$PrismaModel> | $Enums.AssetStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumAssetStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumAssetStatusFilter<$PrismaModel> +} + +export type NestedEnumStorageKeyStatusFilter<$PrismaModel = never> = { + equals?: $Enums.StorageKeyStatus | Prisma.EnumStorageKeyStatusFieldRefInput<$PrismaModel> + in?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel> | $Enums.StorageKeyStatus +} + +export type NestedEnumStorageKeyStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.StorageKeyStatus | Prisma.EnumStorageKeyStatusFieldRefInput<$PrismaModel> + in?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.StorageKeyStatus[] | Prisma.ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> + not?: + | Prisma.NestedEnumStorageKeyStatusWithAggregatesFilter<$PrismaModel> + | $Enums.StorageKeyStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumStorageKeyStatusFilter<$PrismaModel> +} + +export type NestedFloatNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null +} + +export type NestedBoolNullableFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null +} + +export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _min?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _max?: Prisma.NestedFloatNullableFilter<$PrismaModel> +} + +export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedBoolNullableFilter<$PrismaModel> + _max?: Prisma.NestedBoolNullableFilter<$PrismaModel> +} + +export type NestedEnumInviteRoleNullableFilter<$PrismaModel = never> = { + equals?: $Enums.InviteRole | Prisma.EnumInviteRoleFieldRefInput<$PrismaModel> | null + in?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null + notIn?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel> | $Enums.InviteRole | null +} + +export type NestedEnumInviteRoleNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.InviteRole | Prisma.EnumInviteRoleFieldRefInput<$PrismaModel> | null + in?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null + notIn?: $Enums.InviteRole[] | Prisma.ListEnumInviteRoleFieldRefInput<$PrismaModel> | null + not?: + | Prisma.NestedEnumInviteRoleNullableWithAggregatesFilter<$PrismaModel> + | $Enums.InviteRole + | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel> + _max?: Prisma.NestedEnumInviteRoleNullableFilter<$PrismaModel> +} + +export type NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel = never> = { + equals?: + | $Enums.MetadataFieldScope + | Prisma.EnumMetadataFieldScopeFieldRefInput<$PrismaModel> + | 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> = { + equals?: + | $Enums.MetadataFieldScope + | Prisma.EnumMetadataFieldScopeFieldRefInput<$PrismaModel> + | 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> + _min?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel> + _max?: Prisma.NestedEnumMetadataFieldScopeNullableFilter<$PrismaModel> +} + +export type NestedEnumNotificationTypeNullableFilter<$PrismaModel = never> = { + equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> | null + in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null + notIn?: + | $Enums.NotificationType[] + | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> + | null + not?: + | Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel> + | $Enums.NotificationType + | null +} + +export type NestedEnumNotificationTypeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.NotificationType | Prisma.EnumNotificationTypeFieldRefInput<$PrismaModel> | null + in?: $Enums.NotificationType[] | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> | null + notIn?: + | $Enums.NotificationType[] + | Prisma.ListEnumNotificationTypeFieldRefInput<$PrismaModel> + | null + not?: + | Prisma.NestedEnumNotificationTypeNullableWithAggregatesFilter<$PrismaModel> + | $Enums.NotificationType + | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel> + _max?: Prisma.NestedEnumNotificationTypeNullableFilter<$PrismaModel> +} + +export type NestedEnumTaskTypeNullableFilter<$PrismaModel = never> = { + equals?: $Enums.TaskType | Prisma.EnumTaskTypeFieldRefInput<$PrismaModel> | null + in?: $Enums.TaskType[] | Prisma.ListEnumTaskTypeFieldRefInput<$PrismaModel> | null + notIn?: $Enums.TaskType[] | Prisma.ListEnumTaskTypeFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedEnumTaskTypeNullableFilter<$PrismaModel> | $Enums.TaskType | null +} + +export type NestedEnumTaskStatusFilter<$PrismaModel = never> = { + equals?: $Enums.TaskStatus | Prisma.EnumTaskStatusFieldRefInput<$PrismaModel> + in?: $Enums.TaskStatus[] | Prisma.ListEnumTaskStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.TaskStatus[] | Prisma.ListEnumTaskStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTaskStatusFilter<$PrismaModel> | $Enums.TaskStatus +} + +export type NestedEnumTaskTypeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TaskType | Prisma.EnumTaskTypeFieldRefInput<$PrismaModel> | null + in?: $Enums.TaskType[] | Prisma.ListEnumTaskTypeFieldRefInput<$PrismaModel> | null + notIn?: $Enums.TaskType[] | Prisma.ListEnumTaskTypeFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedEnumTaskTypeNullableWithAggregatesFilter<$PrismaModel> | $Enums.TaskType | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedEnumTaskTypeNullableFilter<$PrismaModel> + _max?: Prisma.NestedEnumTaskTypeNullableFilter<$PrismaModel> +} + +export type NestedEnumTaskStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.TaskStatus | Prisma.EnumTaskStatusFieldRefInput<$PrismaModel> + in?: $Enums.TaskStatus[] | Prisma.ListEnumTaskStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.TaskStatus[] | Prisma.ListEnumTaskStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumTaskStatusWithAggregatesFilter<$PrismaModel> | $Enums.TaskStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumTaskStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumTaskStatusFilter<$PrismaModel> +} + +export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedIntNullableFilter<$PrismaModel> + _max?: Prisma.NestedIntNullableFilter<$PrismaModel> +} + +export type NestedUuidFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedUuidFilter<$PrismaModel> | string +} + +export type NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel = never> = { + equals?: $Enums.WorkflowTaskType | Prisma.EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null + in?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null + notIn?: + | $Enums.WorkflowTaskType[] + | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> + | null + not?: + | Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel> + | $Enums.WorkflowTaskType + | null +} + +export type NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel = never> = { + equals?: + | $Enums.WorkflowTaskStatus + | Prisma.EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> + | 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> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedUuidWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type NestedEnumWorkflowTaskTypeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.WorkflowTaskType | Prisma.EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null + in?: $Enums.WorkflowTaskType[] | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> | null + notIn?: + | $Enums.WorkflowTaskType[] + | Prisma.ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> + | null + not?: + | Prisma.NestedEnumWorkflowTaskTypeNullableWithAggregatesFilter<$PrismaModel> + | $Enums.WorkflowTaskType + | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel> + _max?: Prisma.NestedEnumWorkflowTaskTypeNullableFilter<$PrismaModel> +} + +export type NestedEnumWorkflowTaskStatusNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: + | $Enums.WorkflowTaskStatus + | Prisma.EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> + | 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> + _min?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel> + _max?: Prisma.NestedEnumWorkflowTaskStatusNullableFilter<$PrismaModel> +} + +export type NestedEnumAgentTypeFilter<$PrismaModel = never> = { + equals?: $Enums.AgentType | Prisma.EnumAgentTypeFieldRefInput<$PrismaModel> + in?: $Enums.AgentType[] | Prisma.ListEnumAgentTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.AgentType[] | Prisma.ListEnumAgentTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAgentTypeFilter<$PrismaModel> | $Enums.AgentType +} + +export type NestedEnumAgentTypeWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.AgentType | Prisma.EnumAgentTypeFieldRefInput<$PrismaModel> + in?: $Enums.AgentType[] | Prisma.ListEnumAgentTypeFieldRefInput<$PrismaModel> + notIn?: $Enums.AgentType[] | Prisma.ListEnumAgentTypeFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAgentTypeWithAggregatesFilter<$PrismaModel> | $Enums.AgentType + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumAgentTypeFilter<$PrismaModel> + _max?: Prisma.NestedEnumAgentTypeFilter<$PrismaModel> +} + +export type NestedJsonFilter<$PrismaModel = never> = + | Prisma.PatchUndefined< + Prisma.Either< + Required>, + Exclude>, 'path'> + >, + Required> + > + | Prisma.OptionalFlat>, 'path'>> + +export type NestedJsonFilterBase<$PrismaModel = never> = { + equals?: + | runtime.InputJsonValue + | Prisma.JsonFieldRefInput<$PrismaModel> + | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter +} diff --git a/packages/db/src/generated/prisma/enums.ts b/packages/db/src/generated/prisma/enums.ts new file mode 100644 index 00000000..e22cb68d --- /dev/null +++ b/packages/db/src/generated/prisma/enums.ts @@ -0,0 +1,140 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports all enum related types from the schema. + * + * 🟢 You can import this file directly. + */ + +export const UserType = { + human: 'human', + agent: 'agent', +} as const + +export type UserType = (typeof UserType)[keyof typeof UserType] + +export const AssetType = { + folder: 'folder', + file: 'file', + share: 'share', + root: 'root', + attachment: 'attachment', + version_stack: 'version_stack', + share_root: 'share_root', + symlink: 'symlink', +} as const + +export type AssetType = (typeof AssetType)[keyof typeof AssetType] + +export const AssetStatus = { + uploading: 'uploading', + uploaded: 'uploaded', + processing: 'processing', + processed: 'processed', + trashed: 'trashed', + pending_purge: 'pending_purge', +} as const + +export type AssetStatus = (typeof AssetStatus)[keyof typeof AssetStatus] + +export const StorageKeyStatus = { + active: 'active', + purging: 'purging', +} as const + +export type StorageKeyStatus = (typeof StorageKeyStatus)[keyof typeof StorageKeyStatus] + +export const InviteRole = { + editor: 'editor', + reviewer: 'reviewer', +} as const + +export type InviteRole = (typeof InviteRole)[keyof typeof InviteRole] + +export const MetadataFieldScope = { + SYSTEM: 'SYSTEM', + TEAM: 'TEAM', + PROJECT: 'PROJECT', +} as const + +export type MetadataFieldScope = (typeof MetadataFieldScope)[keyof typeof MetadataFieldScope] + +export const NotificationType = { + comment_created: 'comment_created', + reply_created: 'reply_created', + mention: 'mention', + successful_file_uploaded: 'successful_file_uploaded', + metadata_field_updated_status: 'metadata_field_updated_status', + new_user_join_team: 'new_user_join_team', + new_user_join_project: 'new_user_join_project', +} as const + +export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType] + +export const ProjectMemberRole = { + owner: 'owner', + editor: 'editor', + reviewer: 'reviewer', +} as const + +export type ProjectMemberRole = (typeof ProjectMemberRole)[keyof typeof ProjectMemberRole] + +export const TaskType = { + upload: 'upload', +} as const + +export type TaskType = (typeof TaskType)[keyof typeof TaskType] + +export const TaskStatus = { + pending: 'pending', + uploading: 'uploading', + completed: 'completed', + failed: 'failed', +} as const + +export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus] + +export const TeamMemberRole = { + owner: 'owner', + editor: 'editor', + reviewer: 'reviewer', +} as const + +export type TeamMemberRole = (typeof TeamMemberRole)[keyof typeof TeamMemberRole] + +export const TeamMemberScope = { + team: 'team', + project: 'project', +} as const + +export type TeamMemberScope = (typeof TeamMemberScope)[keyof typeof TeamMemberScope] + +export const WorkflowTaskType = { + transcode: 'transcode', + ai_metadata_autofill: 'ai_metadata_autofill', + chat: 'chat', + ai_embedding: 'ai_embedding', + query_embedding_for_search: 'query_embedding_for_search', + agent_tool_call: 'agent_tool_call', +} as const + +export type WorkflowTaskType = (typeof WorkflowTaskType)[keyof typeof WorkflowTaskType] + +export const WorkflowTaskStatus = { + pending: 'pending', + processing: 'processing', + completed: 'completed', + failed: 'failed', +} as const + +export type WorkflowTaskStatus = (typeof WorkflowTaskStatus)[keyof typeof WorkflowTaskStatus] + +export const AgentType = { + chat: 'chat', + autofill: 'autofill', + embedding: 'embedding', +} as const + +export type AgentType = (typeof AgentType)[keyof typeof AgentType] diff --git a/packages/db/src/generated/prisma/internal/class.ts b/packages/db/src/generated/prisma/internal/class.ts new file mode 100644 index 00000000..e4736b24 --- /dev/null +++ b/packages/db/src/generated/prisma/internal/class.ts @@ -0,0 +1,553 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * 🛑 Under no circumstances should you import this file directly! 🛑 + * + * Please import the `PrismaClient` class from the `client.ts` file instead. + */ + +import * as runtime from '@prisma/client/runtime/client' +import type * as Prisma from './prismaNamespace.ts' + +const config: runtime.GetPrismaClientConfig = { + previewFeatures: ['postgresqlExtensions'], + clientVersion: '7.7.0', + engineVersion: '75cbdc1eb7150937890ad5465d861175c6624711', + activeProvider: 'postgresql', + inlineSchema: + 'generator client {\n provider = "prisma-client"\n output = "../src/generated/prisma"\n binaryTargets = ["native", "linux-musl-openssl-3.0.x"]\n previewFeatures = ["postgresqlExtensions"]\n}\n\ngenerator json {\n provider = "prisma-json-types-generator"\n allowAny = false\n}\n\ndatasource db {\n provider = "postgresql"\n extensions = [vector]\n}\n\n// ----------------------------------------------------------------------\n// Enums\n// ----------------------------------------------------------------------\n\nenum UserType {\n human\n agent\n}\n\nenum AssetType {\n folder\n file\n share\n root\n attachment\n version_stack\n share_root\n symlink\n}\n\nenum AssetStatus {\n uploading\n uploaded\n processing\n processed\n trashed\n pending_purge\n}\n\nenum StorageKeyStatus {\n active\n purging\n}\n\nenum InviteRole {\n editor\n reviewer\n}\n\nenum MetadataFieldScope {\n SYSTEM\n TEAM\n PROJECT\n}\n\nenum NotificationType {\n comment_created\n reply_created\n mention\n successful_file_uploaded\n metadata_field_updated_status\n new_user_join_team\n new_user_join_project\n}\n\nenum ProjectMemberRole {\n owner\n editor\n reviewer\n}\n\nenum TaskType {\n upload\n}\n\nenum TaskStatus {\n pending\n uploading\n completed\n failed\n}\n\nenum TeamMemberRole {\n owner\n editor\n reviewer\n}\n\nenum TeamMemberScope {\n team\n project\n}\n\nenum WorkflowTaskType {\n transcode\n ai_metadata_autofill\n chat\n ai_embedding\n query_embedding_for_search\n agent_tool_call\n}\n\nenum WorkflowTaskStatus {\n pending\n processing\n completed\n failed\n}\n\n// ----------------------------------------------------------------------\n// Models\n// ----------------------------------------------------------------------\n\nmodel User {\n id String @id @default(ulid())\n type UserType @default(human)\n name String\n email String @unique\n emailVerified Boolean @default(false) @map("email_verified")\n image String?\n password String?\n /// [AgentSettings]\n agentSettings Json? @map("agent_settings")\n guestEmail String? @map("guest_email")\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n assets Asset[] @relation("UserToAsset")\n authTokens AuthToken[] @relation("UserToAuthToken")\n tasks Task[] @relation("UserToTask")\n teamMembers TeamMember[] @relation("UserToTeamMember")\n comments AssetComment[] @relation("UserToAssetComment")\n createdInvites Invite[] @relation("UserToInvite")\n createdNotifications Notification[] @relation("UserToCreatedNotification")\n notifications Notification[] @relation("UserToNotification")\n sessions Session[]\n accounts Account[]\n agent Agent?\n agentSessions AgentSession[]\n userMetadata UserMetadata[] @relation("UserToUserMetadata")\n\n @@map("users")\n}\n\nmodel Session {\n id String @id @default(ulid())\n expiresAt DateTime @map("expires_at")\n token String @unique\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n ipAddress String? @map("ip_address")\n userAgent String? @map("user_agent")\n userId String @map("user_id")\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@map("sessions")\n}\n\nmodel Account {\n id String @id @default(ulid())\n accountId String @map("account_id")\n providerId String @map("provider_id")\n userId String @map("user_id")\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n accessToken String? @map("access_token")\n refreshToken String? @map("refresh_token")\n idToken String? @map("id_token")\n accessTokenExpiresAt DateTime? @map("access_token_expires_at")\n refreshTokenExpiresAt DateTime? @map("refresh_token_expires_at")\n scope String?\n password String?\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n @@map("accounts")\n}\n\nmodel Verification {\n id String @id @default(ulid())\n identifier String\n value String\n expiresAt DateTime @map("expires_at")\n createdAt DateTime? @default(now()) @map("created_at")\n updatedAt DateTime? @updatedAt @map("updated_at")\n\n @@map("verifications")\n}\n\nmodel AuthToken {\n id String @id @default(ulid())\n accessToken String @unique @map("access_token")\n refreshToken String @unique @map("refresh_token")\n accessTokenExpiresAt DateTime @map("access_token_expires_at")\n refreshTokenExpiresAt DateTime @map("refresh_token_expires_at")\n\n userId String @map("user_id")\n user User @relation("UserToAuthToken", fields: [userId], references: [id])\n\n @@map("auth_tokens")\n}\n\nmodel Team {\n id String @id @default(ulid())\n name String\n /// [Settings]\n settings Json? @default("{}")\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n rootFolderId String? @unique @map("root_folder_id")\n rootFolder Asset? @relation("TeamToRootFolder", fields: [rootFolderId], references: [id])\n\n members TeamMember[] @relation("TeamToTeamMember")\n projects Project[] @relation("TeamToProject")\n metadataFields MetadataField[] @relation("TeamToMetadataField")\n invites Invite[] @relation("TeamToInvite")\n notifications Notification[] @relation("TeamToNotification")\n userMetadata UserMetadata[] @relation("TeamToUserMetadata")\n providers Provider[] @relation("TeamToProvider")\n skills Skill[] @relation("TeamToSkill")\n sandbox Sandbox? @relation("TeamToSandbox")\n agents Agent[] @relation("TeamToAgent")\n\n @@map("teams")\n}\n\nmodel Sandbox {\n id String @id @default(ulid())\n allowedDomains String[] @default(["npmjs.org", "*.npmjs.org", "registry.npmjs.org", "registry.yarnpkg.com", "pypi.org", "*.pypi.org", "github.com", "*.github.com", "api.github.com", "raw.githubusercontent.com"])\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n teamId String @unique @map("team_id")\n team Team @relation("TeamToSandbox", fields: [teamId], references: [id], onDelete: Cascade)\n\n @@map("sandboxes")\n}\n\nmodel Skill {\n id String @id @default(ulid())\n name String\n description String?\n /// [SkillConfig]\n config Json? @default("{}")\n assetId String @map("asset_id")\n hash String @map("hash")\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n teamId String @map("team_id")\n team Team @relation("TeamToSkill", fields: [teamId], references: [id], onDelete: Cascade)\n\n agentSkills AgentSkill[]\n\n @@unique([teamId, name])\n @@map("skills")\n}\n\nmodel TeamMember {\n id String @id @default(ulid())\n role TeamMemberRole\n scope TeamMemberScope @default(team)\n\n teamId String @map("team_id")\n team Team @relation("TeamToTeamMember", fields: [teamId], references: [id])\n\n userId String @map("user_id")\n user User @relation("UserToTeamMember", fields: [userId], references: [id], onDelete: Cascade)\n\n projectMembers ProjectMember[] @relation("TeamMemberToProjectMember")\n lastReadNotificationId String? @unique @map("last_read_notification_id")\n lastReadNotification Notification? @relation("TeamMemberToLastReadNotification", fields: [lastReadNotificationId], references: [id])\n\n @@unique([teamId, userId], name: "teamIdUserId")\n @@map("team_members")\n}\n\nmodel Project {\n id String @id @default(ulid())\n name String\n coverImageKey String? @map("cover_image_key")\n /// [MetadataOverrides]\n metadataOverrides Json? @map("metadata_overrides")\n enableNotification Boolean @default(true) @map("enable_notification")\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n teamId String @map("team_id")\n team Team @relation("TeamToProject", fields: [teamId], references: [id])\n\n rootFolderId String? @unique @map("root_folder_id")\n rootFolder Asset? @relation("ProjectToRootFolder", fields: [rootFolderId], references: [id])\n\n shareRootId String? @unique @map("share_root_id")\n shareRoot Asset? @relation("ProjectToShareRoot", fields: [shareRootId], references: [id])\n\n members ProjectMember[] @relation("ProjectToProjectMember")\n assets Asset[] @relation("ProjectToAsset")\n metadataFields MetadataField[] @relation("ProjectToMetadataField")\n invites Invite[] @relation("ProjectToInvite")\n notifications Notification[] @relation("ProjectToNotification")\n shareLinks ShareLink[] @relation("ProjectToShareLink")\n collections Collection[] @relation("ProjectToCollection")\n\n @@index([createdAt])\n @@index([updatedAt])\n @@map("projects")\n}\n\nmodel ProjectMember {\n id String @id @default(ulid())\n role ProjectMemberRole\n\n projectId String @map("project_id")\n project Project @relation("ProjectToProjectMember", fields: [projectId], references: [id], onDelete: Cascade)\n\n teamMemberId String @map("team_member_id")\n teamMember TeamMember @relation("TeamMemberToProjectMember", fields: [teamMemberId], references: [id])\n\n @@unique([projectId, teamMemberId], name: "projectIdTeamMemberId")\n @@map("project_members")\n}\n\nmodel ShareLink {\n id String @id @default(ulid())\n name String\n expireAt DateTime? @map("expire_at")\n password String?\n isDisabled Boolean @default(false) @map("is_disabled")\n defaultSortOrder String? @map("default_sort_order")\n /// [ShareLinkFieldVisibility]\n fieldVisibility Json? @map("field_visibility")\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n projectId String @map("project_id")\n project Project @relation("ProjectToShareLink", fields: [projectId], references: [id], onDelete: Cascade)\n\n rootFolderId String @unique @map("root_folder_id")\n rootFolder Asset @relation("ShareLinkToRootFolder", fields: [rootFolderId], references: [id])\n\n @@map("share_links")\n}\n\nmodel Asset {\n id String @id @default(ulid())\n name String @default("")\n nameNgram String[] @default([]) @map("name_ngram")\n type AssetType\n mediaType String? @map("media_type")\n fileCount Int @default(0) @map("file_count")\n sizeByte Int @default(0) @map("size_byte")\n status AssetStatus\n transcodeTaskId String? @map("transcode_task_id")\n /// [MediaInfo]\n media Json?\n isDeleted Boolean @default(false) @map("is_deleted")\n deletedAt DateTime? @map("deleted_at")\n sortIndex String? @map("sort_index")\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n parentId String? @map("parent_id")\n parent Asset? @relation("AssetChildren", fields: [parentId], references: [id])\n children Asset[] @relation("AssetChildren")\n\n targetId String? @map("target_id")\n target Asset? @relation("SymlinkTarget", fields: [targetId], references: [id])\n symlinks Asset[] @relation("SymlinkTarget")\n\n storageKeyId String? @map("storage_key_id")\n storageKey StorageKey? @relation(fields: [storageKeyId], references: [id])\n\n metadataValues AssetMetadataValue[] @relation("AssetToMetadataValues")\n\n creatorId String? @map("creator_id")\n creator User? @relation("UserToAsset", fields: [creatorId], references: [id])\n\n taskId String? @map("task_id")\n task Task? @relation("TaskToAsset", fields: [taskId], references: [id])\n\n projectId String? @map("project_id")\n project Project? @relation("ProjectToAsset", fields: [projectId], references: [id])\n\n comments AssetComment[] @relation("AssetToComment")\n commentAttachments AssetCommentAttachment[] @relation("AssetToCommentAttachment")\n notifications Notification[] @relation("AssetToNotification")\n embeddings AssetEmbedding[] @relation("AssetToEmbedding")\n\n teamRootFolder Team? @relation("TeamToRootFolder")\n projectRootFolder Project? @relation("ProjectToRootFolder")\n projectShareRoot Project? @relation("ProjectToShareRoot")\n shareLinkRootFolder ShareLink? @relation("ShareLinkToRootFolder")\n\n @@unique([parentId, targetId], name: "parentIdTargetId")\n @@index([type])\n @@index([status])\n @@index([createdAt])\n @@index([updatedAt])\n @@index([sortIndex])\n @@index([isDeleted])\n @@index([deletedAt])\n @@index([name], name: "assets_name_idx")\n @@index([nameNgram], type: Gin)\n @@map("assets")\n}\n\nmodel StorageKey {\n id String @id @default(ulid())\n key String @unique\n status StorageKeyStatus @default(active)\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n assets Asset[]\n\n @@map("storage_keys")\n}\n\nmodel AssetMetadataValue {\n id String @id @default(ulid())\n assetId String @map("asset_id")\n fieldKey String @map("field_key") // key from MetadataField\n\n stringValue String? @map("string_value")\n numberValue Float? @map("number_value")\n booleanValue Boolean? @map("boolean_value")\n jsonValue Json? @map("json_value")\n dateValue DateTime? @map("date_value")\n\n asset Asset @relation("AssetToMetadataValues", fields: [assetId], references: [id], onDelete: Cascade)\n\n @@unique([assetId, fieldKey])\n @@index([numberValue])\n @@index([stringValue])\n @@index([booleanValue])\n @@index([dateValue])\n @@index([jsonValue], type: Gin)\n @@map("asset_metadata_values")\n}\n\nmodel AssetComment {\n id String @id @default(ulid())\n message String?\n /// [AnnotationList]\n annotation Json?\n second Float?\n sessionId String? @map("session_id")\n session AgentSession? @relation(fields: [sessionId], references: [id], onDelete: SetNull)\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n assetId String @map("asset_id")\n asset Asset @relation("AssetToComment", fields: [assetId], references: [id], onDelete: Cascade)\n\n creatorId String? @map("creator_id")\n creator User? @relation("UserToAssetComment", fields: [creatorId], references: [id])\n\n replyToId String? @map("reply_to_id")\n replyTo AssetComment? @relation("CommentReplies", fields: [replyToId], references: [id], onDelete: Cascade)\n replies AssetComment[] @relation("CommentReplies")\n\n attachments AssetCommentAttachment[] @relation("CommentToAttachment")\n\n @@map("asset_comments")\n}\n\nmodel AssetCommentAttachment {\n id String @id @default(ulid())\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n commentId String @map("comment_id")\n comment AssetComment @relation("CommentToAttachment", fields: [commentId], references: [id], onDelete: Cascade)\n\n assetId String @map("asset_id")\n asset Asset @relation("AssetToCommentAttachment", fields: [assetId], references: [id], onDelete: Cascade)\n\n @@map("asset_comment_attachments")\n}\n\nmodel AssetEmbedding {\n id String @id @default(ulid())\n embedding Unsupported("vector(1536)")?\n startTime Float? @map("start_time")\n endTime Float? @map("end_time")\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n assetId String @map("asset_id")\n asset Asset @relation("AssetToEmbedding", fields: [assetId], references: [id], onDelete: Cascade)\n\n @@index([embedding], name: "AssetEmbedding_embedding_idx")\n @@map("asset_embeddings")\n}\n\nmodel Invite {\n id String @id @default(ulid())\n code String @unique\n role InviteRole?\n used Boolean @default(false)\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n teamId String @map("team_id")\n team Team @relation("TeamToInvite", fields: [teamId], references: [id])\n\n projectId String? @map("project_id")\n project Project? @relation("ProjectToInvite", fields: [projectId], references: [id], onDelete: Cascade)\n\n inviterId String @map("inviter_id")\n inviter User @relation("UserToInvite", fields: [inviterId], references: [id])\n\n @@map("invites")\n}\n\nmodel MetadataField {\n id String @id @default(ulid())\n key String @unique\n scope MetadataFieldScope?\n /// [FieldConfig]\n config Json?\n readOnly Boolean @default(false) @map("read_only")\n aiAutofill Boolean @default(false) @map("ai_autofill")\n description String @default("")\n\n teamId String? @map("team_id")\n team Team? @relation("TeamToMetadataField", fields: [teamId], references: [id])\n\n projectId String? @map("project_id")\n project Project? @relation("ProjectToMetadataField", fields: [projectId], references: [id], onDelete: Cascade)\n\n @@map("metadata_fields")\n}\n\nmodel Notification {\n id String @id @default(ulid())\n type NotificationType?\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n teamId String @map("team_id")\n team Team @relation("TeamToNotification", fields: [teamId], references: [id])\n\n projectId String? @map("project_id")\n project Project? @relation("ProjectToNotification", fields: [projectId], references: [id], onDelete: Cascade)\n\n creatorId String? @map("creator_id")\n creator User? @relation("UserToCreatedNotification", fields: [creatorId], references: [id])\n\n assetId String? @map("asset_id")\n asset Asset? @relation("AssetToNotification", fields: [assetId], references: [id], onDelete: Cascade)\n\n taskId String? @map("task_id")\n task Task? @relation("TaskToNotification", fields: [taskId], references: [id])\n\n userId String? @map("user_id")\n user User? @relation("UserToNotification", fields: [userId], references: [id])\n\n readByMembers TeamMember? @relation("TeamMemberToLastReadNotification")\n\n @@map("notifications")\n}\n\nmodel SystemSettings {\n id String @id @default(ulid())\n key String @unique\n /// [SystemSettingsValue]\n value Json?\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n @@index([key])\n @@map("system_settings")\n}\n\nmodel Task {\n id String @id @default(ulid())\n type TaskType?\n status TaskStatus @default(pending)\n name String?\n total Int?\n uploaded Int @default(0)\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n creatorId String? @map("creator_id")\n creator User? @relation("UserToTask", fields: [creatorId], references: [id])\n\n assets Asset[] @relation("TaskToAsset")\n notifications Notification[] @relation("TaskToNotification")\n\n @@map("tasks")\n}\n\nmodel WorkflowTask {\n id String @id @default(ulid())\n uid String @default(uuid()) @db.Uuid\n teamId String? @map("team_id")\n projectId String? @map("project_id")\n assetId String @map("asset_id")\n type WorkflowTaskType?\n status WorkflowTaskStatus?\n /// [WorkflowTaskPayload]\n payload Json?\n /// [WorkflowTaskOutput]\n output Json?\n heartbeat DateTime?\n inputTokens Int @default(0) @map("input_tokens")\n outputTokens Int @default(0) @map("output_tokens")\n model String?\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n @@index([status, heartbeat])\n @@index([assetId, type])\n @@index([teamId])\n @@index([projectId])\n @@index([type])\n @@map("workflow_tasks")\n}\n\nenum AgentType {\n chat\n autofill\n embedding\n}\n\nmodel Agent {\n id String @id\n user User @relation(fields: [id], references: [id], onDelete: Cascade)\n type AgentType\n enabled Boolean @default(true)\n soul String? @db.Text\n providerId String? @map("provider_id")\n provider Provider? @relation("ProviderToAgent", fields: [providerId], references: [id], onDelete: SetNull)\n modelId String? @map("model_id")\n modelRef Model? @relation("ModelToAgent", fields: [modelId], references: [id], onDelete: SetNull)\n\n teamId String @map("team_id")\n team Team @relation("TeamToAgent", fields: [teamId], references: [id], onDelete: Cascade)\n\n /// [AgentConfig]\n config Json\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n agentSessions AgentSession[]\n skills AgentSkill[]\n\n @@map("agents")\n}\n\nmodel AgentSkill {\n id String @id @default(ulid())\n agentId String @map("agent_id")\n agent Agent @relation(fields: [agentId], references: [id], onDelete: Cascade)\n skillId String @map("skill_id")\n skill Skill @relation(fields: [skillId], references: [id], onDelete: Cascade)\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n @@unique([agentId, skillId])\n @@map("agent_skills")\n}\n\nmodel AgentSession {\n id String @id @default(ulid())\n agentId String @map("agent_id")\n agent Agent @relation(fields: [agentId], references: [id], onDelete: Cascade)\n userId String? @map("user_id")\n user User? @relation(fields: [userId], references: [id], onDelete: SetNull)\n cwd String\n leafId String? @map("leaf_id")\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n entries AgentSessionEntry[]\n comments AssetComment[]\n\n @@map("agent_sessions")\n}\n\nmodel AgentSessionEntry {\n id String @id // Uses ULID generated by pi-coding-agent\n sessionId String @map("session_id")\n session AgentSession @relation(fields: [sessionId], references: [id], onDelete: Cascade)\n /// [PiSessionEntry]\n entry Json\n\n @@index([sessionId])\n @@map("agent_session_entries")\n}\n\nmodel UserMetadata {\n id String @id @default(ulid())\n key String\n /// [UserMetadataValue]\n value Json\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n userId String @map("user_id")\n user User @relation("UserToUserMetadata", fields: [userId], references: [id], onDelete: Cascade)\n\n teamId String @map("team_id")\n team Team @relation("TeamToUserMetadata", fields: [teamId], references: [id], onDelete: Cascade)\n\n @@unique([userId, teamId, key], name: "userIdTeamIdKey")\n @@map("user_metadata")\n}\n\nmodel Model {\n id String @id @default(ulid())\n modelId String @map("model_id")\n name String @default("")\n /// [ModelConfig]\n config Json\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n providerId String @map("provider_id")\n provider Provider @relation("ProviderToModel", fields: [providerId], references: [id], onDelete: Cascade)\n\n agents Agent[] @relation("ModelToAgent")\n\n @@unique([providerId, modelId])\n @@map("models")\n}\n\nmodel Provider {\n id String @id @default(ulid())\n name String\n isBuiltin Boolean @default(false) @map("is_builtin")\n /// [ProviderConfig]\n config Json\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n teamId String @map("team_id")\n team Team @relation("TeamToProvider", fields: [teamId], references: [id], onDelete: Cascade)\n\n models Model[] @relation("ProviderToModel")\n agents Agent[] @relation("ProviderToAgent")\n\n @@unique([teamId, name])\n @@map("providers")\n}\n\nmodel Collection {\n id String @id @default(ulid())\n name String\n /// [CollectionFilter]\n filter Json\n createdAt DateTime @default(now()) @map("created_at")\n updatedAt DateTime @updatedAt @map("updated_at")\n\n projectId String @map("project_id")\n project Project @relation("ProjectToCollection", fields: [projectId], references: [id], onDelete: Cascade)\n\n @@index([projectId, createdAt(sort: Desc)])\n @@map("collections")\n}\n', + runtimeDataModel: { + models: {}, + enums: {}, + types: {}, + }, + parameterizationSchema: { + strings: [], + graph: '', + }, +} + +config.runtimeDataModel = JSON.parse( + '{"models":{"User":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"type","kind":"enum","type":"UserType"},{"name":"name","kind":"scalar","type":"String"},{"name":"email","kind":"scalar","type":"String"},{"name":"emailVerified","kind":"scalar","type":"Boolean","dbName":"email_verified"},{"name":"image","kind":"scalar","type":"String"},{"name":"password","kind":"scalar","type":"String"},{"name":"agentSettings","kind":"scalar","type":"Json","dbName":"agent_settings"},{"name":"guestEmail","kind":"scalar","type":"String","dbName":"guest_email"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"assets","kind":"object","type":"Asset","relationName":"UserToAsset"},{"name":"authTokens","kind":"object","type":"AuthToken","relationName":"UserToAuthToken"},{"name":"tasks","kind":"object","type":"Task","relationName":"UserToTask"},{"name":"teamMembers","kind":"object","type":"TeamMember","relationName":"UserToTeamMember"},{"name":"comments","kind":"object","type":"AssetComment","relationName":"UserToAssetComment"},{"name":"createdInvites","kind":"object","type":"Invite","relationName":"UserToInvite"},{"name":"createdNotifications","kind":"object","type":"Notification","relationName":"UserToCreatedNotification"},{"name":"notifications","kind":"object","type":"Notification","relationName":"UserToNotification"},{"name":"sessions","kind":"object","type":"Session","relationName":"SessionToUser"},{"name":"accounts","kind":"object","type":"Account","relationName":"AccountToUser"},{"name":"agent","kind":"object","type":"Agent","relationName":"AgentToUser"},{"name":"agentSessions","kind":"object","type":"AgentSession","relationName":"AgentSessionToUser"},{"name":"userMetadata","kind":"object","type":"UserMetadata","relationName":"UserToUserMetadata"}],"dbName":"users"},"Session":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"expiresAt","kind":"scalar","type":"DateTime","dbName":"expires_at"},{"name":"token","kind":"scalar","type":"String"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"ipAddress","kind":"scalar","type":"String","dbName":"ip_address"},{"name":"userAgent","kind":"scalar","type":"String","dbName":"user_agent"},{"name":"userId","kind":"scalar","type":"String","dbName":"user_id"},{"name":"user","kind":"object","type":"User","relationName":"SessionToUser"}],"dbName":"sessions"},"Account":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"accountId","kind":"scalar","type":"String","dbName":"account_id"},{"name":"providerId","kind":"scalar","type":"String","dbName":"provider_id"},{"name":"userId","kind":"scalar","type":"String","dbName":"user_id"},{"name":"user","kind":"object","type":"User","relationName":"AccountToUser"},{"name":"accessToken","kind":"scalar","type":"String","dbName":"access_token"},{"name":"refreshToken","kind":"scalar","type":"String","dbName":"refresh_token"},{"name":"idToken","kind":"scalar","type":"String","dbName":"id_token"},{"name":"accessTokenExpiresAt","kind":"scalar","type":"DateTime","dbName":"access_token_expires_at"},{"name":"refreshTokenExpiresAt","kind":"scalar","type":"DateTime","dbName":"refresh_token_expires_at"},{"name":"scope","kind":"scalar","type":"String"},{"name":"password","kind":"scalar","type":"String"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"}],"dbName":"accounts"},"Verification":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"identifier","kind":"scalar","type":"String"},{"name":"value","kind":"scalar","type":"String"},{"name":"expiresAt","kind":"scalar","type":"DateTime","dbName":"expires_at"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"}],"dbName":"verifications"},"AuthToken":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"accessToken","kind":"scalar","type":"String","dbName":"access_token"},{"name":"refreshToken","kind":"scalar","type":"String","dbName":"refresh_token"},{"name":"accessTokenExpiresAt","kind":"scalar","type":"DateTime","dbName":"access_token_expires_at"},{"name":"refreshTokenExpiresAt","kind":"scalar","type":"DateTime","dbName":"refresh_token_expires_at"},{"name":"userId","kind":"scalar","type":"String","dbName":"user_id"},{"name":"user","kind":"object","type":"User","relationName":"UserToAuthToken"}],"dbName":"auth_tokens"},"Team":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"settings","kind":"scalar","type":"Json"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"rootFolderId","kind":"scalar","type":"String","dbName":"root_folder_id"},{"name":"rootFolder","kind":"object","type":"Asset","relationName":"TeamToRootFolder"},{"name":"members","kind":"object","type":"TeamMember","relationName":"TeamToTeamMember"},{"name":"projects","kind":"object","type":"Project","relationName":"TeamToProject"},{"name":"metadataFields","kind":"object","type":"MetadataField","relationName":"TeamToMetadataField"},{"name":"invites","kind":"object","type":"Invite","relationName":"TeamToInvite"},{"name":"notifications","kind":"object","type":"Notification","relationName":"TeamToNotification"},{"name":"userMetadata","kind":"object","type":"UserMetadata","relationName":"TeamToUserMetadata"},{"name":"providers","kind":"object","type":"Provider","relationName":"TeamToProvider"},{"name":"skills","kind":"object","type":"Skill","relationName":"TeamToSkill"},{"name":"sandbox","kind":"object","type":"Sandbox","relationName":"TeamToSandbox"},{"name":"agents","kind":"object","type":"Agent","relationName":"TeamToAgent"}],"dbName":"teams"},"Sandbox":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"allowedDomains","kind":"scalar","type":"String"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"teamId","kind":"scalar","type":"String","dbName":"team_id"},{"name":"team","kind":"object","type":"Team","relationName":"TeamToSandbox"}],"dbName":"sandboxes"},"Skill":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"description","kind":"scalar","type":"String"},{"name":"config","kind":"scalar","type":"Json"},{"name":"assetId","kind":"scalar","type":"String","dbName":"asset_id"},{"name":"hash","kind":"scalar","type":"String","dbName":"hash"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"teamId","kind":"scalar","type":"String","dbName":"team_id"},{"name":"team","kind":"object","type":"Team","relationName":"TeamToSkill"},{"name":"agentSkills","kind":"object","type":"AgentSkill","relationName":"AgentSkillToSkill"}],"dbName":"skills"},"TeamMember":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"role","kind":"enum","type":"TeamMemberRole"},{"name":"scope","kind":"enum","type":"TeamMemberScope"},{"name":"teamId","kind":"scalar","type":"String","dbName":"team_id"},{"name":"team","kind":"object","type":"Team","relationName":"TeamToTeamMember"},{"name":"userId","kind":"scalar","type":"String","dbName":"user_id"},{"name":"user","kind":"object","type":"User","relationName":"UserToTeamMember"},{"name":"projectMembers","kind":"object","type":"ProjectMember","relationName":"TeamMemberToProjectMember"},{"name":"lastReadNotificationId","kind":"scalar","type":"String","dbName":"last_read_notification_id"},{"name":"lastReadNotification","kind":"object","type":"Notification","relationName":"TeamMemberToLastReadNotification"}],"dbName":"team_members"},"Project":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"coverImageKey","kind":"scalar","type":"String","dbName":"cover_image_key"},{"name":"metadataOverrides","kind":"scalar","type":"Json","dbName":"metadata_overrides"},{"name":"enableNotification","kind":"scalar","type":"Boolean","dbName":"enable_notification"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"teamId","kind":"scalar","type":"String","dbName":"team_id"},{"name":"team","kind":"object","type":"Team","relationName":"TeamToProject"},{"name":"rootFolderId","kind":"scalar","type":"String","dbName":"root_folder_id"},{"name":"rootFolder","kind":"object","type":"Asset","relationName":"ProjectToRootFolder"},{"name":"shareRootId","kind":"scalar","type":"String","dbName":"share_root_id"},{"name":"shareRoot","kind":"object","type":"Asset","relationName":"ProjectToShareRoot"},{"name":"members","kind":"object","type":"ProjectMember","relationName":"ProjectToProjectMember"},{"name":"assets","kind":"object","type":"Asset","relationName":"ProjectToAsset"},{"name":"metadataFields","kind":"object","type":"MetadataField","relationName":"ProjectToMetadataField"},{"name":"invites","kind":"object","type":"Invite","relationName":"ProjectToInvite"},{"name":"notifications","kind":"object","type":"Notification","relationName":"ProjectToNotification"},{"name":"shareLinks","kind":"object","type":"ShareLink","relationName":"ProjectToShareLink"},{"name":"collections","kind":"object","type":"Collection","relationName":"ProjectToCollection"}],"dbName":"projects"},"ProjectMember":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"role","kind":"enum","type":"ProjectMemberRole"},{"name":"projectId","kind":"scalar","type":"String","dbName":"project_id"},{"name":"project","kind":"object","type":"Project","relationName":"ProjectToProjectMember"},{"name":"teamMemberId","kind":"scalar","type":"String","dbName":"team_member_id"},{"name":"teamMember","kind":"object","type":"TeamMember","relationName":"TeamMemberToProjectMember"}],"dbName":"project_members"},"ShareLink":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"expireAt","kind":"scalar","type":"DateTime","dbName":"expire_at"},{"name":"password","kind":"scalar","type":"String"},{"name":"isDisabled","kind":"scalar","type":"Boolean","dbName":"is_disabled"},{"name":"defaultSortOrder","kind":"scalar","type":"String","dbName":"default_sort_order"},{"name":"fieldVisibility","kind":"scalar","type":"Json","dbName":"field_visibility"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"projectId","kind":"scalar","type":"String","dbName":"project_id"},{"name":"project","kind":"object","type":"Project","relationName":"ProjectToShareLink"},{"name":"rootFolderId","kind":"scalar","type":"String","dbName":"root_folder_id"},{"name":"rootFolder","kind":"object","type":"Asset","relationName":"ShareLinkToRootFolder"}],"dbName":"share_links"},"Asset":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"nameNgram","kind":"scalar","type":"String","dbName":"name_ngram"},{"name":"type","kind":"enum","type":"AssetType"},{"name":"mediaType","kind":"scalar","type":"String","dbName":"media_type"},{"name":"fileCount","kind":"scalar","type":"Int","dbName":"file_count"},{"name":"sizeByte","kind":"scalar","type":"Int","dbName":"size_byte"},{"name":"status","kind":"enum","type":"AssetStatus"},{"name":"transcodeTaskId","kind":"scalar","type":"String","dbName":"transcode_task_id"},{"name":"media","kind":"scalar","type":"Json"},{"name":"isDeleted","kind":"scalar","type":"Boolean","dbName":"is_deleted"},{"name":"deletedAt","kind":"scalar","type":"DateTime","dbName":"deleted_at"},{"name":"sortIndex","kind":"scalar","type":"String","dbName":"sort_index"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"parentId","kind":"scalar","type":"String","dbName":"parent_id"},{"name":"parent","kind":"object","type":"Asset","relationName":"AssetChildren"},{"name":"children","kind":"object","type":"Asset","relationName":"AssetChildren"},{"name":"targetId","kind":"scalar","type":"String","dbName":"target_id"},{"name":"target","kind":"object","type":"Asset","relationName":"SymlinkTarget"},{"name":"symlinks","kind":"object","type":"Asset","relationName":"SymlinkTarget"},{"name":"storageKeyId","kind":"scalar","type":"String","dbName":"storage_key_id"},{"name":"storageKey","kind":"object","type":"StorageKey","relationName":"AssetToStorageKey"},{"name":"metadataValues","kind":"object","type":"AssetMetadataValue","relationName":"AssetToMetadataValues"},{"name":"creatorId","kind":"scalar","type":"String","dbName":"creator_id"},{"name":"creator","kind":"object","type":"User","relationName":"UserToAsset"},{"name":"taskId","kind":"scalar","type":"String","dbName":"task_id"},{"name":"task","kind":"object","type":"Task","relationName":"TaskToAsset"},{"name":"projectId","kind":"scalar","type":"String","dbName":"project_id"},{"name":"project","kind":"object","type":"Project","relationName":"ProjectToAsset"},{"name":"comments","kind":"object","type":"AssetComment","relationName":"AssetToComment"},{"name":"commentAttachments","kind":"object","type":"AssetCommentAttachment","relationName":"AssetToCommentAttachment"},{"name":"notifications","kind":"object","type":"Notification","relationName":"AssetToNotification"},{"name":"embeddings","kind":"object","type":"AssetEmbedding","relationName":"AssetToEmbedding"},{"name":"teamRootFolder","kind":"object","type":"Team","relationName":"TeamToRootFolder"},{"name":"projectRootFolder","kind":"object","type":"Project","relationName":"ProjectToRootFolder"},{"name":"projectShareRoot","kind":"object","type":"Project","relationName":"ProjectToShareRoot"},{"name":"shareLinkRootFolder","kind":"object","type":"ShareLink","relationName":"ShareLinkToRootFolder"}],"dbName":"assets"},"StorageKey":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"key","kind":"scalar","type":"String"},{"name":"status","kind":"enum","type":"StorageKeyStatus"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"assets","kind":"object","type":"Asset","relationName":"AssetToStorageKey"}],"dbName":"storage_keys"},"AssetMetadataValue":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"assetId","kind":"scalar","type":"String","dbName":"asset_id"},{"name":"fieldKey","kind":"scalar","type":"String","dbName":"field_key"},{"name":"stringValue","kind":"scalar","type":"String","dbName":"string_value"},{"name":"numberValue","kind":"scalar","type":"Float","dbName":"number_value"},{"name":"booleanValue","kind":"scalar","type":"Boolean","dbName":"boolean_value"},{"name":"jsonValue","kind":"scalar","type":"Json","dbName":"json_value"},{"name":"dateValue","kind":"scalar","type":"DateTime","dbName":"date_value"},{"name":"asset","kind":"object","type":"Asset","relationName":"AssetToMetadataValues"}],"dbName":"asset_metadata_values"},"AssetComment":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"message","kind":"scalar","type":"String"},{"name":"annotation","kind":"scalar","type":"Json"},{"name":"second","kind":"scalar","type":"Float"},{"name":"sessionId","kind":"scalar","type":"String","dbName":"session_id"},{"name":"session","kind":"object","type":"AgentSession","relationName":"AgentSessionToAssetComment"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"assetId","kind":"scalar","type":"String","dbName":"asset_id"},{"name":"asset","kind":"object","type":"Asset","relationName":"AssetToComment"},{"name":"creatorId","kind":"scalar","type":"String","dbName":"creator_id"},{"name":"creator","kind":"object","type":"User","relationName":"UserToAssetComment"},{"name":"replyToId","kind":"scalar","type":"String","dbName":"reply_to_id"},{"name":"replyTo","kind":"object","type":"AssetComment","relationName":"CommentReplies"},{"name":"replies","kind":"object","type":"AssetComment","relationName":"CommentReplies"},{"name":"attachments","kind":"object","type":"AssetCommentAttachment","relationName":"CommentToAttachment"}],"dbName":"asset_comments"},"AssetCommentAttachment":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"commentId","kind":"scalar","type":"String","dbName":"comment_id"},{"name":"comment","kind":"object","type":"AssetComment","relationName":"CommentToAttachment"},{"name":"assetId","kind":"scalar","type":"String","dbName":"asset_id"},{"name":"asset","kind":"object","type":"Asset","relationName":"AssetToCommentAttachment"}],"dbName":"asset_comment_attachments"},"AssetEmbedding":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"startTime","kind":"scalar","type":"Float","dbName":"start_time"},{"name":"endTime","kind":"scalar","type":"Float","dbName":"end_time"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"assetId","kind":"scalar","type":"String","dbName":"asset_id"},{"name":"asset","kind":"object","type":"Asset","relationName":"AssetToEmbedding"}],"dbName":"asset_embeddings"},"Invite":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"code","kind":"scalar","type":"String"},{"name":"role","kind":"enum","type":"InviteRole"},{"name":"used","kind":"scalar","type":"Boolean"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"teamId","kind":"scalar","type":"String","dbName":"team_id"},{"name":"team","kind":"object","type":"Team","relationName":"TeamToInvite"},{"name":"projectId","kind":"scalar","type":"String","dbName":"project_id"},{"name":"project","kind":"object","type":"Project","relationName":"ProjectToInvite"},{"name":"inviterId","kind":"scalar","type":"String","dbName":"inviter_id"},{"name":"inviter","kind":"object","type":"User","relationName":"UserToInvite"}],"dbName":"invites"},"MetadataField":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"key","kind":"scalar","type":"String"},{"name":"scope","kind":"enum","type":"MetadataFieldScope"},{"name":"config","kind":"scalar","type":"Json"},{"name":"readOnly","kind":"scalar","type":"Boolean","dbName":"read_only"},{"name":"aiAutofill","kind":"scalar","type":"Boolean","dbName":"ai_autofill"},{"name":"description","kind":"scalar","type":"String"},{"name":"teamId","kind":"scalar","type":"String","dbName":"team_id"},{"name":"team","kind":"object","type":"Team","relationName":"TeamToMetadataField"},{"name":"projectId","kind":"scalar","type":"String","dbName":"project_id"},{"name":"project","kind":"object","type":"Project","relationName":"ProjectToMetadataField"}],"dbName":"metadata_fields"},"Notification":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"type","kind":"enum","type":"NotificationType"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"teamId","kind":"scalar","type":"String","dbName":"team_id"},{"name":"team","kind":"object","type":"Team","relationName":"TeamToNotification"},{"name":"projectId","kind":"scalar","type":"String","dbName":"project_id"},{"name":"project","kind":"object","type":"Project","relationName":"ProjectToNotification"},{"name":"creatorId","kind":"scalar","type":"String","dbName":"creator_id"},{"name":"creator","kind":"object","type":"User","relationName":"UserToCreatedNotification"},{"name":"assetId","kind":"scalar","type":"String","dbName":"asset_id"},{"name":"asset","kind":"object","type":"Asset","relationName":"AssetToNotification"},{"name":"taskId","kind":"scalar","type":"String","dbName":"task_id"},{"name":"task","kind":"object","type":"Task","relationName":"TaskToNotification"},{"name":"userId","kind":"scalar","type":"String","dbName":"user_id"},{"name":"user","kind":"object","type":"User","relationName":"UserToNotification"},{"name":"readByMembers","kind":"object","type":"TeamMember","relationName":"TeamMemberToLastReadNotification"}],"dbName":"notifications"},"SystemSettings":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"key","kind":"scalar","type":"String"},{"name":"value","kind":"scalar","type":"Json"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"}],"dbName":"system_settings"},"Task":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"type","kind":"enum","type":"TaskType"},{"name":"status","kind":"enum","type":"TaskStatus"},{"name":"name","kind":"scalar","type":"String"},{"name":"total","kind":"scalar","type":"Int"},{"name":"uploaded","kind":"scalar","type":"Int"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"creatorId","kind":"scalar","type":"String","dbName":"creator_id"},{"name":"creator","kind":"object","type":"User","relationName":"UserToTask"},{"name":"assets","kind":"object","type":"Asset","relationName":"TaskToAsset"},{"name":"notifications","kind":"object","type":"Notification","relationName":"TaskToNotification"}],"dbName":"tasks"},"WorkflowTask":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"uid","kind":"scalar","type":"String"},{"name":"teamId","kind":"scalar","type":"String","dbName":"team_id"},{"name":"projectId","kind":"scalar","type":"String","dbName":"project_id"},{"name":"assetId","kind":"scalar","type":"String","dbName":"asset_id"},{"name":"type","kind":"enum","type":"WorkflowTaskType"},{"name":"status","kind":"enum","type":"WorkflowTaskStatus"},{"name":"payload","kind":"scalar","type":"Json"},{"name":"output","kind":"scalar","type":"Json"},{"name":"heartbeat","kind":"scalar","type":"DateTime"},{"name":"inputTokens","kind":"scalar","type":"Int","dbName":"input_tokens"},{"name":"outputTokens","kind":"scalar","type":"Int","dbName":"output_tokens"},{"name":"model","kind":"scalar","type":"String"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"}],"dbName":"workflow_tasks"},"Agent":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"user","kind":"object","type":"User","relationName":"AgentToUser"},{"name":"type","kind":"enum","type":"AgentType"},{"name":"enabled","kind":"scalar","type":"Boolean"},{"name":"soul","kind":"scalar","type":"String"},{"name":"providerId","kind":"scalar","type":"String","dbName":"provider_id"},{"name":"provider","kind":"object","type":"Provider","relationName":"ProviderToAgent"},{"name":"modelId","kind":"scalar","type":"String","dbName":"model_id"},{"name":"modelRef","kind":"object","type":"Model","relationName":"ModelToAgent"},{"name":"teamId","kind":"scalar","type":"String","dbName":"team_id"},{"name":"team","kind":"object","type":"Team","relationName":"TeamToAgent"},{"name":"config","kind":"scalar","type":"Json"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"agentSessions","kind":"object","type":"AgentSession","relationName":"AgentToAgentSession"},{"name":"skills","kind":"object","type":"AgentSkill","relationName":"AgentToAgentSkill"}],"dbName":"agents"},"AgentSkill":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"agentId","kind":"scalar","type":"String","dbName":"agent_id"},{"name":"agent","kind":"object","type":"Agent","relationName":"AgentToAgentSkill"},{"name":"skillId","kind":"scalar","type":"String","dbName":"skill_id"},{"name":"skill","kind":"object","type":"Skill","relationName":"AgentSkillToSkill"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"}],"dbName":"agent_skills"},"AgentSession":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"agentId","kind":"scalar","type":"String","dbName":"agent_id"},{"name":"agent","kind":"object","type":"Agent","relationName":"AgentToAgentSession"},{"name":"userId","kind":"scalar","type":"String","dbName":"user_id"},{"name":"user","kind":"object","type":"User","relationName":"AgentSessionToUser"},{"name":"cwd","kind":"scalar","type":"String"},{"name":"leafId","kind":"scalar","type":"String","dbName":"leaf_id"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"entries","kind":"object","type":"AgentSessionEntry","relationName":"AgentSessionToAgentSessionEntry"},{"name":"comments","kind":"object","type":"AssetComment","relationName":"AgentSessionToAssetComment"}],"dbName":"agent_sessions"},"AgentSessionEntry":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"sessionId","kind":"scalar","type":"String","dbName":"session_id"},{"name":"session","kind":"object","type":"AgentSession","relationName":"AgentSessionToAgentSessionEntry"},{"name":"entry","kind":"scalar","type":"Json"}],"dbName":"agent_session_entries"},"UserMetadata":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"key","kind":"scalar","type":"String"},{"name":"value","kind":"scalar","type":"Json"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"userId","kind":"scalar","type":"String","dbName":"user_id"},{"name":"user","kind":"object","type":"User","relationName":"UserToUserMetadata"},{"name":"teamId","kind":"scalar","type":"String","dbName":"team_id"},{"name":"team","kind":"object","type":"Team","relationName":"TeamToUserMetadata"}],"dbName":"user_metadata"},"Model":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"modelId","kind":"scalar","type":"String","dbName":"model_id"},{"name":"name","kind":"scalar","type":"String"},{"name":"config","kind":"scalar","type":"Json"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"providerId","kind":"scalar","type":"String","dbName":"provider_id"},{"name":"provider","kind":"object","type":"Provider","relationName":"ProviderToModel"},{"name":"agents","kind":"object","type":"Agent","relationName":"ModelToAgent"}],"dbName":"models"},"Provider":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"isBuiltin","kind":"scalar","type":"Boolean","dbName":"is_builtin"},{"name":"config","kind":"scalar","type":"Json"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"teamId","kind":"scalar","type":"String","dbName":"team_id"},{"name":"team","kind":"object","type":"Team","relationName":"TeamToProvider"},{"name":"models","kind":"object","type":"Model","relationName":"ProviderToModel"},{"name":"agents","kind":"object","type":"Agent","relationName":"ProviderToAgent"}],"dbName":"providers"},"Collection":{"fields":[{"name":"id","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"filter","kind":"scalar","type":"Json"},{"name":"createdAt","kind":"scalar","type":"DateTime","dbName":"created_at"},{"name":"updatedAt","kind":"scalar","type":"DateTime","dbName":"updated_at"},{"name":"projectId","kind":"scalar","type":"String","dbName":"project_id"},{"name":"project","kind":"object","type":"Project","relationName":"ProjectToCollection"}],"dbName":"collections"}},"enums":{},"types":{}}', +) +config.parameterizationSchema = { + strings: JSON.parse( + '["where","orderBy","cursor","parent","children","target","symlinks","assets","_count","storageKey","asset","metadataValues","creator","rootFolder","team","user","shareRoot","members","project","metadataFields","inviter","invites","notifications","shareLinks","collections","teamMember","projectMembers","lastReadNotification","projects","userMetadata","provider","modelRef","agent","session","entries","replyTo","replies","comment","attachments","comments","agentSessions","agentSkills","skill","skills","agents","models","providers","sandbox","task","readByMembers","commentAttachments","embeddings","teamRootFolder","projectRootFolder","projectShareRoot","shareLinkRootFolder","authTokens","tasks","teamMembers","createdInvites","createdNotifications","sessions","accounts","User.findUnique","User.findUniqueOrThrow","User.findFirst","User.findFirstOrThrow","User.findMany","data","User.createOne","User.createMany","User.createManyAndReturn","User.updateOne","User.updateMany","User.updateManyAndReturn","create","update","User.upsertOne","User.deleteOne","User.deleteMany","having","_min","_max","User.groupBy","User.aggregate","Session.findUnique","Session.findUniqueOrThrow","Session.findFirst","Session.findFirstOrThrow","Session.findMany","Session.createOne","Session.createMany","Session.createManyAndReturn","Session.updateOne","Session.updateMany","Session.updateManyAndReturn","Session.upsertOne","Session.deleteOne","Session.deleteMany","Session.groupBy","Session.aggregate","Account.findUnique","Account.findUniqueOrThrow","Account.findFirst","Account.findFirstOrThrow","Account.findMany","Account.createOne","Account.createMany","Account.createManyAndReturn","Account.updateOne","Account.updateMany","Account.updateManyAndReturn","Account.upsertOne","Account.deleteOne","Account.deleteMany","Account.groupBy","Account.aggregate","Verification.findUnique","Verification.findUniqueOrThrow","Verification.findFirst","Verification.findFirstOrThrow","Verification.findMany","Verification.createOne","Verification.createMany","Verification.createManyAndReturn","Verification.updateOne","Verification.updateMany","Verification.updateManyAndReturn","Verification.upsertOne","Verification.deleteOne","Verification.deleteMany","Verification.groupBy","Verification.aggregate","AuthToken.findUnique","AuthToken.findUniqueOrThrow","AuthToken.findFirst","AuthToken.findFirstOrThrow","AuthToken.findMany","AuthToken.createOne","AuthToken.createMany","AuthToken.createManyAndReturn","AuthToken.updateOne","AuthToken.updateMany","AuthToken.updateManyAndReturn","AuthToken.upsertOne","AuthToken.deleteOne","AuthToken.deleteMany","AuthToken.groupBy","AuthToken.aggregate","Team.findUnique","Team.findUniqueOrThrow","Team.findFirst","Team.findFirstOrThrow","Team.findMany","Team.createOne","Team.createMany","Team.createManyAndReturn","Team.updateOne","Team.updateMany","Team.updateManyAndReturn","Team.upsertOne","Team.deleteOne","Team.deleteMany","Team.groupBy","Team.aggregate","Sandbox.findUnique","Sandbox.findUniqueOrThrow","Sandbox.findFirst","Sandbox.findFirstOrThrow","Sandbox.findMany","Sandbox.createOne","Sandbox.createMany","Sandbox.createManyAndReturn","Sandbox.updateOne","Sandbox.updateMany","Sandbox.updateManyAndReturn","Sandbox.upsertOne","Sandbox.deleteOne","Sandbox.deleteMany","Sandbox.groupBy","Sandbox.aggregate","Skill.findUnique","Skill.findUniqueOrThrow","Skill.findFirst","Skill.findFirstOrThrow","Skill.findMany","Skill.createOne","Skill.createMany","Skill.createManyAndReturn","Skill.updateOne","Skill.updateMany","Skill.updateManyAndReturn","Skill.upsertOne","Skill.deleteOne","Skill.deleteMany","Skill.groupBy","Skill.aggregate","TeamMember.findUnique","TeamMember.findUniqueOrThrow","TeamMember.findFirst","TeamMember.findFirstOrThrow","TeamMember.findMany","TeamMember.createOne","TeamMember.createMany","TeamMember.createManyAndReturn","TeamMember.updateOne","TeamMember.updateMany","TeamMember.updateManyAndReturn","TeamMember.upsertOne","TeamMember.deleteOne","TeamMember.deleteMany","TeamMember.groupBy","TeamMember.aggregate","Project.findUnique","Project.findUniqueOrThrow","Project.findFirst","Project.findFirstOrThrow","Project.findMany","Project.createOne","Project.createMany","Project.createManyAndReturn","Project.updateOne","Project.updateMany","Project.updateManyAndReturn","Project.upsertOne","Project.deleteOne","Project.deleteMany","Project.groupBy","Project.aggregate","ProjectMember.findUnique","ProjectMember.findUniqueOrThrow","ProjectMember.findFirst","ProjectMember.findFirstOrThrow","ProjectMember.findMany","ProjectMember.createOne","ProjectMember.createMany","ProjectMember.createManyAndReturn","ProjectMember.updateOne","ProjectMember.updateMany","ProjectMember.updateManyAndReturn","ProjectMember.upsertOne","ProjectMember.deleteOne","ProjectMember.deleteMany","ProjectMember.groupBy","ProjectMember.aggregate","ShareLink.findUnique","ShareLink.findUniqueOrThrow","ShareLink.findFirst","ShareLink.findFirstOrThrow","ShareLink.findMany","ShareLink.createOne","ShareLink.createMany","ShareLink.createManyAndReturn","ShareLink.updateOne","ShareLink.updateMany","ShareLink.updateManyAndReturn","ShareLink.upsertOne","ShareLink.deleteOne","ShareLink.deleteMany","ShareLink.groupBy","ShareLink.aggregate","Asset.findUnique","Asset.findUniqueOrThrow","Asset.findFirst","Asset.findFirstOrThrow","Asset.findMany","Asset.createOne","Asset.createMany","Asset.createManyAndReturn","Asset.updateOne","Asset.updateMany","Asset.updateManyAndReturn","Asset.upsertOne","Asset.deleteOne","Asset.deleteMany","_avg","_sum","Asset.groupBy","Asset.aggregate","StorageKey.findUnique","StorageKey.findUniqueOrThrow","StorageKey.findFirst","StorageKey.findFirstOrThrow","StorageKey.findMany","StorageKey.createOne","StorageKey.createMany","StorageKey.createManyAndReturn","StorageKey.updateOne","StorageKey.updateMany","StorageKey.updateManyAndReturn","StorageKey.upsertOne","StorageKey.deleteOne","StorageKey.deleteMany","StorageKey.groupBy","StorageKey.aggregate","AssetMetadataValue.findUnique","AssetMetadataValue.findUniqueOrThrow","AssetMetadataValue.findFirst","AssetMetadataValue.findFirstOrThrow","AssetMetadataValue.findMany","AssetMetadataValue.createOne","AssetMetadataValue.createMany","AssetMetadataValue.createManyAndReturn","AssetMetadataValue.updateOne","AssetMetadataValue.updateMany","AssetMetadataValue.updateManyAndReturn","AssetMetadataValue.upsertOne","AssetMetadataValue.deleteOne","AssetMetadataValue.deleteMany","AssetMetadataValue.groupBy","AssetMetadataValue.aggregate","AssetComment.findUnique","AssetComment.findUniqueOrThrow","AssetComment.findFirst","AssetComment.findFirstOrThrow","AssetComment.findMany","AssetComment.createOne","AssetComment.createMany","AssetComment.createManyAndReturn","AssetComment.updateOne","AssetComment.updateMany","AssetComment.updateManyAndReturn","AssetComment.upsertOne","AssetComment.deleteOne","AssetComment.deleteMany","AssetComment.groupBy","AssetComment.aggregate","AssetCommentAttachment.findUnique","AssetCommentAttachment.findUniqueOrThrow","AssetCommentAttachment.findFirst","AssetCommentAttachment.findFirstOrThrow","AssetCommentAttachment.findMany","AssetCommentAttachment.createOne","AssetCommentAttachment.createMany","AssetCommentAttachment.createManyAndReturn","AssetCommentAttachment.updateOne","AssetCommentAttachment.updateMany","AssetCommentAttachment.updateManyAndReturn","AssetCommentAttachment.upsertOne","AssetCommentAttachment.deleteOne","AssetCommentAttachment.deleteMany","AssetCommentAttachment.groupBy","AssetCommentAttachment.aggregate","AssetEmbedding.findUnique","AssetEmbedding.findUniqueOrThrow","AssetEmbedding.findFirst","AssetEmbedding.findFirstOrThrow","AssetEmbedding.findMany","AssetEmbedding.createOne","AssetEmbedding.createMany","AssetEmbedding.createManyAndReturn","AssetEmbedding.updateOne","AssetEmbedding.updateMany","AssetEmbedding.updateManyAndReturn","AssetEmbedding.upsertOne","AssetEmbedding.deleteOne","AssetEmbedding.deleteMany","AssetEmbedding.groupBy","AssetEmbedding.aggregate","Invite.findUnique","Invite.findUniqueOrThrow","Invite.findFirst","Invite.findFirstOrThrow","Invite.findMany","Invite.createOne","Invite.createMany","Invite.createManyAndReturn","Invite.updateOne","Invite.updateMany","Invite.updateManyAndReturn","Invite.upsertOne","Invite.deleteOne","Invite.deleteMany","Invite.groupBy","Invite.aggregate","MetadataField.findUnique","MetadataField.findUniqueOrThrow","MetadataField.findFirst","MetadataField.findFirstOrThrow","MetadataField.findMany","MetadataField.createOne","MetadataField.createMany","MetadataField.createManyAndReturn","MetadataField.updateOne","MetadataField.updateMany","MetadataField.updateManyAndReturn","MetadataField.upsertOne","MetadataField.deleteOne","MetadataField.deleteMany","MetadataField.groupBy","MetadataField.aggregate","Notification.findUnique","Notification.findUniqueOrThrow","Notification.findFirst","Notification.findFirstOrThrow","Notification.findMany","Notification.createOne","Notification.createMany","Notification.createManyAndReturn","Notification.updateOne","Notification.updateMany","Notification.updateManyAndReturn","Notification.upsertOne","Notification.deleteOne","Notification.deleteMany","Notification.groupBy","Notification.aggregate","SystemSettings.findUnique","SystemSettings.findUniqueOrThrow","SystemSettings.findFirst","SystemSettings.findFirstOrThrow","SystemSettings.findMany","SystemSettings.createOne","SystemSettings.createMany","SystemSettings.createManyAndReturn","SystemSettings.updateOne","SystemSettings.updateMany","SystemSettings.updateManyAndReturn","SystemSettings.upsertOne","SystemSettings.deleteOne","SystemSettings.deleteMany","SystemSettings.groupBy","SystemSettings.aggregate","Task.findUnique","Task.findUniqueOrThrow","Task.findFirst","Task.findFirstOrThrow","Task.findMany","Task.createOne","Task.createMany","Task.createManyAndReturn","Task.updateOne","Task.updateMany","Task.updateManyAndReturn","Task.upsertOne","Task.deleteOne","Task.deleteMany","Task.groupBy","Task.aggregate","WorkflowTask.findUnique","WorkflowTask.findUniqueOrThrow","WorkflowTask.findFirst","WorkflowTask.findFirstOrThrow","WorkflowTask.findMany","WorkflowTask.createOne","WorkflowTask.createMany","WorkflowTask.createManyAndReturn","WorkflowTask.updateOne","WorkflowTask.updateMany","WorkflowTask.updateManyAndReturn","WorkflowTask.upsertOne","WorkflowTask.deleteOne","WorkflowTask.deleteMany","WorkflowTask.groupBy","WorkflowTask.aggregate","Agent.findUnique","Agent.findUniqueOrThrow","Agent.findFirst","Agent.findFirstOrThrow","Agent.findMany","Agent.createOne","Agent.createMany","Agent.createManyAndReturn","Agent.updateOne","Agent.updateMany","Agent.updateManyAndReturn","Agent.upsertOne","Agent.deleteOne","Agent.deleteMany","Agent.groupBy","Agent.aggregate","AgentSkill.findUnique","AgentSkill.findUniqueOrThrow","AgentSkill.findFirst","AgentSkill.findFirstOrThrow","AgentSkill.findMany","AgentSkill.createOne","AgentSkill.createMany","AgentSkill.createManyAndReturn","AgentSkill.updateOne","AgentSkill.updateMany","AgentSkill.updateManyAndReturn","AgentSkill.upsertOne","AgentSkill.deleteOne","AgentSkill.deleteMany","AgentSkill.groupBy","AgentSkill.aggregate","AgentSession.findUnique","AgentSession.findUniqueOrThrow","AgentSession.findFirst","AgentSession.findFirstOrThrow","AgentSession.findMany","AgentSession.createOne","AgentSession.createMany","AgentSession.createManyAndReturn","AgentSession.updateOne","AgentSession.updateMany","AgentSession.updateManyAndReturn","AgentSession.upsertOne","AgentSession.deleteOne","AgentSession.deleteMany","AgentSession.groupBy","AgentSession.aggregate","AgentSessionEntry.findUnique","AgentSessionEntry.findUniqueOrThrow","AgentSessionEntry.findFirst","AgentSessionEntry.findFirstOrThrow","AgentSessionEntry.findMany","AgentSessionEntry.createOne","AgentSessionEntry.createMany","AgentSessionEntry.createManyAndReturn","AgentSessionEntry.updateOne","AgentSessionEntry.updateMany","AgentSessionEntry.updateManyAndReturn","AgentSessionEntry.upsertOne","AgentSessionEntry.deleteOne","AgentSessionEntry.deleteMany","AgentSessionEntry.groupBy","AgentSessionEntry.aggregate","UserMetadata.findUnique","UserMetadata.findUniqueOrThrow","UserMetadata.findFirst","UserMetadata.findFirstOrThrow","UserMetadata.findMany","UserMetadata.createOne","UserMetadata.createMany","UserMetadata.createManyAndReturn","UserMetadata.updateOne","UserMetadata.updateMany","UserMetadata.updateManyAndReturn","UserMetadata.upsertOne","UserMetadata.deleteOne","UserMetadata.deleteMany","UserMetadata.groupBy","UserMetadata.aggregate","Model.findUnique","Model.findUniqueOrThrow","Model.findFirst","Model.findFirstOrThrow","Model.findMany","Model.createOne","Model.createMany","Model.createManyAndReturn","Model.updateOne","Model.updateMany","Model.updateManyAndReturn","Model.upsertOne","Model.deleteOne","Model.deleteMany","Model.groupBy","Model.aggregate","Provider.findUnique","Provider.findUniqueOrThrow","Provider.findFirst","Provider.findFirstOrThrow","Provider.findMany","Provider.createOne","Provider.createMany","Provider.createManyAndReturn","Provider.updateOne","Provider.updateMany","Provider.updateManyAndReturn","Provider.upsertOne","Provider.deleteOne","Provider.deleteMany","Provider.groupBy","Provider.aggregate","Collection.findUnique","Collection.findUniqueOrThrow","Collection.findFirst","Collection.findFirstOrThrow","Collection.findMany","Collection.createOne","Collection.createMany","Collection.createManyAndReturn","Collection.updateOne","Collection.updateMany","Collection.updateManyAndReturn","Collection.upsertOne","Collection.deleteOne","Collection.deleteMany","Collection.groupBy","Collection.aggregate","AND","OR","NOT","id","name","filter","createdAt","updatedAt","projectId","equals","in","notIn","lt","lte","gt","gte","not","string_contains","string_starts_with","string_ends_with","array_starts_with","array_ends_with","array_contains","contains","startsWith","endsWith","isBuiltin","config","teamId","modelId","providerId","key","value","userId","sessionId","entry","agentId","cwd","leafId","skillId","AgentType","type","enabled","soul","uid","assetId","WorkflowTaskType","WorkflowTaskStatus","status","payload","output","heartbeat","inputTokens","outputTokens","model","TaskType","TaskStatus","total","uploaded","creatorId","NotificationType","taskId","MetadataFieldScope","scope","readOnly","aiAutofill","description","code","InviteRole","role","used","inviterId","startTime","endTime","commentId","message","annotation","second","replyToId","fieldKey","stringValue","numberValue","booleanValue","jsonValue","dateValue","StorageKeyStatus","every","some","none","nameNgram","AssetType","mediaType","fileCount","sizeByte","AssetStatus","transcodeTaskId","media","isDeleted","deletedAt","sortIndex","parentId","targetId","storageKeyId","has","hasEvery","hasSome","expireAt","password","isDisabled","defaultSortOrder","fieldVisibility","rootFolderId","ProjectMemberRole","teamMemberId","coverImageKey","metadataOverrides","enableNotification","shareRootId","TeamMemberRole","TeamMemberScope","lastReadNotificationId","hash","allowedDomains","settings","accessToken","refreshToken","accessTokenExpiresAt","refreshTokenExpiresAt","identifier","expiresAt","accountId","idToken","token","ipAddress","userAgent","UserType","email","emailVerified","image","agentSettings","guestEmail","teamId_name","agentId_skillId","providerId_modelId","userIdTeamIdKey","projectIdTeamMemberId","teamIdUserId","assetId_fieldKey","parentIdTargetId","is","isNot","connectOrCreate","upsert","createMany","set","disconnect","delete","connect","updateMany","deleteMany","push","increment","decrement","multiply","divide"]', + ), + graph: + 'vROaAoAEGwcAALMIACAWAADUCAAgHQAA1QgAICAAALAJACAnAAD7CAAgKAAAhwkAIDgAAKwJACA5AACtCQAgOgAA0AgAIDsAANMIACA8AADUCAAgPQAArgkAID4AAK8JACDHBAAAqgkAMMgEAAATABDJBAAAqgkAMMoEAQAAAAHLBAEAgggAIc0EQACKCAAhzgRAAIoIACHwBAAAqwnPBSKyBQEAhAgAIc8FAQAAAAHQBSAAhAkAIdEFAQCECAAh0gUAAIcIACDTBQEAhAgAIQEAAAABACApAwAAzwgAIAQAALMIACAFAADPCAAgBgAAswgAIAkAALgJACALAAC5CQAgDAAA6ggAIBIAAJkJACAWAADUCAAgJwAA-wgAIDAAAKgJACAyAAD8CAAgMwAAugkAIDQAAJwJACA1AACZCQAgNgAAmQkAIDcAALsJACDHBAAAtQkAMMgEAAADABDJBAAAtQkAMMoEAQCCCAAhywQBAIIIACHNBEAAiggAIc4EQACKCAAhzwQBAIQIACHwBAAAtgmiBSL3BAAAtwmmBSKCBQEAhAgAIYQFAQCECAAhoAUAALUIACCiBQEAhAgAIaMFAgCJCAAhpAUCAIkIACGmBQEAhAgAIacFAACHCAAgqAUgAIQJACGpBUAAiAgAIaoFAQCECAAhqwUBAIQIACGsBQEAhAgAIa0FAQCECAAhHAMAAKEPACAEAAD_DgAgBQAAoQ8AIAYAAP8OACAJAADxEAAgCwAA8hAAIAwAAOAQACASAADtEAAgFgAApg8AICcAANsQACAwAADwEAAgMgAA5RAAIDMAAPMQACA0AACbDwAgNQAA7RAAIDYAAO0QACA3AAD0EAAgzwQAAOsKACCCBQAA6woAIIQFAADrCgAgogUAAOsKACCmBQAA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AhAwAAAGoAIAEAAGsAMAIAAGwAIAEAAABhACABAAAAEwAgAQAAAGoAIAMAAABqACABAABrADACAABsACAKCgAA7ggAICUAAPcIACDHBAAA9ggAMMgEAAByABDJBAAA9ggAMMoEAQCCCAAhzQRAAIoIACHOBEAAiggAIfQEAQCCCAAhkQUBAIIIACECCgAAoQ8AICUAAOMQACAKCgAA7ggAICUAAPcIACDHBAAA9ggAMMgEAAByABDJBAAA9ggAMMoEAQAAAAHNBEAAiggAIc4EQACKCAAh9AQBAIIIACGRBQEAgggAIQMAAAByACABAABzADACAAB0ACABAAAAagAgAQAAAHIAIAEAAABmACABAAAAagAgCiAAAPQIACAqAAD1CAAgxwQAAPMIADDIBAAAegAQyQQAAPMIADDKBAEAgggAIc0EQACKCAAhzgRAAIoIACHrBAEAgggAIe4EAQCCCAAhAiAAAN4QACAqAADiEAAgCyAAAPQIACAqAAD1CAAgxwQAAPMIADDIBAAAegAQyQQAAPMIADDKBAEAAAABzQRAAIoIACHOBEAAiggAIesEAQCCCAAh7gQBAIIIACHVBQAA8ggAIAMAAAB6ACABAAB7ADACAAB8ACADAAAAegAgAQAAewAwAgAAfAAgAQAAAHoAIAEAAABhACABAAAAegAgAQAAAFsAIAMAAABbACABAABcADACAABdACABAAAAVwAgAQAAAFsAIA4OAADMCAAgKQAA8QgAIMcEAADwCAAwyAQAAIYBABDJBAAA8AgAMMoEAQCCCAAhywQBAIIIACHNBEAAiggAIc4EQACKCAAh4gQAAIcIACDjBAEAgggAIfQEAQCCCAAhiQUBAIQIACHABQEAgggAIQQOAACbDwAgKQAA4RAAIOIEAADrCgAgiQUAAOsKACAPDgAAzAgAICkAAPEIACDHBAAA8AgAMMgEAACGAQAQyQQAAPAIADDKBAEAAAABywQBAIIIACHNBEAAiggAIc4EQACKCAAh4gQAAIcIACDjBAEAgggAIfQEAQCCCAAhiQUBAIQIACHABQEAgggAIdQFAADvCAAgAwAAAIYBACABAACHAQAwAgAAiAEAIAkOAADMCAAgxwQAAMsIAD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WBwAhygUBAOcHACEDAAAAwQEAIAEAAJICADBQAACTAgAgAwAAAMEBACABAADCAQAwAgAAwwEAIAnHBAAA3AgAMMgEAACZAgAQyQQAANwIADDKBAEAAAABzQRAAIgIACHOBEAAiAgAIecEAQCCCAAhxwUBAIIIACHIBUAAiggAIQEAAACWAgAgAQAAAJYCACAJxwQAANwIADDIBAAAmQIAEMkEAADcCAAwygQBAIIIACHNBEAAiAgAIc4EQACICAAh5wQBAIIIACHHBQEAgggAIcgFQACKCAAhAs0EAADrCgAgzgQAAOsKACADAAAAmQIAIAEAAJoCADACAACWAgAgAwAAAJkCACABAACaAgAwAgAAlgIAIAMAAACZAgAgAQAAmgIAMAIAAJYCACAGygQBAAAAAc0EQAAAAAHOBEAAAAAB5wQBAAAAAccFAQAAAAHIBUAAAAABAUQAAJ4CACAGygQBAAAAAc0EQAAAAAHOBEAAAAAB5wQBAAAAAccFAQAAAAHIBUAAAAABAUQAAKACADABRAAAoAIAMAbKBAEAvwkAIc0EQACACwAhzgRAAIALACHnBAEAvwkAIccFAQC_CQAhyAVAAMAJACECAAAAlgIAIEQAAKMCACAGygQBAL8JACHNBEAAgAsAIc4EQACACwAh5wQBAL8JACHHBQEAvwkAIcgFQADACQAhAgAAAJkCACBEAAClAgAgAgAAAJkCACBEAAClAgAgAwAAAJYCACBLAACeAgAgTAAAowIAIAEAAACWAgAgAQAAAJkCACAFCAAAsQ8AIFEAALMPACBSAACyDwAgzQQAAOsKACDOBAAA6woAIAnHBAAA2wgAMMgEAACsAgAQyQQAANsIADDKBAEA1gcAIc0EQAD1BwAhzgRAAPUHACHnBAEA1gcAIccFAQDWBwAhyAVAANgHACEDAAAAmQIAIAEAAKsCADBQAACsAgAgAwAAAJkCACABAACaAgAwAgAAlgIAIAEAAACzAQAgAQAAALMBACADAAAAsQEAIAEAALIBADACAACzAQAgAwAAALEBACABAACyAQAwAgAAswEAIAMAAACxAQAgAQAAsgEAMAIAALMBACAHDwAAsA8AIMoEAQAAAAHoBAE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uBgAwAUQAAO4GADAEIQAA6QoAIMoEAQC_CQAh6QQBAL8JACHqBIAAAAABAgAAAGgAIEQAAPEGACADygQBAL8JACHpBAEAvwkAIeoEgAAAAAECAAAAZgAgRAAA8wYAIAIAAABmACBEAADzBgAgAwAAAGgAIEsAAOwGACBMAADxBgAgAQAAAGgAIAEAAABmACADCAAA5goAIFEAAOgKACBSAADnCgAgBscEAADlBwAwyAQAAPoGABDJBAAA5QcAMMoEAQDWBwAh6QQBANYHACHqBAAA1wcAIAMAAABmACABAAD5BgAwUAAA-gYAIAMAAABmACABAABnADACAABoACABAAAAUQAgAQAAAFEAIAMAAABPACABAABQADACAABRACADAAAATwAgAQAAUAAwAgAAUQAgAwAAAE8AIAEAAFAAMAIAAFEAIAkOAADlCgAgDwAA5AoAIMoEAQAAAAHNBEAAAAABzgRAAAAAAeMEAQAAAAHmBAEAAAAB5wSAAAAAAegEAQAAAAEBRAAAggcAIAfKBAEAAAABzQRAAAAAAc4EQAAAAAHjBAEAAAAB5gQBAAAAAecEgAAAAAHoBAEAAAABAUQAAIQHADABRAAAhAcAMAkOAADjCgAgDwAA4goAIMoEAQC_CQAhzQRAAMAJACHOBEAAwAkAIeMEAQC_CQAh5gQBAL8JACHnBIAAAAAB6AQBAL8JACECAAAAUQAgRAAAhwcAIAfKBAEAvwkAIc0EQADACQAhzgRAAMAJACHjBAEAvwkAIeYEAQC_CQAh5wSAAAAAAegEAQC_CQAhAgAAAE8AIEQAAIkHACACAAAATwAgRAAAiQcAIAMAAABRACBLAACCBwAgTAAAhwcAIAEAAABRACABAAAATwAgAwgAAN8KACBRAADhCgAgUgAA4AoAIArHBAAA5AcAMMgEAACQBwAQyQQAAOQHADDKBAEA1gcAIc0EQADYBwAhzgRAANgHACHjBAEA1gcAIeYEAQDWBwAh5wQAANcHACDoBAEA1gcAIQMAAABPACABAACPBwAwUAAAkAcAIAMAAABPACABAABQADACAABRACABAAAAWQAgAQAAAFkAIAMAAABXACABAABYADACAABZACADAAAAVw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AJcOACANxwQAAJUOADDIBAAAlg4AEMkEAACVDgAwygQBAIIIACHLBAEAgggAIc0EQACKCAAhzgRAAIoIACHjBAEAgggAIbYFAQCECAAhuQUBAIQIACG6BQAAhwgAILsFIACECQAhvAUBAIQIACENxwQAAJUOADDIBAAAlg4AEMkEAACVDgAwygQBAIIIACHLBAEAgggAIc0EQACKCAAhzgRAAIoIACHjBAEAgggAIbYFAQCECAAhuQUBAIQIACG6BQAAhwgAILsFIACECQAhvAUBAIQIACEJygQBAL8JACHLBAEAvwkAIc0EQADACQAhzgRAAMAJACG2BQEA1QkAIbkFAQDVCQAhugWAAAAAAbsFIADGCQAhvAUBANUJACESBwAA7wsAIA0AAO0LACAQAADPDQAgEQAA7gsAIBMAAPALACAVAADxCwAgFgAA8gsAIBcAAPMLACAYAAD0CwAgygQBAL8JACHLBAEAvwkAIc0EQADACQAhzgRAAMAJACG2BQEA1QkAIbkFAQDVCQAhugWAAAAAAbsFIADGCQAhvAUBANUJACEDAAAAIAAgSwAApA0AIEwAAJ8OACACAAAAIAAgRAAAnw4AIAIAAACdDgAgRAAAng4AIAnHBAAAnA4AMMgEAACdDgAQyQQAAJwOADDKBAEAgggAIeMEAQCCCAAh6AQBAIIIACGGBQAApAm_BSKMBQAAowm-BSK_BQEAhAgAIQnHBAAAnA4AMMgEAACdDgAQyQQAAJwOADDKBAEAgggAIeMEAQCCCAAh6AQBAIIIACGGBQAApAm_BSKMBQAAowm-BSK_BQEAhAgAIQXKBAEAvwkAIegEAQC_CQAhhgUAAKULvwUijAUAAKQLvgUivwUBANUJACEIDwAApwsAIBoAAKgLACAbAACgDgAgygQBAL8JACHoBAEAvwkAIYYFAAClC78FIowFAACkC74FIr8FAQDVCQAhB0sAALERACBMAAC0EQAg3gUAALIRACDfBQAAsxEAIOIFAAAZACDjBQAAGQAg5AUAABsAIAMAAACkAQAgSwAAqg0AIEwAAKcOACACAAAApAEAIEQAAKcOACACAAAApQ4AIEQAAKYOACAJxwQAAKQOADDIBAA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QAAihAAIOQFAACRCwAwBEsAAP4PADDeBQAA_w8AMOAFAACBEAAg5AUAAJELADAESwAA8g8AMN4FAADzDwAw4AUAAPUPACDkBQAA9g8AMARLAADmDwAw3gUAAOcPADDgBQAA6Q8AIOQFAADqDwAwA0sAAOEPACDeBQAA4g8AIOQFAABdACAESwAA2A8AMN4FAADZDwAw4AUAANsPACDkBQAA7gkAMARLAADPDwAw3gUAANAPADDgBQAA0g8AIOQFAACKDQAwAAAAAAAJDgAAmw8AIA8AAOAQACAeAADnEAAgHwAA6BAAICgAAN8QACArAADhEAAg5AQAAOsKACDlBAAA6woAIPIEAADrCgAgABEHAAD_DgAgFgAApg8AIB0AAKcPACAgAADeEAAgJwAA2xAAICgAAN8QACA4AADZEAAgOQAA2hAAIDoAAKIPACA7AAClDwAgPAAApg8AID0AANwQACA-AADdEAAgsgUAAOsKACDRBQAA6woAINIFAADrCgAg0wUAAOsKACAABA4AAJsPACApAADhEAAg4gQAAOsKACCJBQAA6woAIAwKAAChDwAgDAAA4BAAICEAAOQQACAjAADjEAAgJAAA2xAAICYAAOUQACDpBAAA6woAIIIFAADrCgAgkgUAAOsKACCTBQAA6woAIJQFAADrCgAglQUAAOsKACAGDwAA4BAAICAAAN4QACAiAADmEAAgJwAA2xAAIOgEAADrCgAg7QQAAOsKACAAAAMOAACbDwAgLAAAqw8AIC0AAOkQACACHgAA5xAAICwAAKsPACAAAAAADgcAAP8OACANAAChDwAgDgAAmw8AIBAAAKEPACARAADqEAAgEwAApA8AIBUAAKUPACAWAACmDwAgFwAA6xAAIBgAAOwQACC2BQAA6woAILkFAADrCgAgugUAAOsKACC8BQAA6woAIAUOAACbDwAgDwAA4BAAIBoAAOoQACAbAADvEAAgvwUAAOsKACANCgAAoQ8AIAwAAOAQACAOAACbDwAgDwAA4BAAIBIAAO0QACAwAADwEAAgMQAA7hAAIM8EAADrCgAg6AQAAOsKACDwBAAA6woAIPQEAADrCgAgggUAAOsKACCEBQAA6woAIAcHAAD_DgAgDA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AIBIAANcLACAWAADaCwAgJwAA2AsAIDAAAMIMACAyAADZCwAgMwAA2wsAIDQAANwLACA1AADdCwAgNgAA3gsAIDcAAN8LACDKBAEAvwkAIcsEAQC_CQAhzQRAAMAJACHOBEAAwAkAIc8EAQDVCQAh8AQAAM0LogUi9wQAAM4LpgUiggUBANUJACGEBQEA1QkAIaAFAADMCwAgogUBANUJACGjBQIAgQsAIaQFAgCBCwAhpgUBANUJACGnBYAAAAABqAUgAMYJACGpBUAAgAsAIaoFAQDVCQAhqwUBANUJACGsBQEA1QkAIa0FAQDVCQAhJQMAAMUMACAEAADGDAAgBQAAxwwAIAYAAMgMACAJAADJDAAgCwAAygwAIAwAAMsMACASAADBDQAgFgAAzwwAICcAAM0MACAwAADMDAAgMgAAzgwAIDQAANEMACA1AADSDAAgNgAA0wwAIDcAANQMACDKBAEAAAABywQBAAAAAc0EQAAAAAHOBEAAAAABzwQBAAAAAfAEAAAAogUC9wQAAACmBQKCBQEAAAABhAUBAAAAAaAFAADEDAAgogUBAAAAAaMFAgAAAAGkBQIAAAABpgUBAAAAAacFgAAAAAGoBSAAAAABqQVAAAAAAaoFAQAAAAGrBQEAAAABrAUBAAAAAa0FAQAAAAECAAAABQAgSwAApREAIAMAAAADACBLAAClEQAgTAAAqREAICcAAAADACADAADQCwAgBAAA0QsAIAUAANILACAGAADTCwAgCQAA1AsAIAsAANULACAMAADWCwAgEgAA1wsAIBYAANoLACAnAADYCwAgMAAAwgwAIDIAANkLACA0AADcCwAgNQAA3QsAIDYAAN4LACA3AADfCwAgRAAAqREAIMoEAQC_CQAhywQBAL8JACHNBEAAwAkAIc4EQADACQAhzwQBANUJACHwBAAAzQuiBSL3BAAAzgumBSKCBQEA1QkAIYQFAQDVCQAhoAUAAMwLACCiBQEA1QkAIaMFAgCBCwAhpAUCAIELACGmBQEA1QkAIacFgAAAAAGoBSAAxgkAIakFQACACwAhqgUBANUJACGrBQEA1QkAIawFAQDVCQAhrQUBANUJACElAwAA0AsAIAQAAN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rQUBAAAAAQIAAAAFACBLAACHEgAgAwAAAAMAIEsAAIcSACBMAACLEgAgJwAAAAMAIAMAANALACAEAADRCwAgBQAA0gsAIAYAANMLACAJAADUCwAgCwAA1QsAIAwAANYLACASAADXCwAgFgAA2gsAICcAANgLACAwAADCDAAgMgAA2QsAIDMAANsLACA0AADcCwAgNQAA3QsAIDYAAN4LACBEAACLEgAgygQBAL8JACHLBAEAvwkAIc0EQADACQAhzgRAAMAJACHPBAEA1QkAIfAEAADNC6IFIvcEAADOC6YFIoIFAQDVCQAhhAUBANUJACGgBQAAzAsAIKIFAQDVCQAhowUCAIELACGkBQIAgQsAIaYFAQDVCQAhpwWAAAAAAagFIADGCQAhqQVAAIALACGqBQEA1QkAIasFAQDVCQAhrAUBANUJACGtBQEA1QkAISUDAADQCwAgBAAA0QsAIAUAANILACAGAADTCwAgCQAA1AsAIAsAANULACAMAADWCwAgEgAA1wsAIBYAANoLACAnAADYCwAgMAAAwgwAIDIAANkLACAzAADbCwAgNAAA3AsAIDUAAN0LACA2AADeCwAgygQBAL8JACHLBAEAvwkAIc0EQADACQAhzgRAAMAJACHPBAEA1QkAIfAEAADNC6IFIvcEAADOC6YFIoIFAQDVCQAhhAUBANUJACGgBQAAzAsAIKIFAQDVCQAhowUCAIELACGkBQIAgQsAIaYFAQDVCQAhpwWAAAAAAagFIADGCQAhqQVAAIALACGqBQEA1QkAIasFAQDVCQAhrAUBANUJACGtBQEA1QkAIQrKBAEAAAABywQBAAAAAc0EQAAAAAHOBEAAAAABsQVAAAAAAbIFAQAAAAGzBSAAAAABtAUBAAAAAbUFgAAAAAG2BQEAAAABBcoEAQAAAAHLBAEAAAABzASAAAAAAc0EQAAAAAHOBEAAAAABAwAAAAMAIEsAANQRACBMAACQEgAgJwAAAAMAIAMAANALACAEAADRCwAgBQAA0gsAIAYAANMLACAJAADUCwAgCwAA1QsAIAwAANYLACASAADXCwAgFgAA2gsAICcAANgLACAwAADCDAAgMgAA2QsAIDMAANsLACA0AADcC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AQDVCQAhhAUBANUJACGgBQAAzAsAIKIFAQDVCQAhowUCAIELACGkBQIAgQsAIaYFAQDVCQAhpwWAAAAAAagFIADGCQAhqQVAAIALACGqBQEA1QkAIasFAQDVCQAhrAUBANUJACGtBQEA1QkAIQMAAAADACBLAADqEQAgTAAApxIAICcAAAADACADAADQCwAgBQAA0gsAIAYAANMLACAJAADUCwAgCwAA1QsAIAwAANYLACASAADXCwAgFgAA2gsAICcAANgLACAwAADCDAAgMgAA2QsAIDMAANsLACA0AADcCwAgNQAA3QsAIDYAAN4LACA3AADfCwAgRAAApxIAIMoEAQC_CQAhywQBAL8JACHNBEAAwAkAIc4EQADACQAhzwQBANUJACHwBAAAzQuiBSL3BAAAzgumBSKCBQEA1QkAIYQFAQDVCQAhoAUAAMwLACCiBQEA1QkAIaMFAgCBCwAhpAUCAIELACGmBQEA1QkAIacFgAAAAAGoBSAAxgkAIakFQACACwAhqgUBANUJACGrBQEA1QkAIawFAQDVCQAhrQUBANUJACElAwAA0AsAIAUAANILACAGAADTCwAgCQAA1AsAIAsAANULACAMAADWCwAgEgAA1wsAIBYAANoLACAnAADYCwAgMAAAwgwAIDIAANkLACAzAADbCwAgNAAA3AsAIDUAAN0LACA2AADeCwAgNwAA3wsAIMoEAQC_CQAhywQBAL8JACHNBEAAwAkAIc4EQADACQAhzwQBANUJACHwBAAAzQuiBSL3BAAAzgumBSKCBQEA1QkAIYQFAQDVCQAhoAUAAMwLACCiBQEA1QkAIaMFAgCBCwAhpAUCAIELACGmBQEA1QkAIacFgAAAAAGoBSAAxgkAIakFQACACwAhqgUBANUJACGrBQEA1QkAIawFAQDVCQAhrQUBANUJACEUygQBAAAAAcsEAQAAAAHNBEAAAAABzgRAAAAAAc8EAQAAAAHwBAAAAKIFAvcEAAAApgUCggUBAAAAAaAFAADEDAAgogUBAAAAAaMFAgAAAAGkBQIAAAABpgUBAAAAAacFgAAAAAGoBSAAAAABqQVAAAAAAaoFAQAAAAGrBQEAAAABrAUBAAAAAa0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aAFAADEDAAgogUBAAAAAaMFAgAAAAGkBQIAAAABpgUBAAAAAacFgAAAAAGoBSAAAAABqQVAAAAAAaoFAQAAAAGrBQEAAAABrAUBAAAAAa0FAQAAAAECAAAABQAgSwAAkhMAIAMAAAADACBLAACSEwAgTAAAlhMAICcAAAADACADAADQCwAgBAAA0QsAIAUAANILACAGAADTCwAgCQAA1AsAIAsAANULACAMAADWCwAgEgAA1wsAIBYAANoLACAnAADYCwAgMAAAwgwAIDMAANsLACA0AADcCwAgNQAA3QsAIDYAAN4LACA3AADfCwAgRAAAlhMAIMoEAQC_CQAhywQBAL8JACHNBEAAwAkAIc4EQADACQAhzwQBANUJACHwBAAAzQuiBSL3BAAAzgumBSKCBQEA1QkAIYQFAQDVCQAhoAUAAMwLACCiBQEA1QkAIaMFAgCBCwAhpAUCAIELACGmBQEA1QkAIacFgAAAAAGoBSAAxgkAIakFQACACwAhqgUBANUJACGrBQEA1QkAIawFAQDVCQAhrQUBANUJACElAwAA0AsAIAQAANELACAFAADSCwAgBgAA0wsAIAkAANQLACALAADVCwAgDAAA1gsAIBIAANcLACAWAADaCwAgJwAA2AsAIDAAAMIMACAzAADbCwAgNAAA3AsAIDUAAN0LACA2AADeCwAgNwAA3wsAIMoEAQC_CQAhywQBAL8JACHNBEAAwAkAIc4EQADACQAhzwQBANUJACHwBAAAzQuiBSL3BAAAzgumBSKCBQEA1QkAIYQFAQDVCQAhoAUAAMwLACCiBQEA1QkAIaMFAgCBCwAhpAUCAIELACGmBQEA1QkAIacFgAAAAAGoBSAAxgkAIakFQACACwAhqgUBANUJACGrBQEA1QkAIawFAQDVCQAhrQUBANUJACEEygQBAAAAAc0EQAAAAAHOBEAAAAAB9AQBAAAAAQMAAABqACBLAACGEwAgTAAAmhMAIBEAAABqACAKAACECgAgDAAAhQoAICEAAJ8KACAjAACGCgAgJgAAiAoAIEQAAJoTACDKBAEAvwkAIc0EQADACQAhzgRAAMAJACHpBAEA1QkAIfQEAQC_CQAhggUBANUJACGS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HK8EEzQeVAsIEzgcPwwTPBw_EBNAHK8UE0weWAsYE1AeaAg', +} + +async function decodeBase64AsWasm(wasmBase64: string): Promise { + const { Buffer } = await import('node:buffer') + const wasmArray = Buffer.from(wasmBase64, 'base64') + return new WebAssembly.Module(wasmArray) +} + +config.compilerWasm = { + getRuntime: async () => + await import('@prisma/client/runtime/query_compiler_fast_bg.postgresql.mjs'), + + getQueryCompilerWasmModule: async () => { + const { wasm } = + await import('@prisma/client/runtime/query_compiler_fast_bg.postgresql.wasm-base64.mjs') + return await decodeBase64AsWasm(wasm) + }, + + importName: './query_compiler_fast_bg.js', +} + +export type LogOptions = + 'log' extends keyof ClientOptions + ? ClientOptions['log'] extends Array + ? Prisma.GetEvents + : never + : never + +export interface PrismaClientConstructor { + /** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient({ + * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) + * }) + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ + + new < + Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, + LogOpts extends LogOptions = LogOptions, + OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } + ? U + : Prisma.PrismaClientOptions['omit'], + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + >( + options: Prisma.Subset, + ): PrismaClient +} + +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient({ + * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) + * }) + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ + +export interface PrismaClient< + in LogOpts extends Prisma.LogLevel = never, + in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, + in out ExtArgs extends runtime.Types.Extensions.InternalArgs = + runtime.Types.Extensions.DefaultArgs, +> { + [K: symbol]: { types: Prisma.TypeMap['other'] } + + $on( + eventType: V, + callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void, + ): PrismaClient + + /** + * Connect with the database + */ + $connect(): runtime.Types.Utils.JsPromise + + /** + * Disconnect from the database + */ + $disconnect(): runtime.Types.Utils.JsPromise + + /** + * Executes a prepared raw query and returns the number of affected rows. + * @example + * ``` + * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $executeRaw( + query: TemplateStringsArray | Prisma.Sql, + ...values: any[] + ): Prisma.PrismaPromise + + /** + * Executes a raw query and returns the number of affected rows. + * Susceptible to SQL injections, see documentation. + * @example + * ``` + * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise + + /** + * Performs a prepared raw query and returns the `SELECT` data. + * @example + * ``` + * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $queryRaw( + query: TemplateStringsArray | Prisma.Sql, + ...values: any[] + ): Prisma.PrismaPromise + + /** + * Performs a raw query and returns the `SELECT` data. + * Susceptible to SQL injections, see documentation. + * @example + * ``` + * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise + + /** + * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. + * @example + * ``` + * const [george, bob, alice] = await prisma.$transaction([ + * prisma.user.create({ data: { name: 'George' } }), + * prisma.user.create({ data: { name: 'Bob' } }), + * prisma.user.create({ data: { name: 'Alice' } }), + * ]) + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions). + */ + $transaction

[]>( + arg: [...P], + options?: { isolationLevel?: Prisma.TransactionIsolationLevel }, + ): runtime.Types.Utils.JsPromise> + + $transaction( + fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, + options?: { + maxWait?: number + timeout?: number + isolationLevel?: Prisma.TransactionIsolationLevel + }, + ): runtime.Types.Utils.JsPromise + + $extends: runtime.Types.Extensions.ExtendsHook< + 'extends', + Prisma.TypeMapCb, + ExtArgs, + runtime.Types.Utils.Call< + Prisma.TypeMapCb, + { + extArgs: ExtArgs + } + > + > + + /** + * `prisma.user`: Exposes CRUD operations for the **User** model. + * Example usage: + * ```ts + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + */ + get user(): Prisma.UserDelegate + + /** + * `prisma.session`: Exposes CRUD operations for the **Session** model. + * Example usage: + * ```ts + * // Fetch zero or more Sessions + * const sessions = await prisma.session.findMany() + * ``` + */ + get session(): Prisma.SessionDelegate + + /** + * `prisma.account`: Exposes CRUD operations for the **Account** model. + * Example usage: + * ```ts + * // Fetch zero or more Accounts + * const accounts = await prisma.account.findMany() + * ``` + */ + get account(): Prisma.AccountDelegate + + /** + * `prisma.verification`: Exposes CRUD operations for the **Verification** model. + * Example usage: + * ```ts + * // Fetch zero or more Verifications + * const verifications = await prisma.verification.findMany() + * ``` + */ + get verification(): Prisma.VerificationDelegate + + /** + * `prisma.authToken`: Exposes CRUD operations for the **AuthToken** model. + * Example usage: + * ```ts + * // Fetch zero or more AuthTokens + * const authTokens = await prisma.authToken.findMany() + * ``` + */ + get authToken(): Prisma.AuthTokenDelegate + + /** + * `prisma.team`: Exposes CRUD operations for the **Team** model. + * Example usage: + * ```ts + * // Fetch zero or more Teams + * const teams = await prisma.team.findMany() + * ``` + */ + get team(): Prisma.TeamDelegate + + /** + * `prisma.sandbox`: Exposes CRUD operations for the **Sandbox** model. + * Example usage: + * ```ts + * // Fetch zero or more Sandboxes + * const sandboxes = await prisma.sandbox.findMany() + * ``` + */ + get sandbox(): Prisma.SandboxDelegate + + /** + * `prisma.skill`: Exposes CRUD operations for the **Skill** model. + * Example usage: + * ```ts + * // Fetch zero or more Skills + * const skills = await prisma.skill.findMany() + * ``` + */ + get skill(): Prisma.SkillDelegate + + /** + * `prisma.teamMember`: Exposes CRUD operations for the **TeamMember** model. + * Example usage: + * ```ts + * // Fetch zero or more TeamMembers + * const teamMembers = await prisma.teamMember.findMany() + * ``` + */ + get teamMember(): Prisma.TeamMemberDelegate + + /** + * `prisma.project`: Exposes CRUD operations for the **Project** model. + * Example usage: + * ```ts + * // Fetch zero or more Projects + * const projects = await prisma.project.findMany() + * ``` + */ + get project(): Prisma.ProjectDelegate + + /** + * `prisma.projectMember`: Exposes CRUD operations for the **ProjectMember** model. + * Example usage: + * ```ts + * // Fetch zero or more ProjectMembers + * const projectMembers = await prisma.projectMember.findMany() + * ``` + */ + get projectMember(): Prisma.ProjectMemberDelegate + + /** + * `prisma.shareLink`: Exposes CRUD operations for the **ShareLink** model. + * Example usage: + * ```ts + * // Fetch zero or more ShareLinks + * const shareLinks = await prisma.shareLink.findMany() + * ``` + */ + get shareLink(): Prisma.ShareLinkDelegate + + /** + * `prisma.asset`: Exposes CRUD operations for the **Asset** model. + * Example usage: + * ```ts + * // Fetch zero or more Assets + * const assets = await prisma.asset.findMany() + * ``` + */ + get asset(): Prisma.AssetDelegate + + /** + * `prisma.storageKey`: Exposes CRUD operations for the **StorageKey** model. + * Example usage: + * ```ts + * // Fetch zero or more StorageKeys + * const storageKeys = await prisma.storageKey.findMany() + * ``` + */ + get storageKey(): Prisma.StorageKeyDelegate + + /** + * `prisma.assetMetadataValue`: Exposes CRUD operations for the **AssetMetadataValue** model. + * Example usage: + * ```ts + * // Fetch zero or more AssetMetadataValues + * const assetMetadataValues = await prisma.assetMetadataValue.findMany() + * ``` + */ + get assetMetadataValue(): Prisma.AssetMetadataValueDelegate + + /** + * `prisma.assetComment`: Exposes CRUD operations for the **AssetComment** model. + * Example usage: + * ```ts + * // Fetch zero or more AssetComments + * const assetComments = await prisma.assetComment.findMany() + * ``` + */ + get assetComment(): Prisma.AssetCommentDelegate + + /** + * `prisma.assetCommentAttachment`: Exposes CRUD operations for the **AssetCommentAttachment** model. + * Example usage: + * ```ts + * // Fetch zero or more AssetCommentAttachments + * const assetCommentAttachments = await prisma.assetCommentAttachment.findMany() + * ``` + */ + get assetCommentAttachment(): Prisma.AssetCommentAttachmentDelegate + + /** + * `prisma.assetEmbedding`: Exposes CRUD operations for the **AssetEmbedding** model. + * Example usage: + * ```ts + * // Fetch zero or more AssetEmbeddings + * const assetEmbeddings = await prisma.assetEmbedding.findMany() + * ``` + */ + get assetEmbedding(): Prisma.AssetEmbeddingDelegate + + /** + * `prisma.invite`: Exposes CRUD operations for the **Invite** model. + * Example usage: + * ```ts + * // Fetch zero or more Invites + * const invites = await prisma.invite.findMany() + * ``` + */ + get invite(): Prisma.InviteDelegate + + /** + * `prisma.metadataField`: Exposes CRUD operations for the **MetadataField** model. + * Example usage: + * ```ts + * // Fetch zero or more MetadataFields + * const metadataFields = await prisma.metadataField.findMany() + * ``` + */ + get metadataField(): Prisma.MetadataFieldDelegate + + /** + * `prisma.notification`: Exposes CRUD operations for the **Notification** model. + * Example usage: + * ```ts + * // Fetch zero or more Notifications + * const notifications = await prisma.notification.findMany() + * ``` + */ + get notification(): Prisma.NotificationDelegate + + /** + * `prisma.systemSettings`: Exposes CRUD operations for the **SystemSettings** model. + * Example usage: + * ```ts + * // Fetch zero or more SystemSettings + * const systemSettings = await prisma.systemSettings.findMany() + * ``` + */ + get systemSettings(): Prisma.SystemSettingsDelegate + + /** + * `prisma.task`: Exposes CRUD operations for the **Task** model. + * Example usage: + * ```ts + * // Fetch zero or more Tasks + * const tasks = await prisma.task.findMany() + * ``` + */ + get task(): Prisma.TaskDelegate + + /** + * `prisma.workflowTask`: Exposes CRUD operations for the **WorkflowTask** model. + * Example usage: + * ```ts + * // Fetch zero or more WorkflowTasks + * const workflowTasks = await prisma.workflowTask.findMany() + * ``` + */ + get workflowTask(): Prisma.WorkflowTaskDelegate + + /** + * `prisma.agent`: Exposes CRUD operations for the **Agent** model. + * Example usage: + * ```ts + * // Fetch zero or more Agents + * const agents = await prisma.agent.findMany() + * ``` + */ + get agent(): Prisma.AgentDelegate + + /** + * `prisma.agentSkill`: Exposes CRUD operations for the **AgentSkill** model. + * Example usage: + * ```ts + * // Fetch zero or more AgentSkills + * const agentSkills = await prisma.agentSkill.findMany() + * ``` + */ + get agentSkill(): Prisma.AgentSkillDelegate + + /** + * `prisma.agentSession`: Exposes CRUD operations for the **AgentSession** model. + * Example usage: + * ```ts + * // Fetch zero or more AgentSessions + * const agentSessions = await prisma.agentSession.findMany() + * ``` + */ + get agentSession(): Prisma.AgentSessionDelegate + + /** + * `prisma.agentSessionEntry`: Exposes CRUD operations for the **AgentSessionEntry** model. + * Example usage: + * ```ts + * // Fetch zero or more AgentSessionEntries + * const agentSessionEntries = await prisma.agentSessionEntry.findMany() + * ``` + */ + get agentSessionEntry(): Prisma.AgentSessionEntryDelegate + + /** + * `prisma.userMetadata`: Exposes CRUD operations for the **UserMetadata** model. + * Example usage: + * ```ts + * // Fetch zero or more UserMetadata + * const userMetadata = await prisma.userMetadata.findMany() + * ``` + */ + get userMetadata(): Prisma.UserMetadataDelegate + + /** + * `prisma.model`: Exposes CRUD operations for the **Model** model. + * Example usage: + * ```ts + * // Fetch zero or more Models + * const models = await prisma.model.findMany() + * ``` + */ + get model(): Prisma.ModelDelegate + + /** + * `prisma.provider`: Exposes CRUD operations for the **Provider** model. + * Example usage: + * ```ts + * // Fetch zero or more Providers + * const providers = await prisma.provider.findMany() + * ``` + */ + get provider(): Prisma.ProviderDelegate + + /** + * `prisma.collection`: Exposes CRUD operations for the **Collection** model. + * Example usage: + * ```ts + * // Fetch zero or more Collections + * const collections = await prisma.collection.findMany() + * ``` + */ + get collection(): Prisma.CollectionDelegate +} + +export function getPrismaClientClass(): PrismaClientConstructor { + return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor +} diff --git a/packages/db/src/generated/prisma/internal/prismaNamespace.ts b/packages/db/src/generated/prisma/internal/prismaNamespace.ts new file mode 100644 index 00000000..318abee1 --- /dev/null +++ b/packages/db/src/generated/prisma/internal/prismaNamespace.ts @@ -0,0 +1,3852 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * 🛑 Under no circumstances should you import this file directly! 🛑 + * + * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from '@prisma/client/runtime/client' +import type * as Prisma from '../models.ts' +import { type PrismaClient } from './class.ts' + +export type * from '../models.ts' + +export type DMMF = typeof runtime.DMMF + +export type PrismaPromise = runtime.Types.Public.PrismaPromise + +/** + * Prisma Errors + */ + +export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError +export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError + +export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError +export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError + +export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError +export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError + +export const PrismaClientInitializationError = runtime.PrismaClientInitializationError +export type PrismaClientInitializationError = runtime.PrismaClientInitializationError + +export const PrismaClientValidationError = runtime.PrismaClientValidationError +export type PrismaClientValidationError = runtime.PrismaClientValidationError + +/** + * Re-export of sql-template-tag + */ +export const sql = runtime.sqltag +export const empty = runtime.empty +export const join = runtime.join +export const raw = runtime.raw +export const Sql = runtime.Sql +export type Sql = runtime.Sql + +/** + * Decimal.js + */ +export const Decimal = runtime.Decimal +export type Decimal = runtime.Decimal + +export type DecimalJsLike = runtime.DecimalJsLike + +/** + * Extensions + */ +export type Extension = runtime.Types.Extensions.UserArgs +export const getExtensionContext = runtime.Extensions.getExtensionContext +export type Args = runtime.Types.Public.Args +export type Payload = runtime.Types.Public.Payload +export type Result = runtime.Types.Public.Result +export type Exact = runtime.Types.Public.Exact + +export type PrismaVersion = { + client: string + engine: string +} + +/** + * Prisma Client JS version: 7.7.0 + * Query Engine version: 75cbdc1eb7150937890ad5465d861175c6624711 + */ +export const prismaVersion: PrismaVersion = { + client: '7.7.0', + engine: '75cbdc1eb7150937890ad5465d861175c6624711', +} + +/** + * Utility Types + */ + +export type Bytes = runtime.Bytes +export type JsonObject = runtime.JsonObject +export type JsonArray = runtime.JsonArray +export type JsonValue = runtime.JsonValue +export type InputJsonObject = runtime.InputJsonObject +export type InputJsonArray = runtime.InputJsonArray +export type InputJsonValue = runtime.InputJsonValue + +export const NullTypes = { + DbNull: runtime.NullTypes.DbNull as new (secret: never) => typeof runtime.DbNull, + JsonNull: runtime.NullTypes.JsonNull as new (secret: never) => typeof runtime.JsonNull, + AnyNull: runtime.NullTypes.AnyNull as new (secret: never) => typeof runtime.AnyNull, +} +/** + * Helper for filtering JSON entries that have `null` on the database (empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const DbNull = runtime.DbNull + +/** + * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const JsonNull = runtime.JsonNull + +/** + * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const AnyNull = runtime.AnyNull + +type SelectAndInclude = { + select: any + include: any +} + +type SelectAndOmit = { + select: any + omit: any +} + +/** + * From T, pick a set of properties whose keys are in the union K + */ +type Prisma__Pick = { + [P in K]: T[P] +} + +export type Enumerable = T | Array + +/** + * Subset + * @desc From `T` pick properties that exist in `U`. Simple version of Intersection + */ +export type Subset = { + [key in keyof T]: key extends keyof U ? T[key] : never +} + +/** + * SelectSubset + * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. + * Additionally, it validates, if both select and include are present. If the case, it errors. + */ +export type SelectSubset = { + [key in keyof T]: key extends keyof U ? T[key] : never +} & (T extends SelectAndInclude + ? 'Please either choose `select` or `include`.' + : T extends SelectAndOmit + ? 'Please either choose `select` or `omit`.' + : {}) + +/** + * Subset + Intersection + * @desc From `T` pick properties that exist in `U` and intersect `K` + */ +export type SubsetIntersection = { + [key in keyof T]: key extends keyof U ? T[key] : never +} & K + +type Without = { [P in Exclude]?: never } + +/** + * XOR is needed to have a real mutually exclusive union type + * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types + */ +export type XOR = T extends object + ? U extends object + ? (Without & U) | (Without & T) + : U + : T + +/** + * Is T a Record? + */ +type IsObject = + T extends Array + ? False + : T extends Date + ? False + : T extends Uint8Array + ? False + : T extends BigInt + ? False + : T extends object + ? True + : False + +/** + * If it's T[], return T + */ +export type UnEnumerate = T extends Array ? U : T + +/** + * From ts-toolbelt + */ + +type __Either = Omit & + { + // Merge all but K + [P in K]: Prisma__Pick // With K possibilities + }[K] + +type EitherStrict = Strict<__Either> + +type EitherLoose = ComputeRaw<__Either> + +type _Either = { + 1: EitherStrict + 0: EitherLoose +}[strict] + +export type Either = O extends unknown + ? _Either + : never + +export type Union = any + +export type PatchUndefined = { + [K in keyof O]: O[K] extends undefined ? At : O[K] +} & {} + +/** Helper Types for "Merge" **/ +export type IntersectOf = (U extends unknown ? (k: U) => void : never) extends ( + k: infer I, +) => void + ? I + : never + +export type Overwrite = { + [K in keyof O]: K extends keyof O1 ? O1[K] : O[K] +} & {} + +type _Merge = IntersectOf< + Overwrite< + U, + { + [K in keyof U]-?: At + } + > +> + +type Key = string | number | symbol +type AtStrict = O[K & keyof O] +type AtLoose = O extends unknown ? AtStrict : never +export type At = { + 1: AtStrict + 0: AtLoose +}[strict] + +export type ComputeRaw = A extends Function + ? A + : { + [K in keyof A]: A[K] + } & {} + +export type OptionalFlat = { + [K in keyof O]?: O[K] +} & {} + +type _Record = { + [P in K]: T +} + +// cause typescript not to expand types and preserve names +type NoExpand = T extends unknown ? T : never + +// this type assumes the passed object is entirely optional +export type AtLeast = NoExpand< + O extends unknown + ? + | (K extends keyof O ? { [P in K]: O[P] } & O : O) + | ({ [P in keyof O as P extends K ? P : never]-?: O[P] } & O) + : never +> + +type _Strict = U extends unknown + ? U & OptionalFlat<_Record, keyof U>, never>> + : never + +export type Strict = ComputeRaw<_Strict> +/** End Helper Types for "Merge" **/ + +export type Merge = ComputeRaw<_Merge>> + +export type Boolean = True | False + +export type True = 1 + +export type False = 0 + +export type Not = { + 0: 1 + 1: 0 +}[B] + +export type Extends = [A1] extends [never] + ? 0 // anything `never` is false + : A1 extends A2 + ? 1 + : 0 + +export type Has = Not, U1>> + +export type Or = { + 0: { + 0: 0 + 1: 1 + } + 1: { + 0: 1 + 1: 1 + } +}[B1][B2] + +export type Keys = U extends unknown ? keyof U : never + +export type GetScalarType = O extends object + ? { + [P in keyof T]: P extends keyof O ? O[P] : never + } + : never + +type FieldPaths> = + IsObject extends True ? U : T + +export type GetHavingFields = { + [K in keyof T]: Or, Extends<'AND', K>>, Extends<'NOT', K>> extends True + ? // infer is only needed to not hit TS limit + // based on the brilliant idea of Pierre-Antoine Mills + // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 + T[K] extends infer TK + ? GetHavingFields extends object ? Merge> : never> + : never + : {} extends FieldPaths + ? never + : K +}[keyof T] + +/** + * Convert tuple to union + */ +type _TupleToUnion = T extends (infer E)[] ? E : never +type TupleToUnion = _TupleToUnion +export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T + +/** + * Like `Pick`, but additionally can also accept an array of keys + */ +export type PickEnumerable | keyof T> = Prisma__Pick< + T, + MaybeTupleToUnion +> + +/** + * Exclude all keys with underscores + */ +export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T + +export type FieldRef = runtime.FieldRef + +type FieldRefInputType = Model extends never ? never : FieldRef + +export const ModelName = { + User: 'User', + Session: 'Session', + Account: 'Account', + Verification: 'Verification', + AuthToken: 'AuthToken', + Team: 'Team', + Sandbox: 'Sandbox', + Skill: 'Skill', + TeamMember: 'TeamMember', + Project: 'Project', + ProjectMember: 'ProjectMember', + ShareLink: 'ShareLink', + Asset: 'Asset', + StorageKey: 'StorageKey', + AssetMetadataValue: 'AssetMetadataValue', + AssetComment: 'AssetComment', + AssetCommentAttachment: 'AssetCommentAttachment', + AssetEmbedding: 'AssetEmbedding', + Invite: 'Invite', + MetadataField: 'MetadataField', + Notification: 'Notification', + SystemSettings: 'SystemSettings', + Task: 'Task', + WorkflowTask: 'WorkflowTask', + Agent: 'Agent', + AgentSkill: 'AgentSkill', + AgentSession: 'AgentSession', + AgentSessionEntry: 'AgentSessionEntry', + UserMetadata: 'UserMetadata', + Model: 'Model', + Provider: 'Provider', + Collection: 'Collection', +} as const + +export type ModelName = (typeof ModelName)[keyof typeof ModelName] + +export interface TypeMapCb extends runtime.Types.Utils.Fn< + { extArgs: runtime.Types.Extensions.InternalArgs }, + runtime.Types.Utils.Record +> { + returns: TypeMap +} + +export type TypeMap< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> = { + globalOmitOptions: { + omit: GlobalOmitOptions + } + meta: { + modelProps: + | 'user' + | 'session' + | 'account' + | 'verification' + | 'authToken' + | 'team' + | 'sandbox' + | 'skill' + | 'teamMember' + | 'project' + | 'projectMember' + | 'shareLink' + | 'asset' + | 'storageKey' + | 'assetMetadataValue' + | 'assetComment' + | 'assetCommentAttachment' + | 'assetEmbedding' + | 'invite' + | 'metadataField' + | 'notification' + | 'systemSettings' + | 'task' + | 'workflowTask' + | 'agent' + | 'agentSkill' + | 'agentSession' + | 'agentSessionEntry' + | 'userMetadata' + | 'model' + | 'provider' + | 'collection' + txIsolationLevel: TransactionIsolationLevel + } + model: { + User: { + payload: Prisma.$UserPayload + fields: Prisma.UserFieldRefs + operations: { + findUnique: { + args: Prisma.UserFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.UserFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.UserFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.UserFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.UserFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.UserCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.UserCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.UserCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.UserDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.UserUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.UserDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.UserUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.UserUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.UserUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UserAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.UserGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.UserCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Session: { + payload: Prisma.$SessionPayload + fields: Prisma.SessionFieldRefs + operations: { + findUnique: { + args: Prisma.SessionFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.SessionFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.SessionFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.SessionFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.SessionFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.SessionCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.SessionCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.SessionCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.SessionDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.SessionUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.SessionDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.SessionUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.SessionUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.SessionUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.SessionAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.SessionGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.SessionCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Account: { + payload: Prisma.$AccountPayload + fields: Prisma.AccountFieldRefs + operations: { + findUnique: { + args: Prisma.AccountFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AccountFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AccountFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AccountFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AccountFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AccountCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AccountCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AccountCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AccountDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AccountUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AccountDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AccountUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AccountUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AccountUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AccountAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AccountGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AccountCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Verification: { + payload: Prisma.$VerificationPayload + fields: Prisma.VerificationFieldRefs + operations: { + findUnique: { + args: Prisma.VerificationFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.VerificationFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.VerificationFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.VerificationFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.VerificationFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.VerificationCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.VerificationCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.VerificationCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.VerificationDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.VerificationUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.VerificationDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.VerificationUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.VerificationUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.VerificationUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.VerificationAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.VerificationGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.VerificationCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + AuthToken: { + payload: Prisma.$AuthTokenPayload + fields: Prisma.AuthTokenFieldRefs + operations: { + findUnique: { + args: Prisma.AuthTokenFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AuthTokenFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AuthTokenFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AuthTokenFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AuthTokenFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AuthTokenCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AuthTokenCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AuthTokenCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AuthTokenDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AuthTokenUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AuthTokenDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AuthTokenUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AuthTokenUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AuthTokenUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AuthTokenAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AuthTokenGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AuthTokenCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Team: { + payload: Prisma.$TeamPayload + fields: Prisma.TeamFieldRefs + operations: { + findUnique: { + args: Prisma.TeamFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.TeamFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.TeamFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.TeamFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.TeamFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.TeamCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.TeamCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.TeamCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.TeamDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.TeamUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.TeamDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.TeamUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.TeamUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.TeamUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.TeamAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.TeamGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.TeamCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Sandbox: { + payload: Prisma.$SandboxPayload + fields: Prisma.SandboxFieldRefs + operations: { + findUnique: { + args: Prisma.SandboxFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.SandboxFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.SandboxFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.SandboxFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.SandboxFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.SandboxCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.SandboxCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.SandboxCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.SandboxDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.SandboxUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.SandboxDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.SandboxUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.SandboxUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.SandboxUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.SandboxAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.SandboxGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.SandboxCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Skill: { + payload: Prisma.$SkillPayload + fields: Prisma.SkillFieldRefs + operations: { + findUnique: { + args: Prisma.SkillFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.SkillFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.SkillFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.SkillFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.SkillFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.SkillCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.SkillCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.SkillCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.SkillDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.SkillUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.SkillDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.SkillUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.SkillUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.SkillUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.SkillAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.SkillGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.SkillCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + TeamMember: { + payload: Prisma.$TeamMemberPayload + fields: Prisma.TeamMemberFieldRefs + operations: { + findUnique: { + args: Prisma.TeamMemberFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.TeamMemberFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.TeamMemberFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.TeamMemberFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.TeamMemberFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.TeamMemberCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.TeamMemberCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.TeamMemberCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.TeamMemberDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.TeamMemberUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.TeamMemberDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.TeamMemberUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.TeamMemberUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.TeamMemberUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.TeamMemberAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.TeamMemberGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.TeamMemberCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Project: { + payload: Prisma.$ProjectPayload + fields: Prisma.ProjectFieldRefs + operations: { + findUnique: { + args: Prisma.ProjectFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ProjectFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ProjectFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ProjectFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ProjectFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ProjectCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ProjectCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ProjectCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ProjectDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ProjectUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ProjectDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ProjectUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ProjectUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ProjectUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ProjectAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ProjectGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ProjectCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ProjectMember: { + payload: Prisma.$ProjectMemberPayload + fields: Prisma.ProjectMemberFieldRefs + operations: { + findUnique: { + args: Prisma.ProjectMemberFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ProjectMemberFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ProjectMemberFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ProjectMemberFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ProjectMemberFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ProjectMemberCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ProjectMemberCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ProjectMemberCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ProjectMemberDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ProjectMemberUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ProjectMemberDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ProjectMemberUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ProjectMemberUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ProjectMemberUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ProjectMemberAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ProjectMemberGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ProjectMemberCountArgs + result: + | runtime.Types.Utils.Optional + | number + } + } + } + ShareLink: { + payload: Prisma.$ShareLinkPayload + fields: Prisma.ShareLinkFieldRefs + operations: { + findUnique: { + args: Prisma.ShareLinkFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ShareLinkFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ShareLinkFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ShareLinkFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ShareLinkFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ShareLinkCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ShareLinkCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ShareLinkCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ShareLinkDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ShareLinkUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ShareLinkDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ShareLinkUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ShareLinkUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ShareLinkUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ShareLinkAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ShareLinkGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ShareLinkCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Asset: { + payload: Prisma.$AssetPayload + fields: Prisma.AssetFieldRefs + operations: { + findUnique: { + args: Prisma.AssetFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AssetFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AssetFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AssetFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AssetFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AssetCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AssetCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AssetCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AssetDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AssetUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AssetDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AssetUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AssetUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AssetUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AssetAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AssetGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AssetCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + StorageKey: { + payload: Prisma.$StorageKeyPayload + fields: Prisma.StorageKeyFieldRefs + operations: { + findUnique: { + args: Prisma.StorageKeyFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.StorageKeyFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.StorageKeyFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.StorageKeyFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.StorageKeyFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.StorageKeyCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.StorageKeyCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.StorageKeyCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.StorageKeyDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.StorageKeyUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.StorageKeyDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.StorageKeyUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.StorageKeyUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.StorageKeyUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.StorageKeyAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.StorageKeyGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.StorageKeyCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + AssetMetadataValue: { + payload: Prisma.$AssetMetadataValuePayload + fields: Prisma.AssetMetadataValueFieldRefs + operations: { + findUnique: { + args: Prisma.AssetMetadataValueFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AssetMetadataValueFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AssetMetadataValueFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AssetMetadataValueFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AssetMetadataValueFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AssetMetadataValueCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AssetMetadataValueCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AssetMetadataValueCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AssetMetadataValueDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AssetMetadataValueUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AssetMetadataValueDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AssetMetadataValueUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AssetMetadataValueUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AssetMetadataValueUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AssetMetadataValueAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AssetMetadataValueGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AssetMetadataValueCountArgs + result: + | runtime.Types.Utils.Optional + | number + } + } + } + AssetComment: { + payload: Prisma.$AssetCommentPayload + fields: Prisma.AssetCommentFieldRefs + operations: { + findUnique: { + args: Prisma.AssetCommentFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AssetCommentFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AssetCommentFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AssetCommentFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AssetCommentFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AssetCommentCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AssetCommentCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AssetCommentCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AssetCommentDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AssetCommentUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AssetCommentDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AssetCommentUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AssetCommentUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AssetCommentUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AssetCommentAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AssetCommentGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AssetCommentCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + AssetCommentAttachment: { + payload: Prisma.$AssetCommentAttachmentPayload + fields: Prisma.AssetCommentAttachmentFieldRefs + operations: { + findUnique: { + args: Prisma.AssetCommentAttachmentFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AssetCommentAttachmentFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AssetCommentAttachmentFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AssetCommentAttachmentFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AssetCommentAttachmentFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AssetCommentAttachmentCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AssetCommentAttachmentCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AssetCommentAttachmentCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AssetCommentAttachmentDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AssetCommentAttachmentUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AssetCommentAttachmentDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AssetCommentAttachmentUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AssetCommentAttachmentUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AssetCommentAttachmentUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AssetCommentAttachmentAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AssetCommentAttachmentGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AssetCommentAttachmentCountArgs + result: + | runtime.Types.Utils.Optional + | number + } + } + } + AssetEmbedding: { + payload: Prisma.$AssetEmbeddingPayload + fields: Prisma.AssetEmbeddingFieldRefs + operations: { + findUnique: { + args: Prisma.AssetEmbeddingFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AssetEmbeddingFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AssetEmbeddingFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AssetEmbeddingFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AssetEmbeddingFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AssetEmbeddingCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AssetEmbeddingCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AssetEmbeddingCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AssetEmbeddingDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AssetEmbeddingUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AssetEmbeddingDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AssetEmbeddingUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AssetEmbeddingUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AssetEmbeddingUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AssetEmbeddingAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AssetEmbeddingGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AssetEmbeddingCountArgs + result: + | runtime.Types.Utils.Optional + | number + } + } + } + Invite: { + payload: Prisma.$InvitePayload + fields: Prisma.InviteFieldRefs + operations: { + findUnique: { + args: Prisma.InviteFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.InviteFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.InviteFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.InviteFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.InviteFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.InviteCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.InviteCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.InviteCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.InviteDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.InviteUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.InviteDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.InviteUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.InviteUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.InviteUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.InviteAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.InviteGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.InviteCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + MetadataField: { + payload: Prisma.$MetadataFieldPayload + fields: Prisma.MetadataFieldFieldRefs + operations: { + findUnique: { + args: Prisma.MetadataFieldFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.MetadataFieldFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.MetadataFieldFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.MetadataFieldFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.MetadataFieldFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.MetadataFieldCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.MetadataFieldCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.MetadataFieldCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.MetadataFieldDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.MetadataFieldUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.MetadataFieldDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.MetadataFieldUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.MetadataFieldUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.MetadataFieldUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.MetadataFieldAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.MetadataFieldGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.MetadataFieldCountArgs + result: + | runtime.Types.Utils.Optional + | number + } + } + } + Notification: { + payload: Prisma.$NotificationPayload + fields: Prisma.NotificationFieldRefs + operations: { + findUnique: { + args: Prisma.NotificationFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.NotificationFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.NotificationFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.NotificationFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.NotificationFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.NotificationCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.NotificationCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.NotificationCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.NotificationDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.NotificationUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.NotificationDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.NotificationUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.NotificationUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.NotificationUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.NotificationAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.NotificationGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.NotificationCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + SystemSettings: { + payload: Prisma.$SystemSettingsPayload + fields: Prisma.SystemSettingsFieldRefs + operations: { + findUnique: { + args: Prisma.SystemSettingsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.SystemSettingsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.SystemSettingsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.SystemSettingsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.SystemSettingsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.SystemSettingsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.SystemSettingsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.SystemSettingsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.SystemSettingsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.SystemSettingsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.SystemSettingsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.SystemSettingsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.SystemSettingsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.SystemSettingsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.SystemSettingsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.SystemSettingsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.SystemSettingsCountArgs + result: + | runtime.Types.Utils.Optional + | number + } + } + } + Task: { + payload: Prisma.$TaskPayload + fields: Prisma.TaskFieldRefs + operations: { + findUnique: { + args: Prisma.TaskFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.TaskFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.TaskFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.TaskFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.TaskFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.TaskCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.TaskCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.TaskCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.TaskDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.TaskUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.TaskDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.TaskUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.TaskUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.TaskUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.TaskAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.TaskGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.TaskCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + WorkflowTask: { + payload: Prisma.$WorkflowTaskPayload + fields: Prisma.WorkflowTaskFieldRefs + operations: { + findUnique: { + args: Prisma.WorkflowTaskFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.WorkflowTaskFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.WorkflowTaskFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.WorkflowTaskFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.WorkflowTaskFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.WorkflowTaskCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.WorkflowTaskCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.WorkflowTaskCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.WorkflowTaskDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.WorkflowTaskUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.WorkflowTaskDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.WorkflowTaskUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.WorkflowTaskUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.WorkflowTaskUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.WorkflowTaskAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.WorkflowTaskGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.WorkflowTaskCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Agent: { + payload: Prisma.$AgentPayload + fields: Prisma.AgentFieldRefs + operations: { + findUnique: { + args: Prisma.AgentFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AgentFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AgentFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AgentFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AgentFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AgentCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AgentCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AgentCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AgentDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AgentUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AgentDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AgentUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AgentUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AgentUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AgentAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AgentGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AgentCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + AgentSkill: { + payload: Prisma.$AgentSkillPayload + fields: Prisma.AgentSkillFieldRefs + operations: { + findUnique: { + args: Prisma.AgentSkillFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AgentSkillFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AgentSkillFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AgentSkillFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AgentSkillFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AgentSkillCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AgentSkillCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AgentSkillCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AgentSkillDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AgentSkillUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AgentSkillDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AgentSkillUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AgentSkillUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AgentSkillUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AgentSkillAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AgentSkillGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AgentSkillCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + AgentSession: { + payload: Prisma.$AgentSessionPayload + fields: Prisma.AgentSessionFieldRefs + operations: { + findUnique: { + args: Prisma.AgentSessionFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AgentSessionFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AgentSessionFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AgentSessionFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AgentSessionFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AgentSessionCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AgentSessionCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AgentSessionCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AgentSessionDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AgentSessionUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AgentSessionDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AgentSessionUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AgentSessionUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AgentSessionUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AgentSessionAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AgentSessionGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AgentSessionCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + AgentSessionEntry: { + payload: Prisma.$AgentSessionEntryPayload + fields: Prisma.AgentSessionEntryFieldRefs + operations: { + findUnique: { + args: Prisma.AgentSessionEntryFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AgentSessionEntryFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AgentSessionEntryFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AgentSessionEntryFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AgentSessionEntryFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AgentSessionEntryCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AgentSessionEntryCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AgentSessionEntryCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AgentSessionEntryDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AgentSessionEntryUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AgentSessionEntryDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AgentSessionEntryUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AgentSessionEntryUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AgentSessionEntryUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AgentSessionEntryAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AgentSessionEntryGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AgentSessionEntryCountArgs + result: + | runtime.Types.Utils.Optional + | number + } + } + } + UserMetadata: { + payload: Prisma.$UserMetadataPayload + fields: Prisma.UserMetadataFieldRefs + operations: { + findUnique: { + args: Prisma.UserMetadataFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.UserMetadataFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.UserMetadataFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.UserMetadataFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.UserMetadataFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.UserMetadataCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.UserMetadataCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.UserMetadataCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.UserMetadataDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.UserMetadataUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.UserMetadataDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.UserMetadataUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.UserMetadataUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.UserMetadataUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UserMetadataAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.UserMetadataGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.UserMetadataCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Model: { + payload: Prisma.$ModelPayload + fields: Prisma.ModelFieldRefs + operations: { + findUnique: { + args: Prisma.ModelFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ModelFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ModelFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ModelFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ModelFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ModelCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ModelCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ModelCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ModelDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ModelUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ModelDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ModelUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ModelUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ModelUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ModelAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ModelGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ModelCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Provider: { + payload: Prisma.$ProviderPayload + fields: Prisma.ProviderFieldRefs + operations: { + findUnique: { + args: Prisma.ProviderFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ProviderFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ProviderFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ProviderFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ProviderFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ProviderCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ProviderCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ProviderCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ProviderDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ProviderUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ProviderDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ProviderUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ProviderUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ProviderUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ProviderAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ProviderGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ProviderCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Collection: { + payload: Prisma.$CollectionPayload + fields: Prisma.CollectionFieldRefs + operations: { + findUnique: { + args: Prisma.CollectionFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.CollectionFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.CollectionFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.CollectionFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.CollectionFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.CollectionCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.CollectionCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.CollectionCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.CollectionDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.CollectionUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.CollectionDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.CollectionUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.CollectionUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.CollectionUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.CollectionAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.CollectionGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.CollectionCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + } +} & { + other: { + payload: any + operations: { + $executeRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]] + result: any + } + $executeRawUnsafe: { + args: [query: string, ...values: any[]] + result: any + } + $queryRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]] + result: any + } + $queryRawUnsafe: { + args: [query: string, ...values: any[]] + result: any + } + } + } +} + +/** + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', + Serializable: 'Serializable', +} as const) + +export type TransactionIsolationLevel = + (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + +export const UserScalarFieldEnum = { + id: 'id', + type: 'type', + name: 'name', + email: 'email', + emailVerified: 'emailVerified', + image: 'image', + password: 'password', + agentSettings: 'agentSettings', + guestEmail: 'guestEmail', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + +export const SessionScalarFieldEnum = { + id: 'id', + expiresAt: 'expiresAt', + token: 'token', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + ipAddress: 'ipAddress', + userAgent: 'userAgent', + userId: 'userId', +} as const + +export type SessionScalarFieldEnum = + (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] + +export const AccountScalarFieldEnum = { + id: 'id', + accountId: 'accountId', + providerId: 'providerId', + userId: 'userId', + accessToken: 'accessToken', + refreshToken: 'refreshToken', + idToken: 'idToken', + accessTokenExpiresAt: 'accessTokenExpiresAt', + refreshTokenExpiresAt: 'refreshTokenExpiresAt', + scope: 'scope', + password: 'password', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type AccountScalarFieldEnum = + (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] + +export const VerificationScalarFieldEnum = { + id: 'id', + identifier: 'identifier', + value: 'value', + expiresAt: 'expiresAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type VerificationScalarFieldEnum = + (typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum] + +export const AuthTokenScalarFieldEnum = { + id: 'id', + accessToken: 'accessToken', + refreshToken: 'refreshToken', + accessTokenExpiresAt: 'accessTokenExpiresAt', + refreshTokenExpiresAt: 'refreshTokenExpiresAt', + userId: 'userId', +} as const + +export type AuthTokenScalarFieldEnum = + (typeof AuthTokenScalarFieldEnum)[keyof typeof AuthTokenScalarFieldEnum] + +export const TeamScalarFieldEnum = { + id: 'id', + name: 'name', + settings: 'settings', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + rootFolderId: 'rootFolderId', +} as const + +export type TeamScalarFieldEnum = (typeof TeamScalarFieldEnum)[keyof typeof TeamScalarFieldEnum] + +export const SandboxScalarFieldEnum = { + id: 'id', + allowedDomains: 'allowedDomains', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + teamId: 'teamId', +} as const + +export type SandboxScalarFieldEnum = + (typeof SandboxScalarFieldEnum)[keyof typeof SandboxScalarFieldEnum] + +export const SkillScalarFieldEnum = { + id: 'id', + name: 'name', + description: 'description', + config: 'config', + assetId: 'assetId', + hash: 'hash', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + teamId: 'teamId', +} as const + +export type SkillScalarFieldEnum = (typeof SkillScalarFieldEnum)[keyof typeof SkillScalarFieldEnum] + +export const TeamMemberScalarFieldEnum = { + id: 'id', + role: 'role', + scope: 'scope', + teamId: 'teamId', + userId: 'userId', + lastReadNotificationId: 'lastReadNotificationId', +} as const + +export type TeamMemberScalarFieldEnum = + (typeof TeamMemberScalarFieldEnum)[keyof typeof TeamMemberScalarFieldEnum] + +export const ProjectScalarFieldEnum = { + id: 'id', + name: 'name', + coverImageKey: 'coverImageKey', + metadataOverrides: 'metadataOverrides', + enableNotification: 'enableNotification', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + teamId: 'teamId', + rootFolderId: 'rootFolderId', + shareRootId: 'shareRootId', +} as const + +export type ProjectScalarFieldEnum = + (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum] + +export const ProjectMemberScalarFieldEnum = { + id: 'id', + role: 'role', + projectId: 'projectId', + teamMemberId: 'teamMemberId', +} as const + +export type ProjectMemberScalarFieldEnum = + (typeof ProjectMemberScalarFieldEnum)[keyof typeof ProjectMemberScalarFieldEnum] + +export const ShareLinkScalarFieldEnum = { + id: 'id', + name: 'name', + expireAt: 'expireAt', + password: 'password', + isDisabled: 'isDisabled', + defaultSortOrder: 'defaultSortOrder', + fieldVisibility: 'fieldVisibility', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + projectId: 'projectId', + rootFolderId: 'rootFolderId', +} as const + +export type ShareLinkScalarFieldEnum = + (typeof ShareLinkScalarFieldEnum)[keyof typeof ShareLinkScalarFieldEnum] + +export const AssetScalarFieldEnum = { + id: 'id', + name: 'name', + nameNgram: 'nameNgram', + type: 'type', + mediaType: 'mediaType', + fileCount: 'fileCount', + sizeByte: 'sizeByte', + status: 'status', + transcodeTaskId: 'transcodeTaskId', + media: 'media', + isDeleted: 'isDeleted', + deletedAt: 'deletedAt', + sortIndex: 'sortIndex', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + parentId: 'parentId', + targetId: 'targetId', + storageKeyId: 'storageKeyId', + creatorId: 'creatorId', + taskId: 'taskId', + projectId: 'projectId', +} as const + +export type AssetScalarFieldEnum = (typeof AssetScalarFieldEnum)[keyof typeof AssetScalarFieldEnum] + +export const StorageKeyScalarFieldEnum = { + id: 'id', + key: 'key', + status: 'status', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type StorageKeyScalarFieldEnum = + (typeof StorageKeyScalarFieldEnum)[keyof typeof StorageKeyScalarFieldEnum] + +export const AssetMetadataValueScalarFieldEnum = { + id: 'id', + assetId: 'assetId', + fieldKey: 'fieldKey', + stringValue: 'stringValue', + numberValue: 'numberValue', + booleanValue: 'booleanValue', + jsonValue: 'jsonValue', + dateValue: 'dateValue', +} as const + +export type AssetMetadataValueScalarFieldEnum = + (typeof AssetMetadataValueScalarFieldEnum)[keyof typeof AssetMetadataValueScalarFieldEnum] + +export const AssetCommentScalarFieldEnum = { + id: 'id', + message: 'message', + annotation: 'annotation', + second: 'second', + sessionId: 'sessionId', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + assetId: 'assetId', + creatorId: 'creatorId', + replyToId: 'replyToId', +} as const + +export type AssetCommentScalarFieldEnum = + (typeof AssetCommentScalarFieldEnum)[keyof typeof AssetCommentScalarFieldEnum] + +export const AssetCommentAttachmentScalarFieldEnum = { + id: 'id', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + commentId: 'commentId', + assetId: 'assetId', +} as const + +export type AssetCommentAttachmentScalarFieldEnum = + (typeof AssetCommentAttachmentScalarFieldEnum)[keyof typeof AssetCommentAttachmentScalarFieldEnum] + +export const AssetEmbeddingScalarFieldEnum = { + id: 'id', + startTime: 'startTime', + endTime: 'endTime', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + assetId: 'assetId', +} as const + +export type AssetEmbeddingScalarFieldEnum = + (typeof AssetEmbeddingScalarFieldEnum)[keyof typeof AssetEmbeddingScalarFieldEnum] + +export const InviteScalarFieldEnum = { + id: 'id', + code: 'code', + role: 'role', + used: 'used', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + teamId: 'teamId', + projectId: 'projectId', + inviterId: 'inviterId', +} as const + +export type InviteScalarFieldEnum = + (typeof InviteScalarFieldEnum)[keyof typeof InviteScalarFieldEnum] + +export const MetadataFieldScalarFieldEnum = { + id: 'id', + key: 'key', + scope: 'scope', + config: 'config', + readOnly: 'readOnly', + aiAutofill: 'aiAutofill', + description: 'description', + teamId: 'teamId', + projectId: 'projectId', +} as const + +export type MetadataFieldScalarFieldEnum = + (typeof MetadataFieldScalarFieldEnum)[keyof typeof MetadataFieldScalarFieldEnum] + +export const NotificationScalarFieldEnum = { + id: 'id', + type: 'type', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + teamId: 'teamId', + projectId: 'projectId', + creatorId: 'creatorId', + assetId: 'assetId', + taskId: 'taskId', + userId: 'userId', +} as const + +export type NotificationScalarFieldEnum = + (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum] + +export const SystemSettingsScalarFieldEnum = { + id: 'id', + key: 'key', + value: 'value', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type SystemSettingsScalarFieldEnum = + (typeof SystemSettingsScalarFieldEnum)[keyof typeof SystemSettingsScalarFieldEnum] + +export const TaskScalarFieldEnum = { + id: 'id', + type: 'type', + status: 'status', + name: 'name', + total: 'total', + uploaded: 'uploaded', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + creatorId: 'creatorId', +} as const + +export type TaskScalarFieldEnum = (typeof TaskScalarFieldEnum)[keyof typeof TaskScalarFieldEnum] + +export const WorkflowTaskScalarFieldEnum = { + id: 'id', + uid: 'uid', + teamId: 'teamId', + projectId: 'projectId', + assetId: 'assetId', + type: 'type', + status: 'status', + payload: 'payload', + output: 'output', + heartbeat: 'heartbeat', + inputTokens: 'inputTokens', + outputTokens: 'outputTokens', + model: 'model', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type WorkflowTaskScalarFieldEnum = + (typeof WorkflowTaskScalarFieldEnum)[keyof typeof WorkflowTaskScalarFieldEnum] + +export const AgentScalarFieldEnum = { + id: 'id', + type: 'type', + enabled: 'enabled', + soul: 'soul', + providerId: 'providerId', + modelId: 'modelId', + teamId: 'teamId', + config: 'config', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type AgentScalarFieldEnum = (typeof AgentScalarFieldEnum)[keyof typeof AgentScalarFieldEnum] + +export const AgentSkillScalarFieldEnum = { + id: 'id', + agentId: 'agentId', + skillId: 'skillId', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type AgentSkillScalarFieldEnum = + (typeof AgentSkillScalarFieldEnum)[keyof typeof AgentSkillScalarFieldEnum] + +export const AgentSessionScalarFieldEnum = { + id: 'id', + agentId: 'agentId', + userId: 'userId', + cwd: 'cwd', + leafId: 'leafId', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type AgentSessionScalarFieldEnum = + (typeof AgentSessionScalarFieldEnum)[keyof typeof AgentSessionScalarFieldEnum] + +export const AgentSessionEntryScalarFieldEnum = { + id: 'id', + sessionId: 'sessionId', + entry: 'entry', +} as const + +export type AgentSessionEntryScalarFieldEnum = + (typeof AgentSessionEntryScalarFieldEnum)[keyof typeof AgentSessionEntryScalarFieldEnum] + +export const UserMetadataScalarFieldEnum = { + id: 'id', + key: 'key', + value: 'value', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + userId: 'userId', + teamId: 'teamId', +} as const + +export type UserMetadataScalarFieldEnum = + (typeof UserMetadataScalarFieldEnum)[keyof typeof UserMetadataScalarFieldEnum] + +export const ModelScalarFieldEnum = { + id: 'id', + modelId: 'modelId', + name: 'name', + config: 'config', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + providerId: 'providerId', +} as const + +export type ModelScalarFieldEnum = (typeof ModelScalarFieldEnum)[keyof typeof ModelScalarFieldEnum] + +export const ProviderScalarFieldEnum = { + id: 'id', + name: 'name', + isBuiltin: 'isBuiltin', + config: 'config', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + teamId: 'teamId', +} as const + +export type ProviderScalarFieldEnum = + (typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum] + +export const CollectionScalarFieldEnum = { + id: 'id', + name: 'name', + filter: 'filter', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + projectId: 'projectId', +} as const + +export type CollectionScalarFieldEnum = + (typeof CollectionScalarFieldEnum)[keyof typeof CollectionScalarFieldEnum] + +export const SortOrder = { + asc: 'asc', + desc: 'desc', +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + +export const NullableJsonNullValueInput = { + DbNull: DbNull, + JsonNull: JsonNull, +} as const + +export type NullableJsonNullValueInput = + (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] + +export const JsonNullValueInput = { + JsonNull: JsonNull, +} as const + +export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] + +export const QueryMode = { + default: 'default', + insensitive: 'insensitive', +} as const + +export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] + +export const JsonNullValueFilter = { + DbNull: DbNull, + JsonNull: JsonNull, + AnyNull: AnyNull, +} as const + +export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] + +export const NullsOrder = { + first: 'first', + last: 'last', +} as const + +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] + +/** + * Field references + */ + +/** + * Reference to a field of type 'String' + */ +export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> + +/** + * Reference to a field of type 'String[]' + */ +export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> + +/** + * Reference to a field of type 'UserType' + */ +export type EnumUserTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'UserType'> + +/** + * Reference to a field of type 'UserType[]' + */ +export type ListEnumUserTypeFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'UserType[]' +> + +/** + * Reference to a field of type 'Boolean' + */ +export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> + +/** + * Reference to a field of type 'Json' + */ +export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> + +/** + * Reference to a field of type 'QueryMode' + */ +export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'> + +/** + * Reference to a field of type 'DateTime' + */ +export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> + +/** + * Reference to a field of type 'DateTime[]' + */ +export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> + +/** + * Reference to a field of type 'TeamMemberRole' + */ +export type EnumTeamMemberRoleFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'TeamMemberRole' +> + +/** + * Reference to a field of type 'TeamMemberRole[]' + */ +export type ListEnumTeamMemberRoleFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'TeamMemberRole[]' +> + +/** + * Reference to a field of type 'TeamMemberScope' + */ +export type EnumTeamMemberScopeFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'TeamMemberScope' +> + +/** + * Reference to a field of type 'TeamMemberScope[]' + */ +export type ListEnumTeamMemberScopeFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'TeamMemberScope[]' +> + +/** + * Reference to a field of type 'ProjectMemberRole' + */ +export type EnumProjectMemberRoleFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'ProjectMemberRole' +> + +/** + * Reference to a field of type 'ProjectMemberRole[]' + */ +export type ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'ProjectMemberRole[]' +> + +/** + * Reference to a field of type 'AssetType' + */ +export type EnumAssetTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AssetType'> + +/** + * Reference to a field of type 'AssetType[]' + */ +export type ListEnumAssetTypeFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'AssetType[]' +> + +/** + * Reference to a field of type 'Int' + */ +export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> + +/** + * Reference to a field of type 'Int[]' + */ +export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> + +/** + * Reference to a field of type 'AssetStatus' + */ +export type EnumAssetStatusFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'AssetStatus' +> + +/** + * Reference to a field of type 'AssetStatus[]' + */ +export type ListEnumAssetStatusFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'AssetStatus[]' +> + +/** + * Reference to a field of type 'StorageKeyStatus' + */ +export type EnumStorageKeyStatusFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'StorageKeyStatus' +> + +/** + * Reference to a field of type 'StorageKeyStatus[]' + */ +export type ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'StorageKeyStatus[]' +> + +/** + * Reference to a field of type 'Float' + */ +export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> + +/** + * Reference to a field of type 'Float[]' + */ +export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> + +/** + * Reference to a field of type 'InviteRole' + */ +export type EnumInviteRoleFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'InviteRole' +> + +/** + * Reference to a field of type 'InviteRole[]' + */ +export type ListEnumInviteRoleFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'InviteRole[]' +> + +/** + * Reference to a field of type 'MetadataFieldScope' + */ +export type EnumMetadataFieldScopeFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'MetadataFieldScope' +> + +/** + * Reference to a field of type 'MetadataFieldScope[]' + */ +export type ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'MetadataFieldScope[]' +> + +/** + * Reference to a field of type 'NotificationType' + */ +export type EnumNotificationTypeFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'NotificationType' +> + +/** + * Reference to a field of type 'NotificationType[]' + */ +export type ListEnumNotificationTypeFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'NotificationType[]' +> + +/** + * Reference to a field of type 'TaskType' + */ +export type EnumTaskTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TaskType'> + +/** + * Reference to a field of type 'TaskType[]' + */ +export type ListEnumTaskTypeFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'TaskType[]' +> + +/** + * Reference to a field of type 'TaskStatus' + */ +export type EnumTaskStatusFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'TaskStatus' +> + +/** + * Reference to a field of type 'TaskStatus[]' + */ +export type ListEnumTaskStatusFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'TaskStatus[]' +> + +/** + * Reference to a field of type 'WorkflowTaskType' + */ +export type EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'WorkflowTaskType' +> + +/** + * Reference to a field of type 'WorkflowTaskType[]' + */ +export type ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'WorkflowTaskType[]' +> + +/** + * Reference to a field of type 'WorkflowTaskStatus' + */ +export type EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'WorkflowTaskStatus' +> + +/** + * Reference to a field of type 'WorkflowTaskStatus[]' + */ +export type ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'WorkflowTaskStatus[]' +> + +/** + * Reference to a field of type 'AgentType' + */ +export type EnumAgentTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AgentType'> + +/** + * Reference to a field of type 'AgentType[]' + */ +export type ListEnumAgentTypeFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'AgentType[]' +> + +/** + * Batch Payload for updateMany & deleteMany & createMany + */ +export type BatchPayload = { + count: number +} + +export const defineExtension = runtime.Extensions + .defineExtension as unknown as runtime.Types.Extensions.ExtendsHook< + 'define', + TypeMapCb, + runtime.Types.Extensions.DefaultArgs +> +export type DefaultPrismaClient = PrismaClient +export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' +export type PrismaClientOptions = ( + | { + /** + * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`. + */ + adapter: runtime.SqlDriverAdapterFactory + accelerateUrl?: never + } + | { + /** + * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database. + */ + accelerateUrl: string + adapter?: never + } +) & { + /** + * @default "colorless" + */ + errorFormat?: ErrorFormat + /** + * @example + * ``` + * // Shorthand for `emit: 'stdout'` + * log: ['query', 'info', 'warn', 'error'] + * + * // Emit as events only + * log: [ + * { emit: 'event', level: 'query' }, + * { emit: 'event', level: 'info' }, + * { emit: 'event', level: 'warn' } + * { emit: 'event', level: 'error' } + * ] + * + * / Emit as events and log to stdout + * og: [ + * { emit: 'stdout', level: 'query' }, + * { emit: 'stdout', level: 'info' }, + * { emit: 'stdout', level: 'warn' } + * { emit: 'stdout', level: 'error' } + * + * ``` + * Read more in our [docs](https://pris.ly/d/logging). + */ + log?: (LogLevel | LogDefinition)[] + /** + * The default values for transactionOptions + * maxWait ?= 2000 + * timeout ?= 5000 + */ + transactionOptions?: { + maxWait?: number + timeout?: number + isolationLevel?: TransactionIsolationLevel + } + /** + * Global configuration for omitting model fields by default. + * + * @example + * ``` + * const prisma = new PrismaClient({ + * omit: { + * user: { + * password: true + * } + * } + * }) + * ``` + */ + omit?: GlobalOmitConfig + /** + * SQL commenter plugins that add metadata to SQL queries as comments. + * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/ + * + * @example + * ``` + * const prisma = new PrismaClient({ + * adapter, + * comments: [ + * traceContext(), + * queryInsights(), + * ], + * }) + * ``` + */ + comments?: runtime.SqlCommenterPlugin[] +} +export type GlobalOmitConfig = { + user?: Prisma.UserOmit + session?: Prisma.SessionOmit + account?: Prisma.AccountOmit + verification?: Prisma.VerificationOmit + authToken?: Prisma.AuthTokenOmit + team?: Prisma.TeamOmit + sandbox?: Prisma.SandboxOmit + skill?: Prisma.SkillOmit + teamMember?: Prisma.TeamMemberOmit + project?: Prisma.ProjectOmit + projectMember?: Prisma.ProjectMemberOmit + shareLink?: Prisma.ShareLinkOmit + asset?: Prisma.AssetOmit + storageKey?: Prisma.StorageKeyOmit + assetMetadataValue?: Prisma.AssetMetadataValueOmit + assetComment?: Prisma.AssetCommentOmit + assetCommentAttachment?: Prisma.AssetCommentAttachmentOmit + assetEmbedding?: Prisma.AssetEmbeddingOmit + invite?: Prisma.InviteOmit + metadataField?: Prisma.MetadataFieldOmit + notification?: Prisma.NotificationOmit + systemSettings?: Prisma.SystemSettingsOmit + task?: Prisma.TaskOmit + workflowTask?: Prisma.WorkflowTaskOmit + agent?: Prisma.AgentOmit + agentSkill?: Prisma.AgentSkillOmit + agentSession?: Prisma.AgentSessionOmit + agentSessionEntry?: Prisma.AgentSessionEntryOmit + userMetadata?: Prisma.UserMetadataOmit + model?: Prisma.ModelOmit + provider?: Prisma.ProviderOmit + collection?: Prisma.CollectionOmit +} + +/* Types for Logging */ +export type LogLevel = 'info' | 'query' | 'warn' | 'error' +export type LogDefinition = { + level: LogLevel + emit: 'stdout' | 'event' +} + +export type CheckIsLogLevel = T extends LogLevel ? T : never + +export type GetLogType = CheckIsLogLevel + +export type GetEvents = + T extends Array ? GetLogType : never + +export type QueryEvent = { + timestamp: Date + query: string + params: string + duration: number + target: string +} + +export type LogEvent = { + timestamp: Date + message: string + target: string +} +/* End Types for Logging */ + +export type PrismaAction = + | 'findUnique' + | 'findUniqueOrThrow' + | 'findMany' + | 'findFirst' + | 'findFirstOrThrow' + | 'create' + | 'createMany' + | 'createManyAndReturn' + | 'update' + | 'updateMany' + | 'updateManyAndReturn' + | 'upsert' + | 'delete' + | 'deleteMany' + | 'executeRaw' + | 'queryRaw' + | 'aggregate' + | 'count' + | 'runCommandRaw' + | 'findRaw' + | 'groupBy' + +/** + * `PrismaClient` proxy available in interactive transactions. + */ +export type TransactionClient = Omit diff --git a/packages/db/src/generated/prisma/internal/prismaNamespaceBrowser.ts b/packages/db/src/generated/prisma/internal/prismaNamespaceBrowser.ts new file mode 100644 index 00000000..1c8e0727 --- /dev/null +++ b/packages/db/src/generated/prisma/internal/prismaNamespaceBrowser.ts @@ -0,0 +1,586 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * 🛑 Under no circumstances should you import this file directly! 🛑 + * + * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from '@prisma/client/runtime/index-browser' + +export type * from '../models.ts' +export type * from './prismaNamespace.ts' + +export const Decimal = runtime.Decimal + +export const NullTypes = { + DbNull: runtime.NullTypes.DbNull as new (secret: never) => typeof runtime.DbNull, + JsonNull: runtime.NullTypes.JsonNull as new (secret: never) => typeof runtime.JsonNull, + AnyNull: runtime.NullTypes.AnyNull as new (secret: never) => typeof runtime.AnyNull, +} +/** + * Helper for filtering JSON entries that have `null` on the database (empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const DbNull = runtime.DbNull + +/** + * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const JsonNull = runtime.JsonNull + +/** + * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const AnyNull = runtime.AnyNull + +export const ModelName = { + User: 'User', + Session: 'Session', + Account: 'Account', + Verification: 'Verification', + AuthToken: 'AuthToken', + Team: 'Team', + Sandbox: 'Sandbox', + Skill: 'Skill', + TeamMember: 'TeamMember', + Project: 'Project', + ProjectMember: 'ProjectMember', + ShareLink: 'ShareLink', + Asset: 'Asset', + StorageKey: 'StorageKey', + AssetMetadataValue: 'AssetMetadataValue', + AssetComment: 'AssetComment', + AssetCommentAttachment: 'AssetCommentAttachment', + AssetEmbedding: 'AssetEmbedding', + Invite: 'Invite', + MetadataField: 'MetadataField', + Notification: 'Notification', + SystemSettings: 'SystemSettings', + Task: 'Task', + WorkflowTask: 'WorkflowTask', + Agent: 'Agent', + AgentSkill: 'AgentSkill', + AgentSession: 'AgentSession', + AgentSessionEntry: 'AgentSessionEntry', + UserMetadata: 'UserMetadata', + Model: 'Model', + Provider: 'Provider', + Collection: 'Collection', +} as const + +export type ModelName = (typeof ModelName)[keyof typeof ModelName] + +/* + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', + Serializable: 'Serializable', +} as const) + +export type TransactionIsolationLevel = + (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + +export const UserScalarFieldEnum = { + id: 'id', + type: 'type', + name: 'name', + email: 'email', + emailVerified: 'emailVerified', + image: 'image', + password: 'password', + agentSettings: 'agentSettings', + guestEmail: 'guestEmail', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + +export const SessionScalarFieldEnum = { + id: 'id', + expiresAt: 'expiresAt', + token: 'token', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + ipAddress: 'ipAddress', + userAgent: 'userAgent', + userId: 'userId', +} as const + +export type SessionScalarFieldEnum = + (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] + +export const AccountScalarFieldEnum = { + id: 'id', + accountId: 'accountId', + providerId: 'providerId', + userId: 'userId', + accessToken: 'accessToken', + refreshToken: 'refreshToken', + idToken: 'idToken', + accessTokenExpiresAt: 'accessTokenExpiresAt', + refreshTokenExpiresAt: 'refreshTokenExpiresAt', + scope: 'scope', + password: 'password', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type AccountScalarFieldEnum = + (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] + +export const VerificationScalarFieldEnum = { + id: 'id', + identifier: 'identifier', + value: 'value', + expiresAt: 'expiresAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type VerificationScalarFieldEnum = + (typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum] + +export const AuthTokenScalarFieldEnum = { + id: 'id', + accessToken: 'accessToken', + refreshToken: 'refreshToken', + accessTokenExpiresAt: 'accessTokenExpiresAt', + refreshTokenExpiresAt: 'refreshTokenExpiresAt', + userId: 'userId', +} as const + +export type AuthTokenScalarFieldEnum = + (typeof AuthTokenScalarFieldEnum)[keyof typeof AuthTokenScalarFieldEnum] + +export const TeamScalarFieldEnum = { + id: 'id', + name: 'name', + settings: 'settings', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + rootFolderId: 'rootFolderId', +} as const + +export type TeamScalarFieldEnum = (typeof TeamScalarFieldEnum)[keyof typeof TeamScalarFieldEnum] + +export const SandboxScalarFieldEnum = { + id: 'id', + allowedDomains: 'allowedDomains', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + teamId: 'teamId', +} as const + +export type SandboxScalarFieldEnum = + (typeof SandboxScalarFieldEnum)[keyof typeof SandboxScalarFieldEnum] + +export const SkillScalarFieldEnum = { + id: 'id', + name: 'name', + description: 'description', + config: 'config', + assetId: 'assetId', + hash: 'hash', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + teamId: 'teamId', +} as const + +export type SkillScalarFieldEnum = (typeof SkillScalarFieldEnum)[keyof typeof SkillScalarFieldEnum] + +export const TeamMemberScalarFieldEnum = { + id: 'id', + role: 'role', + scope: 'scope', + teamId: 'teamId', + userId: 'userId', + lastReadNotificationId: 'lastReadNotificationId', +} as const + +export type TeamMemberScalarFieldEnum = + (typeof TeamMemberScalarFieldEnum)[keyof typeof TeamMemberScalarFieldEnum] + +export const ProjectScalarFieldEnum = { + id: 'id', + name: 'name', + coverImageKey: 'coverImageKey', + metadataOverrides: 'metadataOverrides', + enableNotification: 'enableNotification', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + teamId: 'teamId', + rootFolderId: 'rootFolderId', + shareRootId: 'shareRootId', +} as const + +export type ProjectScalarFieldEnum = + (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum] + +export const ProjectMemberScalarFieldEnum = { + id: 'id', + role: 'role', + projectId: 'projectId', + teamMemberId: 'teamMemberId', +} as const + +export type ProjectMemberScalarFieldEnum = + (typeof ProjectMemberScalarFieldEnum)[keyof typeof ProjectMemberScalarFieldEnum] + +export const ShareLinkScalarFieldEnum = { + id: 'id', + name: 'name', + expireAt: 'expireAt', + password: 'password', + isDisabled: 'isDisabled', + defaultSortOrder: 'defaultSortOrder', + fieldVisibility: 'fieldVisibility', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + projectId: 'projectId', + rootFolderId: 'rootFolderId', +} as const + +export type ShareLinkScalarFieldEnum = + (typeof ShareLinkScalarFieldEnum)[keyof typeof ShareLinkScalarFieldEnum] + +export const AssetScalarFieldEnum = { + id: 'id', + name: 'name', + nameNgram: 'nameNgram', + type: 'type', + mediaType: 'mediaType', + fileCount: 'fileCount', + sizeByte: 'sizeByte', + status: 'status', + transcodeTaskId: 'transcodeTaskId', + media: 'media', + isDeleted: 'isDeleted', + deletedAt: 'deletedAt', + sortIndex: 'sortIndex', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + parentId: 'parentId', + targetId: 'targetId', + storageKeyId: 'storageKeyId', + creatorId: 'creatorId', + taskId: 'taskId', + projectId: 'projectId', +} as const + +export type AssetScalarFieldEnum = (typeof AssetScalarFieldEnum)[keyof typeof AssetScalarFieldEnum] + +export const StorageKeyScalarFieldEnum = { + id: 'id', + key: 'key', + status: 'status', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type StorageKeyScalarFieldEnum = + (typeof StorageKeyScalarFieldEnum)[keyof typeof StorageKeyScalarFieldEnum] + +export const AssetMetadataValueScalarFieldEnum = { + id: 'id', + assetId: 'assetId', + fieldKey: 'fieldKey', + stringValue: 'stringValue', + numberValue: 'numberValue', + booleanValue: 'booleanValue', + jsonValue: 'jsonValue', + dateValue: 'dateValue', +} as const + +export type AssetMetadataValueScalarFieldEnum = + (typeof AssetMetadataValueScalarFieldEnum)[keyof typeof AssetMetadataValueScalarFieldEnum] + +export const AssetCommentScalarFieldEnum = { + id: 'id', + message: 'message', + annotation: 'annotation', + second: 'second', + sessionId: 'sessionId', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + assetId: 'assetId', + creatorId: 'creatorId', + replyToId: 'replyToId', +} as const + +export type AssetCommentScalarFieldEnum = + (typeof AssetCommentScalarFieldEnum)[keyof typeof AssetCommentScalarFieldEnum] + +export const AssetCommentAttachmentScalarFieldEnum = { + id: 'id', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + commentId: 'commentId', + assetId: 'assetId', +} as const + +export type AssetCommentAttachmentScalarFieldEnum = + (typeof AssetCommentAttachmentScalarFieldEnum)[keyof typeof AssetCommentAttachmentScalarFieldEnum] + +export const AssetEmbeddingScalarFieldEnum = { + id: 'id', + startTime: 'startTime', + endTime: 'endTime', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + assetId: 'assetId', +} as const + +export type AssetEmbeddingScalarFieldEnum = + (typeof AssetEmbeddingScalarFieldEnum)[keyof typeof AssetEmbeddingScalarFieldEnum] + +export const InviteScalarFieldEnum = { + id: 'id', + code: 'code', + role: 'role', + used: 'used', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + teamId: 'teamId', + projectId: 'projectId', + inviterId: 'inviterId', +} as const + +export type InviteScalarFieldEnum = + (typeof InviteScalarFieldEnum)[keyof typeof InviteScalarFieldEnum] + +export const MetadataFieldScalarFieldEnum = { + id: 'id', + key: 'key', + scope: 'scope', + config: 'config', + readOnly: 'readOnly', + aiAutofill: 'aiAutofill', + description: 'description', + teamId: 'teamId', + projectId: 'projectId', +} as const + +export type MetadataFieldScalarFieldEnum = + (typeof MetadataFieldScalarFieldEnum)[keyof typeof MetadataFieldScalarFieldEnum] + +export const NotificationScalarFieldEnum = { + id: 'id', + type: 'type', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + teamId: 'teamId', + projectId: 'projectId', + creatorId: 'creatorId', + assetId: 'assetId', + taskId: 'taskId', + userId: 'userId', +} as const + +export type NotificationScalarFieldEnum = + (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum] + +export const SystemSettingsScalarFieldEnum = { + id: 'id', + key: 'key', + value: 'value', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type SystemSettingsScalarFieldEnum = + (typeof SystemSettingsScalarFieldEnum)[keyof typeof SystemSettingsScalarFieldEnum] + +export const TaskScalarFieldEnum = { + id: 'id', + type: 'type', + status: 'status', + name: 'name', + total: 'total', + uploaded: 'uploaded', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + creatorId: 'creatorId', +} as const + +export type TaskScalarFieldEnum = (typeof TaskScalarFieldEnum)[keyof typeof TaskScalarFieldEnum] + +export const WorkflowTaskScalarFieldEnum = { + id: 'id', + uid: 'uid', + teamId: 'teamId', + projectId: 'projectId', + assetId: 'assetId', + type: 'type', + status: 'status', + payload: 'payload', + output: 'output', + heartbeat: 'heartbeat', + inputTokens: 'inputTokens', + outputTokens: 'outputTokens', + model: 'model', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type WorkflowTaskScalarFieldEnum = + (typeof WorkflowTaskScalarFieldEnum)[keyof typeof WorkflowTaskScalarFieldEnum] + +export const AgentScalarFieldEnum = { + id: 'id', + type: 'type', + enabled: 'enabled', + soul: 'soul', + providerId: 'providerId', + modelId: 'modelId', + teamId: 'teamId', + config: 'config', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type AgentScalarFieldEnum = (typeof AgentScalarFieldEnum)[keyof typeof AgentScalarFieldEnum] + +export const AgentSkillScalarFieldEnum = { + id: 'id', + agentId: 'agentId', + skillId: 'skillId', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type AgentSkillScalarFieldEnum = + (typeof AgentSkillScalarFieldEnum)[keyof typeof AgentSkillScalarFieldEnum] + +export const AgentSessionScalarFieldEnum = { + id: 'id', + agentId: 'agentId', + userId: 'userId', + cwd: 'cwd', + leafId: 'leafId', + createdAt: 'createdAt', + updatedAt: 'updatedAt', +} as const + +export type AgentSessionScalarFieldEnum = + (typeof AgentSessionScalarFieldEnum)[keyof typeof AgentSessionScalarFieldEnum] + +export const AgentSessionEntryScalarFieldEnum = { + id: 'id', + sessionId: 'sessionId', + entry: 'entry', +} as const + +export type AgentSessionEntryScalarFieldEnum = + (typeof AgentSessionEntryScalarFieldEnum)[keyof typeof AgentSessionEntryScalarFieldEnum] + +export const UserMetadataScalarFieldEnum = { + id: 'id', + key: 'key', + value: 'value', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + userId: 'userId', + teamId: 'teamId', +} as const + +export type UserMetadataScalarFieldEnum = + (typeof UserMetadataScalarFieldEnum)[keyof typeof UserMetadataScalarFieldEnum] + +export const ModelScalarFieldEnum = { + id: 'id', + modelId: 'modelId', + name: 'name', + config: 'config', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + providerId: 'providerId', +} as const + +export type ModelScalarFieldEnum = (typeof ModelScalarFieldEnum)[keyof typeof ModelScalarFieldEnum] + +export const ProviderScalarFieldEnum = { + id: 'id', + name: 'name', + isBuiltin: 'isBuiltin', + config: 'config', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + teamId: 'teamId', +} as const + +export type ProviderScalarFieldEnum = + (typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum] + +export const CollectionScalarFieldEnum = { + id: 'id', + name: 'name', + filter: 'filter', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + projectId: 'projectId', +} as const + +export type CollectionScalarFieldEnum = + (typeof CollectionScalarFieldEnum)[keyof typeof CollectionScalarFieldEnum] + +export const SortOrder = { + asc: 'asc', + desc: 'desc', +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + +export const NullableJsonNullValueInput = { + DbNull: DbNull, + JsonNull: JsonNull, +} as const + +export type NullableJsonNullValueInput = + (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] + +export const JsonNullValueInput = { + JsonNull: JsonNull, +} as const + +export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] + +export const QueryMode = { + default: 'default', + insensitive: 'insensitive', +} as const + +export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] + +export const JsonNullValueFilter = { + DbNull: DbNull, + JsonNull: JsonNull, + AnyNull: AnyNull, +} as const + +export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] + +export const NullsOrder = { + first: 'first', + last: 'last', +} as const + +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] diff --git a/packages/db/src/generated/prisma/models.ts b/packages/db/src/generated/prisma/models.ts new file mode 100644 index 00000000..1b8a26df --- /dev/null +++ b/packages/db/src/generated/prisma/models.ts @@ -0,0 +1,42 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This is a barrel export file for all models and their related types. + * + * 🟢 You can import this file directly. + */ +export type * from './models/User.ts' +export type * from './models/Session.ts' +export type * from './models/Account.ts' +export type * from './models/Verification.ts' +export type * from './models/AuthToken.ts' +export type * from './models/Team.ts' +export type * from './models/Sandbox.ts' +export type * from './models/Skill.ts' +export type * from './models/TeamMember.ts' +export type * from './models/Project.ts' +export type * from './models/ProjectMember.ts' +export type * from './models/ShareLink.ts' +export type * from './models/Asset.ts' +export type * from './models/StorageKey.ts' +export type * from './models/AssetMetadataValue.ts' +export type * from './models/AssetComment.ts' +export type * from './models/AssetCommentAttachment.ts' +export type * from './models/AssetEmbedding.ts' +export type * from './models/Invite.ts' +export type * from './models/MetadataField.ts' +export type * from './models/Notification.ts' +export type * from './models/SystemSettings.ts' +export type * from './models/Task.ts' +export type * from './models/WorkflowTask.ts' +export type * from './models/Agent.ts' +export type * from './models/AgentSkill.ts' +export type * from './models/AgentSession.ts' +export type * from './models/AgentSessionEntry.ts' +export type * from './models/UserMetadata.ts' +export type * from './models/Model.ts' +export type * from './models/Provider.ts' +export type * from './models/Collection.ts' +export type * from './commonInputTypes.ts' diff --git a/packages/db/src/generated/prisma/models/Account.ts b/packages/db/src/generated/prisma/models/Account.ts new file mode 100644 index 00000000..eae90513 --- /dev/null +++ b/packages/db/src/generated/prisma/models/Account.ts @@ -0,0 +1,1905 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Account` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Account + * + */ +export type AccountModel = runtime.Types.Result.DefaultSelection + +export type AggregateAccount = { + _count: AccountCountAggregateOutputType | null + _min: AccountMinAggregateOutputType | null + _max: AccountMaxAggregateOutputType | null +} + +export type AccountMinAggregateOutputType = { + id: string | null + accountId: string | null + providerId: string | null + userId: string | null + accessToken: string | null + refreshToken: string | null + idToken: string | null + accessTokenExpiresAt: Date | null + refreshTokenExpiresAt: Date | null + scope: string | null + password: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type AccountMaxAggregateOutputType = { + id: string | null + accountId: string | null + providerId: string | null + userId: string | null + accessToken: string | null + refreshToken: string | null + idToken: string | null + accessTokenExpiresAt: Date | null + refreshTokenExpiresAt: Date | null + scope: string | null + password: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type AccountCountAggregateOutputType = { + id: number + accountId: number + providerId: number + userId: number + accessToken: number + refreshToken: number + idToken: number + accessTokenExpiresAt: number + refreshTokenExpiresAt: number + scope: number + password: number + createdAt: number + updatedAt: number + _all: number +} + +export type AccountMinAggregateInputType = { + id?: true + accountId?: true + providerId?: true + userId?: true + accessToken?: true + refreshToken?: true + idToken?: true + accessTokenExpiresAt?: true + refreshTokenExpiresAt?: true + scope?: true + password?: true + createdAt?: true + updatedAt?: true +} + +export type AccountMaxAggregateInputType = { + id?: true + accountId?: true + providerId?: true + userId?: true + accessToken?: true + refreshToken?: true + idToken?: true + accessTokenExpiresAt?: true + refreshTokenExpiresAt?: true + scope?: true + password?: true + createdAt?: true + updatedAt?: true +} + +export type AccountCountAggregateInputType = { + id?: true + accountId?: true + providerId?: true + userId?: true + accessToken?: true + refreshToken?: true + idToken?: true + accessTokenExpiresAt?: true + refreshTokenExpiresAt?: true + scope?: true + password?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type AccountAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Account to aggregate. + */ + where?: Prisma.AccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Accounts to fetch. + */ + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Accounts from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Accounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Accounts + **/ + _count?: true | AccountCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AccountMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AccountMaxAggregateInputType +} + +export type GetAccountAggregateType = { + [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type AccountGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AccountWhereInput + orderBy?: Prisma.AccountOrderByWithAggregationInput | Prisma.AccountOrderByWithAggregationInput[] + by: Prisma.AccountScalarFieldEnum[] | Prisma.AccountScalarFieldEnum + having?: Prisma.AccountScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AccountCountAggregateInputType | true + _min?: AccountMinAggregateInputType + _max?: AccountMaxAggregateInputType +} + +export type AccountGroupByOutputType = { + id: string + accountId: string + providerId: string + userId: string + accessToken: string | null + refreshToken: string | null + idToken: string | null + accessTokenExpiresAt: Date | null + refreshTokenExpiresAt: Date | null + scope: string | null + password: string | null + createdAt: Date + updatedAt: Date + _count: AccountCountAggregateOutputType | null + _min: AccountMinAggregateOutputType | null + _max: AccountMaxAggregateOutputType | null +} + +export type GetAccountGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof AccountGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type AccountWhereInput = { + AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] + OR?: Prisma.AccountWhereInput[] + NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] + id?: Prisma.StringFilter<'Account'> | string + accountId?: Prisma.StringFilter<'Account'> | string + providerId?: Prisma.StringFilter<'Account'> | string + userId?: Prisma.StringFilter<'Account'> | string + accessToken?: Prisma.StringNullableFilter<'Account'> | string | null + refreshToken?: Prisma.StringNullableFilter<'Account'> | string | null + idToken?: Prisma.StringNullableFilter<'Account'> | string | null + accessTokenExpiresAt?: Prisma.DateTimeNullableFilter<'Account'> | Date | string | null + refreshTokenExpiresAt?: Prisma.DateTimeNullableFilter<'Account'> | Date | string | null + scope?: Prisma.StringNullableFilter<'Account'> | string | null + password?: Prisma.StringNullableFilter<'Account'> | string | null + createdAt?: Prisma.DateTimeFilter<'Account'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Account'> | Date | string + user?: Prisma.XOR +} + +export type AccountOrderByWithRelationInput = { + id?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + userId?: Prisma.SortOrder + accessToken?: Prisma.SortOrderInput | Prisma.SortOrder + refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder + idToken?: Prisma.SortOrderInput | Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder + scope?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput +} + +export type AccountWhereUniqueInput = Prisma.AtLeast< + { + id?: string + AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] + OR?: Prisma.AccountWhereInput[] + NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] + accountId?: Prisma.StringFilter<'Account'> | string + providerId?: Prisma.StringFilter<'Account'> | string + userId?: Prisma.StringFilter<'Account'> | string + accessToken?: Prisma.StringNullableFilter<'Account'> | string | null + refreshToken?: Prisma.StringNullableFilter<'Account'> | string | null + idToken?: Prisma.StringNullableFilter<'Account'> | string | null + accessTokenExpiresAt?: Prisma.DateTimeNullableFilter<'Account'> | Date | string | null + refreshTokenExpiresAt?: Prisma.DateTimeNullableFilter<'Account'> | Date | string | null + scope?: Prisma.StringNullableFilter<'Account'> | string | null + password?: Prisma.StringNullableFilter<'Account'> | string | null + createdAt?: Prisma.DateTimeFilter<'Account'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Account'> | Date | string + user?: Prisma.XOR + }, + 'id' +> + +export type AccountOrderByWithAggregationInput = { + id?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + userId?: Prisma.SortOrder + accessToken?: Prisma.SortOrderInput | Prisma.SortOrder + refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder + idToken?: Prisma.SortOrderInput | Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder + scope?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.AccountCountOrderByAggregateInput + _max?: Prisma.AccountMaxOrderByAggregateInput + _min?: Prisma.AccountMinOrderByAggregateInput +} + +export type AccountScalarWhereWithAggregatesInput = { + AND?: + | Prisma.AccountScalarWhereWithAggregatesInput + | Prisma.AccountScalarWhereWithAggregatesInput[] + OR?: Prisma.AccountScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.AccountScalarWhereWithAggregatesInput + | Prisma.AccountScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Account'> | string + accountId?: Prisma.StringWithAggregatesFilter<'Account'> | string + providerId?: Prisma.StringWithAggregatesFilter<'Account'> | string + userId?: Prisma.StringWithAggregatesFilter<'Account'> | string + accessToken?: Prisma.StringNullableWithAggregatesFilter<'Account'> | string | null + refreshToken?: Prisma.StringNullableWithAggregatesFilter<'Account'> | string | null + idToken?: Prisma.StringNullableWithAggregatesFilter<'Account'> | string | null + accessTokenExpiresAt?: + | Prisma.DateTimeNullableWithAggregatesFilter<'Account'> + | Date + | string + | null + refreshTokenExpiresAt?: + | Prisma.DateTimeNullableWithAggregatesFilter<'Account'> + | Date + | string + | null + scope?: Prisma.StringNullableWithAggregatesFilter<'Account'> | string | null + password?: Prisma.StringNullableWithAggregatesFilter<'Account'> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Account'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Account'> | Date | string +} + +export type AccountCreateInput = { + id?: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + refreshTokenExpiresAt?: Date | string | null + scope?: string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutAccountsInput +} + +export type AccountUncheckedCreateInput = { + id?: string + accountId: string + providerId: string + userId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + refreshTokenExpiresAt?: Date | string | null + scope?: string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutAccountsNestedInput +} + +export type AccountUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountCreateManyInput = { + id?: string + accountId: string + providerId: string + userId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + refreshTokenExpiresAt?: Date | string | null + scope?: string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountListRelationFilter = { + every?: Prisma.AccountWhereInput + some?: Prisma.AccountWhereInput + none?: Prisma.AccountWhereInput +} + +export type AccountOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AccountCountOrderByAggregateInput = { + id?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + userId?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + idToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrder + scope?: Prisma.SortOrder + password?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AccountMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + userId?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + idToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrder + scope?: Prisma.SortOrder + password?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AccountMinOrderByAggregateInput = { + id?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + userId?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + idToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrder + scope?: Prisma.SortOrder + password?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AccountCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.AccountCreateWithoutUserInput, + Prisma.AccountUncheckedCreateWithoutUserInput + > + | Prisma.AccountCreateWithoutUserInput[] + | Prisma.AccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.AccountCreateOrConnectWithoutUserInput + | Prisma.AccountCreateOrConnectWithoutUserInput[] + createMany?: Prisma.AccountCreateManyUserInputEnvelope + connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] +} + +export type AccountUncheckedCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.AccountCreateWithoutUserInput, + Prisma.AccountUncheckedCreateWithoutUserInput + > + | Prisma.AccountCreateWithoutUserInput[] + | Prisma.AccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.AccountCreateOrConnectWithoutUserInput + | Prisma.AccountCreateOrConnectWithoutUserInput[] + createMany?: Prisma.AccountCreateManyUserInputEnvelope + connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] +} + +export type AccountUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.AccountCreateWithoutUserInput, + Prisma.AccountUncheckedCreateWithoutUserInput + > + | Prisma.AccountCreateWithoutUserInput[] + | Prisma.AccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.AccountCreateOrConnectWithoutUserInput + | Prisma.AccountCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput + | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.AccountCreateManyUserInputEnvelope + set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + update?: + | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput + | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.AccountUpdateManyWithWhereWithoutUserInput + | Prisma.AccountUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] +} + +export type AccountUncheckedUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.AccountCreateWithoutUserInput, + Prisma.AccountUncheckedCreateWithoutUserInput + > + | Prisma.AccountCreateWithoutUserInput[] + | Prisma.AccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.AccountCreateOrConnectWithoutUserInput + | Prisma.AccountCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput + | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.AccountCreateManyUserInputEnvelope + set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + update?: + | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput + | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.AccountUpdateManyWithWhereWithoutUserInput + | Prisma.AccountUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] +} + +export type NullableDateTimeFieldUpdateOperationsInput = { + set?: Date | string | null +} + +export type AccountCreateWithoutUserInput = { + id?: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + refreshTokenExpiresAt?: Date | string | null + scope?: string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountUncheckedCreateWithoutUserInput = { + id?: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + refreshTokenExpiresAt?: Date | string | null + scope?: string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountCreateOrConnectWithoutUserInput = { + where: Prisma.AccountWhereUniqueInput + create: Prisma.XOR< + Prisma.AccountCreateWithoutUserInput, + Prisma.AccountUncheckedCreateWithoutUserInput + > +} + +export type AccountCreateManyUserInputEnvelope = { + data: Prisma.AccountCreateManyUserInput | Prisma.AccountCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type AccountUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.AccountWhereUniqueInput + update: Prisma.XOR< + Prisma.AccountUpdateWithoutUserInput, + Prisma.AccountUncheckedUpdateWithoutUserInput + > + create: Prisma.XOR< + Prisma.AccountCreateWithoutUserInput, + Prisma.AccountUncheckedCreateWithoutUserInput + > +} + +export type AccountUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.AccountWhereUniqueInput + data: Prisma.XOR< + Prisma.AccountUpdateWithoutUserInput, + Prisma.AccountUncheckedUpdateWithoutUserInput + > +} + +export type AccountUpdateManyWithWhereWithoutUserInput = { + where: Prisma.AccountScalarWhereInput + data: Prisma.XOR< + Prisma.AccountUpdateManyMutationInput, + Prisma.AccountUncheckedUpdateManyWithoutUserInput + > +} + +export type AccountScalarWhereInput = { + AND?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] + OR?: Prisma.AccountScalarWhereInput[] + NOT?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] + id?: Prisma.StringFilter<'Account'> | string + accountId?: Prisma.StringFilter<'Account'> | string + providerId?: Prisma.StringFilter<'Account'> | string + userId?: Prisma.StringFilter<'Account'> | string + accessToken?: Prisma.StringNullableFilter<'Account'> | string | null + refreshToken?: Prisma.StringNullableFilter<'Account'> | string | null + idToken?: Prisma.StringNullableFilter<'Account'> | string | null + accessTokenExpiresAt?: Prisma.DateTimeNullableFilter<'Account'> | Date | string | null + refreshTokenExpiresAt?: Prisma.DateTimeNullableFilter<'Account'> | Date | string | null + scope?: Prisma.StringNullableFilter<'Account'> | string | null + password?: Prisma.StringNullableFilter<'Account'> | string | null + createdAt?: Prisma.DateTimeFilter<'Account'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Account'> | Date | string +} + +export type AccountCreateManyUserInput = { + id?: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + refreshTokenExpiresAt?: Date | string | null + scope?: string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + accountId?: boolean + providerId?: boolean + userId?: boolean + accessToken?: boolean + refreshToken?: boolean + idToken?: boolean + accessTokenExpiresAt?: boolean + refreshTokenExpiresAt?: boolean + scope?: boolean + password?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + }, + ExtArgs['result']['account'] +> + +export type AccountSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + accountId?: boolean + providerId?: boolean + userId?: boolean + accessToken?: boolean + refreshToken?: boolean + idToken?: boolean + accessTokenExpiresAt?: boolean + refreshTokenExpiresAt?: boolean + scope?: boolean + password?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + }, + ExtArgs['result']['account'] +> + +export type AccountSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + accountId?: boolean + providerId?: boolean + userId?: boolean + accessToken?: boolean + refreshToken?: boolean + idToken?: boolean + accessTokenExpiresAt?: boolean + refreshTokenExpiresAt?: boolean + scope?: boolean + password?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + }, + ExtArgs['result']['account'] +> + +export type AccountSelectScalar = { + id?: boolean + accountId?: boolean + providerId?: boolean + userId?: boolean + accessToken?: boolean + refreshToken?: boolean + idToken?: boolean + accessTokenExpiresAt?: boolean + refreshTokenExpiresAt?: boolean + scope?: boolean + password?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type AccountOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'accountId' + | 'providerId' + | 'userId' + | 'accessToken' + | 'refreshToken' + | 'idToken' + | 'accessTokenExpiresAt' + | 'refreshTokenExpiresAt' + | 'scope' + | 'password' + | 'createdAt' + | 'updatedAt', + ExtArgs['result']['account'] +> +export type AccountInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs +} +export type AccountIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs +} +export type AccountIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs +} + +export type $AccountPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Account' + objects: { + user: Prisma.$UserPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + accountId: string + providerId: string + userId: string + accessToken: string | null + refreshToken: string | null + idToken: string | null + accessTokenExpiresAt: Date | null + refreshTokenExpiresAt: Date | null + scope: string | null + password: string | null + createdAt: Date + updatedAt: Date + }, + ExtArgs['result']['account'] + > + composites: {} +} + +export type AccountGetPayload = + runtime.Types.Result.GetResult + +export type AccountCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: AccountCountAggregateInputType | true +} + +export interface AccountDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['Account']; meta: { name: 'Account' } } + /** + * Find zero or one Account that matches the filter. + * @param {AccountFindUniqueArgs} args - Arguments to find a Account + * @example + * // Get one Account + * const account = await prisma.account.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AccountClient< + runtime.Types.Result.GetResult< + Prisma.$AccountPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Account that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account + * @example + * // Get one Account + * const account = await prisma.account.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AccountClient< + runtime.Types.Result.GetResult< + Prisma.$AccountPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Account that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountFindFirstArgs} args - Arguments to find a Account + * @example + * // Get one Account + * const account = await prisma.account.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AccountClient< + runtime.Types.Result.GetResult< + Prisma.$AccountPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Account that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account + * @example + * // Get one Account + * const account = await prisma.account.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AccountClient< + runtime.Types.Result.GetResult< + Prisma.$AccountPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Accounts that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Accounts + * const accounts = await prisma.account.findMany() + * + * // Get first 10 Accounts + * const accounts = await prisma.account.findMany({ take: 10 }) + * + * // Only select the `id` + * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AccountPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a Account. + * @param {AccountCreateArgs} args - Arguments to create a Account. + * @example + * // Create one Account + * const Account = await prisma.account.create({ + * data: { + * // ... data to create a Account + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AccountClient< + runtime.Types.Result.GetResult, T, 'create', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Accounts. + * @param {AccountCreateManyArgs} args - Arguments to create many Accounts. + * @example + * // Create many Accounts + * const account = await prisma.account.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Accounts and returns the data saved in the database. + * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts. + * @example + * // Create many Accounts + * const account = await prisma.account.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Accounts and only return the `id` + * const accountWithIdOnly = await prisma.account.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AccountPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Account. + * @param {AccountDeleteArgs} args - Arguments to delete one Account. + * @example + * // Delete one Account + * const Account = await prisma.account.delete({ + * where: { + * // ... filter to delete one Account + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AccountClient< + runtime.Types.Result.GetResult, T, 'delete', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Account. + * @param {AccountUpdateArgs} args - Arguments to update one Account. + * @example + * // Update one Account + * const account = await prisma.account.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AccountClient< + runtime.Types.Result.GetResult, T, 'update', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Accounts. + * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete. + * @example + * // Delete a few Accounts + * const { count } = await prisma.account.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Accounts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Accounts + * const account = await prisma.account.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Accounts and returns the data updated in the database. + * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts. + * @example + * // Update many Accounts + * const account = await prisma.account.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Accounts and only return the `id` + * const accountWithIdOnly = await prisma.account.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AccountPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Account. + * @param {AccountUpsertArgs} args - Arguments to update or create a Account. + * @example + * // Update or create a Account + * const account = await prisma.account.upsert({ + * create: { + * // ... data to create a Account + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Account we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AccountClient< + runtime.Types.Result.GetResult, T, 'upsert', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Accounts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountCountArgs} args - Arguments to filter Accounts to count. + * @example + * // Count the number of Accounts + * const count = await prisma.account.count({ + * where: { + * // ... the filter for the Accounts we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Account. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Account. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends AccountGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AccountGroupByArgs['orderBy'] } + : { orderBy?: AccountGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetAccountGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Account model + */ + readonly fields: AccountFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Account. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__AccountClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + user = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__UserClient< + | runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Account model + */ +export interface AccountFieldRefs { + readonly id: Prisma.FieldRef<'Account', 'String'> + readonly accountId: Prisma.FieldRef<'Account', 'String'> + readonly providerId: Prisma.FieldRef<'Account', 'String'> + readonly userId: Prisma.FieldRef<'Account', 'String'> + readonly accessToken: Prisma.FieldRef<'Account', 'String'> + readonly refreshToken: Prisma.FieldRef<'Account', 'String'> + readonly idToken: Prisma.FieldRef<'Account', 'String'> + readonly accessTokenExpiresAt: Prisma.FieldRef<'Account', 'DateTime'> + readonly refreshTokenExpiresAt: Prisma.FieldRef<'Account', 'DateTime'> + readonly scope: Prisma.FieldRef<'Account', 'String'> + readonly password: Prisma.FieldRef<'Account', 'String'> + readonly createdAt: Prisma.FieldRef<'Account', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Account', 'DateTime'> +} + +// Custom InputTypes +/** + * Account findUnique + */ +export type AccountFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Account to fetch. + */ + where: Prisma.AccountWhereUniqueInput +} + +/** + * Account findUniqueOrThrow + */ +export type AccountFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Account to fetch. + */ + where: Prisma.AccountWhereUniqueInput +} + +/** + * Account findFirst + */ +export type AccountFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Account to fetch. + */ + where?: Prisma.AccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Accounts to fetch. + */ + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Accounts. + */ + cursor?: Prisma.AccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Accounts from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Accounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Accounts. + */ + distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] +} + +/** + * Account findFirstOrThrow + */ +export type AccountFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Account to fetch. + */ + where?: Prisma.AccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Accounts to fetch. + */ + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Accounts. + */ + cursor?: Prisma.AccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Accounts from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Accounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Accounts. + */ + distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] +} + +/** + * Account findMany + */ +export type AccountFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Accounts to fetch. + */ + where?: Prisma.AccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Accounts to fetch. + */ + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Accounts. + */ + cursor?: Prisma.AccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Accounts from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Accounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Accounts. + */ + distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] +} + +/** + * Account create + */ +export type AccountCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * The data needed to create a Account. + */ + data: Prisma.XOR +} + +/** + * Account createMany + */ +export type AccountCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Accounts. + */ + data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Account createManyAndReturn + */ +export type AccountCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * The data used to create many Accounts. + */ + data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountIncludeCreateManyAndReturn | null +} + +/** + * Account update + */ +export type AccountUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * The data needed to update a Account. + */ + data: Prisma.XOR + /** + * Choose, which Account to update. + */ + where: Prisma.AccountWhereUniqueInput +} + +/** + * Account updateMany + */ +export type AccountUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Accounts. + */ + data: Prisma.XOR + /** + * Filter which Accounts to update + */ + where?: Prisma.AccountWhereInput + /** + * Limit how many Accounts to update. + */ + limit?: number +} + +/** + * Account updateManyAndReturn + */ +export type AccountUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * The data used to update Accounts. + */ + data: Prisma.XOR + /** + * Filter which Accounts to update + */ + where?: Prisma.AccountWhereInput + /** + * Limit how many Accounts to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountIncludeUpdateManyAndReturn | null +} + +/** + * Account upsert + */ +export type AccountUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * The filter to search for the Account to update in case it exists. + */ + where: Prisma.AccountWhereUniqueInput + /** + * In case the Account found by the `where` argument doesn't exist, create a new Account with this data. + */ + create: Prisma.XOR + /** + * In case the Account was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Account delete + */ +export type AccountDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter which Account to delete. + */ + where: Prisma.AccountWhereUniqueInput +} + +/** + * Account deleteMany + */ +export type AccountDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Accounts to delete + */ + where?: Prisma.AccountWhereInput + /** + * Limit how many Accounts to delete. + */ + limit?: number +} + +/** + * Account without action + */ +export type AccountDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null +} diff --git a/packages/db/src/generated/prisma/models/Agent.ts b/packages/db/src/generated/prisma/models/Agent.ts new file mode 100644 index 00000000..dbcdac6c --- /dev/null +++ b/packages/db/src/generated/prisma/models/Agent.ts @@ -0,0 +1,2810 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Agent` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Agent + * + */ +export type AgentModel = runtime.Types.Result.DefaultSelection + +export type AggregateAgent = { + _count: AgentCountAggregateOutputType | null + _min: AgentMinAggregateOutputType | null + _max: AgentMaxAggregateOutputType | null +} + +export type AgentMinAggregateOutputType = { + id: string | null + type: $Enums.AgentType | null + enabled: boolean | null + soul: string | null + providerId: string | null + modelId: string | null + teamId: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type AgentMaxAggregateOutputType = { + id: string | null + type: $Enums.AgentType | null + enabled: boolean | null + soul: string | null + providerId: string | null + modelId: string | null + teamId: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type AgentCountAggregateOutputType = { + id: number + type: number + enabled: number + soul: number + providerId: number + modelId: number + teamId: number + config: PrismaJson.AgentConfig + createdAt: number + updatedAt: number + _all: number +} + +export type AgentMinAggregateInputType = { + id?: true + type?: true + enabled?: true + soul?: true + providerId?: true + modelId?: true + teamId?: true + createdAt?: true + updatedAt?: true +} + +export type AgentMaxAggregateInputType = { + id?: true + type?: true + enabled?: true + soul?: true + providerId?: true + modelId?: true + teamId?: true + createdAt?: true + updatedAt?: true +} + +export type AgentCountAggregateInputType = { + id?: true + type?: true + enabled?: true + soul?: true + providerId?: true + modelId?: true + teamId?: true + config?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type AgentAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Agent to aggregate. + */ + where?: Prisma.AgentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Agents to fetch. + */ + orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AgentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Agents from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Agents. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Agents + **/ + _count?: true | AgentCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AgentMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AgentMaxAggregateInputType +} + +export type GetAgentAggregateType = { + [P in keyof T & keyof AggregateAgent]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type AgentGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AgentWhereInput + orderBy?: Prisma.AgentOrderByWithAggregationInput | Prisma.AgentOrderByWithAggregationInput[] + by: Prisma.AgentScalarFieldEnum[] | Prisma.AgentScalarFieldEnum + having?: Prisma.AgentScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AgentCountAggregateInputType | true + _min?: AgentMinAggregateInputType + _max?: AgentMaxAggregateInputType +} + +export type AgentGroupByOutputType = { + id: string + type: $Enums.AgentType + enabled: boolean + soul: string | null + providerId: string | null + modelId: string | null + teamId: string + config: PrismaJson.AgentConfig + createdAt: Date + updatedAt: Date + _count: AgentCountAggregateOutputType | null + _min: AgentMinAggregateOutputType | null + _max: AgentMaxAggregateOutputType | null +} + +export type GetAgentGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof AgentGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type AgentWhereInput = { + AND?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[] + OR?: Prisma.AgentWhereInput[] + NOT?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[] + id?: Prisma.StringFilter<'Agent'> | string + type?: Prisma.EnumAgentTypeFilter<'Agent'> | $Enums.AgentType + enabled?: Prisma.BoolFilter<'Agent'> | boolean + soul?: Prisma.StringNullableFilter<'Agent'> | string | null + providerId?: Prisma.StringNullableFilter<'Agent'> | string | null + modelId?: Prisma.StringNullableFilter<'Agent'> | string | null + teamId?: Prisma.StringFilter<'Agent'> | string + config?: Prisma.JsonFilter<'Agent'> + createdAt?: Prisma.DateTimeFilter<'Agent'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Agent'> | Date | string + user?: Prisma.XOR + provider?: Prisma.XOR< + Prisma.ProviderNullableScalarRelationFilter, + Prisma.ProviderWhereInput + > | null + modelRef?: Prisma.XOR | null + team?: Prisma.XOR + agentSessions?: Prisma.AgentSessionListRelationFilter + skills?: Prisma.AgentSkillListRelationFilter +} + +export type AgentOrderByWithRelationInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + enabled?: Prisma.SortOrder + soul?: Prisma.SortOrderInput | Prisma.SortOrder + providerId?: Prisma.SortOrderInput | Prisma.SortOrder + modelId?: Prisma.SortOrderInput | Prisma.SortOrder + teamId?: Prisma.SortOrder + config?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + provider?: Prisma.ProviderOrderByWithRelationInput + modelRef?: Prisma.ModelOrderByWithRelationInput + team?: Prisma.TeamOrderByWithRelationInput + agentSessions?: Prisma.AgentSessionOrderByRelationAggregateInput + skills?: Prisma.AgentSkillOrderByRelationAggregateInput +} + +export type AgentWhereUniqueInput = Prisma.AtLeast< + { + id?: string + AND?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[] + OR?: Prisma.AgentWhereInput[] + NOT?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[] + type?: Prisma.EnumAgentTypeFilter<'Agent'> | $Enums.AgentType + enabled?: Prisma.BoolFilter<'Agent'> | boolean + soul?: Prisma.StringNullableFilter<'Agent'> | string | null + providerId?: Prisma.StringNullableFilter<'Agent'> | string | null + modelId?: Prisma.StringNullableFilter<'Agent'> | string | null + teamId?: Prisma.StringFilter<'Agent'> | string + config?: Prisma.JsonFilter<'Agent'> + createdAt?: Prisma.DateTimeFilter<'Agent'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Agent'> | Date | string + user?: Prisma.XOR + provider?: Prisma.XOR< + Prisma.ProviderNullableScalarRelationFilter, + Prisma.ProviderWhereInput + > | null + modelRef?: Prisma.XOR | null + team?: Prisma.XOR + agentSessions?: Prisma.AgentSessionListRelationFilter + skills?: Prisma.AgentSkillListRelationFilter + }, + 'id' +> + +export type AgentOrderByWithAggregationInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + enabled?: Prisma.SortOrder + soul?: Prisma.SortOrderInput | Prisma.SortOrder + providerId?: Prisma.SortOrderInput | Prisma.SortOrder + modelId?: Prisma.SortOrderInput | Prisma.SortOrder + teamId?: Prisma.SortOrder + config?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.AgentCountOrderByAggregateInput + _max?: Prisma.AgentMaxOrderByAggregateInput + _min?: Prisma.AgentMinOrderByAggregateInput +} + +export type AgentScalarWhereWithAggregatesInput = { + AND?: Prisma.AgentScalarWhereWithAggregatesInput | Prisma.AgentScalarWhereWithAggregatesInput[] + OR?: Prisma.AgentScalarWhereWithAggregatesInput[] + NOT?: Prisma.AgentScalarWhereWithAggregatesInput | Prisma.AgentScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Agent'> | string + type?: Prisma.EnumAgentTypeWithAggregatesFilter<'Agent'> | $Enums.AgentType + enabled?: Prisma.BoolWithAggregatesFilter<'Agent'> | boolean + soul?: Prisma.StringNullableWithAggregatesFilter<'Agent'> | string | null + providerId?: Prisma.StringNullableWithAggregatesFilter<'Agent'> | string | null + modelId?: Prisma.StringNullableWithAggregatesFilter<'Agent'> | string | null + teamId?: Prisma.StringWithAggregatesFilter<'Agent'> | string + config?: Prisma.JsonWithAggregatesFilter<'Agent'> + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Agent'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Agent'> | Date | string +} + +export type AgentCreateInput = { + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutAgentInput + provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput + modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput + team: Prisma.TeamCreateNestedOneWithoutAgentsInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput + skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput +} + +export type AgentUncheckedCreateInput = { + id: string + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + providerId?: string | null + modelId?: string | null + teamId: string + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput + skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput +} + +export type AgentUpdateInput = { + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput + provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput + modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput + team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput + skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput +} + +export type AgentUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + teamId?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput + skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput +} + +export type AgentCreateManyInput = { + id: string + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + providerId?: string | null + modelId?: string | null + teamId: string + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AgentUpdateManyMutationInput = { + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + teamId?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentNullableScalarRelationFilter = { + is?: Prisma.AgentWhereInput | null + isNot?: Prisma.AgentWhereInput | null +} + +export type AgentListRelationFilter = { + every?: Prisma.AgentWhereInput + some?: Prisma.AgentWhereInput + none?: Prisma.AgentWhereInput +} + +export type AgentOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AgentCountOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + enabled?: Prisma.SortOrder + soul?: Prisma.SortOrder + providerId?: Prisma.SortOrder + modelId?: Prisma.SortOrder + teamId?: Prisma.SortOrder + config?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AgentMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + enabled?: Prisma.SortOrder + soul?: Prisma.SortOrder + providerId?: Prisma.SortOrder + modelId?: Prisma.SortOrder + teamId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AgentMinOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + enabled?: Prisma.SortOrder + soul?: Prisma.SortOrder + providerId?: Prisma.SortOrder + modelId?: Prisma.SortOrder + teamId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AgentScalarRelationFilter = { + is?: Prisma.AgentWhereInput + isNot?: Prisma.AgentWhereInput +} + +export type AgentCreateNestedOneWithoutUserInput = { + create?: Prisma.XOR< + Prisma.AgentCreateWithoutUserInput, + Prisma.AgentUncheckedCreateWithoutUserInput + > + connectOrCreate?: Prisma.AgentCreateOrConnectWithoutUserInput + connect?: Prisma.AgentWhereUniqueInput +} + +export type AgentUncheckedCreateNestedOneWithoutUserInput = { + create?: Prisma.XOR< + Prisma.AgentCreateWithoutUserInput, + Prisma.AgentUncheckedCreateWithoutUserInput + > + connectOrCreate?: Prisma.AgentCreateOrConnectWithoutUserInput + connect?: Prisma.AgentWhereUniqueInput +} + +export type AgentUpdateOneWithoutUserNestedInput = { + create?: Prisma.XOR< + Prisma.AgentCreateWithoutUserInput, + Prisma.AgentUncheckedCreateWithoutUserInput + > + connectOrCreate?: Prisma.AgentCreateOrConnectWithoutUserInput + upsert?: Prisma.AgentUpsertWithoutUserInput + disconnect?: Prisma.AgentWhereInput | boolean + delete?: Prisma.AgentWhereInput | boolean + connect?: Prisma.AgentWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AgentUpdateToOneWithWhereWithoutUserInput, + Prisma.AgentUpdateWithoutUserInput + >, + Prisma.AgentUncheckedUpdateWithoutUserInput + > +} + +export type AgentUncheckedUpdateOneWithoutUserNestedInput = { + create?: Prisma.XOR< + Prisma.AgentCreateWithoutUserInput, + Prisma.AgentUncheckedCreateWithoutUserInput + > + connectOrCreate?: Prisma.AgentCreateOrConnectWithoutUserInput + upsert?: Prisma.AgentUpsertWithoutUserInput + disconnect?: Prisma.AgentWhereInput | boolean + delete?: Prisma.AgentWhereInput | boolean + connect?: Prisma.AgentWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AgentUpdateToOneWithWhereWithoutUserInput, + Prisma.AgentUpdateWithoutUserInput + >, + Prisma.AgentUncheckedUpdateWithoutUserInput + > +} + +export type AgentCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR + | Prisma.AgentCreateWithoutTeamInput[] + | Prisma.AgentUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.AgentCreateOrConnectWithoutTeamInput + | Prisma.AgentCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.AgentCreateManyTeamInputEnvelope + connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] +} + +export type AgentUncheckedCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR + | Prisma.AgentCreateWithoutTeamInput[] + | Prisma.AgentUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.AgentCreateOrConnectWithoutTeamInput + | Prisma.AgentCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.AgentCreateManyTeamInputEnvelope + connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] +} + +export type AgentUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR + | Prisma.AgentCreateWithoutTeamInput[] + | Prisma.AgentUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.AgentCreateOrConnectWithoutTeamInput + | Prisma.AgentCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.AgentUpsertWithWhereUniqueWithoutTeamInput + | Prisma.AgentUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.AgentCreateManyTeamInputEnvelope + set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + update?: + | Prisma.AgentUpdateWithWhereUniqueWithoutTeamInput + | Prisma.AgentUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.AgentUpdateManyWithWhereWithoutTeamInput + | Prisma.AgentUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] +} + +export type AgentUncheckedUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR + | Prisma.AgentCreateWithoutTeamInput[] + | Prisma.AgentUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.AgentCreateOrConnectWithoutTeamInput + | Prisma.AgentCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.AgentUpsertWithWhereUniqueWithoutTeamInput + | Prisma.AgentUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.AgentCreateManyTeamInputEnvelope + set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + update?: + | Prisma.AgentUpdateWithWhereUniqueWithoutTeamInput + | Prisma.AgentUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.AgentUpdateManyWithWhereWithoutTeamInput + | Prisma.AgentUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] +} + +export type EnumAgentTypeFieldUpdateOperationsInput = { + set?: $Enums.AgentType +} + +export type AgentCreateNestedOneWithoutSkillsInput = { + create?: Prisma.XOR< + Prisma.AgentCreateWithoutSkillsInput, + Prisma.AgentUncheckedCreateWithoutSkillsInput + > + connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSkillsInput + connect?: Prisma.AgentWhereUniqueInput +} + +export type AgentUpdateOneRequiredWithoutSkillsNestedInput = { + create?: Prisma.XOR< + Prisma.AgentCreateWithoutSkillsInput, + Prisma.AgentUncheckedCreateWithoutSkillsInput + > + connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSkillsInput + upsert?: Prisma.AgentUpsertWithoutSkillsInput + connect?: Prisma.AgentWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AgentUpdateToOneWithWhereWithoutSkillsInput, + Prisma.AgentUpdateWithoutSkillsInput + >, + Prisma.AgentUncheckedUpdateWithoutSkillsInput + > +} + +export type AgentCreateNestedOneWithoutAgentSessionsInput = { + create?: Prisma.XOR< + Prisma.AgentCreateWithoutAgentSessionsInput, + Prisma.AgentUncheckedCreateWithoutAgentSessionsInput + > + connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAgentSessionsInput + connect?: Prisma.AgentWhereUniqueInput +} + +export type AgentUpdateOneRequiredWithoutAgentSessionsNestedInput = { + create?: Prisma.XOR< + Prisma.AgentCreateWithoutAgentSessionsInput, + Prisma.AgentUncheckedCreateWithoutAgentSessionsInput + > + connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAgentSessionsInput + upsert?: Prisma.AgentUpsertWithoutAgentSessionsInput + connect?: Prisma.AgentWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AgentUpdateToOneWithWhereWithoutAgentSessionsInput, + Prisma.AgentUpdateWithoutAgentSessionsInput + >, + Prisma.AgentUncheckedUpdateWithoutAgentSessionsInput + > +} + +export type AgentCreateNestedManyWithoutModelRefInput = { + create?: + | Prisma.XOR< + Prisma.AgentCreateWithoutModelRefInput, + Prisma.AgentUncheckedCreateWithoutModelRefInput + > + | Prisma.AgentCreateWithoutModelRefInput[] + | Prisma.AgentUncheckedCreateWithoutModelRefInput[] + connectOrCreate?: + | Prisma.AgentCreateOrConnectWithoutModelRefInput + | Prisma.AgentCreateOrConnectWithoutModelRefInput[] + createMany?: Prisma.AgentCreateManyModelRefInputEnvelope + connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] +} + +export type AgentUncheckedCreateNestedManyWithoutModelRefInput = { + create?: + | Prisma.XOR< + Prisma.AgentCreateWithoutModelRefInput, + Prisma.AgentUncheckedCreateWithoutModelRefInput + > + | Prisma.AgentCreateWithoutModelRefInput[] + | Prisma.AgentUncheckedCreateWithoutModelRefInput[] + connectOrCreate?: + | Prisma.AgentCreateOrConnectWithoutModelRefInput + | Prisma.AgentCreateOrConnectWithoutModelRefInput[] + createMany?: Prisma.AgentCreateManyModelRefInputEnvelope + connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] +} + +export type AgentUpdateManyWithoutModelRefNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentCreateWithoutModelRefInput, + Prisma.AgentUncheckedCreateWithoutModelRefInput + > + | Prisma.AgentCreateWithoutModelRefInput[] + | Prisma.AgentUncheckedCreateWithoutModelRefInput[] + connectOrCreate?: + | Prisma.AgentCreateOrConnectWithoutModelRefInput + | Prisma.AgentCreateOrConnectWithoutModelRefInput[] + upsert?: + | Prisma.AgentUpsertWithWhereUniqueWithoutModelRefInput + | Prisma.AgentUpsertWithWhereUniqueWithoutModelRefInput[] + createMany?: Prisma.AgentCreateManyModelRefInputEnvelope + set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + update?: + | Prisma.AgentUpdateWithWhereUniqueWithoutModelRefInput + | Prisma.AgentUpdateWithWhereUniqueWithoutModelRefInput[] + updateMany?: + | Prisma.AgentUpdateManyWithWhereWithoutModelRefInput + | Prisma.AgentUpdateManyWithWhereWithoutModelRefInput[] + deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] +} + +export type AgentUncheckedUpdateManyWithoutModelRefNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentCreateWithoutModelRefInput, + Prisma.AgentUncheckedCreateWithoutModelRefInput + > + | Prisma.AgentCreateWithoutModelRefInput[] + | Prisma.AgentUncheckedCreateWithoutModelRefInput[] + connectOrCreate?: + | Prisma.AgentCreateOrConnectWithoutModelRefInput + | Prisma.AgentCreateOrConnectWithoutModelRefInput[] + upsert?: + | Prisma.AgentUpsertWithWhereUniqueWithoutModelRefInput + | Prisma.AgentUpsertWithWhereUniqueWithoutModelRefInput[] + createMany?: Prisma.AgentCreateManyModelRefInputEnvelope + set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + update?: + | Prisma.AgentUpdateWithWhereUniqueWithoutModelRefInput + | Prisma.AgentUpdateWithWhereUniqueWithoutModelRefInput[] + updateMany?: + | Prisma.AgentUpdateManyWithWhereWithoutModelRefInput + | Prisma.AgentUpdateManyWithWhereWithoutModelRefInput[] + deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] +} + +export type AgentCreateNestedManyWithoutProviderInput = { + create?: + | Prisma.XOR< + Prisma.AgentCreateWithoutProviderInput, + Prisma.AgentUncheckedCreateWithoutProviderInput + > + | Prisma.AgentCreateWithoutProviderInput[] + | Prisma.AgentUncheckedCreateWithoutProviderInput[] + connectOrCreate?: + | Prisma.AgentCreateOrConnectWithoutProviderInput + | Prisma.AgentCreateOrConnectWithoutProviderInput[] + createMany?: Prisma.AgentCreateManyProviderInputEnvelope + connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] +} + +export type AgentUncheckedCreateNestedManyWithoutProviderInput = { + create?: + | Prisma.XOR< + Prisma.AgentCreateWithoutProviderInput, + Prisma.AgentUncheckedCreateWithoutProviderInput + > + | Prisma.AgentCreateWithoutProviderInput[] + | Prisma.AgentUncheckedCreateWithoutProviderInput[] + connectOrCreate?: + | Prisma.AgentCreateOrConnectWithoutProviderInput + | Prisma.AgentCreateOrConnectWithoutProviderInput[] + createMany?: Prisma.AgentCreateManyProviderInputEnvelope + connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] +} + +export type AgentUpdateManyWithoutProviderNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentCreateWithoutProviderInput, + Prisma.AgentUncheckedCreateWithoutProviderInput + > + | Prisma.AgentCreateWithoutProviderInput[] + | Prisma.AgentUncheckedCreateWithoutProviderInput[] + connectOrCreate?: + | Prisma.AgentCreateOrConnectWithoutProviderInput + | Prisma.AgentCreateOrConnectWithoutProviderInput[] + upsert?: + | Prisma.AgentUpsertWithWhereUniqueWithoutProviderInput + | Prisma.AgentUpsertWithWhereUniqueWithoutProviderInput[] + createMany?: Prisma.AgentCreateManyProviderInputEnvelope + set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + update?: + | Prisma.AgentUpdateWithWhereUniqueWithoutProviderInput + | Prisma.AgentUpdateWithWhereUniqueWithoutProviderInput[] + updateMany?: + | Prisma.AgentUpdateManyWithWhereWithoutProviderInput + | Prisma.AgentUpdateManyWithWhereWithoutProviderInput[] + deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] +} + +export type AgentUncheckedUpdateManyWithoutProviderNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentCreateWithoutProviderInput, + Prisma.AgentUncheckedCreateWithoutProviderInput + > + | Prisma.AgentCreateWithoutProviderInput[] + | Prisma.AgentUncheckedCreateWithoutProviderInput[] + connectOrCreate?: + | Prisma.AgentCreateOrConnectWithoutProviderInput + | Prisma.AgentCreateOrConnectWithoutProviderInput[] + upsert?: + | Prisma.AgentUpsertWithWhereUniqueWithoutProviderInput + | Prisma.AgentUpsertWithWhereUniqueWithoutProviderInput[] + createMany?: Prisma.AgentCreateManyProviderInputEnvelope + set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[] + update?: + | Prisma.AgentUpdateWithWhereUniqueWithoutProviderInput + | Prisma.AgentUpdateWithWhereUniqueWithoutProviderInput[] + updateMany?: + | Prisma.AgentUpdateManyWithWhereWithoutProviderInput + | Prisma.AgentUpdateManyWithWhereWithoutProviderInput[] + deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] +} + +export type AgentCreateWithoutUserInput = { + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput + modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput + team: Prisma.TeamCreateNestedOneWithoutAgentsInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput + skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput +} + +export type AgentUncheckedCreateWithoutUserInput = { + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + providerId?: string | null + modelId?: string | null + teamId: string + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput + skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput +} + +export type AgentCreateOrConnectWithoutUserInput = { + where: Prisma.AgentWhereUniqueInput + create: Prisma.XOR< + Prisma.AgentCreateWithoutUserInput, + Prisma.AgentUncheckedCreateWithoutUserInput + > +} + +export type AgentUpsertWithoutUserInput = { + update: Prisma.XOR< + Prisma.AgentUpdateWithoutUserInput, + Prisma.AgentUncheckedUpdateWithoutUserInput + > + create: Prisma.XOR< + Prisma.AgentCreateWithoutUserInput, + Prisma.AgentUncheckedCreateWithoutUserInput + > + where?: Prisma.AgentWhereInput +} + +export type AgentUpdateToOneWithWhereWithoutUserInput = { + where?: Prisma.AgentWhereInput + data: Prisma.XOR +} + +export type AgentUpdateWithoutUserInput = { + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput + modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput + team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput + skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput +} + +export type AgentUncheckedUpdateWithoutUserInput = { + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + teamId?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput + skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput +} + +export type AgentCreateWithoutTeamInput = { + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutAgentInput + provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput + modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput + skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput +} + +export type AgentUncheckedCreateWithoutTeamInput = { + id: string + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + providerId?: string | null + modelId?: string | null + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput + skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput +} + +export type AgentCreateOrConnectWithoutTeamInput = { + where: Prisma.AgentWhereUniqueInput + create: Prisma.XOR< + Prisma.AgentCreateWithoutTeamInput, + Prisma.AgentUncheckedCreateWithoutTeamInput + > +} + +export type AgentCreateManyTeamInputEnvelope = { + data: Prisma.AgentCreateManyTeamInput | Prisma.AgentCreateManyTeamInput[] + skipDuplicates?: boolean +} + +export type AgentUpsertWithWhereUniqueWithoutTeamInput = { + where: Prisma.AgentWhereUniqueInput + update: Prisma.XOR< + Prisma.AgentUpdateWithoutTeamInput, + Prisma.AgentUncheckedUpdateWithoutTeamInput + > + create: Prisma.XOR< + Prisma.AgentCreateWithoutTeamInput, + Prisma.AgentUncheckedCreateWithoutTeamInput + > +} + +export type AgentUpdateWithWhereUniqueWithoutTeamInput = { + where: Prisma.AgentWhereUniqueInput + data: Prisma.XOR +} + +export type AgentUpdateManyWithWhereWithoutTeamInput = { + where: Prisma.AgentScalarWhereInput + data: Prisma.XOR< + Prisma.AgentUpdateManyMutationInput, + Prisma.AgentUncheckedUpdateManyWithoutTeamInput + > +} + +export type AgentScalarWhereInput = { + AND?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] + OR?: Prisma.AgentScalarWhereInput[] + NOT?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[] + id?: Prisma.StringFilter<'Agent'> | string + type?: Prisma.EnumAgentTypeFilter<'Agent'> | $Enums.AgentType + enabled?: Prisma.BoolFilter<'Agent'> | boolean + soul?: Prisma.StringNullableFilter<'Agent'> | string | null + providerId?: Prisma.StringNullableFilter<'Agent'> | string | null + modelId?: Prisma.StringNullableFilter<'Agent'> | string | null + teamId?: Prisma.StringFilter<'Agent'> | string + config?: Prisma.JsonFilter<'Agent'> + createdAt?: Prisma.DateTimeFilter<'Agent'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Agent'> | Date | string +} + +export type AgentCreateWithoutSkillsInput = { + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutAgentInput + provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput + modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput + team: Prisma.TeamCreateNestedOneWithoutAgentsInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput +} + +export type AgentUncheckedCreateWithoutSkillsInput = { + id: string + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + providerId?: string | null + modelId?: string | null + teamId: string + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput +} + +export type AgentCreateOrConnectWithoutSkillsInput = { + where: Prisma.AgentWhereUniqueInput + create: Prisma.XOR< + Prisma.AgentCreateWithoutSkillsInput, + Prisma.AgentUncheckedCreateWithoutSkillsInput + > +} + +export type AgentUpsertWithoutSkillsInput = { + update: Prisma.XOR< + Prisma.AgentUpdateWithoutSkillsInput, + Prisma.AgentUncheckedUpdateWithoutSkillsInput + > + create: Prisma.XOR< + Prisma.AgentCreateWithoutSkillsInput, + Prisma.AgentUncheckedCreateWithoutSkillsInput + > + where?: Prisma.AgentWhereInput +} + +export type AgentUpdateToOneWithWhereWithoutSkillsInput = { + where?: Prisma.AgentWhereInput + data: Prisma.XOR< + Prisma.AgentUpdateWithoutSkillsInput, + Prisma.AgentUncheckedUpdateWithoutSkillsInput + > +} + +export type AgentUpdateWithoutSkillsInput = { + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput + provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput + modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput + team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput +} + +export type AgentUncheckedUpdateWithoutSkillsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + teamId?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput +} + +export type AgentCreateWithoutAgentSessionsInput = { + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutAgentInput + provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput + modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput + team: Prisma.TeamCreateNestedOneWithoutAgentsInput + skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput +} + +export type AgentUncheckedCreateWithoutAgentSessionsInput = { + id: string + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + providerId?: string | null + modelId?: string | null + teamId: string + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput +} + +export type AgentCreateOrConnectWithoutAgentSessionsInput = { + where: Prisma.AgentWhereUniqueInput + create: Prisma.XOR< + Prisma.AgentCreateWithoutAgentSessionsInput, + Prisma.AgentUncheckedCreateWithoutAgentSessionsInput + > +} + +export type AgentUpsertWithoutAgentSessionsInput = { + update: Prisma.XOR< + Prisma.AgentUpdateWithoutAgentSessionsInput, + Prisma.AgentUncheckedUpdateWithoutAgentSessionsInput + > + create: Prisma.XOR< + Prisma.AgentCreateWithoutAgentSessionsInput, + Prisma.AgentUncheckedCreateWithoutAgentSessionsInput + > + where?: Prisma.AgentWhereInput +} + +export type AgentUpdateToOneWithWhereWithoutAgentSessionsInput = { + where?: Prisma.AgentWhereInput + data: Prisma.XOR< + Prisma.AgentUpdateWithoutAgentSessionsInput, + Prisma.AgentUncheckedUpdateWithoutAgentSessionsInput + > +} + +export type AgentUpdateWithoutAgentSessionsInput = { + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput + provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput + modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput + team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput + skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput +} + +export type AgentUncheckedUpdateWithoutAgentSessionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + teamId?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput +} + +export type AgentCreateWithoutModelRefInput = { + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutAgentInput + provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput + team: Prisma.TeamCreateNestedOneWithoutAgentsInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput + skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput +} + +export type AgentUncheckedCreateWithoutModelRefInput = { + id: string + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + providerId?: string | null + teamId: string + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput + skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput +} + +export type AgentCreateOrConnectWithoutModelRefInput = { + where: Prisma.AgentWhereUniqueInput + create: Prisma.XOR< + Prisma.AgentCreateWithoutModelRefInput, + Prisma.AgentUncheckedCreateWithoutModelRefInput + > +} + +export type AgentCreateManyModelRefInputEnvelope = { + data: Prisma.AgentCreateManyModelRefInput | Prisma.AgentCreateManyModelRefInput[] + skipDuplicates?: boolean +} + +export type AgentUpsertWithWhereUniqueWithoutModelRefInput = { + where: Prisma.AgentWhereUniqueInput + update: Prisma.XOR< + Prisma.AgentUpdateWithoutModelRefInput, + Prisma.AgentUncheckedUpdateWithoutModelRefInput + > + create: Prisma.XOR< + Prisma.AgentCreateWithoutModelRefInput, + Prisma.AgentUncheckedCreateWithoutModelRefInput + > +} + +export type AgentUpdateWithWhereUniqueWithoutModelRefInput = { + where: Prisma.AgentWhereUniqueInput + data: Prisma.XOR< + Prisma.AgentUpdateWithoutModelRefInput, + Prisma.AgentUncheckedUpdateWithoutModelRefInput + > +} + +export type AgentUpdateManyWithWhereWithoutModelRefInput = { + where: Prisma.AgentScalarWhereInput + data: Prisma.XOR< + Prisma.AgentUpdateManyMutationInput, + Prisma.AgentUncheckedUpdateManyWithoutModelRefInput + > +} + +export type AgentCreateWithoutProviderInput = { + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutAgentInput + modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput + team: Prisma.TeamCreateNestedOneWithoutAgentsInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput + skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput +} + +export type AgentUncheckedCreateWithoutProviderInput = { + id: string + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + modelId?: string | null + teamId: string + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput + skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput +} + +export type AgentCreateOrConnectWithoutProviderInput = { + where: Prisma.AgentWhereUniqueInput + create: Prisma.XOR< + Prisma.AgentCreateWithoutProviderInput, + Prisma.AgentUncheckedCreateWithoutProviderInput + > +} + +export type AgentCreateManyProviderInputEnvelope = { + data: Prisma.AgentCreateManyProviderInput | Prisma.AgentCreateManyProviderInput[] + skipDuplicates?: boolean +} + +export type AgentUpsertWithWhereUniqueWithoutProviderInput = { + where: Prisma.AgentWhereUniqueInput + update: Prisma.XOR< + Prisma.AgentUpdateWithoutProviderInput, + Prisma.AgentUncheckedUpdateWithoutProviderInput + > + create: Prisma.XOR< + Prisma.AgentCreateWithoutProviderInput, + Prisma.AgentUncheckedCreateWithoutProviderInput + > +} + +export type AgentUpdateWithWhereUniqueWithoutProviderInput = { + where: Prisma.AgentWhereUniqueInput + data: Prisma.XOR< + Prisma.AgentUpdateWithoutProviderInput, + Prisma.AgentUncheckedUpdateWithoutProviderInput + > +} + +export type AgentUpdateManyWithWhereWithoutProviderInput = { + where: Prisma.AgentScalarWhereInput + data: Prisma.XOR< + Prisma.AgentUpdateManyMutationInput, + Prisma.AgentUncheckedUpdateManyWithoutProviderInput + > +} + +export type AgentCreateManyTeamInput = { + id: string + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + providerId?: string | null + modelId?: string | null + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AgentUpdateWithoutTeamInput = { + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput + provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput + modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput + skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput +} + +export type AgentUncheckedUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput + skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput +} + +export type AgentUncheckedUpdateManyWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentCreateManyModelRefInput = { + id: string + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + providerId?: string | null + teamId: string + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AgentUpdateWithoutModelRefInput = { + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput + provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput + team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput + skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput +} + +export type AgentUncheckedUpdateWithoutModelRefInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + teamId?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput + skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput +} + +export type AgentUncheckedUpdateManyWithoutModelRefInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + teamId?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentCreateManyProviderInput = { + id: string + type: $Enums.AgentType + enabled?: boolean + soul?: string | null + modelId?: string | null + teamId: string + config: PrismaJson.AgentConfig + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AgentUpdateWithoutProviderInput = { + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput + modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput + team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput + skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput +} + +export type AgentUncheckedUpdateWithoutProviderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + teamId?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput + skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput +} + +export type AgentUncheckedUpdateManyWithoutProviderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType + enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + teamId?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.AgentConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +/** + * Count Type AgentCountOutputType + */ + +export type AgentCountOutputType = { + agentSessions: number + skills: number +} + +export type AgentCountOutputTypeSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + agentSessions?: boolean | AgentCountOutputTypeCountAgentSessionsArgs + skills?: boolean | AgentCountOutputTypeCountSkillsArgs +} + +/** + * AgentCountOutputType without action + */ +export type AgentCountOutputTypeDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentCountOutputType + */ + select?: Prisma.AgentCountOutputTypeSelect | null +} + +/** + * AgentCountOutputType without action + */ +export type AgentCountOutputTypeCountAgentSessionsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AgentSessionWhereInput +} + +/** + * AgentCountOutputType without action + */ +export type AgentCountOutputTypeCountSkillsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AgentSkillWhereInput +} + +export type AgentSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + type?: boolean + enabled?: boolean + soul?: boolean + providerId?: boolean + modelId?: boolean + teamId?: boolean + config?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + provider?: boolean | Prisma.Agent$providerArgs + modelRef?: boolean | Prisma.Agent$modelRefArgs + team?: boolean | Prisma.TeamDefaultArgs + agentSessions?: boolean | Prisma.Agent$agentSessionsArgs + skills?: boolean | Prisma.Agent$skillsArgs + _count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs + }, + ExtArgs['result']['agent'] +> + +export type AgentSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + type?: boolean + enabled?: boolean + soul?: boolean + providerId?: boolean + modelId?: boolean + teamId?: boolean + config?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + provider?: boolean | Prisma.Agent$providerArgs + modelRef?: boolean | Prisma.Agent$modelRefArgs + team?: boolean | Prisma.TeamDefaultArgs + }, + ExtArgs['result']['agent'] +> + +export type AgentSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + type?: boolean + enabled?: boolean + soul?: boolean + providerId?: boolean + modelId?: boolean + teamId?: boolean + config?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs + provider?: boolean | Prisma.Agent$providerArgs + modelRef?: boolean | Prisma.Agent$modelRefArgs + team?: boolean | Prisma.TeamDefaultArgs + }, + ExtArgs['result']['agent'] +> + +export type AgentSelectScalar = { + id?: boolean + type?: boolean + enabled?: boolean + soul?: boolean + providerId?: boolean + modelId?: boolean + teamId?: boolean + config?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type AgentOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'type' + | 'enabled' + | 'soul' + | 'providerId' + | 'modelId' + | 'teamId' + | 'config' + | 'createdAt' + | 'updatedAt', + ExtArgs['result']['agent'] +> +export type AgentInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs + provider?: boolean | Prisma.Agent$providerArgs + modelRef?: boolean | Prisma.Agent$modelRefArgs + team?: boolean | Prisma.TeamDefaultArgs + agentSessions?: boolean | Prisma.Agent$agentSessionsArgs + skills?: boolean | Prisma.Agent$skillsArgs + _count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs +} +export type AgentIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs + provider?: boolean | Prisma.Agent$providerArgs + modelRef?: boolean | Prisma.Agent$modelRefArgs + team?: boolean | Prisma.TeamDefaultArgs +} +export type AgentIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs + provider?: boolean | Prisma.Agent$providerArgs + modelRef?: boolean | Prisma.Agent$modelRefArgs + team?: boolean | Prisma.TeamDefaultArgs +} + +export type $AgentPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Agent' + objects: { + user: Prisma.$UserPayload + provider: Prisma.$ProviderPayload | null + modelRef: Prisma.$ModelPayload | null + team: Prisma.$TeamPayload + agentSessions: Prisma.$AgentSessionPayload[] + skills: Prisma.$AgentSkillPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + type: $Enums.AgentType + enabled: boolean + soul: string | null + providerId: string | null + modelId: string | null + teamId: string + /** + * [AgentConfig] + */ + config: PrismaJson.AgentConfig + createdAt: Date + updatedAt: Date + }, + ExtArgs['result']['agent'] + > + composites: {} +} + +export type AgentGetPayload = + runtime.Types.Result.GetResult + +export type AgentCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: AgentCountAggregateInputType | true +} + +export interface AgentDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['Agent']; meta: { name: 'Agent' } } + /** + * Find zero or one Agent that matches the filter. + * @param {AgentFindUniqueArgs} args - Arguments to find a Agent + * @example + * // Get one Agent + * const agent = await prisma.agent.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentClient< + runtime.Types.Result.GetResult< + Prisma.$AgentPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Agent that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AgentFindUniqueOrThrowArgs} args - Arguments to find a Agent + * @example + * // Get one Agent + * const agent = await prisma.agent.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentClient< + runtime.Types.Result.GetResult< + Prisma.$AgentPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Agent that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentFindFirstArgs} args - Arguments to find a Agent + * @example + * // Get one Agent + * const agent = await prisma.agent.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentClient< + runtime.Types.Result.GetResult< + Prisma.$AgentPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Agent that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentFindFirstOrThrowArgs} args - Arguments to find a Agent + * @example + * // Get one Agent + * const agent = await prisma.agent.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentClient< + runtime.Types.Result.GetResult< + Prisma.$AgentPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Agents that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Agents + * const agents = await prisma.agent.findMany() + * + * // Get first 10 Agents + * const agents = await prisma.agent.findMany({ take: 10 }) + * + * // Only select the `id` + * const agentWithIdOnly = await prisma.agent.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult, T, 'findMany', GlobalOmitOptions> + > + + /** + * Create a Agent. + * @param {AgentCreateArgs} args - Arguments to create a Agent. + * @example + * // Create one Agent + * const Agent = await prisma.agent.create({ + * data: { + * // ... data to create a Agent + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentClient< + runtime.Types.Result.GetResult, T, 'create', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Agents. + * @param {AgentCreateManyArgs} args - Arguments to create many Agents. + * @example + * // Create many Agents + * const agent = await prisma.agent.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Agents and returns the data saved in the database. + * @param {AgentCreateManyAndReturnArgs} args - Arguments to create many Agents. + * @example + * // Create many Agents + * const agent = await prisma.agent.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Agents and only return the `id` + * const agentWithIdOnly = await prisma.agent.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AgentPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Agent. + * @param {AgentDeleteArgs} args - Arguments to delete one Agent. + * @example + * // Delete one Agent + * const Agent = await prisma.agent.delete({ + * where: { + * // ... filter to delete one Agent + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentClient< + runtime.Types.Result.GetResult, T, 'delete', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Agent. + * @param {AgentUpdateArgs} args - Arguments to update one Agent. + * @example + * // Update one Agent + * const agent = await prisma.agent.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentClient< + runtime.Types.Result.GetResult, T, 'update', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Agents. + * @param {AgentDeleteManyArgs} args - Arguments to filter Agents to delete. + * @example + * // Delete a few Agents + * const { count } = await prisma.agent.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Agents. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Agents + * const agent = await prisma.agent.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Agents and returns the data updated in the database. + * @param {AgentUpdateManyAndReturnArgs} args - Arguments to update many Agents. + * @example + * // Update many Agents + * const agent = await prisma.agent.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Agents and only return the `id` + * const agentWithIdOnly = await prisma.agent.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AgentPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Agent. + * @param {AgentUpsertArgs} args - Arguments to update or create a Agent. + * @example + * // Update or create a Agent + * const agent = await prisma.agent.upsert({ + * create: { + * // ... data to create a Agent + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Agent we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentClient< + runtime.Types.Result.GetResult, T, 'upsert', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Agents. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentCountArgs} args - Arguments to filter Agents to count. + * @example + * // Count the number of Agents + * const count = await prisma.agent.count({ + * where: { + * // ... the filter for the Agents we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Agent. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Agent. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends AgentGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AgentGroupByArgs['orderBy'] } + : { orderBy?: AgentGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetAgentGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Agent model + */ + readonly fields: AgentFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Agent. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__AgentClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + user = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__UserClient< + | runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + provider = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ProviderClient< + runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + modelRef = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ModelClient< + runtime.Types.Result.GetResult< + Prisma.$ModelPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + team = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TeamClient< + | runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + agentSessions = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + skills = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AgentSkillPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Agent model + */ +export interface AgentFieldRefs { + readonly id: Prisma.FieldRef<'Agent', 'String'> + readonly type: Prisma.FieldRef<'Agent', 'AgentType'> + readonly enabled: Prisma.FieldRef<'Agent', 'Boolean'> + readonly soul: Prisma.FieldRef<'Agent', 'String'> + readonly providerId: Prisma.FieldRef<'Agent', 'String'> + readonly modelId: Prisma.FieldRef<'Agent', 'String'> + readonly teamId: Prisma.FieldRef<'Agent', 'String'> + readonly config: Prisma.FieldRef<'Agent', 'Json'> + readonly createdAt: Prisma.FieldRef<'Agent', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Agent', 'DateTime'> +} + +// Custom InputTypes +/** + * Agent findUnique + */ +export type AgentFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null + /** + * Filter, which Agent to fetch. + */ + where: Prisma.AgentWhereUniqueInput +} + +/** + * Agent findUniqueOrThrow + */ +export type AgentFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null + /** + * Filter, which Agent to fetch. + */ + where: Prisma.AgentWhereUniqueInput +} + +/** + * Agent findFirst + */ +export type AgentFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null + /** + * Filter, which Agent to fetch. + */ + where?: Prisma.AgentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Agents to fetch. + */ + orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Agents. + */ + cursor?: Prisma.AgentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Agents from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Agents. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Agents. + */ + distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[] +} + +/** + * Agent findFirstOrThrow + */ +export type AgentFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null + /** + * Filter, which Agent to fetch. + */ + where?: Prisma.AgentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Agents to fetch. + */ + orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Agents. + */ + cursor?: Prisma.AgentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Agents from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Agents. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Agents. + */ + distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[] +} + +/** + * Agent findMany + */ +export type AgentFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null + /** + * Filter, which Agents to fetch. + */ + where?: Prisma.AgentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Agents to fetch. + */ + orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Agents. + */ + cursor?: Prisma.AgentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Agents from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Agents. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Agents. + */ + distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[] +} + +/** + * Agent create + */ +export type AgentCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null + /** + * The data needed to create a Agent. + */ + data: Prisma.XOR +} + +/** + * Agent createMany + */ +export type AgentCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Agents. + */ + data: Prisma.AgentCreateManyInput | Prisma.AgentCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Agent createManyAndReturn + */ +export type AgentCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * The data used to create many Agents. + */ + data: Prisma.AgentCreateManyInput | Prisma.AgentCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentIncludeCreateManyAndReturn | null +} + +/** + * Agent update + */ +export type AgentUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null + /** + * The data needed to update a Agent. + */ + data: Prisma.XOR + /** + * Choose, which Agent to update. + */ + where: Prisma.AgentWhereUniqueInput +} + +/** + * Agent updateMany + */ +export type AgentUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Agents. + */ + data: Prisma.XOR + /** + * Filter which Agents to update + */ + where?: Prisma.AgentWhereInput + /** + * Limit how many Agents to update. + */ + limit?: number +} + +/** + * Agent updateManyAndReturn + */ +export type AgentUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * The data used to update Agents. + */ + data: Prisma.XOR + /** + * Filter which Agents to update + */ + where?: Prisma.AgentWhereInput + /** + * Limit how many Agents to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentIncludeUpdateManyAndReturn | null +} + +/** + * Agent upsert + */ +export type AgentUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null + /** + * The filter to search for the Agent to update in case it exists. + */ + where: Prisma.AgentWhereUniqueInput + /** + * In case the Agent found by the `where` argument doesn't exist, create a new Agent with this data. + */ + create: Prisma.XOR + /** + * In case the Agent was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Agent delete + */ +export type AgentDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null + /** + * Filter which Agent to delete. + */ + where: Prisma.AgentWhereUniqueInput +} + +/** + * Agent deleteMany + */ +export type AgentDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Agents to delete + */ + where?: Prisma.AgentWhereInput + /** + * Limit how many Agents to delete. + */ + limit?: number +} + +/** + * Agent.provider + */ +export type Agent$providerArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelect | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderInclude | null + where?: Prisma.ProviderWhereInput +} + +/** + * Agent.modelRef + */ +export type Agent$modelRefArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelect | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelInclude | null + where?: Prisma.ModelWhereInput +} + +/** + * Agent.agentSessions + */ +export type Agent$agentSessionsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelect | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionInclude | null + where?: Prisma.AgentSessionWhereInput + orderBy?: + | Prisma.AgentSessionOrderByWithRelationInput + | Prisma.AgentSessionOrderByWithRelationInput[] + cursor?: Prisma.AgentSessionWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AgentSessionScalarFieldEnum | Prisma.AgentSessionScalarFieldEnum[] +} + +/** + * Agent.skills + */ +export type Agent$skillsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelect | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillInclude | null + where?: Prisma.AgentSkillWhereInput + orderBy?: Prisma.AgentSkillOrderByWithRelationInput | Prisma.AgentSkillOrderByWithRelationInput[] + cursor?: Prisma.AgentSkillWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AgentSkillScalarFieldEnum | Prisma.AgentSkillScalarFieldEnum[] +} + +/** + * Agent without action + */ +export type AgentDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null +} diff --git a/packages/db/src/generated/prisma/models/AgentSession.ts b/packages/db/src/generated/prisma/models/AgentSession.ts new file mode 100644 index 00000000..97f93456 --- /dev/null +++ b/packages/db/src/generated/prisma/models/AgentSession.ts @@ -0,0 +1,2304 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `AgentSession` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model AgentSession + * + */ +export type AgentSessionModel = runtime.Types.Result.DefaultSelection + +export type AggregateAgentSession = { + _count: AgentSessionCountAggregateOutputType | null + _min: AgentSessionMinAggregateOutputType | null + _max: AgentSessionMaxAggregateOutputType | null +} + +export type AgentSessionMinAggregateOutputType = { + id: string | null + agentId: string | null + userId: string | null + cwd: string | null + leafId: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type AgentSessionMaxAggregateOutputType = { + id: string | null + agentId: string | null + userId: string | null + cwd: string | null + leafId: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type AgentSessionCountAggregateOutputType = { + id: number + agentId: number + userId: number + cwd: number + leafId: number + createdAt: number + updatedAt: number + _all: number +} + +export type AgentSessionMinAggregateInputType = { + id?: true + agentId?: true + userId?: true + cwd?: true + leafId?: true + createdAt?: true + updatedAt?: true +} + +export type AgentSessionMaxAggregateInputType = { + id?: true + agentId?: true + userId?: true + cwd?: true + leafId?: true + createdAt?: true + updatedAt?: true +} + +export type AgentSessionCountAggregateInputType = { + id?: true + agentId?: true + userId?: true + cwd?: true + leafId?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type AgentSessionAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AgentSession to aggregate. + */ + where?: Prisma.AgentSessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AgentSessions to fetch. + */ + orderBy?: + | Prisma.AgentSessionOrderByWithRelationInput + | Prisma.AgentSessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AgentSessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AgentSessions from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AgentSessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned AgentSessions + **/ + _count?: true | AgentSessionCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AgentSessionMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AgentSessionMaxAggregateInputType +} + +export type GetAgentSessionAggregateType = { + [P in keyof T & keyof AggregateAgentSession]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type AgentSessionGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AgentSessionWhereInput + orderBy?: + | Prisma.AgentSessionOrderByWithAggregationInput + | Prisma.AgentSessionOrderByWithAggregationInput[] + by: Prisma.AgentSessionScalarFieldEnum[] | Prisma.AgentSessionScalarFieldEnum + having?: Prisma.AgentSessionScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AgentSessionCountAggregateInputType | true + _min?: AgentSessionMinAggregateInputType + _max?: AgentSessionMaxAggregateInputType +} + +export type AgentSessionGroupByOutputType = { + id: string + agentId: string + userId: string | null + cwd: string + leafId: string | null + createdAt: Date + updatedAt: Date + _count: AgentSessionCountAggregateOutputType | null + _min: AgentSessionMinAggregateOutputType | null + _max: AgentSessionMaxAggregateOutputType | null +} + +export type GetAgentSessionGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof AgentSessionGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type AgentSessionWhereInput = { + AND?: Prisma.AgentSessionWhereInput | Prisma.AgentSessionWhereInput[] + OR?: Prisma.AgentSessionWhereInput[] + NOT?: Prisma.AgentSessionWhereInput | Prisma.AgentSessionWhereInput[] + id?: Prisma.StringFilter<'AgentSession'> | string + agentId?: Prisma.StringFilter<'AgentSession'> | string + userId?: Prisma.StringNullableFilter<'AgentSession'> | string | null + cwd?: Prisma.StringFilter<'AgentSession'> | string + leafId?: Prisma.StringNullableFilter<'AgentSession'> | string | null + createdAt?: Prisma.DateTimeFilter<'AgentSession'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AgentSession'> | Date | string + agent?: Prisma.XOR + user?: Prisma.XOR | null + entries?: Prisma.AgentSessionEntryListRelationFilter + comments?: Prisma.AssetCommentListRelationFilter +} + +export type AgentSessionOrderByWithRelationInput = { + id?: Prisma.SortOrder + agentId?: Prisma.SortOrder + userId?: Prisma.SortOrderInput | Prisma.SortOrder + cwd?: Prisma.SortOrder + leafId?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + agent?: Prisma.AgentOrderByWithRelationInput + user?: Prisma.UserOrderByWithRelationInput + entries?: Prisma.AgentSessionEntryOrderByRelationAggregateInput + comments?: Prisma.AssetCommentOrderByRelationAggregateInput +} + +export type AgentSessionWhereUniqueInput = Prisma.AtLeast< + { + id?: string + AND?: Prisma.AgentSessionWhereInput | Prisma.AgentSessionWhereInput[] + OR?: Prisma.AgentSessionWhereInput[] + NOT?: Prisma.AgentSessionWhereInput | Prisma.AgentSessionWhereInput[] + agentId?: Prisma.StringFilter<'AgentSession'> | string + userId?: Prisma.StringNullableFilter<'AgentSession'> | string | null + cwd?: Prisma.StringFilter<'AgentSession'> | string + leafId?: Prisma.StringNullableFilter<'AgentSession'> | string | null + createdAt?: Prisma.DateTimeFilter<'AgentSession'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AgentSession'> | Date | string + agent?: Prisma.XOR + user?: Prisma.XOR | null + entries?: Prisma.AgentSessionEntryListRelationFilter + comments?: Prisma.AssetCommentListRelationFilter + }, + 'id' +> + +export type AgentSessionOrderByWithAggregationInput = { + id?: Prisma.SortOrder + agentId?: Prisma.SortOrder + userId?: Prisma.SortOrderInput | Prisma.SortOrder + cwd?: Prisma.SortOrder + leafId?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.AgentSessionCountOrderByAggregateInput + _max?: Prisma.AgentSessionMaxOrderByAggregateInput + _min?: Prisma.AgentSessionMinOrderByAggregateInput +} + +export type AgentSessionScalarWhereWithAggregatesInput = { + AND?: + | Prisma.AgentSessionScalarWhereWithAggregatesInput + | Prisma.AgentSessionScalarWhereWithAggregatesInput[] + OR?: Prisma.AgentSessionScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.AgentSessionScalarWhereWithAggregatesInput + | Prisma.AgentSessionScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'AgentSession'> | string + agentId?: Prisma.StringWithAggregatesFilter<'AgentSession'> | string + userId?: Prisma.StringNullableWithAggregatesFilter<'AgentSession'> | string | null + cwd?: Prisma.StringWithAggregatesFilter<'AgentSession'> | string + leafId?: Prisma.StringNullableWithAggregatesFilter<'AgentSession'> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<'AgentSession'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'AgentSession'> | Date | string +} + +export type AgentSessionCreateInput = { + id?: string + cwd: string + leafId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + agent: Prisma.AgentCreateNestedOneWithoutAgentSessionsInput + user?: Prisma.UserCreateNestedOneWithoutAgentSessionsInput + entries?: Prisma.AgentSessionEntryCreateNestedManyWithoutSessionInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutSessionInput +} + +export type AgentSessionUncheckedCreateInput = { + id?: string + agentId: string + userId?: string | null + cwd: string + leafId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + entries?: Prisma.AgentSessionEntryUncheckedCreateNestedManyWithoutSessionInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutSessionInput +} + +export type AgentSessionUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agent?: Prisma.AgentUpdateOneRequiredWithoutAgentSessionsNestedInput + user?: Prisma.UserUpdateOneWithoutAgentSessionsNestedInput + entries?: Prisma.AgentSessionEntryUpdateManyWithoutSessionNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutSessionNestedInput +} + +export type AgentSessionUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + agentId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + entries?: Prisma.AgentSessionEntryUncheckedUpdateManyWithoutSessionNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutSessionNestedInput +} + +export type AgentSessionCreateManyInput = { + id?: string + agentId: string + userId?: string | null + cwd: string + leafId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AgentSessionUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentSessionUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + agentId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentSessionListRelationFilter = { + every?: Prisma.AgentSessionWhereInput + some?: Prisma.AgentSessionWhereInput + none?: Prisma.AgentSessionWhereInput +} + +export type AgentSessionOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AgentSessionNullableScalarRelationFilter = { + is?: Prisma.AgentSessionWhereInput | null + isNot?: Prisma.AgentSessionWhereInput | null +} + +export type AgentSessionCountOrderByAggregateInput = { + id?: Prisma.SortOrder + agentId?: Prisma.SortOrder + userId?: Prisma.SortOrder + cwd?: Prisma.SortOrder + leafId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AgentSessionMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + agentId?: Prisma.SortOrder + userId?: Prisma.SortOrder + cwd?: Prisma.SortOrder + leafId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AgentSessionMinOrderByAggregateInput = { + id?: Prisma.SortOrder + agentId?: Prisma.SortOrder + userId?: Prisma.SortOrder + cwd?: Prisma.SortOrder + leafId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AgentSessionScalarRelationFilter = { + is?: Prisma.AgentSessionWhereInput + isNot?: Prisma.AgentSessionWhereInput +} + +export type AgentSessionCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.AgentSessionCreateWithoutUserInput, + Prisma.AgentSessionUncheckedCreateWithoutUserInput + > + | Prisma.AgentSessionCreateWithoutUserInput[] + | Prisma.AgentSessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.AgentSessionCreateOrConnectWithoutUserInput + | Prisma.AgentSessionCreateOrConnectWithoutUserInput[] + createMany?: Prisma.AgentSessionCreateManyUserInputEnvelope + connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] +} + +export type AgentSessionUncheckedCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.AgentSessionCreateWithoutUserInput, + Prisma.AgentSessionUncheckedCreateWithoutUserInput + > + | Prisma.AgentSessionCreateWithoutUserInput[] + | Prisma.AgentSessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.AgentSessionCreateOrConnectWithoutUserInput + | Prisma.AgentSessionCreateOrConnectWithoutUserInput[] + createMany?: Prisma.AgentSessionCreateManyUserInputEnvelope + connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] +} + +export type AgentSessionUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentSessionCreateWithoutUserInput, + Prisma.AgentSessionUncheckedCreateWithoutUserInput + > + | Prisma.AgentSessionCreateWithoutUserInput[] + | Prisma.AgentSessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.AgentSessionCreateOrConnectWithoutUserInput + | Prisma.AgentSessionCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.AgentSessionUpsertWithWhereUniqueWithoutUserInput + | Prisma.AgentSessionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.AgentSessionCreateManyUserInputEnvelope + set?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + disconnect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + delete?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + update?: + | Prisma.AgentSessionUpdateWithWhereUniqueWithoutUserInput + | Prisma.AgentSessionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.AgentSessionUpdateManyWithWhereWithoutUserInput + | Prisma.AgentSessionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.AgentSessionScalarWhereInput | Prisma.AgentSessionScalarWhereInput[] +} + +export type AgentSessionUncheckedUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentSessionCreateWithoutUserInput, + Prisma.AgentSessionUncheckedCreateWithoutUserInput + > + | Prisma.AgentSessionCreateWithoutUserInput[] + | Prisma.AgentSessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.AgentSessionCreateOrConnectWithoutUserInput + | Prisma.AgentSessionCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.AgentSessionUpsertWithWhereUniqueWithoutUserInput + | Prisma.AgentSessionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.AgentSessionCreateManyUserInputEnvelope + set?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + disconnect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + delete?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + update?: + | Prisma.AgentSessionUpdateWithWhereUniqueWithoutUserInput + | Prisma.AgentSessionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.AgentSessionUpdateManyWithWhereWithoutUserInput + | Prisma.AgentSessionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.AgentSessionScalarWhereInput | Prisma.AgentSessionScalarWhereInput[] +} + +export type AgentSessionCreateNestedOneWithoutCommentsInput = { + create?: Prisma.XOR< + Prisma.AgentSessionCreateWithoutCommentsInput, + Prisma.AgentSessionUncheckedCreateWithoutCommentsInput + > + connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutCommentsInput + connect?: Prisma.AgentSessionWhereUniqueInput +} + +export type AgentSessionUpdateOneWithoutCommentsNestedInput = { + create?: Prisma.XOR< + Prisma.AgentSessionCreateWithoutCommentsInput, + Prisma.AgentSessionUncheckedCreateWithoutCommentsInput + > + connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutCommentsInput + upsert?: Prisma.AgentSessionUpsertWithoutCommentsInput + disconnect?: Prisma.AgentSessionWhereInput | boolean + delete?: Prisma.AgentSessionWhereInput | boolean + connect?: Prisma.AgentSessionWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AgentSessionUpdateToOneWithWhereWithoutCommentsInput, + Prisma.AgentSessionUpdateWithoutCommentsInput + >, + Prisma.AgentSessionUncheckedUpdateWithoutCommentsInput + > +} + +export type AgentSessionCreateNestedManyWithoutAgentInput = { + create?: + | Prisma.XOR< + Prisma.AgentSessionCreateWithoutAgentInput, + Prisma.AgentSessionUncheckedCreateWithoutAgentInput + > + | Prisma.AgentSessionCreateWithoutAgentInput[] + | Prisma.AgentSessionUncheckedCreateWithoutAgentInput[] + connectOrCreate?: + | Prisma.AgentSessionCreateOrConnectWithoutAgentInput + | Prisma.AgentSessionCreateOrConnectWithoutAgentInput[] + createMany?: Prisma.AgentSessionCreateManyAgentInputEnvelope + connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] +} + +export type AgentSessionUncheckedCreateNestedManyWithoutAgentInput = { + create?: + | Prisma.XOR< + Prisma.AgentSessionCreateWithoutAgentInput, + Prisma.AgentSessionUncheckedCreateWithoutAgentInput + > + | Prisma.AgentSessionCreateWithoutAgentInput[] + | Prisma.AgentSessionUncheckedCreateWithoutAgentInput[] + connectOrCreate?: + | Prisma.AgentSessionCreateOrConnectWithoutAgentInput + | Prisma.AgentSessionCreateOrConnectWithoutAgentInput[] + createMany?: Prisma.AgentSessionCreateManyAgentInputEnvelope + connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] +} + +export type AgentSessionUpdateManyWithoutAgentNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentSessionCreateWithoutAgentInput, + Prisma.AgentSessionUncheckedCreateWithoutAgentInput + > + | Prisma.AgentSessionCreateWithoutAgentInput[] + | Prisma.AgentSessionUncheckedCreateWithoutAgentInput[] + connectOrCreate?: + | Prisma.AgentSessionCreateOrConnectWithoutAgentInput + | Prisma.AgentSessionCreateOrConnectWithoutAgentInput[] + upsert?: + | Prisma.AgentSessionUpsertWithWhereUniqueWithoutAgentInput + | Prisma.AgentSessionUpsertWithWhereUniqueWithoutAgentInput[] + createMany?: Prisma.AgentSessionCreateManyAgentInputEnvelope + set?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + disconnect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + delete?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + update?: + | Prisma.AgentSessionUpdateWithWhereUniqueWithoutAgentInput + | Prisma.AgentSessionUpdateWithWhereUniqueWithoutAgentInput[] + updateMany?: + | Prisma.AgentSessionUpdateManyWithWhereWithoutAgentInput + | Prisma.AgentSessionUpdateManyWithWhereWithoutAgentInput[] + deleteMany?: Prisma.AgentSessionScalarWhereInput | Prisma.AgentSessionScalarWhereInput[] +} + +export type AgentSessionUncheckedUpdateManyWithoutAgentNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentSessionCreateWithoutAgentInput, + Prisma.AgentSessionUncheckedCreateWithoutAgentInput + > + | Prisma.AgentSessionCreateWithoutAgentInput[] + | Prisma.AgentSessionUncheckedCreateWithoutAgentInput[] + connectOrCreate?: + | Prisma.AgentSessionCreateOrConnectWithoutAgentInput + | Prisma.AgentSessionCreateOrConnectWithoutAgentInput[] + upsert?: + | Prisma.AgentSessionUpsertWithWhereUniqueWithoutAgentInput + | Prisma.AgentSessionUpsertWithWhereUniqueWithoutAgentInput[] + createMany?: Prisma.AgentSessionCreateManyAgentInputEnvelope + set?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + disconnect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + delete?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] + update?: + | Prisma.AgentSessionUpdateWithWhereUniqueWithoutAgentInput + | Prisma.AgentSessionUpdateWithWhereUniqueWithoutAgentInput[] + updateMany?: + | Prisma.AgentSessionUpdateManyWithWhereWithoutAgentInput + | Prisma.AgentSessionUpdateManyWithWhereWithoutAgentInput[] + deleteMany?: Prisma.AgentSessionScalarWhereInput | Prisma.AgentSessionScalarWhereInput[] +} + +export type AgentSessionCreateNestedOneWithoutEntriesInput = { + create?: Prisma.XOR< + Prisma.AgentSessionCreateWithoutEntriesInput, + Prisma.AgentSessionUncheckedCreateWithoutEntriesInput + > + connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutEntriesInput + connect?: Prisma.AgentSessionWhereUniqueInput +} + +export type AgentSessionUpdateOneRequiredWithoutEntriesNestedInput = { + create?: Prisma.XOR< + Prisma.AgentSessionCreateWithoutEntriesInput, + Prisma.AgentSessionUncheckedCreateWithoutEntriesInput + > + connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutEntriesInput + upsert?: Prisma.AgentSessionUpsertWithoutEntriesInput + connect?: Prisma.AgentSessionWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AgentSessionUpdateToOneWithWhereWithoutEntriesInput, + Prisma.AgentSessionUpdateWithoutEntriesInput + >, + Prisma.AgentSessionUncheckedUpdateWithoutEntriesInput + > +} + +export type AgentSessionCreateWithoutUserInput = { + id?: string + cwd: string + leafId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + agent: Prisma.AgentCreateNestedOneWithoutAgentSessionsInput + entries?: Prisma.AgentSessionEntryCreateNestedManyWithoutSessionInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutSessionInput +} + +export type AgentSessionUncheckedCreateWithoutUserInput = { + id?: string + agentId: string + cwd: string + leafId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + entries?: Prisma.AgentSessionEntryUncheckedCreateNestedManyWithoutSessionInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutSessionInput +} + +export type AgentSessionCreateOrConnectWithoutUserInput = { + where: Prisma.AgentSessionWhereUniqueInput + create: Prisma.XOR< + Prisma.AgentSessionCreateWithoutUserInput, + Prisma.AgentSessionUncheckedCreateWithoutUserInput + > +} + +export type AgentSessionCreateManyUserInputEnvelope = { + data: Prisma.AgentSessionCreateManyUserInput | Prisma.AgentSessionCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type AgentSessionUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.AgentSessionWhereUniqueInput + update: Prisma.XOR< + Prisma.AgentSessionUpdateWithoutUserInput, + Prisma.AgentSessionUncheckedUpdateWithoutUserInput + > + create: Prisma.XOR< + Prisma.AgentSessionCreateWithoutUserInput, + Prisma.AgentSessionUncheckedCreateWithoutUserInput + > +} + +export type AgentSessionUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.AgentSessionWhereUniqueInput + data: Prisma.XOR< + Prisma.AgentSessionUpdateWithoutUserInput, + Prisma.AgentSessionUncheckedUpdateWithoutUserInput + > +} + +export type AgentSessionUpdateManyWithWhereWithoutUserInput = { + where: Prisma.AgentSessionScalarWhereInput + data: Prisma.XOR< + Prisma.AgentSessionUpdateManyMutationInput, + Prisma.AgentSessionUncheckedUpdateManyWithoutUserInput + > +} + +export type AgentSessionScalarWhereInput = { + AND?: Prisma.AgentSessionScalarWhereInput | Prisma.AgentSessionScalarWhereInput[] + OR?: Prisma.AgentSessionScalarWhereInput[] + NOT?: Prisma.AgentSessionScalarWhereInput | Prisma.AgentSessionScalarWhereInput[] + id?: Prisma.StringFilter<'AgentSession'> | string + agentId?: Prisma.StringFilter<'AgentSession'> | string + userId?: Prisma.StringNullableFilter<'AgentSession'> | string | null + cwd?: Prisma.StringFilter<'AgentSession'> | string + leafId?: Prisma.StringNullableFilter<'AgentSession'> | string | null + createdAt?: Prisma.DateTimeFilter<'AgentSession'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AgentSession'> | Date | string +} + +export type AgentSessionCreateWithoutCommentsInput = { + id?: string + cwd: string + leafId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + agent: Prisma.AgentCreateNestedOneWithoutAgentSessionsInput + user?: Prisma.UserCreateNestedOneWithoutAgentSessionsInput + entries?: Prisma.AgentSessionEntryCreateNestedManyWithoutSessionInput +} + +export type AgentSessionUncheckedCreateWithoutCommentsInput = { + id?: string + agentId: string + userId?: string | null + cwd: string + leafId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + entries?: Prisma.AgentSessionEntryUncheckedCreateNestedManyWithoutSessionInput +} + +export type AgentSessionCreateOrConnectWithoutCommentsInput = { + where: Prisma.AgentSessionWhereUniqueInput + create: Prisma.XOR< + Prisma.AgentSessionCreateWithoutCommentsInput, + Prisma.AgentSessionUncheckedCreateWithoutCommentsInput + > +} + +export type AgentSessionUpsertWithoutCommentsInput = { + update: Prisma.XOR< + Prisma.AgentSessionUpdateWithoutCommentsInput, + Prisma.AgentSessionUncheckedUpdateWithoutCommentsInput + > + create: Prisma.XOR< + Prisma.AgentSessionCreateWithoutCommentsInput, + Prisma.AgentSessionUncheckedCreateWithoutCommentsInput + > + where?: Prisma.AgentSessionWhereInput +} + +export type AgentSessionUpdateToOneWithWhereWithoutCommentsInput = { + where?: Prisma.AgentSessionWhereInput + data: Prisma.XOR< + Prisma.AgentSessionUpdateWithoutCommentsInput, + Prisma.AgentSessionUncheckedUpdateWithoutCommentsInput + > +} + +export type AgentSessionUpdateWithoutCommentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agent?: Prisma.AgentUpdateOneRequiredWithoutAgentSessionsNestedInput + user?: Prisma.UserUpdateOneWithoutAgentSessionsNestedInput + entries?: Prisma.AgentSessionEntryUpdateManyWithoutSessionNestedInput +} + +export type AgentSessionUncheckedUpdateWithoutCommentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + agentId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + entries?: Prisma.AgentSessionEntryUncheckedUpdateManyWithoutSessionNestedInput +} + +export type AgentSessionCreateWithoutAgentInput = { + id?: string + cwd: string + leafId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + user?: Prisma.UserCreateNestedOneWithoutAgentSessionsInput + entries?: Prisma.AgentSessionEntryCreateNestedManyWithoutSessionInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutSessionInput +} + +export type AgentSessionUncheckedCreateWithoutAgentInput = { + id?: string + userId?: string | null + cwd: string + leafId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + entries?: Prisma.AgentSessionEntryUncheckedCreateNestedManyWithoutSessionInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutSessionInput +} + +export type AgentSessionCreateOrConnectWithoutAgentInput = { + where: Prisma.AgentSessionWhereUniqueInput + create: Prisma.XOR< + Prisma.AgentSessionCreateWithoutAgentInput, + Prisma.AgentSessionUncheckedCreateWithoutAgentInput + > +} + +export type AgentSessionCreateManyAgentInputEnvelope = { + data: Prisma.AgentSessionCreateManyAgentInput | Prisma.AgentSessionCreateManyAgentInput[] + skipDuplicates?: boolean +} + +export type AgentSessionUpsertWithWhereUniqueWithoutAgentInput = { + where: Prisma.AgentSessionWhereUniqueInput + update: Prisma.XOR< + Prisma.AgentSessionUpdateWithoutAgentInput, + Prisma.AgentSessionUncheckedUpdateWithoutAgentInput + > + create: Prisma.XOR< + Prisma.AgentSessionCreateWithoutAgentInput, + Prisma.AgentSessionUncheckedCreateWithoutAgentInput + > +} + +export type AgentSessionUpdateWithWhereUniqueWithoutAgentInput = { + where: Prisma.AgentSessionWhereUniqueInput + data: Prisma.XOR< + Prisma.AgentSessionUpdateWithoutAgentInput, + Prisma.AgentSessionUncheckedUpdateWithoutAgentInput + > +} + +export type AgentSessionUpdateManyWithWhereWithoutAgentInput = { + where: Prisma.AgentSessionScalarWhereInput + data: Prisma.XOR< + Prisma.AgentSessionUpdateManyMutationInput, + Prisma.AgentSessionUncheckedUpdateManyWithoutAgentInput + > +} + +export type AgentSessionCreateWithoutEntriesInput = { + id?: string + cwd: string + leafId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + agent: Prisma.AgentCreateNestedOneWithoutAgentSessionsInput + user?: Prisma.UserCreateNestedOneWithoutAgentSessionsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutSessionInput +} + +export type AgentSessionUncheckedCreateWithoutEntriesInput = { + id?: string + agentId: string + userId?: string | null + cwd: string + leafId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutSessionInput +} + +export type AgentSessionCreateOrConnectWithoutEntriesInput = { + where: Prisma.AgentSessionWhereUniqueInput + create: Prisma.XOR< + Prisma.AgentSessionCreateWithoutEntriesInput, + Prisma.AgentSessionUncheckedCreateWithoutEntriesInput + > +} + +export type AgentSessionUpsertWithoutEntriesInput = { + update: Prisma.XOR< + Prisma.AgentSessionUpdateWithoutEntriesInput, + Prisma.AgentSessionUncheckedUpdateWithoutEntriesInput + > + create: Prisma.XOR< + Prisma.AgentSessionCreateWithoutEntriesInput, + Prisma.AgentSessionUncheckedCreateWithoutEntriesInput + > + where?: Prisma.AgentSessionWhereInput +} + +export type AgentSessionUpdateToOneWithWhereWithoutEntriesInput = { + where?: Prisma.AgentSessionWhereInput + data: Prisma.XOR< + Prisma.AgentSessionUpdateWithoutEntriesInput, + Prisma.AgentSessionUncheckedUpdateWithoutEntriesInput + > +} + +export type AgentSessionUpdateWithoutEntriesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agent?: Prisma.AgentUpdateOneRequiredWithoutAgentSessionsNestedInput + user?: Prisma.UserUpdateOneWithoutAgentSessionsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutSessionNestedInput +} + +export type AgentSessionUncheckedUpdateWithoutEntriesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + agentId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutSessionNestedInput +} + +export type AgentSessionCreateManyUserInput = { + id?: string + agentId: string + cwd: string + leafId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AgentSessionUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agent?: Prisma.AgentUpdateOneRequiredWithoutAgentSessionsNestedInput + entries?: Prisma.AgentSessionEntryUpdateManyWithoutSessionNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutSessionNestedInput +} + +export type AgentSessionUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + agentId?: Prisma.StringFieldUpdateOperationsInput | string + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + entries?: Prisma.AgentSessionEntryUncheckedUpdateManyWithoutSessionNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutSessionNestedInput +} + +export type AgentSessionUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + agentId?: Prisma.StringFieldUpdateOperationsInput | string + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentSessionCreateManyAgentInput = { + id?: string + userId?: string | null + cwd: string + leafId?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AgentSessionUpdateWithoutAgentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneWithoutAgentSessionsNestedInput + entries?: Prisma.AgentSessionEntryUpdateManyWithoutSessionNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutSessionNestedInput +} + +export type AgentSessionUncheckedUpdateWithoutAgentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + entries?: Prisma.AgentSessionEntryUncheckedUpdateManyWithoutSessionNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutSessionNestedInput +} + +export type AgentSessionUncheckedUpdateManyWithoutAgentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cwd?: Prisma.StringFieldUpdateOperationsInput | string + leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +/** + * Count Type AgentSessionCountOutputType + */ + +export type AgentSessionCountOutputType = { + entries: number + comments: number +} + +export type AgentSessionCountOutputTypeSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + entries?: boolean | AgentSessionCountOutputTypeCountEntriesArgs + comments?: boolean | AgentSessionCountOutputTypeCountCommentsArgs +} + +/** + * AgentSessionCountOutputType without action + */ +export type AgentSessionCountOutputTypeDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionCountOutputType + */ + select?: Prisma.AgentSessionCountOutputTypeSelect | null +} + +/** + * AgentSessionCountOutputType without action + */ +export type AgentSessionCountOutputTypeCountEntriesArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AgentSessionEntryWhereInput +} + +/** + * AgentSessionCountOutputType without action + */ +export type AgentSessionCountOutputTypeCountCommentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetCommentWhereInput +} + +export type AgentSessionSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + agentId?: boolean + userId?: boolean + cwd?: boolean + leafId?: boolean + createdAt?: boolean + updatedAt?: boolean + agent?: boolean | Prisma.AgentDefaultArgs + user?: boolean | Prisma.AgentSession$userArgs + entries?: boolean | Prisma.AgentSession$entriesArgs + comments?: boolean | Prisma.AgentSession$commentsArgs + _count?: boolean | Prisma.AgentSessionCountOutputTypeDefaultArgs + }, + ExtArgs['result']['agentSession'] +> + +export type AgentSessionSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + agentId?: boolean + userId?: boolean + cwd?: boolean + leafId?: boolean + createdAt?: boolean + updatedAt?: boolean + agent?: boolean | Prisma.AgentDefaultArgs + user?: boolean | Prisma.AgentSession$userArgs + }, + ExtArgs['result']['agentSession'] +> + +export type AgentSessionSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + agentId?: boolean + userId?: boolean + cwd?: boolean + leafId?: boolean + createdAt?: boolean + updatedAt?: boolean + agent?: boolean | Prisma.AgentDefaultArgs + user?: boolean | Prisma.AgentSession$userArgs + }, + ExtArgs['result']['agentSession'] +> + +export type AgentSessionSelectScalar = { + id?: boolean + agentId?: boolean + userId?: boolean + cwd?: boolean + leafId?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type AgentSessionOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'agentId' | 'userId' | 'cwd' | 'leafId' | 'createdAt' | 'updatedAt', + ExtArgs['result']['agentSession'] +> +export type AgentSessionInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + agent?: boolean | Prisma.AgentDefaultArgs + user?: boolean | Prisma.AgentSession$userArgs + entries?: boolean | Prisma.AgentSession$entriesArgs + comments?: boolean | Prisma.AgentSession$commentsArgs + _count?: boolean | Prisma.AgentSessionCountOutputTypeDefaultArgs +} +export type AgentSessionIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + agent?: boolean | Prisma.AgentDefaultArgs + user?: boolean | Prisma.AgentSession$userArgs +} +export type AgentSessionIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + agent?: boolean | Prisma.AgentDefaultArgs + user?: boolean | Prisma.AgentSession$userArgs +} + +export type $AgentSessionPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'AgentSession' + objects: { + agent: Prisma.$AgentPayload + user: Prisma.$UserPayload | null + entries: Prisma.$AgentSessionEntryPayload[] + comments: Prisma.$AssetCommentPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + agentId: string + userId: string | null + cwd: string + leafId: string | null + createdAt: Date + updatedAt: Date + }, + ExtArgs['result']['agentSession'] + > + composites: {} +} + +export type AgentSessionGetPayload = + runtime.Types.Result.GetResult + +export type AgentSessionCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: AgentSessionCountAggregateInputType | true +} + +export interface AgentSessionDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['AgentSession'] + meta: { name: 'AgentSession' } + } + /** + * Find zero or one AgentSession that matches the filter. + * @param {AgentSessionFindUniqueArgs} args - Arguments to find a AgentSession + * @example + * // Get one AgentSession + * const agentSession = await prisma.agentSession.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one AgentSession that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AgentSessionFindUniqueOrThrowArgs} args - Arguments to find a AgentSession + * @example + * // Get one AgentSession + * const agentSession = await prisma.agentSession.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AgentSession that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionFindFirstArgs} args - Arguments to find a AgentSession + * @example + * // Get one AgentSession + * const agentSession = await prisma.agentSession.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AgentSession that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionFindFirstOrThrowArgs} args - Arguments to find a AgentSession + * @example + * // Get one AgentSession + * const agentSession = await prisma.agentSession.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more AgentSessions that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all AgentSessions + * const agentSessions = await prisma.agentSession.findMany() + * + * // Get first 10 AgentSessions + * const agentSessions = await prisma.agentSession.findMany({ take: 10 }) + * + * // Only select the `id` + * const agentSessionWithIdOnly = await prisma.agentSession.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a AgentSession. + * @param {AgentSessionCreateArgs} args - Arguments to create a AgentSession. + * @example + * // Create one AgentSession + * const AgentSession = await prisma.agentSession.create({ + * data: { + * // ... data to create a AgentSession + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many AgentSessions. + * @param {AgentSessionCreateManyArgs} args - Arguments to create many AgentSessions. + * @example + * // Create many AgentSessions + * const agentSession = await prisma.agentSession.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many AgentSessions and returns the data saved in the database. + * @param {AgentSessionCreateManyAndReturnArgs} args - Arguments to create many AgentSessions. + * @example + * // Create many AgentSessions + * const agentSession = await prisma.agentSession.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many AgentSessions and only return the `id` + * const agentSessionWithIdOnly = await prisma.agentSession.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a AgentSession. + * @param {AgentSessionDeleteArgs} args - Arguments to delete one AgentSession. + * @example + * // Delete one AgentSession + * const AgentSession = await prisma.agentSession.delete({ + * where: { + * // ... filter to delete one AgentSession + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one AgentSession. + * @param {AgentSessionUpdateArgs} args - Arguments to update one AgentSession. + * @example + * // Update one AgentSession + * const agentSession = await prisma.agentSession.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more AgentSessions. + * @param {AgentSessionDeleteManyArgs} args - Arguments to filter AgentSessions to delete. + * @example + * // Delete a few AgentSessions + * const { count } = await prisma.agentSession.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AgentSessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many AgentSessions + * const agentSession = await prisma.agentSession.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AgentSessions and returns the data updated in the database. + * @param {AgentSessionUpdateManyAndReturnArgs} args - Arguments to update many AgentSessions. + * @example + * // Update many AgentSessions + * const agentSession = await prisma.agentSession.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more AgentSessions and only return the `id` + * const agentSessionWithIdOnly = await prisma.agentSession.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one AgentSession. + * @param {AgentSessionUpsertArgs} args - Arguments to update or create a AgentSession. + * @example + * // Update or create a AgentSession + * const agentSession = await prisma.agentSession.upsert({ + * create: { + * // ... data to create a AgentSession + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the AgentSession we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of AgentSessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionCountArgs} args - Arguments to filter AgentSessions to count. + * @example + * // Count the number of AgentSessions + * const count = await prisma.agentSession.count({ + * where: { + * // ... the filter for the AgentSessions we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a AgentSession. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by AgentSession. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends AgentSessionGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AgentSessionGroupByArgs['orderBy'] } + : { orderBy?: AgentSessionGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetAgentSessionGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the AgentSession model + */ + readonly fields: AgentSessionFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for AgentSession. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__AgentSessionClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + agent = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AgentClient< + | runtime.Types.Result.GetResult< + Prisma.$AgentPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + user = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + entries = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AgentSessionEntryPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + comments = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the AgentSession model + */ +export interface AgentSessionFieldRefs { + readonly id: Prisma.FieldRef<'AgentSession', 'String'> + readonly agentId: Prisma.FieldRef<'AgentSession', 'String'> + readonly userId: Prisma.FieldRef<'AgentSession', 'String'> + readonly cwd: Prisma.FieldRef<'AgentSession', 'String'> + readonly leafId: Prisma.FieldRef<'AgentSession', 'String'> + readonly createdAt: Prisma.FieldRef<'AgentSession', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'AgentSession', 'DateTime'> +} + +// Custom InputTypes +/** + * AgentSession findUnique + */ +export type AgentSessionFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelect | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionInclude | null + /** + * Filter, which AgentSession to fetch. + */ + where: Prisma.AgentSessionWhereUniqueInput +} + +/** + * AgentSession findUniqueOrThrow + */ +export type AgentSessionFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelect | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionInclude | null + /** + * Filter, which AgentSession to fetch. + */ + where: Prisma.AgentSessionWhereUniqueInput +} + +/** + * AgentSession findFirst + */ +export type AgentSessionFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelect | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionInclude | null + /** + * Filter, which AgentSession to fetch. + */ + where?: Prisma.AgentSessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AgentSessions to fetch. + */ + orderBy?: + | Prisma.AgentSessionOrderByWithRelationInput + | Prisma.AgentSessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AgentSessions. + */ + cursor?: Prisma.AgentSessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AgentSessions from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AgentSessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AgentSessions. + */ + distinct?: Prisma.AgentSessionScalarFieldEnum | Prisma.AgentSessionScalarFieldEnum[] +} + +/** + * AgentSession findFirstOrThrow + */ +export type AgentSessionFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelect | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionInclude | null + /** + * Filter, which AgentSession to fetch. + */ + where?: Prisma.AgentSessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AgentSessions to fetch. + */ + orderBy?: + | Prisma.AgentSessionOrderByWithRelationInput + | Prisma.AgentSessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AgentSessions. + */ + cursor?: Prisma.AgentSessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AgentSessions from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AgentSessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AgentSessions. + */ + distinct?: Prisma.AgentSessionScalarFieldEnum | Prisma.AgentSessionScalarFieldEnum[] +} + +/** + * AgentSession findMany + */ +export type AgentSessionFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelect | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionInclude | null + /** + * Filter, which AgentSessions to fetch. + */ + where?: Prisma.AgentSessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AgentSessions to fetch. + */ + orderBy?: + | Prisma.AgentSessionOrderByWithRelationInput + | Prisma.AgentSessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing AgentSessions. + */ + cursor?: Prisma.AgentSessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AgentSessions from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AgentSessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AgentSessions. + */ + distinct?: Prisma.AgentSessionScalarFieldEnum | Prisma.AgentSessionScalarFieldEnum[] +} + +/** + * AgentSession create + */ +export type AgentSessionCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelect | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionInclude | null + /** + * The data needed to create a AgentSession. + */ + data: Prisma.XOR +} + +/** + * AgentSession createMany + */ +export type AgentSessionCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many AgentSessions. + */ + data: Prisma.AgentSessionCreateManyInput | Prisma.AgentSessionCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * AgentSession createManyAndReturn + */ +export type AgentSessionCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelectCreateManyAndReturn | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * The data used to create many AgentSessions. + */ + data: Prisma.AgentSessionCreateManyInput | Prisma.AgentSessionCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionIncludeCreateManyAndReturn | null +} + +/** + * AgentSession update + */ +export type AgentSessionUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelect | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionInclude | null + /** + * The data needed to update a AgentSession. + */ + data: Prisma.XOR + /** + * Choose, which AgentSession to update. + */ + where: Prisma.AgentSessionWhereUniqueInput +} + +/** + * AgentSession updateMany + */ +export type AgentSessionUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update AgentSessions. + */ + data: Prisma.XOR< + Prisma.AgentSessionUpdateManyMutationInput, + Prisma.AgentSessionUncheckedUpdateManyInput + > + /** + * Filter which AgentSessions to update + */ + where?: Prisma.AgentSessionWhereInput + /** + * Limit how many AgentSessions to update. + */ + limit?: number +} + +/** + * AgentSession updateManyAndReturn + */ +export type AgentSessionUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * The data used to update AgentSessions. + */ + data: Prisma.XOR< + Prisma.AgentSessionUpdateManyMutationInput, + Prisma.AgentSessionUncheckedUpdateManyInput + > + /** + * Filter which AgentSessions to update + */ + where?: Prisma.AgentSessionWhereInput + /** + * Limit how many AgentSessions to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionIncludeUpdateManyAndReturn | null +} + +/** + * AgentSession upsert + */ +export type AgentSessionUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelect | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionInclude | null + /** + * The filter to search for the AgentSession to update in case it exists. + */ + where: Prisma.AgentSessionWhereUniqueInput + /** + * In case the AgentSession found by the `where` argument doesn't exist, create a new AgentSession with this data. + */ + create: Prisma.XOR + /** + * In case the AgentSession was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * AgentSession delete + */ +export type AgentSessionDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelect | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionInclude | null + /** + * Filter which AgentSession to delete. + */ + where: Prisma.AgentSessionWhereUniqueInput +} + +/** + * AgentSession deleteMany + */ +export type AgentSessionDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AgentSessions to delete + */ + where?: Prisma.AgentSessionWhereInput + /** + * Limit how many AgentSessions to delete. + */ + limit?: number +} + +/** + * AgentSession.user + */ +export type AgentSession$userArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + where?: Prisma.UserWhereInput +} + +/** + * AgentSession.entries + */ +export type AgentSession$entriesArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionEntry + */ + select?: Prisma.AgentSessionEntrySelect | null + /** + * Omit specific fields from the AgentSessionEntry + */ + omit?: Prisma.AgentSessionEntryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionEntryInclude | null + where?: Prisma.AgentSessionEntryWhereInput + orderBy?: + | Prisma.AgentSessionEntryOrderByWithRelationInput + | Prisma.AgentSessionEntryOrderByWithRelationInput[] + cursor?: Prisma.AgentSessionEntryWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AgentSessionEntryScalarFieldEnum | Prisma.AgentSessionEntryScalarFieldEnum[] +} + +/** + * AgentSession.comments + */ +export type AgentSession$commentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + where?: Prisma.AssetCommentWhereInput + orderBy?: + | Prisma.AssetCommentOrderByWithRelationInput + | Prisma.AssetCommentOrderByWithRelationInput[] + cursor?: Prisma.AssetCommentWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AssetCommentScalarFieldEnum | Prisma.AssetCommentScalarFieldEnum[] +} + +/** + * AgentSession without action + */ +export type AgentSessionDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelect | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionInclude | null +} diff --git a/packages/db/src/generated/prisma/models/AgentSessionEntry.ts b/packages/db/src/generated/prisma/models/AgentSessionEntry.ts new file mode 100644 index 00000000..2a70e693 --- /dev/null +++ b/packages/db/src/generated/prisma/models/AgentSessionEntry.ts @@ -0,0 +1,1586 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `AgentSessionEntry` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model AgentSessionEntry + * + */ +export type AgentSessionEntryModel = + runtime.Types.Result.DefaultSelection + +export type AggregateAgentSessionEntry = { + _count: AgentSessionEntryCountAggregateOutputType | null + _min: AgentSessionEntryMinAggregateOutputType | null + _max: AgentSessionEntryMaxAggregateOutputType | null +} + +export type AgentSessionEntryMinAggregateOutputType = { + id: string | null + sessionId: string | null +} + +export type AgentSessionEntryMaxAggregateOutputType = { + id: string | null + sessionId: string | null +} + +export type AgentSessionEntryCountAggregateOutputType = { + id: number + sessionId: number + entry: PrismaJson.PiSessionEntry + _all: number +} + +export type AgentSessionEntryMinAggregateInputType = { + id?: true + sessionId?: true +} + +export type AgentSessionEntryMaxAggregateInputType = { + id?: true + sessionId?: true +} + +export type AgentSessionEntryCountAggregateInputType = { + id?: true + sessionId?: true + entry?: true + _all?: true +} + +export type AgentSessionEntryAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AgentSessionEntry to aggregate. + */ + where?: Prisma.AgentSessionEntryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AgentSessionEntries to fetch. + */ + orderBy?: + | Prisma.AgentSessionEntryOrderByWithRelationInput + | Prisma.AgentSessionEntryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AgentSessionEntryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AgentSessionEntries from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AgentSessionEntries. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned AgentSessionEntries + **/ + _count?: true | AgentSessionEntryCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AgentSessionEntryMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AgentSessionEntryMaxAggregateInputType +} + +export type GetAgentSessionEntryAggregateType = { + [P in keyof T & keyof AggregateAgentSessionEntry]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type AgentSessionEntryGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AgentSessionEntryWhereInput + orderBy?: + | Prisma.AgentSessionEntryOrderByWithAggregationInput + | Prisma.AgentSessionEntryOrderByWithAggregationInput[] + by: Prisma.AgentSessionEntryScalarFieldEnum[] | Prisma.AgentSessionEntryScalarFieldEnum + having?: Prisma.AgentSessionEntryScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AgentSessionEntryCountAggregateInputType | true + _min?: AgentSessionEntryMinAggregateInputType + _max?: AgentSessionEntryMaxAggregateInputType +} + +export type AgentSessionEntryGroupByOutputType = { + id: string + sessionId: string + entry: PrismaJson.PiSessionEntry + _count: AgentSessionEntryCountAggregateOutputType | null + _min: AgentSessionEntryMinAggregateOutputType | null + _max: AgentSessionEntryMaxAggregateOutputType | null +} + +export type GetAgentSessionEntryGroupByPayload = + Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof AgentSessionEntryGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + +export type AgentSessionEntryWhereInput = { + AND?: Prisma.AgentSessionEntryWhereInput | Prisma.AgentSessionEntryWhereInput[] + OR?: Prisma.AgentSessionEntryWhereInput[] + NOT?: Prisma.AgentSessionEntryWhereInput | Prisma.AgentSessionEntryWhereInput[] + id?: Prisma.StringFilter<'AgentSessionEntry'> | string + sessionId?: Prisma.StringFilter<'AgentSessionEntry'> | string + entry?: Prisma.JsonFilter<'AgentSessionEntry'> + session?: Prisma.XOR +} + +export type AgentSessionEntryOrderByWithRelationInput = { + id?: Prisma.SortOrder + sessionId?: Prisma.SortOrder + entry?: Prisma.SortOrder + session?: Prisma.AgentSessionOrderByWithRelationInput +} + +export type AgentSessionEntryWhereUniqueInput = Prisma.AtLeast< + { + id?: string + AND?: Prisma.AgentSessionEntryWhereInput | Prisma.AgentSessionEntryWhereInput[] + OR?: Prisma.AgentSessionEntryWhereInput[] + NOT?: Prisma.AgentSessionEntryWhereInput | Prisma.AgentSessionEntryWhereInput[] + sessionId?: Prisma.StringFilter<'AgentSessionEntry'> | string + entry?: Prisma.JsonFilter<'AgentSessionEntry'> + session?: Prisma.XOR + }, + 'id' +> + +export type AgentSessionEntryOrderByWithAggregationInput = { + id?: Prisma.SortOrder + sessionId?: Prisma.SortOrder + entry?: Prisma.SortOrder + _count?: Prisma.AgentSessionEntryCountOrderByAggregateInput + _max?: Prisma.AgentSessionEntryMaxOrderByAggregateInput + _min?: Prisma.AgentSessionEntryMinOrderByAggregateInput +} + +export type AgentSessionEntryScalarWhereWithAggregatesInput = { + AND?: + | Prisma.AgentSessionEntryScalarWhereWithAggregatesInput + | Prisma.AgentSessionEntryScalarWhereWithAggregatesInput[] + OR?: Prisma.AgentSessionEntryScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.AgentSessionEntryScalarWhereWithAggregatesInput + | Prisma.AgentSessionEntryScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'AgentSessionEntry'> | string + sessionId?: Prisma.StringWithAggregatesFilter<'AgentSessionEntry'> | string + entry?: Prisma.JsonWithAggregatesFilter<'AgentSessionEntry'> +} + +export type AgentSessionEntryCreateInput = { + id: string + entry: PrismaJson.PiSessionEntry + session: Prisma.AgentSessionCreateNestedOneWithoutEntriesInput +} + +export type AgentSessionEntryUncheckedCreateInput = { + id: string + sessionId: string + entry: PrismaJson.PiSessionEntry +} + +export type AgentSessionEntryUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + entry?: PrismaJson.PiSessionEntry + session?: Prisma.AgentSessionUpdateOneRequiredWithoutEntriesNestedInput +} + +export type AgentSessionEntryUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + sessionId?: Prisma.StringFieldUpdateOperationsInput | string + entry?: PrismaJson.PiSessionEntry +} + +export type AgentSessionEntryCreateManyInput = { + id: string + sessionId: string + entry: PrismaJson.PiSessionEntry +} + +export type AgentSessionEntryUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + entry?: PrismaJson.PiSessionEntry +} + +export type AgentSessionEntryUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + sessionId?: Prisma.StringFieldUpdateOperationsInput | string + entry?: PrismaJson.PiSessionEntry +} + +export type AgentSessionEntryListRelationFilter = { + every?: Prisma.AgentSessionEntryWhereInput + some?: Prisma.AgentSessionEntryWhereInput + none?: Prisma.AgentSessionEntryWhereInput +} + +export type AgentSessionEntryOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AgentSessionEntryCountOrderByAggregateInput = { + id?: Prisma.SortOrder + sessionId?: Prisma.SortOrder + entry?: Prisma.SortOrder +} + +export type AgentSessionEntryMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + sessionId?: Prisma.SortOrder +} + +export type AgentSessionEntryMinOrderByAggregateInput = { + id?: Prisma.SortOrder + sessionId?: Prisma.SortOrder +} + +export type AgentSessionEntryCreateNestedManyWithoutSessionInput = { + create?: + | Prisma.XOR< + Prisma.AgentSessionEntryCreateWithoutSessionInput, + Prisma.AgentSessionEntryUncheckedCreateWithoutSessionInput + > + | Prisma.AgentSessionEntryCreateWithoutSessionInput[] + | Prisma.AgentSessionEntryUncheckedCreateWithoutSessionInput[] + connectOrCreate?: + | Prisma.AgentSessionEntryCreateOrConnectWithoutSessionInput + | Prisma.AgentSessionEntryCreateOrConnectWithoutSessionInput[] + createMany?: Prisma.AgentSessionEntryCreateManySessionInputEnvelope + connect?: Prisma.AgentSessionEntryWhereUniqueInput | Prisma.AgentSessionEntryWhereUniqueInput[] +} + +export type AgentSessionEntryUncheckedCreateNestedManyWithoutSessionInput = { + create?: + | Prisma.XOR< + Prisma.AgentSessionEntryCreateWithoutSessionInput, + Prisma.AgentSessionEntryUncheckedCreateWithoutSessionInput + > + | Prisma.AgentSessionEntryCreateWithoutSessionInput[] + | Prisma.AgentSessionEntryUncheckedCreateWithoutSessionInput[] + connectOrCreate?: + | Prisma.AgentSessionEntryCreateOrConnectWithoutSessionInput + | Prisma.AgentSessionEntryCreateOrConnectWithoutSessionInput[] + createMany?: Prisma.AgentSessionEntryCreateManySessionInputEnvelope + connect?: Prisma.AgentSessionEntryWhereUniqueInput | Prisma.AgentSessionEntryWhereUniqueInput[] +} + +export type AgentSessionEntryUpdateManyWithoutSessionNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentSessionEntryCreateWithoutSessionInput, + Prisma.AgentSessionEntryUncheckedCreateWithoutSessionInput + > + | Prisma.AgentSessionEntryCreateWithoutSessionInput[] + | Prisma.AgentSessionEntryUncheckedCreateWithoutSessionInput[] + connectOrCreate?: + | Prisma.AgentSessionEntryCreateOrConnectWithoutSessionInput + | Prisma.AgentSessionEntryCreateOrConnectWithoutSessionInput[] + upsert?: + | Prisma.AgentSessionEntryUpsertWithWhereUniqueWithoutSessionInput + | Prisma.AgentSessionEntryUpsertWithWhereUniqueWithoutSessionInput[] + createMany?: Prisma.AgentSessionEntryCreateManySessionInputEnvelope + set?: Prisma.AgentSessionEntryWhereUniqueInput | Prisma.AgentSessionEntryWhereUniqueInput[] + disconnect?: Prisma.AgentSessionEntryWhereUniqueInput | Prisma.AgentSessionEntryWhereUniqueInput[] + delete?: Prisma.AgentSessionEntryWhereUniqueInput | Prisma.AgentSessionEntryWhereUniqueInput[] + connect?: Prisma.AgentSessionEntryWhereUniqueInput | Prisma.AgentSessionEntryWhereUniqueInput[] + update?: + | Prisma.AgentSessionEntryUpdateWithWhereUniqueWithoutSessionInput + | Prisma.AgentSessionEntryUpdateWithWhereUniqueWithoutSessionInput[] + updateMany?: + | Prisma.AgentSessionEntryUpdateManyWithWhereWithoutSessionInput + | Prisma.AgentSessionEntryUpdateManyWithWhereWithoutSessionInput[] + deleteMany?: Prisma.AgentSessionEntryScalarWhereInput | Prisma.AgentSessionEntryScalarWhereInput[] +} + +export type AgentSessionEntryUncheckedUpdateManyWithoutSessionNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentSessionEntryCreateWithoutSessionInput, + Prisma.AgentSessionEntryUncheckedCreateWithoutSessionInput + > + | Prisma.AgentSessionEntryCreateWithoutSessionInput[] + | Prisma.AgentSessionEntryUncheckedCreateWithoutSessionInput[] + connectOrCreate?: + | Prisma.AgentSessionEntryCreateOrConnectWithoutSessionInput + | Prisma.AgentSessionEntryCreateOrConnectWithoutSessionInput[] + upsert?: + | Prisma.AgentSessionEntryUpsertWithWhereUniqueWithoutSessionInput + | Prisma.AgentSessionEntryUpsertWithWhereUniqueWithoutSessionInput[] + createMany?: Prisma.AgentSessionEntryCreateManySessionInputEnvelope + set?: Prisma.AgentSessionEntryWhereUniqueInput | Prisma.AgentSessionEntryWhereUniqueInput[] + disconnect?: Prisma.AgentSessionEntryWhereUniqueInput | Prisma.AgentSessionEntryWhereUniqueInput[] + delete?: Prisma.AgentSessionEntryWhereUniqueInput | Prisma.AgentSessionEntryWhereUniqueInput[] + connect?: Prisma.AgentSessionEntryWhereUniqueInput | Prisma.AgentSessionEntryWhereUniqueInput[] + update?: + | Prisma.AgentSessionEntryUpdateWithWhereUniqueWithoutSessionInput + | Prisma.AgentSessionEntryUpdateWithWhereUniqueWithoutSessionInput[] + updateMany?: + | Prisma.AgentSessionEntryUpdateManyWithWhereWithoutSessionInput + | Prisma.AgentSessionEntryUpdateManyWithWhereWithoutSessionInput[] + deleteMany?: Prisma.AgentSessionEntryScalarWhereInput | Prisma.AgentSessionEntryScalarWhereInput[] +} + +export type AgentSessionEntryCreateWithoutSessionInput = { + id: string + entry: PrismaJson.PiSessionEntry +} + +export type AgentSessionEntryUncheckedCreateWithoutSessionInput = { + id: string + entry: PrismaJson.PiSessionEntry +} + +export type AgentSessionEntryCreateOrConnectWithoutSessionInput = { + where: Prisma.AgentSessionEntryWhereUniqueInput + create: Prisma.XOR< + Prisma.AgentSessionEntryCreateWithoutSessionInput, + Prisma.AgentSessionEntryUncheckedCreateWithoutSessionInput + > +} + +export type AgentSessionEntryCreateManySessionInputEnvelope = { + data: + | Prisma.AgentSessionEntryCreateManySessionInput + | Prisma.AgentSessionEntryCreateManySessionInput[] + skipDuplicates?: boolean +} + +export type AgentSessionEntryUpsertWithWhereUniqueWithoutSessionInput = { + where: Prisma.AgentSessionEntryWhereUniqueInput + update: Prisma.XOR< + Prisma.AgentSessionEntryUpdateWithoutSessionInput, + Prisma.AgentSessionEntryUncheckedUpdateWithoutSessionInput + > + create: Prisma.XOR< + Prisma.AgentSessionEntryCreateWithoutSessionInput, + Prisma.AgentSessionEntryUncheckedCreateWithoutSessionInput + > +} + +export type AgentSessionEntryUpdateWithWhereUniqueWithoutSessionInput = { + where: Prisma.AgentSessionEntryWhereUniqueInput + data: Prisma.XOR< + Prisma.AgentSessionEntryUpdateWithoutSessionInput, + Prisma.AgentSessionEntryUncheckedUpdateWithoutSessionInput + > +} + +export type AgentSessionEntryUpdateManyWithWhereWithoutSessionInput = { + where: Prisma.AgentSessionEntryScalarWhereInput + data: Prisma.XOR< + Prisma.AgentSessionEntryUpdateManyMutationInput, + Prisma.AgentSessionEntryUncheckedUpdateManyWithoutSessionInput + > +} + +export type AgentSessionEntryScalarWhereInput = { + AND?: Prisma.AgentSessionEntryScalarWhereInput | Prisma.AgentSessionEntryScalarWhereInput[] + OR?: Prisma.AgentSessionEntryScalarWhereInput[] + NOT?: Prisma.AgentSessionEntryScalarWhereInput | Prisma.AgentSessionEntryScalarWhereInput[] + id?: Prisma.StringFilter<'AgentSessionEntry'> | string + sessionId?: Prisma.StringFilter<'AgentSessionEntry'> | string + entry?: Prisma.JsonFilter<'AgentSessionEntry'> +} + +export type AgentSessionEntryCreateManySessionInput = { + id: string + entry: PrismaJson.PiSessionEntry +} + +export type AgentSessionEntryUpdateWithoutSessionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + entry?: PrismaJson.PiSessionEntry +} + +export type AgentSessionEntryUncheckedUpdateWithoutSessionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + entry?: PrismaJson.PiSessionEntry +} + +export type AgentSessionEntryUncheckedUpdateManyWithoutSessionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + entry?: PrismaJson.PiSessionEntry +} + +export type AgentSessionEntrySelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + sessionId?: boolean + entry?: boolean + session?: boolean | Prisma.AgentSessionDefaultArgs + }, + ExtArgs['result']['agentSessionEntry'] +> + +export type AgentSessionEntrySelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + sessionId?: boolean + entry?: boolean + session?: boolean | Prisma.AgentSessionDefaultArgs + }, + ExtArgs['result']['agentSessionEntry'] +> + +export type AgentSessionEntrySelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + sessionId?: boolean + entry?: boolean + session?: boolean | Prisma.AgentSessionDefaultArgs + }, + ExtArgs['result']['agentSessionEntry'] +> + +export type AgentSessionEntrySelectScalar = { + id?: boolean + sessionId?: boolean + entry?: boolean +} + +export type AgentSessionEntryOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'sessionId' | 'entry', + ExtArgs['result']['agentSessionEntry'] +> +export type AgentSessionEntryInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + session?: boolean | Prisma.AgentSessionDefaultArgs +} +export type AgentSessionEntryIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + session?: boolean | Prisma.AgentSessionDefaultArgs +} +export type AgentSessionEntryIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + session?: boolean | Prisma.AgentSessionDefaultArgs +} + +export type $AgentSessionEntryPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'AgentSessionEntry' + objects: { + session: Prisma.$AgentSessionPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + sessionId: string + /** + * [PiSessionEntry] + */ + entry: PrismaJson.PiSessionEntry + }, + ExtArgs['result']['agentSessionEntry'] + > + composites: {} +} + +export type AgentSessionEntryGetPayload< + S extends boolean | null | undefined | AgentSessionEntryDefaultArgs, +> = runtime.Types.Result.GetResult + +export type AgentSessionEntryCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: AgentSessionEntryCountAggregateInputType | true +} + +export interface AgentSessionEntryDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['AgentSessionEntry'] + meta: { name: 'AgentSessionEntry' } + } + /** + * Find zero or one AgentSessionEntry that matches the filter. + * @param {AgentSessionEntryFindUniqueArgs} args - Arguments to find a AgentSessionEntry + * @example + * // Get one AgentSessionEntry + * const agentSessionEntry = await prisma.agentSessionEntry.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionEntryClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionEntryPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one AgentSessionEntry that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AgentSessionEntryFindUniqueOrThrowArgs} args - Arguments to find a AgentSessionEntry + * @example + * // Get one AgentSessionEntry + * const agentSessionEntry = await prisma.agentSessionEntry.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionEntryClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionEntryPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AgentSessionEntry that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionEntryFindFirstArgs} args - Arguments to find a AgentSessionEntry + * @example + * // Get one AgentSessionEntry + * const agentSessionEntry = await prisma.agentSessionEntry.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionEntryClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionEntryPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AgentSessionEntry that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionEntryFindFirstOrThrowArgs} args - Arguments to find a AgentSessionEntry + * @example + * // Get one AgentSessionEntry + * const agentSessionEntry = await prisma.agentSessionEntry.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionEntryClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionEntryPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more AgentSessionEntries that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionEntryFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all AgentSessionEntries + * const agentSessionEntries = await prisma.agentSessionEntry.findMany() + * + * // Get first 10 AgentSessionEntries + * const agentSessionEntries = await prisma.agentSessionEntry.findMany({ take: 10 }) + * + * // Only select the `id` + * const agentSessionEntryWithIdOnly = await prisma.agentSessionEntry.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionEntryPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a AgentSessionEntry. + * @param {AgentSessionEntryCreateArgs} args - Arguments to create a AgentSessionEntry. + * @example + * // Create one AgentSessionEntry + * const AgentSessionEntry = await prisma.agentSessionEntry.create({ + * data: { + * // ... data to create a AgentSessionEntry + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionEntryClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionEntryPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many AgentSessionEntries. + * @param {AgentSessionEntryCreateManyArgs} args - Arguments to create many AgentSessionEntries. + * @example + * // Create many AgentSessionEntries + * const agentSessionEntry = await prisma.agentSessionEntry.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many AgentSessionEntries and returns the data saved in the database. + * @param {AgentSessionEntryCreateManyAndReturnArgs} args - Arguments to create many AgentSessionEntries. + * @example + * // Create many AgentSessionEntries + * const agentSessionEntry = await prisma.agentSessionEntry.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many AgentSessionEntries and only return the `id` + * const agentSessionEntryWithIdOnly = await prisma.agentSessionEntry.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionEntryPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a AgentSessionEntry. + * @param {AgentSessionEntryDeleteArgs} args - Arguments to delete one AgentSessionEntry. + * @example + * // Delete one AgentSessionEntry + * const AgentSessionEntry = await prisma.agentSessionEntry.delete({ + * where: { + * // ... filter to delete one AgentSessionEntry + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionEntryClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionEntryPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one AgentSessionEntry. + * @param {AgentSessionEntryUpdateArgs} args - Arguments to update one AgentSessionEntry. + * @example + * // Update one AgentSessionEntry + * const agentSessionEntry = await prisma.agentSessionEntry.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionEntryClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionEntryPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more AgentSessionEntries. + * @param {AgentSessionEntryDeleteManyArgs} args - Arguments to filter AgentSessionEntries to delete. + * @example + * // Delete a few AgentSessionEntries + * const { count } = await prisma.agentSessionEntry.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AgentSessionEntries. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionEntryUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many AgentSessionEntries + * const agentSessionEntry = await prisma.agentSessionEntry.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AgentSessionEntries and returns the data updated in the database. + * @param {AgentSessionEntryUpdateManyAndReturnArgs} args - Arguments to update many AgentSessionEntries. + * @example + * // Update many AgentSessionEntries + * const agentSessionEntry = await prisma.agentSessionEntry.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more AgentSessionEntries and only return the `id` + * const agentSessionEntryWithIdOnly = await prisma.agentSessionEntry.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionEntryPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one AgentSessionEntry. + * @param {AgentSessionEntryUpsertArgs} args - Arguments to update or create a AgentSessionEntry. + * @example + * // Update or create a AgentSessionEntry + * const agentSessionEntry = await prisma.agentSessionEntry.upsert({ + * create: { + * // ... data to create a AgentSessionEntry + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the AgentSessionEntry we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSessionEntryClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionEntryPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of AgentSessionEntries. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionEntryCountArgs} args - Arguments to filter AgentSessionEntries to count. + * @example + * // Count the number of AgentSessionEntries + * const count = await prisma.agentSessionEntry.count({ + * where: { + * // ... the filter for the AgentSessionEntries we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a AgentSessionEntry. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionEntryAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by AgentSessionEntry. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSessionEntryGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends AgentSessionEntryGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AgentSessionEntryGroupByArgs['orderBy'] } + : { orderBy?: AgentSessionEntryGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors + ? GetAgentSessionEntryGroupByPayload + : Prisma.PrismaPromise + /** + * Fields of the AgentSessionEntry model + */ + readonly fields: AgentSessionEntryFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for AgentSessionEntry. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__AgentSessionEntryClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + session = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AgentSessionClient< + | runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the AgentSessionEntry model + */ +export interface AgentSessionEntryFieldRefs { + readonly id: Prisma.FieldRef<'AgentSessionEntry', 'String'> + readonly sessionId: Prisma.FieldRef<'AgentSessionEntry', 'String'> + readonly entry: Prisma.FieldRef<'AgentSessionEntry', 'Json'> +} + +// Custom InputTypes +/** + * AgentSessionEntry findUnique + */ +export type AgentSessionEntryFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionEntry + */ + select?: Prisma.AgentSessionEntrySelect | null + /** + * Omit specific fields from the AgentSessionEntry + */ + omit?: Prisma.AgentSessionEntryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionEntryInclude | null + /** + * Filter, which AgentSessionEntry to fetch. + */ + where: Prisma.AgentSessionEntryWhereUniqueInput +} + +/** + * AgentSessionEntry findUniqueOrThrow + */ +export type AgentSessionEntryFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionEntry + */ + select?: Prisma.AgentSessionEntrySelect | null + /** + * Omit specific fields from the AgentSessionEntry + */ + omit?: Prisma.AgentSessionEntryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionEntryInclude | null + /** + * Filter, which AgentSessionEntry to fetch. + */ + where: Prisma.AgentSessionEntryWhereUniqueInput +} + +/** + * AgentSessionEntry findFirst + */ +export type AgentSessionEntryFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionEntry + */ + select?: Prisma.AgentSessionEntrySelect | null + /** + * Omit specific fields from the AgentSessionEntry + */ + omit?: Prisma.AgentSessionEntryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionEntryInclude | null + /** + * Filter, which AgentSessionEntry to fetch. + */ + where?: Prisma.AgentSessionEntryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AgentSessionEntries to fetch. + */ + orderBy?: + | Prisma.AgentSessionEntryOrderByWithRelationInput + | Prisma.AgentSessionEntryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AgentSessionEntries. + */ + cursor?: Prisma.AgentSessionEntryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AgentSessionEntries from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AgentSessionEntries. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AgentSessionEntries. + */ + distinct?: Prisma.AgentSessionEntryScalarFieldEnum | Prisma.AgentSessionEntryScalarFieldEnum[] +} + +/** + * AgentSessionEntry findFirstOrThrow + */ +export type AgentSessionEntryFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionEntry + */ + select?: Prisma.AgentSessionEntrySelect | null + /** + * Omit specific fields from the AgentSessionEntry + */ + omit?: Prisma.AgentSessionEntryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionEntryInclude | null + /** + * Filter, which AgentSessionEntry to fetch. + */ + where?: Prisma.AgentSessionEntryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AgentSessionEntries to fetch. + */ + orderBy?: + | Prisma.AgentSessionEntryOrderByWithRelationInput + | Prisma.AgentSessionEntryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AgentSessionEntries. + */ + cursor?: Prisma.AgentSessionEntryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AgentSessionEntries from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AgentSessionEntries. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AgentSessionEntries. + */ + distinct?: Prisma.AgentSessionEntryScalarFieldEnum | Prisma.AgentSessionEntryScalarFieldEnum[] +} + +/** + * AgentSessionEntry findMany + */ +export type AgentSessionEntryFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionEntry + */ + select?: Prisma.AgentSessionEntrySelect | null + /** + * Omit specific fields from the AgentSessionEntry + */ + omit?: Prisma.AgentSessionEntryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionEntryInclude | null + /** + * Filter, which AgentSessionEntries to fetch. + */ + where?: Prisma.AgentSessionEntryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AgentSessionEntries to fetch. + */ + orderBy?: + | Prisma.AgentSessionEntryOrderByWithRelationInput + | Prisma.AgentSessionEntryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing AgentSessionEntries. + */ + cursor?: Prisma.AgentSessionEntryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AgentSessionEntries from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AgentSessionEntries. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AgentSessionEntries. + */ + distinct?: Prisma.AgentSessionEntryScalarFieldEnum | Prisma.AgentSessionEntryScalarFieldEnum[] +} + +/** + * AgentSessionEntry create + */ +export type AgentSessionEntryCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionEntry + */ + select?: Prisma.AgentSessionEntrySelect | null + /** + * Omit specific fields from the AgentSessionEntry + */ + omit?: Prisma.AgentSessionEntryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionEntryInclude | null + /** + * The data needed to create a AgentSessionEntry. + */ + data: Prisma.XOR< + Prisma.AgentSessionEntryCreateInput, + Prisma.AgentSessionEntryUncheckedCreateInput + > +} + +/** + * AgentSessionEntry createMany + */ +export type AgentSessionEntryCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many AgentSessionEntries. + */ + data: Prisma.AgentSessionEntryCreateManyInput | Prisma.AgentSessionEntryCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * AgentSessionEntry createManyAndReturn + */ +export type AgentSessionEntryCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionEntry + */ + select?: Prisma.AgentSessionEntrySelectCreateManyAndReturn | null + /** + * Omit specific fields from the AgentSessionEntry + */ + omit?: Prisma.AgentSessionEntryOmit | null + /** + * The data used to create many AgentSessionEntries. + */ + data: Prisma.AgentSessionEntryCreateManyInput | Prisma.AgentSessionEntryCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionEntryIncludeCreateManyAndReturn | null +} + +/** + * AgentSessionEntry update + */ +export type AgentSessionEntryUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionEntry + */ + select?: Prisma.AgentSessionEntrySelect | null + /** + * Omit specific fields from the AgentSessionEntry + */ + omit?: Prisma.AgentSessionEntryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionEntryInclude | null + /** + * The data needed to update a AgentSessionEntry. + */ + data: Prisma.XOR< + Prisma.AgentSessionEntryUpdateInput, + Prisma.AgentSessionEntryUncheckedUpdateInput + > + /** + * Choose, which AgentSessionEntry to update. + */ + where: Prisma.AgentSessionEntryWhereUniqueInput +} + +/** + * AgentSessionEntry updateMany + */ +export type AgentSessionEntryUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update AgentSessionEntries. + */ + data: Prisma.XOR< + Prisma.AgentSessionEntryUpdateManyMutationInput, + Prisma.AgentSessionEntryUncheckedUpdateManyInput + > + /** + * Filter which AgentSessionEntries to update + */ + where?: Prisma.AgentSessionEntryWhereInput + /** + * Limit how many AgentSessionEntries to update. + */ + limit?: number +} + +/** + * AgentSessionEntry updateManyAndReturn + */ +export type AgentSessionEntryUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionEntry + */ + select?: Prisma.AgentSessionEntrySelectUpdateManyAndReturn | null + /** + * Omit specific fields from the AgentSessionEntry + */ + omit?: Prisma.AgentSessionEntryOmit | null + /** + * The data used to update AgentSessionEntries. + */ + data: Prisma.XOR< + Prisma.AgentSessionEntryUpdateManyMutationInput, + Prisma.AgentSessionEntryUncheckedUpdateManyInput + > + /** + * Filter which AgentSessionEntries to update + */ + where?: Prisma.AgentSessionEntryWhereInput + /** + * Limit how many AgentSessionEntries to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionEntryIncludeUpdateManyAndReturn | null +} + +/** + * AgentSessionEntry upsert + */ +export type AgentSessionEntryUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionEntry + */ + select?: Prisma.AgentSessionEntrySelect | null + /** + * Omit specific fields from the AgentSessionEntry + */ + omit?: Prisma.AgentSessionEntryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionEntryInclude | null + /** + * The filter to search for the AgentSessionEntry to update in case it exists. + */ + where: Prisma.AgentSessionEntryWhereUniqueInput + /** + * In case the AgentSessionEntry found by the `where` argument doesn't exist, create a new AgentSessionEntry with this data. + */ + create: Prisma.XOR< + Prisma.AgentSessionEntryCreateInput, + Prisma.AgentSessionEntryUncheckedCreateInput + > + /** + * In case the AgentSessionEntry was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR< + Prisma.AgentSessionEntryUpdateInput, + Prisma.AgentSessionEntryUncheckedUpdateInput + > +} + +/** + * AgentSessionEntry delete + */ +export type AgentSessionEntryDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionEntry + */ + select?: Prisma.AgentSessionEntrySelect | null + /** + * Omit specific fields from the AgentSessionEntry + */ + omit?: Prisma.AgentSessionEntryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionEntryInclude | null + /** + * Filter which AgentSessionEntry to delete. + */ + where: Prisma.AgentSessionEntryWhereUniqueInput +} + +/** + * AgentSessionEntry deleteMany + */ +export type AgentSessionEntryDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AgentSessionEntries to delete + */ + where?: Prisma.AgentSessionEntryWhereInput + /** + * Limit how many AgentSessionEntries to delete. + */ + limit?: number +} + +/** + * AgentSessionEntry without action + */ +export type AgentSessionEntryDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSessionEntry + */ + select?: Prisma.AgentSessionEntrySelect | null + /** + * Omit specific fields from the AgentSessionEntry + */ + omit?: Prisma.AgentSessionEntryOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionEntryInclude | null +} diff --git a/packages/db/src/generated/prisma/models/AgentSkill.ts b/packages/db/src/generated/prisma/models/AgentSkill.ts new file mode 100644 index 00000000..a48fcf5a --- /dev/null +++ b/packages/db/src/generated/prisma/models/AgentSkill.ts @@ -0,0 +1,1830 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `AgentSkill` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model AgentSkill + * + */ +export type AgentSkillModel = runtime.Types.Result.DefaultSelection + +export type AggregateAgentSkill = { + _count: AgentSkillCountAggregateOutputType | null + _min: AgentSkillMinAggregateOutputType | null + _max: AgentSkillMaxAggregateOutputType | null +} + +export type AgentSkillMinAggregateOutputType = { + id: string | null + agentId: string | null + skillId: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type AgentSkillMaxAggregateOutputType = { + id: string | null + agentId: string | null + skillId: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type AgentSkillCountAggregateOutputType = { + id: number + agentId: number + skillId: number + createdAt: number + updatedAt: number + _all: number +} + +export type AgentSkillMinAggregateInputType = { + id?: true + agentId?: true + skillId?: true + createdAt?: true + updatedAt?: true +} + +export type AgentSkillMaxAggregateInputType = { + id?: true + agentId?: true + skillId?: true + createdAt?: true + updatedAt?: true +} + +export type AgentSkillCountAggregateInputType = { + id?: true + agentId?: true + skillId?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type AgentSkillAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AgentSkill to aggregate. + */ + where?: Prisma.AgentSkillWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AgentSkills to fetch. + */ + orderBy?: Prisma.AgentSkillOrderByWithRelationInput | Prisma.AgentSkillOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AgentSkillWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AgentSkills from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AgentSkills. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned AgentSkills + **/ + _count?: true | AgentSkillCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AgentSkillMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AgentSkillMaxAggregateInputType +} + +export type GetAgentSkillAggregateType = { + [P in keyof T & keyof AggregateAgentSkill]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type AgentSkillGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AgentSkillWhereInput + orderBy?: + | Prisma.AgentSkillOrderByWithAggregationInput + | Prisma.AgentSkillOrderByWithAggregationInput[] + by: Prisma.AgentSkillScalarFieldEnum[] | Prisma.AgentSkillScalarFieldEnum + having?: Prisma.AgentSkillScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AgentSkillCountAggregateInputType | true + _min?: AgentSkillMinAggregateInputType + _max?: AgentSkillMaxAggregateInputType +} + +export type AgentSkillGroupByOutputType = { + id: string + agentId: string + skillId: string + createdAt: Date + updatedAt: Date + _count: AgentSkillCountAggregateOutputType | null + _min: AgentSkillMinAggregateOutputType | null + _max: AgentSkillMaxAggregateOutputType | null +} + +export type GetAgentSkillGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof AgentSkillGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type AgentSkillWhereInput = { + AND?: Prisma.AgentSkillWhereInput | Prisma.AgentSkillWhereInput[] + OR?: Prisma.AgentSkillWhereInput[] + NOT?: Prisma.AgentSkillWhereInput | Prisma.AgentSkillWhereInput[] + id?: Prisma.StringFilter<'AgentSkill'> | string + agentId?: Prisma.StringFilter<'AgentSkill'> | string + skillId?: Prisma.StringFilter<'AgentSkill'> | string + createdAt?: Prisma.DateTimeFilter<'AgentSkill'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AgentSkill'> | Date | string + agent?: Prisma.XOR + skill?: Prisma.XOR +} + +export type AgentSkillOrderByWithRelationInput = { + id?: Prisma.SortOrder + agentId?: Prisma.SortOrder + skillId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + agent?: Prisma.AgentOrderByWithRelationInput + skill?: Prisma.SkillOrderByWithRelationInput +} + +export type AgentSkillWhereUniqueInput = Prisma.AtLeast< + { + id?: string + agentId_skillId?: Prisma.AgentSkillAgentIdSkillIdCompoundUniqueInput + AND?: Prisma.AgentSkillWhereInput | Prisma.AgentSkillWhereInput[] + OR?: Prisma.AgentSkillWhereInput[] + NOT?: Prisma.AgentSkillWhereInput | Prisma.AgentSkillWhereInput[] + agentId?: Prisma.StringFilter<'AgentSkill'> | string + skillId?: Prisma.StringFilter<'AgentSkill'> | string + createdAt?: Prisma.DateTimeFilter<'AgentSkill'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AgentSkill'> | Date | string + agent?: Prisma.XOR + skill?: Prisma.XOR + }, + 'id' | 'agentId_skillId' +> + +export type AgentSkillOrderByWithAggregationInput = { + id?: Prisma.SortOrder + agentId?: Prisma.SortOrder + skillId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.AgentSkillCountOrderByAggregateInput + _max?: Prisma.AgentSkillMaxOrderByAggregateInput + _min?: Prisma.AgentSkillMinOrderByAggregateInput +} + +export type AgentSkillScalarWhereWithAggregatesInput = { + AND?: + | Prisma.AgentSkillScalarWhereWithAggregatesInput + | Prisma.AgentSkillScalarWhereWithAggregatesInput[] + OR?: Prisma.AgentSkillScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.AgentSkillScalarWhereWithAggregatesInput + | Prisma.AgentSkillScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'AgentSkill'> | string + agentId?: Prisma.StringWithAggregatesFilter<'AgentSkill'> | string + skillId?: Prisma.StringWithAggregatesFilter<'AgentSkill'> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<'AgentSkill'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'AgentSkill'> | Date | string +} + +export type AgentSkillCreateInput = { + id?: string + createdAt?: Date | string + updatedAt?: Date | string + agent: Prisma.AgentCreateNestedOneWithoutSkillsInput + skill: Prisma.SkillCreateNestedOneWithoutAgentSkillsInput +} + +export type AgentSkillUncheckedCreateInput = { + id?: string + agentId: string + skillId: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AgentSkillUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agent?: Prisma.AgentUpdateOneRequiredWithoutSkillsNestedInput + skill?: Prisma.SkillUpdateOneRequiredWithoutAgentSkillsNestedInput +} + +export type AgentSkillUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + agentId?: Prisma.StringFieldUpdateOperationsInput | string + skillId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentSkillCreateManyInput = { + id?: string + agentId: string + skillId: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AgentSkillUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentSkillUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + agentId?: Prisma.StringFieldUpdateOperationsInput | string + skillId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentSkillListRelationFilter = { + every?: Prisma.AgentSkillWhereInput + some?: Prisma.AgentSkillWhereInput + none?: Prisma.AgentSkillWhereInput +} + +export type AgentSkillOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AgentSkillAgentIdSkillIdCompoundUniqueInput = { + agentId: string + skillId: string +} + +export type AgentSkillCountOrderByAggregateInput = { + id?: Prisma.SortOrder + agentId?: Prisma.SortOrder + skillId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AgentSkillMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + agentId?: Prisma.SortOrder + skillId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AgentSkillMinOrderByAggregateInput = { + id?: Prisma.SortOrder + agentId?: Prisma.SortOrder + skillId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AgentSkillCreateNestedManyWithoutSkillInput = { + create?: + | Prisma.XOR< + Prisma.AgentSkillCreateWithoutSkillInput, + Prisma.AgentSkillUncheckedCreateWithoutSkillInput + > + | Prisma.AgentSkillCreateWithoutSkillInput[] + | Prisma.AgentSkillUncheckedCreateWithoutSkillInput[] + connectOrCreate?: + | Prisma.AgentSkillCreateOrConnectWithoutSkillInput + | Prisma.AgentSkillCreateOrConnectWithoutSkillInput[] + createMany?: Prisma.AgentSkillCreateManySkillInputEnvelope + connect?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] +} + +export type AgentSkillUncheckedCreateNestedManyWithoutSkillInput = { + create?: + | Prisma.XOR< + Prisma.AgentSkillCreateWithoutSkillInput, + Prisma.AgentSkillUncheckedCreateWithoutSkillInput + > + | Prisma.AgentSkillCreateWithoutSkillInput[] + | Prisma.AgentSkillUncheckedCreateWithoutSkillInput[] + connectOrCreate?: + | Prisma.AgentSkillCreateOrConnectWithoutSkillInput + | Prisma.AgentSkillCreateOrConnectWithoutSkillInput[] + createMany?: Prisma.AgentSkillCreateManySkillInputEnvelope + connect?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] +} + +export type AgentSkillUpdateManyWithoutSkillNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentSkillCreateWithoutSkillInput, + Prisma.AgentSkillUncheckedCreateWithoutSkillInput + > + | Prisma.AgentSkillCreateWithoutSkillInput[] + | Prisma.AgentSkillUncheckedCreateWithoutSkillInput[] + connectOrCreate?: + | Prisma.AgentSkillCreateOrConnectWithoutSkillInput + | Prisma.AgentSkillCreateOrConnectWithoutSkillInput[] + upsert?: + | Prisma.AgentSkillUpsertWithWhereUniqueWithoutSkillInput + | Prisma.AgentSkillUpsertWithWhereUniqueWithoutSkillInput[] + createMany?: Prisma.AgentSkillCreateManySkillInputEnvelope + set?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + disconnect?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + delete?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + connect?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + update?: + | Prisma.AgentSkillUpdateWithWhereUniqueWithoutSkillInput + | Prisma.AgentSkillUpdateWithWhereUniqueWithoutSkillInput[] + updateMany?: + | Prisma.AgentSkillUpdateManyWithWhereWithoutSkillInput + | Prisma.AgentSkillUpdateManyWithWhereWithoutSkillInput[] + deleteMany?: Prisma.AgentSkillScalarWhereInput | Prisma.AgentSkillScalarWhereInput[] +} + +export type AgentSkillUncheckedUpdateManyWithoutSkillNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentSkillCreateWithoutSkillInput, + Prisma.AgentSkillUncheckedCreateWithoutSkillInput + > + | Prisma.AgentSkillCreateWithoutSkillInput[] + | Prisma.AgentSkillUncheckedCreateWithoutSkillInput[] + connectOrCreate?: + | Prisma.AgentSkillCreateOrConnectWithoutSkillInput + | Prisma.AgentSkillCreateOrConnectWithoutSkillInput[] + upsert?: + | Prisma.AgentSkillUpsertWithWhereUniqueWithoutSkillInput + | Prisma.AgentSkillUpsertWithWhereUniqueWithoutSkillInput[] + createMany?: Prisma.AgentSkillCreateManySkillInputEnvelope + set?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + disconnect?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + delete?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + connect?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + update?: + | Prisma.AgentSkillUpdateWithWhereUniqueWithoutSkillInput + | Prisma.AgentSkillUpdateWithWhereUniqueWithoutSkillInput[] + updateMany?: + | Prisma.AgentSkillUpdateManyWithWhereWithoutSkillInput + | Prisma.AgentSkillUpdateManyWithWhereWithoutSkillInput[] + deleteMany?: Prisma.AgentSkillScalarWhereInput | Prisma.AgentSkillScalarWhereInput[] +} + +export type AgentSkillCreateNestedManyWithoutAgentInput = { + create?: + | Prisma.XOR< + Prisma.AgentSkillCreateWithoutAgentInput, + Prisma.AgentSkillUncheckedCreateWithoutAgentInput + > + | Prisma.AgentSkillCreateWithoutAgentInput[] + | Prisma.AgentSkillUncheckedCreateWithoutAgentInput[] + connectOrCreate?: + | Prisma.AgentSkillCreateOrConnectWithoutAgentInput + | Prisma.AgentSkillCreateOrConnectWithoutAgentInput[] + createMany?: Prisma.AgentSkillCreateManyAgentInputEnvelope + connect?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] +} + +export type AgentSkillUncheckedCreateNestedManyWithoutAgentInput = { + create?: + | Prisma.XOR< + Prisma.AgentSkillCreateWithoutAgentInput, + Prisma.AgentSkillUncheckedCreateWithoutAgentInput + > + | Prisma.AgentSkillCreateWithoutAgentInput[] + | Prisma.AgentSkillUncheckedCreateWithoutAgentInput[] + connectOrCreate?: + | Prisma.AgentSkillCreateOrConnectWithoutAgentInput + | Prisma.AgentSkillCreateOrConnectWithoutAgentInput[] + createMany?: Prisma.AgentSkillCreateManyAgentInputEnvelope + connect?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] +} + +export type AgentSkillUpdateManyWithoutAgentNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentSkillCreateWithoutAgentInput, + Prisma.AgentSkillUncheckedCreateWithoutAgentInput + > + | Prisma.AgentSkillCreateWithoutAgentInput[] + | Prisma.AgentSkillUncheckedCreateWithoutAgentInput[] + connectOrCreate?: + | Prisma.AgentSkillCreateOrConnectWithoutAgentInput + | Prisma.AgentSkillCreateOrConnectWithoutAgentInput[] + upsert?: + | Prisma.AgentSkillUpsertWithWhereUniqueWithoutAgentInput + | Prisma.AgentSkillUpsertWithWhereUniqueWithoutAgentInput[] + createMany?: Prisma.AgentSkillCreateManyAgentInputEnvelope + set?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + disconnect?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + delete?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + connect?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + update?: + | Prisma.AgentSkillUpdateWithWhereUniqueWithoutAgentInput + | Prisma.AgentSkillUpdateWithWhereUniqueWithoutAgentInput[] + updateMany?: + | Prisma.AgentSkillUpdateManyWithWhereWithoutAgentInput + | Prisma.AgentSkillUpdateManyWithWhereWithoutAgentInput[] + deleteMany?: Prisma.AgentSkillScalarWhereInput | Prisma.AgentSkillScalarWhereInput[] +} + +export type AgentSkillUncheckedUpdateManyWithoutAgentNestedInput = { + create?: + | Prisma.XOR< + Prisma.AgentSkillCreateWithoutAgentInput, + Prisma.AgentSkillUncheckedCreateWithoutAgentInput + > + | Prisma.AgentSkillCreateWithoutAgentInput[] + | Prisma.AgentSkillUncheckedCreateWithoutAgentInput[] + connectOrCreate?: + | Prisma.AgentSkillCreateOrConnectWithoutAgentInput + | Prisma.AgentSkillCreateOrConnectWithoutAgentInput[] + upsert?: + | Prisma.AgentSkillUpsertWithWhereUniqueWithoutAgentInput + | Prisma.AgentSkillUpsertWithWhereUniqueWithoutAgentInput[] + createMany?: Prisma.AgentSkillCreateManyAgentInputEnvelope + set?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + disconnect?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + delete?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + connect?: Prisma.AgentSkillWhereUniqueInput | Prisma.AgentSkillWhereUniqueInput[] + update?: + | Prisma.AgentSkillUpdateWithWhereUniqueWithoutAgentInput + | Prisma.AgentSkillUpdateWithWhereUniqueWithoutAgentInput[] + updateMany?: + | Prisma.AgentSkillUpdateManyWithWhereWithoutAgentInput + | Prisma.AgentSkillUpdateManyWithWhereWithoutAgentInput[] + deleteMany?: Prisma.AgentSkillScalarWhereInput | Prisma.AgentSkillScalarWhereInput[] +} + +export type AgentSkillCreateWithoutSkillInput = { + id?: string + createdAt?: Date | string + updatedAt?: Date | string + agent: Prisma.AgentCreateNestedOneWithoutSkillsInput +} + +export type AgentSkillUncheckedCreateWithoutSkillInput = { + id?: string + agentId: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AgentSkillCreateOrConnectWithoutSkillInput = { + where: Prisma.AgentSkillWhereUniqueInput + create: Prisma.XOR< + Prisma.AgentSkillCreateWithoutSkillInput, + Prisma.AgentSkillUncheckedCreateWithoutSkillInput + > +} + +export type AgentSkillCreateManySkillInputEnvelope = { + data: Prisma.AgentSkillCreateManySkillInput | Prisma.AgentSkillCreateManySkillInput[] + skipDuplicates?: boolean +} + +export type AgentSkillUpsertWithWhereUniqueWithoutSkillInput = { + where: Prisma.AgentSkillWhereUniqueInput + update: Prisma.XOR< + Prisma.AgentSkillUpdateWithoutSkillInput, + Prisma.AgentSkillUncheckedUpdateWithoutSkillInput + > + create: Prisma.XOR< + Prisma.AgentSkillCreateWithoutSkillInput, + Prisma.AgentSkillUncheckedCreateWithoutSkillInput + > +} + +export type AgentSkillUpdateWithWhereUniqueWithoutSkillInput = { + where: Prisma.AgentSkillWhereUniqueInput + data: Prisma.XOR< + Prisma.AgentSkillUpdateWithoutSkillInput, + Prisma.AgentSkillUncheckedUpdateWithoutSkillInput + > +} + +export type AgentSkillUpdateManyWithWhereWithoutSkillInput = { + where: Prisma.AgentSkillScalarWhereInput + data: Prisma.XOR< + Prisma.AgentSkillUpdateManyMutationInput, + Prisma.AgentSkillUncheckedUpdateManyWithoutSkillInput + > +} + +export type AgentSkillScalarWhereInput = { + AND?: Prisma.AgentSkillScalarWhereInput | Prisma.AgentSkillScalarWhereInput[] + OR?: Prisma.AgentSkillScalarWhereInput[] + NOT?: Prisma.AgentSkillScalarWhereInput | Prisma.AgentSkillScalarWhereInput[] + id?: Prisma.StringFilter<'AgentSkill'> | string + agentId?: Prisma.StringFilter<'AgentSkill'> | string + skillId?: Prisma.StringFilter<'AgentSkill'> | string + createdAt?: Prisma.DateTimeFilter<'AgentSkill'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AgentSkill'> | Date | string +} + +export type AgentSkillCreateWithoutAgentInput = { + id?: string + createdAt?: Date | string + updatedAt?: Date | string + skill: Prisma.SkillCreateNestedOneWithoutAgentSkillsInput +} + +export type AgentSkillUncheckedCreateWithoutAgentInput = { + id?: string + skillId: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AgentSkillCreateOrConnectWithoutAgentInput = { + where: Prisma.AgentSkillWhereUniqueInput + create: Prisma.XOR< + Prisma.AgentSkillCreateWithoutAgentInput, + Prisma.AgentSkillUncheckedCreateWithoutAgentInput + > +} + +export type AgentSkillCreateManyAgentInputEnvelope = { + data: Prisma.AgentSkillCreateManyAgentInput | Prisma.AgentSkillCreateManyAgentInput[] + skipDuplicates?: boolean +} + +export type AgentSkillUpsertWithWhereUniqueWithoutAgentInput = { + where: Prisma.AgentSkillWhereUniqueInput + update: Prisma.XOR< + Prisma.AgentSkillUpdateWithoutAgentInput, + Prisma.AgentSkillUncheckedUpdateWithoutAgentInput + > + create: Prisma.XOR< + Prisma.AgentSkillCreateWithoutAgentInput, + Prisma.AgentSkillUncheckedCreateWithoutAgentInput + > +} + +export type AgentSkillUpdateWithWhereUniqueWithoutAgentInput = { + where: Prisma.AgentSkillWhereUniqueInput + data: Prisma.XOR< + Prisma.AgentSkillUpdateWithoutAgentInput, + Prisma.AgentSkillUncheckedUpdateWithoutAgentInput + > +} + +export type AgentSkillUpdateManyWithWhereWithoutAgentInput = { + where: Prisma.AgentSkillScalarWhereInput + data: Prisma.XOR< + Prisma.AgentSkillUpdateManyMutationInput, + Prisma.AgentSkillUncheckedUpdateManyWithoutAgentInput + > +} + +export type AgentSkillCreateManySkillInput = { + id?: string + agentId: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AgentSkillUpdateWithoutSkillInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agent?: Prisma.AgentUpdateOneRequiredWithoutSkillsNestedInput +} + +export type AgentSkillUncheckedUpdateWithoutSkillInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + agentId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentSkillUncheckedUpdateManyWithoutSkillInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + agentId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentSkillCreateManyAgentInput = { + id?: string + skillId: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AgentSkillUpdateWithoutAgentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + skill?: Prisma.SkillUpdateOneRequiredWithoutAgentSkillsNestedInput +} + +export type AgentSkillUncheckedUpdateWithoutAgentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + skillId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentSkillUncheckedUpdateManyWithoutAgentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + skillId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AgentSkillSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + agentId?: boolean + skillId?: boolean + createdAt?: boolean + updatedAt?: boolean + agent?: boolean | Prisma.AgentDefaultArgs + skill?: boolean | Prisma.SkillDefaultArgs + }, + ExtArgs['result']['agentSkill'] +> + +export type AgentSkillSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + agentId?: boolean + skillId?: boolean + createdAt?: boolean + updatedAt?: boolean + agent?: boolean | Prisma.AgentDefaultArgs + skill?: boolean | Prisma.SkillDefaultArgs + }, + ExtArgs['result']['agentSkill'] +> + +export type AgentSkillSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + agentId?: boolean + skillId?: boolean + createdAt?: boolean + updatedAt?: boolean + agent?: boolean | Prisma.AgentDefaultArgs + skill?: boolean | Prisma.SkillDefaultArgs + }, + ExtArgs['result']['agentSkill'] +> + +export type AgentSkillSelectScalar = { + id?: boolean + agentId?: boolean + skillId?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type AgentSkillOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'agentId' | 'skillId' | 'createdAt' | 'updatedAt', + ExtArgs['result']['agentSkill'] +> +export type AgentSkillInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + agent?: boolean | Prisma.AgentDefaultArgs + skill?: boolean | Prisma.SkillDefaultArgs +} +export type AgentSkillIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + agent?: boolean | Prisma.AgentDefaultArgs + skill?: boolean | Prisma.SkillDefaultArgs +} +export type AgentSkillIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + agent?: boolean | Prisma.AgentDefaultArgs + skill?: boolean | Prisma.SkillDefaultArgs +} + +export type $AgentSkillPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'AgentSkill' + objects: { + agent: Prisma.$AgentPayload + skill: Prisma.$SkillPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + agentId: string + skillId: string + createdAt: Date + updatedAt: Date + }, + ExtArgs['result']['agentSkill'] + > + composites: {} +} + +export type AgentSkillGetPayload = + runtime.Types.Result.GetResult + +export type AgentSkillCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: AgentSkillCountAggregateInputType | true +} + +export interface AgentSkillDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['AgentSkill'] + meta: { name: 'AgentSkill' } + } + /** + * Find zero or one AgentSkill that matches the filter. + * @param {AgentSkillFindUniqueArgs} args - Arguments to find a AgentSkill + * @example + * // Get one AgentSkill + * const agentSkill = await prisma.agentSkill.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSkillClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSkillPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one AgentSkill that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AgentSkillFindUniqueOrThrowArgs} args - Arguments to find a AgentSkill + * @example + * // Get one AgentSkill + * const agentSkill = await prisma.agentSkill.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSkillClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSkillPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AgentSkill that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSkillFindFirstArgs} args - Arguments to find a AgentSkill + * @example + * // Get one AgentSkill + * const agentSkill = await prisma.agentSkill.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSkillClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSkillPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AgentSkill that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSkillFindFirstOrThrowArgs} args - Arguments to find a AgentSkill + * @example + * // Get one AgentSkill + * const agentSkill = await prisma.agentSkill.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSkillClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSkillPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more AgentSkills that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSkillFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all AgentSkills + * const agentSkills = await prisma.agentSkill.findMany() + * + * // Get first 10 AgentSkills + * const agentSkills = await prisma.agentSkill.findMany({ take: 10 }) + * + * // Only select the `id` + * const agentSkillWithIdOnly = await prisma.agentSkill.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AgentSkillPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a AgentSkill. + * @param {AgentSkillCreateArgs} args - Arguments to create a AgentSkill. + * @example + * // Create one AgentSkill + * const AgentSkill = await prisma.agentSkill.create({ + * data: { + * // ... data to create a AgentSkill + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSkillClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSkillPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many AgentSkills. + * @param {AgentSkillCreateManyArgs} args - Arguments to create many AgentSkills. + * @example + * // Create many AgentSkills + * const agentSkill = await prisma.agentSkill.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many AgentSkills and returns the data saved in the database. + * @param {AgentSkillCreateManyAndReturnArgs} args - Arguments to create many AgentSkills. + * @example + * // Create many AgentSkills + * const agentSkill = await prisma.agentSkill.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many AgentSkills and only return the `id` + * const agentSkillWithIdOnly = await prisma.agentSkill.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AgentSkillPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a AgentSkill. + * @param {AgentSkillDeleteArgs} args - Arguments to delete one AgentSkill. + * @example + * // Delete one AgentSkill + * const AgentSkill = await prisma.agentSkill.delete({ + * where: { + * // ... filter to delete one AgentSkill + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSkillClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSkillPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one AgentSkill. + * @param {AgentSkillUpdateArgs} args - Arguments to update one AgentSkill. + * @example + * // Update one AgentSkill + * const agentSkill = await prisma.agentSkill.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSkillClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSkillPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more AgentSkills. + * @param {AgentSkillDeleteManyArgs} args - Arguments to filter AgentSkills to delete. + * @example + * // Delete a few AgentSkills + * const { count } = await prisma.agentSkill.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AgentSkills. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSkillUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many AgentSkills + * const agentSkill = await prisma.agentSkill.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AgentSkills and returns the data updated in the database. + * @param {AgentSkillUpdateManyAndReturnArgs} args - Arguments to update many AgentSkills. + * @example + * // Update many AgentSkills + * const agentSkill = await prisma.agentSkill.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more AgentSkills and only return the `id` + * const agentSkillWithIdOnly = await prisma.agentSkill.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AgentSkillPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one AgentSkill. + * @param {AgentSkillUpsertArgs} args - Arguments to update or create a AgentSkill. + * @example + * // Update or create a AgentSkill + * const agentSkill = await prisma.agentSkill.upsert({ + * create: { + * // ... data to create a AgentSkill + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the AgentSkill we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AgentSkillClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSkillPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of AgentSkills. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSkillCountArgs} args - Arguments to filter AgentSkills to count. + * @example + * // Count the number of AgentSkills + * const count = await prisma.agentSkill.count({ + * where: { + * // ... the filter for the AgentSkills we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a AgentSkill. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSkillAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by AgentSkill. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AgentSkillGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends AgentSkillGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AgentSkillGroupByArgs['orderBy'] } + : { orderBy?: AgentSkillGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetAgentSkillGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the AgentSkill model + */ + readonly fields: AgentSkillFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for AgentSkill. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__AgentSkillClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + agent = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AgentClient< + | runtime.Types.Result.GetResult< + Prisma.$AgentPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + skill = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__SkillClient< + | runtime.Types.Result.GetResult< + Prisma.$SkillPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the AgentSkill model + */ +export interface AgentSkillFieldRefs { + readonly id: Prisma.FieldRef<'AgentSkill', 'String'> + readonly agentId: Prisma.FieldRef<'AgentSkill', 'String'> + readonly skillId: Prisma.FieldRef<'AgentSkill', 'String'> + readonly createdAt: Prisma.FieldRef<'AgentSkill', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'AgentSkill', 'DateTime'> +} + +// Custom InputTypes +/** + * AgentSkill findUnique + */ +export type AgentSkillFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelect | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillInclude | null + /** + * Filter, which AgentSkill to fetch. + */ + where: Prisma.AgentSkillWhereUniqueInput +} + +/** + * AgentSkill findUniqueOrThrow + */ +export type AgentSkillFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelect | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillInclude | null + /** + * Filter, which AgentSkill to fetch. + */ + where: Prisma.AgentSkillWhereUniqueInput +} + +/** + * AgentSkill findFirst + */ +export type AgentSkillFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelect | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillInclude | null + /** + * Filter, which AgentSkill to fetch. + */ + where?: Prisma.AgentSkillWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AgentSkills to fetch. + */ + orderBy?: Prisma.AgentSkillOrderByWithRelationInput | Prisma.AgentSkillOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AgentSkills. + */ + cursor?: Prisma.AgentSkillWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AgentSkills from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AgentSkills. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AgentSkills. + */ + distinct?: Prisma.AgentSkillScalarFieldEnum | Prisma.AgentSkillScalarFieldEnum[] +} + +/** + * AgentSkill findFirstOrThrow + */ +export type AgentSkillFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelect | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillInclude | null + /** + * Filter, which AgentSkill to fetch. + */ + where?: Prisma.AgentSkillWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AgentSkills to fetch. + */ + orderBy?: Prisma.AgentSkillOrderByWithRelationInput | Prisma.AgentSkillOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AgentSkills. + */ + cursor?: Prisma.AgentSkillWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AgentSkills from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AgentSkills. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AgentSkills. + */ + distinct?: Prisma.AgentSkillScalarFieldEnum | Prisma.AgentSkillScalarFieldEnum[] +} + +/** + * AgentSkill findMany + */ +export type AgentSkillFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelect | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillInclude | null + /** + * Filter, which AgentSkills to fetch. + */ + where?: Prisma.AgentSkillWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AgentSkills to fetch. + */ + orderBy?: Prisma.AgentSkillOrderByWithRelationInput | Prisma.AgentSkillOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing AgentSkills. + */ + cursor?: Prisma.AgentSkillWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AgentSkills from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AgentSkills. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AgentSkills. + */ + distinct?: Prisma.AgentSkillScalarFieldEnum | Prisma.AgentSkillScalarFieldEnum[] +} + +/** + * AgentSkill create + */ +export type AgentSkillCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelect | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillInclude | null + /** + * The data needed to create a AgentSkill. + */ + data: Prisma.XOR +} + +/** + * AgentSkill createMany + */ +export type AgentSkillCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many AgentSkills. + */ + data: Prisma.AgentSkillCreateManyInput | Prisma.AgentSkillCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * AgentSkill createManyAndReturn + */ +export type AgentSkillCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelectCreateManyAndReturn | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * The data used to create many AgentSkills. + */ + data: Prisma.AgentSkillCreateManyInput | Prisma.AgentSkillCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillIncludeCreateManyAndReturn | null +} + +/** + * AgentSkill update + */ +export type AgentSkillUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelect | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillInclude | null + /** + * The data needed to update a AgentSkill. + */ + data: Prisma.XOR + /** + * Choose, which AgentSkill to update. + */ + where: Prisma.AgentSkillWhereUniqueInput +} + +/** + * AgentSkill updateMany + */ +export type AgentSkillUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update AgentSkills. + */ + data: Prisma.XOR< + Prisma.AgentSkillUpdateManyMutationInput, + Prisma.AgentSkillUncheckedUpdateManyInput + > + /** + * Filter which AgentSkills to update + */ + where?: Prisma.AgentSkillWhereInput + /** + * Limit how many AgentSkills to update. + */ + limit?: number +} + +/** + * AgentSkill updateManyAndReturn + */ +export type AgentSkillUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * The data used to update AgentSkills. + */ + data: Prisma.XOR< + Prisma.AgentSkillUpdateManyMutationInput, + Prisma.AgentSkillUncheckedUpdateManyInput + > + /** + * Filter which AgentSkills to update + */ + where?: Prisma.AgentSkillWhereInput + /** + * Limit how many AgentSkills to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillIncludeUpdateManyAndReturn | null +} + +/** + * AgentSkill upsert + */ +export type AgentSkillUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelect | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillInclude | null + /** + * The filter to search for the AgentSkill to update in case it exists. + */ + where: Prisma.AgentSkillWhereUniqueInput + /** + * In case the AgentSkill found by the `where` argument doesn't exist, create a new AgentSkill with this data. + */ + create: Prisma.XOR + /** + * In case the AgentSkill was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * AgentSkill delete + */ +export type AgentSkillDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelect | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillInclude | null + /** + * Filter which AgentSkill to delete. + */ + where: Prisma.AgentSkillWhereUniqueInput +} + +/** + * AgentSkill deleteMany + */ +export type AgentSkillDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AgentSkills to delete + */ + where?: Prisma.AgentSkillWhereInput + /** + * Limit how many AgentSkills to delete. + */ + limit?: number +} + +/** + * AgentSkill without action + */ +export type AgentSkillDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelect | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillInclude | null +} diff --git a/packages/db/src/generated/prisma/models/Asset.ts b/packages/db/src/generated/prisma/models/Asset.ts new file mode 100644 index 00000000..c9c82178 --- /dev/null +++ b/packages/db/src/generated/prisma/models/Asset.ts @@ -0,0 +1,6815 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Asset` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Asset + * + */ +export type AssetModel = runtime.Types.Result.DefaultSelection + +export type AggregateAsset = { + _count: AssetCountAggregateOutputType | null + _avg: AssetAvgAggregateOutputType | null + _sum: AssetSumAggregateOutputType | null + _min: AssetMinAggregateOutputType | null + _max: AssetMaxAggregateOutputType | null +} + +export type AssetAvgAggregateOutputType = { + fileCount: number | null + sizeByte: number | null +} + +export type AssetSumAggregateOutputType = { + fileCount: number | null + sizeByte: number | null +} + +export type AssetMinAggregateOutputType = { + id: string | null + name: string | null + type: $Enums.AssetType | null + mediaType: string | null + fileCount: number | null + sizeByte: number | null + status: $Enums.AssetStatus | null + transcodeTaskId: string | null + isDeleted: boolean | null + deletedAt: Date | null + sortIndex: string | null + createdAt: Date | null + updatedAt: Date | null + parentId: string | null + targetId: string | null + storageKeyId: string | null + creatorId: string | null + taskId: string | null + projectId: string | null +} + +export type AssetMaxAggregateOutputType = { + id: string | null + name: string | null + type: $Enums.AssetType | null + mediaType: string | null + fileCount: number | null + sizeByte: number | null + status: $Enums.AssetStatus | null + transcodeTaskId: string | null + isDeleted: boolean | null + deletedAt: Date | null + sortIndex: string | null + createdAt: Date | null + updatedAt: Date | null + parentId: string | null + targetId: string | null + storageKeyId: string | null + creatorId: string | null + taskId: string | null + projectId: string | null +} + +export type AssetCountAggregateOutputType = { + id: number + name: number + nameNgram: number + type: number + mediaType: number + fileCount: number + sizeByte: number + status: number + transcodeTaskId: number + media: PrismaJson.MediaInfo + isDeleted: number + deletedAt: number + sortIndex: number + createdAt: number + updatedAt: number + parentId: number + targetId: number + storageKeyId: number + creatorId: number + taskId: number + projectId: number + _all: number +} + +export type AssetAvgAggregateInputType = { + fileCount?: true + sizeByte?: true +} + +export type AssetSumAggregateInputType = { + fileCount?: true + sizeByte?: true +} + +export type AssetMinAggregateInputType = { + id?: true + name?: true + type?: true + mediaType?: true + fileCount?: true + sizeByte?: true + status?: true + transcodeTaskId?: true + isDeleted?: true + deletedAt?: true + sortIndex?: true + createdAt?: true + updatedAt?: true + parentId?: true + targetId?: true + storageKeyId?: true + creatorId?: true + taskId?: true + projectId?: true +} + +export type AssetMaxAggregateInputType = { + id?: true + name?: true + type?: true + mediaType?: true + fileCount?: true + sizeByte?: true + status?: true + transcodeTaskId?: true + isDeleted?: true + deletedAt?: true + sortIndex?: true + createdAt?: true + updatedAt?: true + parentId?: true + targetId?: true + storageKeyId?: true + creatorId?: true + taskId?: true + projectId?: true +} + +export type AssetCountAggregateInputType = { + id?: true + name?: true + nameNgram?: true + type?: true + mediaType?: true + fileCount?: true + sizeByte?: true + status?: true + transcodeTaskId?: true + media?: true + isDeleted?: true + deletedAt?: true + sortIndex?: true + createdAt?: true + updatedAt?: true + parentId?: true + targetId?: true + storageKeyId?: true + creatorId?: true + taskId?: true + projectId?: true + _all?: true +} + +export type AssetAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Asset to aggregate. + */ + where?: Prisma.AssetWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Assets to fetch. + */ + orderBy?: Prisma.AssetOrderByWithRelationInput | Prisma.AssetOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AssetWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Assets from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Assets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Assets + **/ + _count?: true | AssetCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: AssetAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: AssetSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AssetMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AssetMaxAggregateInputType +} + +export type GetAssetAggregateType = { + [P in keyof T & keyof AggregateAsset]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type AssetGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetWhereInput + orderBy?: Prisma.AssetOrderByWithAggregationInput | Prisma.AssetOrderByWithAggregationInput[] + by: Prisma.AssetScalarFieldEnum[] | Prisma.AssetScalarFieldEnum + having?: Prisma.AssetScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AssetCountAggregateInputType | true + _avg?: AssetAvgAggregateInputType + _sum?: AssetSumAggregateInputType + _min?: AssetMinAggregateInputType + _max?: AssetMaxAggregateInputType +} + +export type AssetGroupByOutputType = { + id: string + name: string + nameNgram: string[] + type: $Enums.AssetType + mediaType: string | null + fileCount: number + sizeByte: number + status: $Enums.AssetStatus + transcodeTaskId: string | null + media: PrismaJson.MediaInfo | null + isDeleted: boolean + deletedAt: Date | null + sortIndex: string | null + createdAt: Date + updatedAt: Date + parentId: string | null + targetId: string | null + storageKeyId: string | null + creatorId: string | null + taskId: string | null + projectId: string | null + _count: AssetCountAggregateOutputType | null + _avg: AssetAvgAggregateOutputType | null + _sum: AssetSumAggregateOutputType | null + _min: AssetMinAggregateOutputType | null + _max: AssetMaxAggregateOutputType | null +} + +export type GetAssetGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof AssetGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type AssetWhereInput = { + AND?: Prisma.AssetWhereInput | Prisma.AssetWhereInput[] + OR?: Prisma.AssetWhereInput[] + NOT?: Prisma.AssetWhereInput | Prisma.AssetWhereInput[] + id?: Prisma.StringFilter<'Asset'> | string + name?: Prisma.StringFilter<'Asset'> | string + nameNgram?: Prisma.StringNullableListFilter<'Asset'> + type?: Prisma.EnumAssetTypeFilter<'Asset'> | $Enums.AssetType + mediaType?: Prisma.StringNullableFilter<'Asset'> | string | null + fileCount?: Prisma.IntFilter<'Asset'> | number + sizeByte?: Prisma.IntFilter<'Asset'> | number + status?: Prisma.EnumAssetStatusFilter<'Asset'> | $Enums.AssetStatus + transcodeTaskId?: Prisma.StringNullableFilter<'Asset'> | string | null + media?: Prisma.JsonNullableFilter<'Asset'> + isDeleted?: Prisma.BoolFilter<'Asset'> | boolean + deletedAt?: Prisma.DateTimeNullableFilter<'Asset'> | Date | string | null + sortIndex?: Prisma.StringNullableFilter<'Asset'> | string | null + createdAt?: Prisma.DateTimeFilter<'Asset'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Asset'> | Date | string + parentId?: Prisma.StringNullableFilter<'Asset'> | string | null + targetId?: Prisma.StringNullableFilter<'Asset'> | string | null + storageKeyId?: Prisma.StringNullableFilter<'Asset'> | string | null + creatorId?: Prisma.StringNullableFilter<'Asset'> | string | null + taskId?: Prisma.StringNullableFilter<'Asset'> | string | null + projectId?: Prisma.StringNullableFilter<'Asset'> | string | null + parent?: Prisma.XOR | null + children?: Prisma.AssetListRelationFilter + target?: Prisma.XOR | null + symlinks?: Prisma.AssetListRelationFilter + storageKey?: Prisma.XOR< + Prisma.StorageKeyNullableScalarRelationFilter, + Prisma.StorageKeyWhereInput + > | null + metadataValues?: Prisma.AssetMetadataValueListRelationFilter + creator?: Prisma.XOR | null + task?: Prisma.XOR | null + project?: Prisma.XOR | null + comments?: Prisma.AssetCommentListRelationFilter + commentAttachments?: Prisma.AssetCommentAttachmentListRelationFilter + notifications?: Prisma.NotificationListRelationFilter + embeddings?: Prisma.AssetEmbeddingListRelationFilter + teamRootFolder?: Prisma.XOR | null + projectRootFolder?: Prisma.XOR< + Prisma.ProjectNullableScalarRelationFilter, + Prisma.ProjectWhereInput + > | null + projectShareRoot?: Prisma.XOR< + Prisma.ProjectNullableScalarRelationFilter, + Prisma.ProjectWhereInput + > | null + shareLinkRootFolder?: Prisma.XOR< + Prisma.ShareLinkNullableScalarRelationFilter, + Prisma.ShareLinkWhereInput + > | null +} + +export type AssetOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + nameNgram?: Prisma.SortOrder + type?: Prisma.SortOrder + mediaType?: Prisma.SortOrderInput | Prisma.SortOrder + fileCount?: Prisma.SortOrder + sizeByte?: Prisma.SortOrder + status?: Prisma.SortOrder + transcodeTaskId?: Prisma.SortOrderInput | Prisma.SortOrder + media?: Prisma.SortOrderInput | Prisma.SortOrder + isDeleted?: Prisma.SortOrder + deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder + sortIndex?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + parentId?: Prisma.SortOrderInput | Prisma.SortOrder + targetId?: Prisma.SortOrderInput | Prisma.SortOrder + storageKeyId?: Prisma.SortOrderInput | Prisma.SortOrder + creatorId?: Prisma.SortOrderInput | Prisma.SortOrder + taskId?: Prisma.SortOrderInput | Prisma.SortOrder + projectId?: Prisma.SortOrderInput | Prisma.SortOrder + parent?: Prisma.AssetOrderByWithRelationInput + children?: Prisma.AssetOrderByRelationAggregateInput + target?: Prisma.AssetOrderByWithRelationInput + symlinks?: Prisma.AssetOrderByRelationAggregateInput + storageKey?: Prisma.StorageKeyOrderByWithRelationInput + metadataValues?: Prisma.AssetMetadataValueOrderByRelationAggregateInput + creator?: Prisma.UserOrderByWithRelationInput + task?: Prisma.TaskOrderByWithRelationInput + project?: Prisma.ProjectOrderByWithRelationInput + comments?: Prisma.AssetCommentOrderByRelationAggregateInput + commentAttachments?: Prisma.AssetCommentAttachmentOrderByRelationAggregateInput + notifications?: Prisma.NotificationOrderByRelationAggregateInput + embeddings?: Prisma.AssetEmbeddingOrderByRelationAggregateInput + teamRootFolder?: Prisma.TeamOrderByWithRelationInput + projectRootFolder?: Prisma.ProjectOrderByWithRelationInput + projectShareRoot?: Prisma.ProjectOrderByWithRelationInput + shareLinkRootFolder?: Prisma.ShareLinkOrderByWithRelationInput +} + +export type AssetWhereUniqueInput = Prisma.AtLeast< + { + id?: string + parentIdTargetId?: Prisma.AssetParentIdTargetIdCompoundUniqueInput + AND?: Prisma.AssetWhereInput | Prisma.AssetWhereInput[] + OR?: Prisma.AssetWhereInput[] + NOT?: Prisma.AssetWhereInput | Prisma.AssetWhereInput[] + name?: Prisma.StringFilter<'Asset'> | string + nameNgram?: Prisma.StringNullableListFilter<'Asset'> + type?: Prisma.EnumAssetTypeFilter<'Asset'> | $Enums.AssetType + mediaType?: Prisma.StringNullableFilter<'Asset'> | string | null + fileCount?: Prisma.IntFilter<'Asset'> | number + sizeByte?: Prisma.IntFilter<'Asset'> | number + status?: Prisma.EnumAssetStatusFilter<'Asset'> | $Enums.AssetStatus + transcodeTaskId?: Prisma.StringNullableFilter<'Asset'> | string | null + media?: Prisma.JsonNullableFilter<'Asset'> + isDeleted?: Prisma.BoolFilter<'Asset'> | boolean + deletedAt?: Prisma.DateTimeNullableFilter<'Asset'> | Date | string | null + sortIndex?: Prisma.StringNullableFilter<'Asset'> | string | null + createdAt?: Prisma.DateTimeFilter<'Asset'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Asset'> | Date | string + parentId?: Prisma.StringNullableFilter<'Asset'> | string | null + targetId?: Prisma.StringNullableFilter<'Asset'> | string | null + storageKeyId?: Prisma.StringNullableFilter<'Asset'> | string | null + creatorId?: Prisma.StringNullableFilter<'Asset'> | string | null + taskId?: Prisma.StringNullableFilter<'Asset'> | string | null + projectId?: Prisma.StringNullableFilter<'Asset'> | string | null + parent?: Prisma.XOR | null + children?: Prisma.AssetListRelationFilter + target?: Prisma.XOR | null + symlinks?: Prisma.AssetListRelationFilter + storageKey?: Prisma.XOR< + Prisma.StorageKeyNullableScalarRelationFilter, + Prisma.StorageKeyWhereInput + > | null + metadataValues?: Prisma.AssetMetadataValueListRelationFilter + creator?: Prisma.XOR | null + task?: Prisma.XOR | null + project?: Prisma.XOR< + Prisma.ProjectNullableScalarRelationFilter, + Prisma.ProjectWhereInput + > | null + comments?: Prisma.AssetCommentListRelationFilter + commentAttachments?: Prisma.AssetCommentAttachmentListRelationFilter + notifications?: Prisma.NotificationListRelationFilter + embeddings?: Prisma.AssetEmbeddingListRelationFilter + teamRootFolder?: Prisma.XOR< + Prisma.TeamNullableScalarRelationFilter, + Prisma.TeamWhereInput + > | null + projectRootFolder?: Prisma.XOR< + Prisma.ProjectNullableScalarRelationFilter, + Prisma.ProjectWhereInput + > | null + projectShareRoot?: Prisma.XOR< + Prisma.ProjectNullableScalarRelationFilter, + Prisma.ProjectWhereInput + > | null + shareLinkRootFolder?: Prisma.XOR< + Prisma.ShareLinkNullableScalarRelationFilter, + Prisma.ShareLinkWhereInput + > | null + }, + 'id' | 'parentIdTargetId' +> + +export type AssetOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + nameNgram?: Prisma.SortOrder + type?: Prisma.SortOrder + mediaType?: Prisma.SortOrderInput | Prisma.SortOrder + fileCount?: Prisma.SortOrder + sizeByte?: Prisma.SortOrder + status?: Prisma.SortOrder + transcodeTaskId?: Prisma.SortOrderInput | Prisma.SortOrder + media?: Prisma.SortOrderInput | Prisma.SortOrder + isDeleted?: Prisma.SortOrder + deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder + sortIndex?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + parentId?: Prisma.SortOrderInput | Prisma.SortOrder + targetId?: Prisma.SortOrderInput | Prisma.SortOrder + storageKeyId?: Prisma.SortOrderInput | Prisma.SortOrder + creatorId?: Prisma.SortOrderInput | Prisma.SortOrder + taskId?: Prisma.SortOrderInput | Prisma.SortOrder + projectId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.AssetCountOrderByAggregateInput + _avg?: Prisma.AssetAvgOrderByAggregateInput + _max?: Prisma.AssetMaxOrderByAggregateInput + _min?: Prisma.AssetMinOrderByAggregateInput + _sum?: Prisma.AssetSumOrderByAggregateInput +} + +export type AssetScalarWhereWithAggregatesInput = { + AND?: Prisma.AssetScalarWhereWithAggregatesInput | Prisma.AssetScalarWhereWithAggregatesInput[] + OR?: Prisma.AssetScalarWhereWithAggregatesInput[] + NOT?: Prisma.AssetScalarWhereWithAggregatesInput | Prisma.AssetScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Asset'> | string + name?: Prisma.StringWithAggregatesFilter<'Asset'> | string + nameNgram?: Prisma.StringNullableListFilter<'Asset'> + type?: Prisma.EnumAssetTypeWithAggregatesFilter<'Asset'> | $Enums.AssetType + mediaType?: Prisma.StringNullableWithAggregatesFilter<'Asset'> | string | null + fileCount?: Prisma.IntWithAggregatesFilter<'Asset'> | number + sizeByte?: Prisma.IntWithAggregatesFilter<'Asset'> | number + status?: Prisma.EnumAssetStatusWithAggregatesFilter<'Asset'> | $Enums.AssetStatus + transcodeTaskId?: Prisma.StringNullableWithAggregatesFilter<'Asset'> | string | null + media?: Prisma.JsonNullableWithAggregatesFilter<'Asset'> + isDeleted?: Prisma.BoolWithAggregatesFilter<'Asset'> | boolean + deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<'Asset'> | Date | string | null + sortIndex?: Prisma.StringNullableWithAggregatesFilter<'Asset'> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Asset'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Asset'> | Date | string + parentId?: Prisma.StringNullableWithAggregatesFilter<'Asset'> | string | null + targetId?: Prisma.StringNullableWithAggregatesFilter<'Asset'> | string | null + storageKeyId?: Prisma.StringNullableWithAggregatesFilter<'Asset'> | string | null + creatorId?: Prisma.StringNullableWithAggregatesFilter<'Asset'> | string | null + taskId?: Prisma.StringNullableWithAggregatesFilter<'Asset'> | string | null + projectId?: Prisma.StringNullableWithAggregatesFilter<'Asset'> | string | null +} + +export type AssetCreateInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetCreateManyInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null +} + +export type AssetUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AssetUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type AssetListRelationFilter = { + every?: Prisma.AssetWhereInput + some?: Prisma.AssetWhereInput + none?: Prisma.AssetWhereInput +} + +export type AssetOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AssetNullableScalarRelationFilter = { + is?: Prisma.AssetWhereInput | null + isNot?: Prisma.AssetWhereInput | null +} + +export type AssetScalarRelationFilter = { + is?: Prisma.AssetWhereInput + isNot?: Prisma.AssetWhereInput +} + +export type AssetParentIdTargetIdCompoundUniqueInput = { + parentId: string + targetId: string +} + +export type AssetCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + nameNgram?: Prisma.SortOrder + type?: Prisma.SortOrder + mediaType?: Prisma.SortOrder + fileCount?: Prisma.SortOrder + sizeByte?: Prisma.SortOrder + status?: Prisma.SortOrder + transcodeTaskId?: Prisma.SortOrder + media?: Prisma.SortOrder + isDeleted?: Prisma.SortOrder + deletedAt?: Prisma.SortOrder + sortIndex?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + parentId?: Prisma.SortOrder + targetId?: Prisma.SortOrder + storageKeyId?: Prisma.SortOrder + creatorId?: Prisma.SortOrder + taskId?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type AssetAvgOrderByAggregateInput = { + fileCount?: Prisma.SortOrder + sizeByte?: Prisma.SortOrder +} + +export type AssetMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + type?: Prisma.SortOrder + mediaType?: Prisma.SortOrder + fileCount?: Prisma.SortOrder + sizeByte?: Prisma.SortOrder + status?: Prisma.SortOrder + transcodeTaskId?: Prisma.SortOrder + isDeleted?: Prisma.SortOrder + deletedAt?: Prisma.SortOrder + sortIndex?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + parentId?: Prisma.SortOrder + targetId?: Prisma.SortOrder + storageKeyId?: Prisma.SortOrder + creatorId?: Prisma.SortOrder + taskId?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type AssetMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + type?: Prisma.SortOrder + mediaType?: Prisma.SortOrder + fileCount?: Prisma.SortOrder + sizeByte?: Prisma.SortOrder + status?: Prisma.SortOrder + transcodeTaskId?: Prisma.SortOrder + isDeleted?: Prisma.SortOrder + deletedAt?: Prisma.SortOrder + sortIndex?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + parentId?: Prisma.SortOrder + targetId?: Prisma.SortOrder + storageKeyId?: Prisma.SortOrder + creatorId?: Prisma.SortOrder + taskId?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type AssetSumOrderByAggregateInput = { + fileCount?: Prisma.SortOrder + sizeByte?: Prisma.SortOrder +} + +export type AssetCreateNestedManyWithoutCreatorInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutCreatorInput, + Prisma.AssetUncheckedCreateWithoutCreatorInput + > + | Prisma.AssetCreateWithoutCreatorInput[] + | Prisma.AssetUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutCreatorInput + | Prisma.AssetCreateOrConnectWithoutCreatorInput[] + createMany?: Prisma.AssetCreateManyCreatorInputEnvelope + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] +} + +export type AssetUncheckedCreateNestedManyWithoutCreatorInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutCreatorInput, + Prisma.AssetUncheckedCreateWithoutCreatorInput + > + | Prisma.AssetCreateWithoutCreatorInput[] + | Prisma.AssetUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutCreatorInput + | Prisma.AssetCreateOrConnectWithoutCreatorInput[] + createMany?: Prisma.AssetCreateManyCreatorInputEnvelope + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] +} + +export type AssetUpdateManyWithoutCreatorNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutCreatorInput, + Prisma.AssetUncheckedCreateWithoutCreatorInput + > + | Prisma.AssetCreateWithoutCreatorInput[] + | Prisma.AssetUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutCreatorInput + | Prisma.AssetCreateOrConnectWithoutCreatorInput[] + upsert?: + | Prisma.AssetUpsertWithWhereUniqueWithoutCreatorInput + | Prisma.AssetUpsertWithWhereUniqueWithoutCreatorInput[] + createMany?: Prisma.AssetCreateManyCreatorInputEnvelope + set?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + disconnect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + delete?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + update?: + | Prisma.AssetUpdateWithWhereUniqueWithoutCreatorInput + | Prisma.AssetUpdateWithWhereUniqueWithoutCreatorInput[] + updateMany?: + | Prisma.AssetUpdateManyWithWhereWithoutCreatorInput + | Prisma.AssetUpdateManyWithWhereWithoutCreatorInput[] + deleteMany?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] +} + +export type AssetUncheckedUpdateManyWithoutCreatorNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutCreatorInput, + Prisma.AssetUncheckedCreateWithoutCreatorInput + > + | Prisma.AssetCreateWithoutCreatorInput[] + | Prisma.AssetUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutCreatorInput + | Prisma.AssetCreateOrConnectWithoutCreatorInput[] + upsert?: + | Prisma.AssetUpsertWithWhereUniqueWithoutCreatorInput + | Prisma.AssetUpsertWithWhereUniqueWithoutCreatorInput[] + createMany?: Prisma.AssetCreateManyCreatorInputEnvelope + set?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + disconnect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + delete?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + update?: + | Prisma.AssetUpdateWithWhereUniqueWithoutCreatorInput + | Prisma.AssetUpdateWithWhereUniqueWithoutCreatorInput[] + updateMany?: + | Prisma.AssetUpdateManyWithWhereWithoutCreatorInput + | Prisma.AssetUpdateManyWithWhereWithoutCreatorInput[] + deleteMany?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] +} + +export type AssetCreateNestedOneWithoutTeamRootFolderInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutTeamRootFolderInput, + Prisma.AssetUncheckedCreateWithoutTeamRootFolderInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutTeamRootFolderInput + connect?: Prisma.AssetWhereUniqueInput +} + +export type AssetUpdateOneWithoutTeamRootFolderNestedInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutTeamRootFolderInput, + Prisma.AssetUncheckedCreateWithoutTeamRootFolderInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutTeamRootFolderInput + upsert?: Prisma.AssetUpsertWithoutTeamRootFolderInput + disconnect?: Prisma.AssetWhereInput | boolean + delete?: Prisma.AssetWhereInput | boolean + connect?: Prisma.AssetWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AssetUpdateToOneWithWhereWithoutTeamRootFolderInput, + Prisma.AssetUpdateWithoutTeamRootFolderInput + >, + Prisma.AssetUncheckedUpdateWithoutTeamRootFolderInput + > +} + +export type AssetCreateNestedOneWithoutProjectRootFolderInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutProjectRootFolderInput, + Prisma.AssetUncheckedCreateWithoutProjectRootFolderInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutProjectRootFolderInput + connect?: Prisma.AssetWhereUniqueInput +} + +export type AssetCreateNestedOneWithoutProjectShareRootInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutProjectShareRootInput, + Prisma.AssetUncheckedCreateWithoutProjectShareRootInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutProjectShareRootInput + connect?: Prisma.AssetWhereUniqueInput +} + +export type AssetCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutProjectInput, + Prisma.AssetUncheckedCreateWithoutProjectInput + > + | Prisma.AssetCreateWithoutProjectInput[] + | Prisma.AssetUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutProjectInput + | Prisma.AssetCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.AssetCreateManyProjectInputEnvelope + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] +} + +export type AssetUncheckedCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutProjectInput, + Prisma.AssetUncheckedCreateWithoutProjectInput + > + | Prisma.AssetCreateWithoutProjectInput[] + | Prisma.AssetUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutProjectInput + | Prisma.AssetCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.AssetCreateManyProjectInputEnvelope + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] +} + +export type AssetUpdateOneWithoutProjectRootFolderNestedInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutProjectRootFolderInput, + Prisma.AssetUncheckedCreateWithoutProjectRootFolderInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutProjectRootFolderInput + upsert?: Prisma.AssetUpsertWithoutProjectRootFolderInput + disconnect?: Prisma.AssetWhereInput | boolean + delete?: Prisma.AssetWhereInput | boolean + connect?: Prisma.AssetWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AssetUpdateToOneWithWhereWithoutProjectRootFolderInput, + Prisma.AssetUpdateWithoutProjectRootFolderInput + >, + Prisma.AssetUncheckedUpdateWithoutProjectRootFolderInput + > +} + +export type AssetUpdateOneWithoutProjectShareRootNestedInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutProjectShareRootInput, + Prisma.AssetUncheckedCreateWithoutProjectShareRootInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutProjectShareRootInput + upsert?: Prisma.AssetUpsertWithoutProjectShareRootInput + disconnect?: Prisma.AssetWhereInput | boolean + delete?: Prisma.AssetWhereInput | boolean + connect?: Prisma.AssetWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AssetUpdateToOneWithWhereWithoutProjectShareRootInput, + Prisma.AssetUpdateWithoutProjectShareRootInput + >, + Prisma.AssetUncheckedUpdateWithoutProjectShareRootInput + > +} + +export type AssetUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutProjectInput, + Prisma.AssetUncheckedCreateWithoutProjectInput + > + | Prisma.AssetCreateWithoutProjectInput[] + | Prisma.AssetUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutProjectInput + | Prisma.AssetCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.AssetUpsertWithWhereUniqueWithoutProjectInput + | Prisma.AssetUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.AssetCreateManyProjectInputEnvelope + set?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + disconnect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + delete?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + update?: + | Prisma.AssetUpdateWithWhereUniqueWithoutProjectInput + | Prisma.AssetUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.AssetUpdateManyWithWhereWithoutProjectInput + | Prisma.AssetUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] +} + +export type AssetUncheckedUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutProjectInput, + Prisma.AssetUncheckedCreateWithoutProjectInput + > + | Prisma.AssetCreateWithoutProjectInput[] + | Prisma.AssetUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutProjectInput + | Prisma.AssetCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.AssetUpsertWithWhereUniqueWithoutProjectInput + | Prisma.AssetUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.AssetCreateManyProjectInputEnvelope + set?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + disconnect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + delete?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + update?: + | Prisma.AssetUpdateWithWhereUniqueWithoutProjectInput + | Prisma.AssetUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.AssetUpdateManyWithWhereWithoutProjectInput + | Prisma.AssetUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] +} + +export type AssetCreateNestedOneWithoutShareLinkRootFolderInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutShareLinkRootFolderInput, + Prisma.AssetUncheckedCreateWithoutShareLinkRootFolderInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutShareLinkRootFolderInput + connect?: Prisma.AssetWhereUniqueInput +} + +export type AssetUpdateOneRequiredWithoutShareLinkRootFolderNestedInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutShareLinkRootFolderInput, + Prisma.AssetUncheckedCreateWithoutShareLinkRootFolderInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutShareLinkRootFolderInput + upsert?: Prisma.AssetUpsertWithoutShareLinkRootFolderInput + connect?: Prisma.AssetWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AssetUpdateToOneWithWhereWithoutShareLinkRootFolderInput, + Prisma.AssetUpdateWithoutShareLinkRootFolderInput + >, + Prisma.AssetUncheckedUpdateWithoutShareLinkRootFolderInput + > +} + +export type AssetCreatenameNgramInput = { + set: string[] +} + +export type AssetCreateNestedOneWithoutChildrenInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutChildrenInput, + Prisma.AssetUncheckedCreateWithoutChildrenInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutChildrenInput + connect?: Prisma.AssetWhereUniqueInput +} + +export type AssetCreateNestedManyWithoutParentInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutParentInput, + Prisma.AssetUncheckedCreateWithoutParentInput + > + | Prisma.AssetCreateWithoutParentInput[] + | Prisma.AssetUncheckedCreateWithoutParentInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutParentInput + | Prisma.AssetCreateOrConnectWithoutParentInput[] + createMany?: Prisma.AssetCreateManyParentInputEnvelope + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] +} + +export type AssetCreateNestedOneWithoutSymlinksInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutSymlinksInput, + Prisma.AssetUncheckedCreateWithoutSymlinksInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutSymlinksInput + connect?: Prisma.AssetWhereUniqueInput +} + +export type AssetCreateNestedManyWithoutTargetInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutTargetInput, + Prisma.AssetUncheckedCreateWithoutTargetInput + > + | Prisma.AssetCreateWithoutTargetInput[] + | Prisma.AssetUncheckedCreateWithoutTargetInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutTargetInput + | Prisma.AssetCreateOrConnectWithoutTargetInput[] + createMany?: Prisma.AssetCreateManyTargetInputEnvelope + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] +} + +export type AssetUncheckedCreateNestedManyWithoutParentInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutParentInput, + Prisma.AssetUncheckedCreateWithoutParentInput + > + | Prisma.AssetCreateWithoutParentInput[] + | Prisma.AssetUncheckedCreateWithoutParentInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutParentInput + | Prisma.AssetCreateOrConnectWithoutParentInput[] + createMany?: Prisma.AssetCreateManyParentInputEnvelope + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] +} + +export type AssetUncheckedCreateNestedManyWithoutTargetInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutTargetInput, + Prisma.AssetUncheckedCreateWithoutTargetInput + > + | Prisma.AssetCreateWithoutTargetInput[] + | Prisma.AssetUncheckedCreateWithoutTargetInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutTargetInput + | Prisma.AssetCreateOrConnectWithoutTargetInput[] + createMany?: Prisma.AssetCreateManyTargetInputEnvelope + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] +} + +export type AssetUpdatenameNgramInput = { + set?: string[] + push?: string | string[] +} + +export type EnumAssetTypeFieldUpdateOperationsInput = { + set?: $Enums.AssetType +} + +export type IntFieldUpdateOperationsInput = { + set?: number + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type EnumAssetStatusFieldUpdateOperationsInput = { + set?: $Enums.AssetStatus +} + +export type AssetUpdateOneWithoutChildrenNestedInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutChildrenInput, + Prisma.AssetUncheckedCreateWithoutChildrenInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutChildrenInput + upsert?: Prisma.AssetUpsertWithoutChildrenInput + disconnect?: Prisma.AssetWhereInput | boolean + delete?: Prisma.AssetWhereInput | boolean + connect?: Prisma.AssetWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AssetUpdateToOneWithWhereWithoutChildrenInput, + Prisma.AssetUpdateWithoutChildrenInput + >, + Prisma.AssetUncheckedUpdateWithoutChildrenInput + > +} + +export type AssetUpdateManyWithoutParentNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutParentInput, + Prisma.AssetUncheckedCreateWithoutParentInput + > + | Prisma.AssetCreateWithoutParentInput[] + | Prisma.AssetUncheckedCreateWithoutParentInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutParentInput + | Prisma.AssetCreateOrConnectWithoutParentInput[] + upsert?: + | Prisma.AssetUpsertWithWhereUniqueWithoutParentInput + | Prisma.AssetUpsertWithWhereUniqueWithoutParentInput[] + createMany?: Prisma.AssetCreateManyParentInputEnvelope + set?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + disconnect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + delete?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + update?: + | Prisma.AssetUpdateWithWhereUniqueWithoutParentInput + | Prisma.AssetUpdateWithWhereUniqueWithoutParentInput[] + updateMany?: + | Prisma.AssetUpdateManyWithWhereWithoutParentInput + | Prisma.AssetUpdateManyWithWhereWithoutParentInput[] + deleteMany?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] +} + +export type AssetUpdateOneWithoutSymlinksNestedInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutSymlinksInput, + Prisma.AssetUncheckedCreateWithoutSymlinksInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutSymlinksInput + upsert?: Prisma.AssetUpsertWithoutSymlinksInput + disconnect?: Prisma.AssetWhereInput | boolean + delete?: Prisma.AssetWhereInput | boolean + connect?: Prisma.AssetWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AssetUpdateToOneWithWhereWithoutSymlinksInput, + Prisma.AssetUpdateWithoutSymlinksInput + >, + Prisma.AssetUncheckedUpdateWithoutSymlinksInput + > +} + +export type AssetUpdateManyWithoutTargetNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutTargetInput, + Prisma.AssetUncheckedCreateWithoutTargetInput + > + | Prisma.AssetCreateWithoutTargetInput[] + | Prisma.AssetUncheckedCreateWithoutTargetInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutTargetInput + | Prisma.AssetCreateOrConnectWithoutTargetInput[] + upsert?: + | Prisma.AssetUpsertWithWhereUniqueWithoutTargetInput + | Prisma.AssetUpsertWithWhereUniqueWithoutTargetInput[] + createMany?: Prisma.AssetCreateManyTargetInputEnvelope + set?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + disconnect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + delete?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + update?: + | Prisma.AssetUpdateWithWhereUniqueWithoutTargetInput + | Prisma.AssetUpdateWithWhereUniqueWithoutTargetInput[] + updateMany?: + | Prisma.AssetUpdateManyWithWhereWithoutTargetInput + | Prisma.AssetUpdateManyWithWhereWithoutTargetInput[] + deleteMany?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] +} + +export type AssetUncheckedUpdateManyWithoutParentNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutParentInput, + Prisma.AssetUncheckedCreateWithoutParentInput + > + | Prisma.AssetCreateWithoutParentInput[] + | Prisma.AssetUncheckedCreateWithoutParentInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutParentInput + | Prisma.AssetCreateOrConnectWithoutParentInput[] + upsert?: + | Prisma.AssetUpsertWithWhereUniqueWithoutParentInput + | Prisma.AssetUpsertWithWhereUniqueWithoutParentInput[] + createMany?: Prisma.AssetCreateManyParentInputEnvelope + set?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + disconnect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + delete?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + update?: + | Prisma.AssetUpdateWithWhereUniqueWithoutParentInput + | Prisma.AssetUpdateWithWhereUniqueWithoutParentInput[] + updateMany?: + | Prisma.AssetUpdateManyWithWhereWithoutParentInput + | Prisma.AssetUpdateManyWithWhereWithoutParentInput[] + deleteMany?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] +} + +export type AssetUncheckedUpdateManyWithoutTargetNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutTargetInput, + Prisma.AssetUncheckedCreateWithoutTargetInput + > + | Prisma.AssetCreateWithoutTargetInput[] + | Prisma.AssetUncheckedCreateWithoutTargetInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutTargetInput + | Prisma.AssetCreateOrConnectWithoutTargetInput[] + upsert?: + | Prisma.AssetUpsertWithWhereUniqueWithoutTargetInput + | Prisma.AssetUpsertWithWhereUniqueWithoutTargetInput[] + createMany?: Prisma.AssetCreateManyTargetInputEnvelope + set?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + disconnect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + delete?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + update?: + | Prisma.AssetUpdateWithWhereUniqueWithoutTargetInput + | Prisma.AssetUpdateWithWhereUniqueWithoutTargetInput[] + updateMany?: + | Prisma.AssetUpdateManyWithWhereWithoutTargetInput + | Prisma.AssetUpdateManyWithWhereWithoutTargetInput[] + deleteMany?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] +} + +export type AssetCreateNestedManyWithoutStorageKeyInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutStorageKeyInput, + Prisma.AssetUncheckedCreateWithoutStorageKeyInput + > + | Prisma.AssetCreateWithoutStorageKeyInput[] + | Prisma.AssetUncheckedCreateWithoutStorageKeyInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutStorageKeyInput + | Prisma.AssetCreateOrConnectWithoutStorageKeyInput[] + createMany?: Prisma.AssetCreateManyStorageKeyInputEnvelope + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] +} + +export type AssetUncheckedCreateNestedManyWithoutStorageKeyInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutStorageKeyInput, + Prisma.AssetUncheckedCreateWithoutStorageKeyInput + > + | Prisma.AssetCreateWithoutStorageKeyInput[] + | Prisma.AssetUncheckedCreateWithoutStorageKeyInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutStorageKeyInput + | Prisma.AssetCreateOrConnectWithoutStorageKeyInput[] + createMany?: Prisma.AssetCreateManyStorageKeyInputEnvelope + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] +} + +export type AssetUpdateManyWithoutStorageKeyNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutStorageKeyInput, + Prisma.AssetUncheckedCreateWithoutStorageKeyInput + > + | Prisma.AssetCreateWithoutStorageKeyInput[] + | Prisma.AssetUncheckedCreateWithoutStorageKeyInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutStorageKeyInput + | Prisma.AssetCreateOrConnectWithoutStorageKeyInput[] + upsert?: + | Prisma.AssetUpsertWithWhereUniqueWithoutStorageKeyInput + | Prisma.AssetUpsertWithWhereUniqueWithoutStorageKeyInput[] + createMany?: Prisma.AssetCreateManyStorageKeyInputEnvelope + set?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + disconnect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + delete?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + update?: + | Prisma.AssetUpdateWithWhereUniqueWithoutStorageKeyInput + | Prisma.AssetUpdateWithWhereUniqueWithoutStorageKeyInput[] + updateMany?: + | Prisma.AssetUpdateManyWithWhereWithoutStorageKeyInput + | Prisma.AssetUpdateManyWithWhereWithoutStorageKeyInput[] + deleteMany?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] +} + +export type AssetUncheckedUpdateManyWithoutStorageKeyNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCreateWithoutStorageKeyInput, + Prisma.AssetUncheckedCreateWithoutStorageKeyInput + > + | Prisma.AssetCreateWithoutStorageKeyInput[] + | Prisma.AssetUncheckedCreateWithoutStorageKeyInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutStorageKeyInput + | Prisma.AssetCreateOrConnectWithoutStorageKeyInput[] + upsert?: + | Prisma.AssetUpsertWithWhereUniqueWithoutStorageKeyInput + | Prisma.AssetUpsertWithWhereUniqueWithoutStorageKeyInput[] + createMany?: Prisma.AssetCreateManyStorageKeyInputEnvelope + set?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + disconnect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + delete?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + update?: + | Prisma.AssetUpdateWithWhereUniqueWithoutStorageKeyInput + | Prisma.AssetUpdateWithWhereUniqueWithoutStorageKeyInput[] + updateMany?: + | Prisma.AssetUpdateManyWithWhereWithoutStorageKeyInput + | Prisma.AssetUpdateManyWithWhereWithoutStorageKeyInput[] + deleteMany?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] +} + +export type AssetCreateNestedOneWithoutMetadataValuesInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutMetadataValuesInput, + Prisma.AssetUncheckedCreateWithoutMetadataValuesInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutMetadataValuesInput + connect?: Prisma.AssetWhereUniqueInput +} + +export type AssetUpdateOneRequiredWithoutMetadataValuesNestedInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutMetadataValuesInput, + Prisma.AssetUncheckedCreateWithoutMetadataValuesInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutMetadataValuesInput + upsert?: Prisma.AssetUpsertWithoutMetadataValuesInput + connect?: Prisma.AssetWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AssetUpdateToOneWithWhereWithoutMetadataValuesInput, + Prisma.AssetUpdateWithoutMetadataValuesInput + >, + Prisma.AssetUncheckedUpdateWithoutMetadataValuesInput + > +} + +export type AssetCreateNestedOneWithoutCommentsInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutCommentsInput, + Prisma.AssetUncheckedCreateWithoutCommentsInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutCommentsInput + connect?: Prisma.AssetWhereUniqueInput +} + +export type AssetUpdateOneRequiredWithoutCommentsNestedInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutCommentsInput, + Prisma.AssetUncheckedCreateWithoutCommentsInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutCommentsInput + upsert?: Prisma.AssetUpsertWithoutCommentsInput + connect?: Prisma.AssetWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AssetUpdateToOneWithWhereWithoutCommentsInput, + Prisma.AssetUpdateWithoutCommentsInput + >, + Prisma.AssetUncheckedUpdateWithoutCommentsInput + > +} + +export type AssetCreateNestedOneWithoutCommentAttachmentsInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutCommentAttachmentsInput, + Prisma.AssetUncheckedCreateWithoutCommentAttachmentsInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutCommentAttachmentsInput + connect?: Prisma.AssetWhereUniqueInput +} + +export type AssetUpdateOneRequiredWithoutCommentAttachmentsNestedInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutCommentAttachmentsInput, + Prisma.AssetUncheckedCreateWithoutCommentAttachmentsInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutCommentAttachmentsInput + upsert?: Prisma.AssetUpsertWithoutCommentAttachmentsInput + connect?: Prisma.AssetWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AssetUpdateToOneWithWhereWithoutCommentAttachmentsInput, + Prisma.AssetUpdateWithoutCommentAttachmentsInput + >, + Prisma.AssetUncheckedUpdateWithoutCommentAttachmentsInput + > +} + +export type AssetCreateNestedOneWithoutEmbeddingsInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutEmbeddingsInput, + Prisma.AssetUncheckedCreateWithoutEmbeddingsInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutEmbeddingsInput + connect?: Prisma.AssetWhereUniqueInput +} + +export type AssetUpdateOneRequiredWithoutEmbeddingsNestedInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutEmbeddingsInput, + Prisma.AssetUncheckedCreateWithoutEmbeddingsInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutEmbeddingsInput + upsert?: Prisma.AssetUpsertWithoutEmbeddingsInput + connect?: Prisma.AssetWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AssetUpdateToOneWithWhereWithoutEmbeddingsInput, + Prisma.AssetUpdateWithoutEmbeddingsInput + >, + Prisma.AssetUncheckedUpdateWithoutEmbeddingsInput + > +} + +export type AssetCreateNestedOneWithoutNotificationsInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutNotificationsInput, + Prisma.AssetUncheckedCreateWithoutNotificationsInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutNotificationsInput + connect?: Prisma.AssetWhereUniqueInput +} + +export type AssetUpdateOneWithoutNotificationsNestedInput = { + create?: Prisma.XOR< + Prisma.AssetCreateWithoutNotificationsInput, + Prisma.AssetUncheckedCreateWithoutNotificationsInput + > + connectOrCreate?: Prisma.AssetCreateOrConnectWithoutNotificationsInput + upsert?: Prisma.AssetUpsertWithoutNotificationsInput + disconnect?: Prisma.AssetWhereInput | boolean + delete?: Prisma.AssetWhereInput | boolean + connect?: Prisma.AssetWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AssetUpdateToOneWithWhereWithoutNotificationsInput, + Prisma.AssetUpdateWithoutNotificationsInput + >, + Prisma.AssetUncheckedUpdateWithoutNotificationsInput + > +} + +export type AssetCreateNestedManyWithoutTaskInput = { + create?: + | Prisma.XOR + | Prisma.AssetCreateWithoutTaskInput[] + | Prisma.AssetUncheckedCreateWithoutTaskInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutTaskInput + | Prisma.AssetCreateOrConnectWithoutTaskInput[] + createMany?: Prisma.AssetCreateManyTaskInputEnvelope + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] +} + +export type AssetUncheckedCreateNestedManyWithoutTaskInput = { + create?: + | Prisma.XOR + | Prisma.AssetCreateWithoutTaskInput[] + | Prisma.AssetUncheckedCreateWithoutTaskInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutTaskInput + | Prisma.AssetCreateOrConnectWithoutTaskInput[] + createMany?: Prisma.AssetCreateManyTaskInputEnvelope + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] +} + +export type AssetUpdateManyWithoutTaskNestedInput = { + create?: + | Prisma.XOR + | Prisma.AssetCreateWithoutTaskInput[] + | Prisma.AssetUncheckedCreateWithoutTaskInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutTaskInput + | Prisma.AssetCreateOrConnectWithoutTaskInput[] + upsert?: + | Prisma.AssetUpsertWithWhereUniqueWithoutTaskInput + | Prisma.AssetUpsertWithWhereUniqueWithoutTaskInput[] + createMany?: Prisma.AssetCreateManyTaskInputEnvelope + set?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + disconnect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + delete?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + update?: + | Prisma.AssetUpdateWithWhereUniqueWithoutTaskInput + | Prisma.AssetUpdateWithWhereUniqueWithoutTaskInput[] + updateMany?: + | Prisma.AssetUpdateManyWithWhereWithoutTaskInput + | Prisma.AssetUpdateManyWithWhereWithoutTaskInput[] + deleteMany?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] +} + +export type AssetUncheckedUpdateManyWithoutTaskNestedInput = { + create?: + | Prisma.XOR + | Prisma.AssetCreateWithoutTaskInput[] + | Prisma.AssetUncheckedCreateWithoutTaskInput[] + connectOrCreate?: + | Prisma.AssetCreateOrConnectWithoutTaskInput + | Prisma.AssetCreateOrConnectWithoutTaskInput[] + upsert?: + | Prisma.AssetUpsertWithWhereUniqueWithoutTaskInput + | Prisma.AssetUpsertWithWhereUniqueWithoutTaskInput[] + createMany?: Prisma.AssetCreateManyTaskInputEnvelope + set?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + disconnect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + delete?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + connect?: Prisma.AssetWhereUniqueInput | Prisma.AssetWhereUniqueInput[] + update?: + | Prisma.AssetUpdateWithWhereUniqueWithoutTaskInput + | Prisma.AssetUpdateWithWhereUniqueWithoutTaskInput[] + updateMany?: + | Prisma.AssetUpdateManyWithWhereWithoutTaskInput + | Prisma.AssetUpdateManyWithWhereWithoutTaskInput[] + deleteMany?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] +} + +export type AssetCreateWithoutCreatorInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutCreatorInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutCreatorInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutCreatorInput, + Prisma.AssetUncheckedCreateWithoutCreatorInput + > +} + +export type AssetCreateManyCreatorInputEnvelope = { + data: Prisma.AssetCreateManyCreatorInput | Prisma.AssetCreateManyCreatorInput[] + skipDuplicates?: boolean +} + +export type AssetUpsertWithWhereUniqueWithoutCreatorInput = { + where: Prisma.AssetWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetUpdateWithoutCreatorInput, + Prisma.AssetUncheckedUpdateWithoutCreatorInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutCreatorInput, + Prisma.AssetUncheckedCreateWithoutCreatorInput + > +} + +export type AssetUpdateWithWhereUniqueWithoutCreatorInput = { + where: Prisma.AssetWhereUniqueInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutCreatorInput, + Prisma.AssetUncheckedUpdateWithoutCreatorInput + > +} + +export type AssetUpdateManyWithWhereWithoutCreatorInput = { + where: Prisma.AssetScalarWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateManyMutationInput, + Prisma.AssetUncheckedUpdateManyWithoutCreatorInput + > +} + +export type AssetScalarWhereInput = { + AND?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] + OR?: Prisma.AssetScalarWhereInput[] + NOT?: Prisma.AssetScalarWhereInput | Prisma.AssetScalarWhereInput[] + id?: Prisma.StringFilter<'Asset'> | string + name?: Prisma.StringFilter<'Asset'> | string + nameNgram?: Prisma.StringNullableListFilter<'Asset'> + type?: Prisma.EnumAssetTypeFilter<'Asset'> | $Enums.AssetType + mediaType?: Prisma.StringNullableFilter<'Asset'> | string | null + fileCount?: Prisma.IntFilter<'Asset'> | number + sizeByte?: Prisma.IntFilter<'Asset'> | number + status?: Prisma.EnumAssetStatusFilter<'Asset'> | $Enums.AssetStatus + transcodeTaskId?: Prisma.StringNullableFilter<'Asset'> | string | null + media?: Prisma.JsonNullableFilter<'Asset'> + isDeleted?: Prisma.BoolFilter<'Asset'> | boolean + deletedAt?: Prisma.DateTimeNullableFilter<'Asset'> | Date | string | null + sortIndex?: Prisma.StringNullableFilter<'Asset'> | string | null + createdAt?: Prisma.DateTimeFilter<'Asset'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Asset'> | Date | string + parentId?: Prisma.StringNullableFilter<'Asset'> | string | null + targetId?: Prisma.StringNullableFilter<'Asset'> | string | null + storageKeyId?: Prisma.StringNullableFilter<'Asset'> | string | null + creatorId?: Prisma.StringNullableFilter<'Asset'> | string | null + taskId?: Prisma.StringNullableFilter<'Asset'> | string | null + projectId?: Prisma.StringNullableFilter<'Asset'> | string | null +} + +export type AssetCreateWithoutTeamRootFolderInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutTeamRootFolderInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutTeamRootFolderInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutTeamRootFolderInput, + Prisma.AssetUncheckedCreateWithoutTeamRootFolderInput + > +} + +export type AssetUpsertWithoutTeamRootFolderInput = { + update: Prisma.XOR< + Prisma.AssetUpdateWithoutTeamRootFolderInput, + Prisma.AssetUncheckedUpdateWithoutTeamRootFolderInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutTeamRootFolderInput, + Prisma.AssetUncheckedCreateWithoutTeamRootFolderInput + > + where?: Prisma.AssetWhereInput +} + +export type AssetUpdateToOneWithWhereWithoutTeamRootFolderInput = { + where?: Prisma.AssetWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutTeamRootFolderInput, + Prisma.AssetUncheckedUpdateWithoutTeamRootFolderInput + > +} + +export type AssetUpdateWithoutTeamRootFolderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutTeamRootFolderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetCreateWithoutProjectRootFolderInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutProjectRootFolderInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutProjectRootFolderInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutProjectRootFolderInput, + Prisma.AssetUncheckedCreateWithoutProjectRootFolderInput + > +} + +export type AssetCreateWithoutProjectShareRootInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutProjectShareRootInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutProjectShareRootInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutProjectShareRootInput, + Prisma.AssetUncheckedCreateWithoutProjectShareRootInput + > +} + +export type AssetCreateWithoutProjectInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutProjectInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutProjectInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutProjectInput, + Prisma.AssetUncheckedCreateWithoutProjectInput + > +} + +export type AssetCreateManyProjectInputEnvelope = { + data: Prisma.AssetCreateManyProjectInput | Prisma.AssetCreateManyProjectInput[] + skipDuplicates?: boolean +} + +export type AssetUpsertWithoutProjectRootFolderInput = { + update: Prisma.XOR< + Prisma.AssetUpdateWithoutProjectRootFolderInput, + Prisma.AssetUncheckedUpdateWithoutProjectRootFolderInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutProjectRootFolderInput, + Prisma.AssetUncheckedCreateWithoutProjectRootFolderInput + > + where?: Prisma.AssetWhereInput +} + +export type AssetUpdateToOneWithWhereWithoutProjectRootFolderInput = { + where?: Prisma.AssetWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutProjectRootFolderInput, + Prisma.AssetUncheckedUpdateWithoutProjectRootFolderInput + > +} + +export type AssetUpdateWithoutProjectRootFolderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutProjectRootFolderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUpsertWithoutProjectShareRootInput = { + update: Prisma.XOR< + Prisma.AssetUpdateWithoutProjectShareRootInput, + Prisma.AssetUncheckedUpdateWithoutProjectShareRootInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutProjectShareRootInput, + Prisma.AssetUncheckedCreateWithoutProjectShareRootInput + > + where?: Prisma.AssetWhereInput +} + +export type AssetUpdateToOneWithWhereWithoutProjectShareRootInput = { + where?: Prisma.AssetWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutProjectShareRootInput, + Prisma.AssetUncheckedUpdateWithoutProjectShareRootInput + > +} + +export type AssetUpdateWithoutProjectShareRootInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutProjectShareRootInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUpsertWithWhereUniqueWithoutProjectInput = { + where: Prisma.AssetWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetUpdateWithoutProjectInput, + Prisma.AssetUncheckedUpdateWithoutProjectInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutProjectInput, + Prisma.AssetUncheckedCreateWithoutProjectInput + > +} + +export type AssetUpdateWithWhereUniqueWithoutProjectInput = { + where: Prisma.AssetWhereUniqueInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutProjectInput, + Prisma.AssetUncheckedUpdateWithoutProjectInput + > +} + +export type AssetUpdateManyWithWhereWithoutProjectInput = { + where: Prisma.AssetScalarWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateManyMutationInput, + Prisma.AssetUncheckedUpdateManyWithoutProjectInput + > +} + +export type AssetCreateWithoutShareLinkRootFolderInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput +} + +export type AssetUncheckedCreateWithoutShareLinkRootFolderInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput +} + +export type AssetCreateOrConnectWithoutShareLinkRootFolderInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutShareLinkRootFolderInput, + Prisma.AssetUncheckedCreateWithoutShareLinkRootFolderInput + > +} + +export type AssetUpsertWithoutShareLinkRootFolderInput = { + update: Prisma.XOR< + Prisma.AssetUpdateWithoutShareLinkRootFolderInput, + Prisma.AssetUncheckedUpdateWithoutShareLinkRootFolderInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutShareLinkRootFolderInput, + Prisma.AssetUncheckedCreateWithoutShareLinkRootFolderInput + > + where?: Prisma.AssetWhereInput +} + +export type AssetUpdateToOneWithWhereWithoutShareLinkRootFolderInput = { + where?: Prisma.AssetWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutShareLinkRootFolderInput, + Prisma.AssetUncheckedUpdateWithoutShareLinkRootFolderInput + > +} + +export type AssetUpdateWithoutShareLinkRootFolderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput +} + +export type AssetUncheckedUpdateWithoutShareLinkRootFolderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput +} + +export type AssetCreateWithoutChildrenInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutChildrenInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutChildrenInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutChildrenInput, + Prisma.AssetUncheckedCreateWithoutChildrenInput + > +} + +export type AssetCreateWithoutParentInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutParentInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutParentInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutParentInput, + Prisma.AssetUncheckedCreateWithoutParentInput + > +} + +export type AssetCreateManyParentInputEnvelope = { + data: Prisma.AssetCreateManyParentInput | Prisma.AssetCreateManyParentInput[] + skipDuplicates?: boolean +} + +export type AssetCreateWithoutSymlinksInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutSymlinksInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutSymlinksInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutSymlinksInput, + Prisma.AssetUncheckedCreateWithoutSymlinksInput + > +} + +export type AssetCreateWithoutTargetInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutTargetInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutTargetInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutTargetInput, + Prisma.AssetUncheckedCreateWithoutTargetInput + > +} + +export type AssetCreateManyTargetInputEnvelope = { + data: Prisma.AssetCreateManyTargetInput | Prisma.AssetCreateManyTargetInput[] + skipDuplicates?: boolean +} + +export type AssetUpsertWithoutChildrenInput = { + update: Prisma.XOR< + Prisma.AssetUpdateWithoutChildrenInput, + Prisma.AssetUncheckedUpdateWithoutChildrenInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutChildrenInput, + Prisma.AssetUncheckedCreateWithoutChildrenInput + > + where?: Prisma.AssetWhereInput +} + +export type AssetUpdateToOneWithWhereWithoutChildrenInput = { + where?: Prisma.AssetWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutChildrenInput, + Prisma.AssetUncheckedUpdateWithoutChildrenInput + > +} + +export type AssetUpdateWithoutChildrenInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutChildrenInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUpsertWithWhereUniqueWithoutParentInput = { + where: Prisma.AssetWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetUpdateWithoutParentInput, + Prisma.AssetUncheckedUpdateWithoutParentInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutParentInput, + Prisma.AssetUncheckedCreateWithoutParentInput + > +} + +export type AssetUpdateWithWhereUniqueWithoutParentInput = { + where: Prisma.AssetWhereUniqueInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutParentInput, + Prisma.AssetUncheckedUpdateWithoutParentInput + > +} + +export type AssetUpdateManyWithWhereWithoutParentInput = { + where: Prisma.AssetScalarWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateManyMutationInput, + Prisma.AssetUncheckedUpdateManyWithoutParentInput + > +} + +export type AssetUpsertWithoutSymlinksInput = { + update: Prisma.XOR< + Prisma.AssetUpdateWithoutSymlinksInput, + Prisma.AssetUncheckedUpdateWithoutSymlinksInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutSymlinksInput, + Prisma.AssetUncheckedCreateWithoutSymlinksInput + > + where?: Prisma.AssetWhereInput +} + +export type AssetUpdateToOneWithWhereWithoutSymlinksInput = { + where?: Prisma.AssetWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutSymlinksInput, + Prisma.AssetUncheckedUpdateWithoutSymlinksInput + > +} + +export type AssetUpdateWithoutSymlinksInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutSymlinksInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUpsertWithWhereUniqueWithoutTargetInput = { + where: Prisma.AssetWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetUpdateWithoutTargetInput, + Prisma.AssetUncheckedUpdateWithoutTargetInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutTargetInput, + Prisma.AssetUncheckedCreateWithoutTargetInput + > +} + +export type AssetUpdateWithWhereUniqueWithoutTargetInput = { + where: Prisma.AssetWhereUniqueInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutTargetInput, + Prisma.AssetUncheckedUpdateWithoutTargetInput + > +} + +export type AssetUpdateManyWithWhereWithoutTargetInput = { + where: Prisma.AssetScalarWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateManyMutationInput, + Prisma.AssetUncheckedUpdateManyWithoutTargetInput + > +} + +export type AssetCreateWithoutStorageKeyInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutStorageKeyInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutStorageKeyInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutStorageKeyInput, + Prisma.AssetUncheckedCreateWithoutStorageKeyInput + > +} + +export type AssetCreateManyStorageKeyInputEnvelope = { + data: Prisma.AssetCreateManyStorageKeyInput | Prisma.AssetCreateManyStorageKeyInput[] + skipDuplicates?: boolean +} + +export type AssetUpsertWithWhereUniqueWithoutStorageKeyInput = { + where: Prisma.AssetWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetUpdateWithoutStorageKeyInput, + Prisma.AssetUncheckedUpdateWithoutStorageKeyInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutStorageKeyInput, + Prisma.AssetUncheckedCreateWithoutStorageKeyInput + > +} + +export type AssetUpdateWithWhereUniqueWithoutStorageKeyInput = { + where: Prisma.AssetWhereUniqueInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutStorageKeyInput, + Prisma.AssetUncheckedUpdateWithoutStorageKeyInput + > +} + +export type AssetUpdateManyWithWhereWithoutStorageKeyInput = { + where: Prisma.AssetScalarWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateManyMutationInput, + Prisma.AssetUncheckedUpdateManyWithoutStorageKeyInput + > +} + +export type AssetCreateWithoutMetadataValuesInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutMetadataValuesInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutMetadataValuesInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutMetadataValuesInput, + Prisma.AssetUncheckedCreateWithoutMetadataValuesInput + > +} + +export type AssetUpsertWithoutMetadataValuesInput = { + update: Prisma.XOR< + Prisma.AssetUpdateWithoutMetadataValuesInput, + Prisma.AssetUncheckedUpdateWithoutMetadataValuesInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutMetadataValuesInput, + Prisma.AssetUncheckedCreateWithoutMetadataValuesInput + > + where?: Prisma.AssetWhereInput +} + +export type AssetUpdateToOneWithWhereWithoutMetadataValuesInput = { + where?: Prisma.AssetWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutMetadataValuesInput, + Prisma.AssetUncheckedUpdateWithoutMetadataValuesInput + > +} + +export type AssetUpdateWithoutMetadataValuesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutMetadataValuesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetCreateWithoutCommentsInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutCommentsInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutCommentsInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutCommentsInput, + Prisma.AssetUncheckedCreateWithoutCommentsInput + > +} + +export type AssetUpsertWithoutCommentsInput = { + update: Prisma.XOR< + Prisma.AssetUpdateWithoutCommentsInput, + Prisma.AssetUncheckedUpdateWithoutCommentsInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutCommentsInput, + Prisma.AssetUncheckedCreateWithoutCommentsInput + > + where?: Prisma.AssetWhereInput +} + +export type AssetUpdateToOneWithWhereWithoutCommentsInput = { + where?: Prisma.AssetWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutCommentsInput, + Prisma.AssetUncheckedUpdateWithoutCommentsInput + > +} + +export type AssetUpdateWithoutCommentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutCommentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetCreateWithoutCommentAttachmentsInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutCommentAttachmentsInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutCommentAttachmentsInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutCommentAttachmentsInput, + Prisma.AssetUncheckedCreateWithoutCommentAttachmentsInput + > +} + +export type AssetUpsertWithoutCommentAttachmentsInput = { + update: Prisma.XOR< + Prisma.AssetUpdateWithoutCommentAttachmentsInput, + Prisma.AssetUncheckedUpdateWithoutCommentAttachmentsInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutCommentAttachmentsInput, + Prisma.AssetUncheckedCreateWithoutCommentAttachmentsInput + > + where?: Prisma.AssetWhereInput +} + +export type AssetUpdateToOneWithWhereWithoutCommentAttachmentsInput = { + where?: Prisma.AssetWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutCommentAttachmentsInput, + Prisma.AssetUncheckedUpdateWithoutCommentAttachmentsInput + > +} + +export type AssetUpdateWithoutCommentAttachmentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutCommentAttachmentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetCreateWithoutEmbeddingsInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutEmbeddingsInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutEmbeddingsInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutEmbeddingsInput, + Prisma.AssetUncheckedCreateWithoutEmbeddingsInput + > +} + +export type AssetUpsertWithoutEmbeddingsInput = { + update: Prisma.XOR< + Prisma.AssetUpdateWithoutEmbeddingsInput, + Prisma.AssetUncheckedUpdateWithoutEmbeddingsInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutEmbeddingsInput, + Prisma.AssetUncheckedCreateWithoutEmbeddingsInput + > + where?: Prisma.AssetWhereInput +} + +export type AssetUpdateToOneWithWhereWithoutEmbeddingsInput = { + where?: Prisma.AssetWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutEmbeddingsInput, + Prisma.AssetUncheckedUpdateWithoutEmbeddingsInput + > +} + +export type AssetUpdateWithoutEmbeddingsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutEmbeddingsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetCreateWithoutNotificationsInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + task?: Prisma.TaskCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutNotificationsInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutNotificationsInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutNotificationsInput, + Prisma.AssetUncheckedCreateWithoutNotificationsInput + > +} + +export type AssetUpsertWithoutNotificationsInput = { + update: Prisma.XOR< + Prisma.AssetUpdateWithoutNotificationsInput, + Prisma.AssetUncheckedUpdateWithoutNotificationsInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutNotificationsInput, + Prisma.AssetUncheckedCreateWithoutNotificationsInput + > + where?: Prisma.AssetWhereInput +} + +export type AssetUpdateToOneWithWhereWithoutNotificationsInput = { + where?: Prisma.AssetWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateWithoutNotificationsInput, + Prisma.AssetUncheckedUpdateWithoutNotificationsInput + > +} + +export type AssetUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetCreateWithoutTaskInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parent?: Prisma.AssetCreateNestedOneWithoutChildrenInput + children?: Prisma.AssetCreateNestedManyWithoutParentInput + target?: Prisma.AssetCreateNestedOneWithoutSymlinksInput + symlinks?: Prisma.AssetCreateNestedManyWithoutTargetInput + storageKey?: Prisma.StorageKeyCreateNestedOneWithoutAssetsInput + metadataValues?: Prisma.AssetMetadataValueCreateNestedManyWithoutAssetInput + creator?: Prisma.UserCreateNestedOneWithoutAssetsInput + project?: Prisma.ProjectCreateNestedOneWithoutAssetsInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkCreateNestedOneWithoutRootFolderInput +} + +export type AssetUncheckedCreateWithoutTaskInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + projectId?: string | null + children?: Prisma.AssetUncheckedCreateNestedManyWithoutParentInput + symlinks?: Prisma.AssetUncheckedCreateNestedManyWithoutTargetInput + metadataValues?: Prisma.AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutAssetInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutAssetInput + embeddings?: Prisma.AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput + teamRootFolder?: Prisma.TeamUncheckedCreateNestedOneWithoutRootFolderInput + projectRootFolder?: Prisma.ProjectUncheckedCreateNestedOneWithoutRootFolderInput + projectShareRoot?: Prisma.ProjectUncheckedCreateNestedOneWithoutShareRootInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput +} + +export type AssetCreateOrConnectWithoutTaskInput = { + where: Prisma.AssetWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCreateWithoutTaskInput, + Prisma.AssetUncheckedCreateWithoutTaskInput + > +} + +export type AssetCreateManyTaskInputEnvelope = { + data: Prisma.AssetCreateManyTaskInput | Prisma.AssetCreateManyTaskInput[] + skipDuplicates?: boolean +} + +export type AssetUpsertWithWhereUniqueWithoutTaskInput = { + where: Prisma.AssetWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetUpdateWithoutTaskInput, + Prisma.AssetUncheckedUpdateWithoutTaskInput + > + create: Prisma.XOR< + Prisma.AssetCreateWithoutTaskInput, + Prisma.AssetUncheckedCreateWithoutTaskInput + > +} + +export type AssetUpdateWithWhereUniqueWithoutTaskInput = { + where: Prisma.AssetWhereUniqueInput + data: Prisma.XOR +} + +export type AssetUpdateManyWithWhereWithoutTaskInput = { + where: Prisma.AssetScalarWhereInput + data: Prisma.XOR< + Prisma.AssetUpdateManyMutationInput, + Prisma.AssetUncheckedUpdateManyWithoutTaskInput + > +} + +export type AssetCreateManyCreatorInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + taskId?: string | null + projectId?: string | null +} + +export type AssetUpdateWithoutCreatorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutCreatorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateManyWithoutCreatorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type AssetCreateManyProjectInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null +} + +export type AssetUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateManyWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type AssetCreateManyParentInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null +} + +export type AssetCreateManyTargetInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + storageKeyId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null +} + +export type AssetUpdateWithoutParentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutParentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateManyWithoutParentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type AssetUpdateWithoutTargetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutTargetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateManyWithoutTargetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type AssetCreateManyStorageKeyInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + creatorId?: string | null + taskId?: string | null + projectId?: string | null +} + +export type AssetUpdateWithoutStorageKeyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + task?: Prisma.TaskUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutStorageKeyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateManyWithoutStorageKeyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type AssetCreateManyTaskInput = { + id?: string + name?: string + nameNgram?: Prisma.AssetCreatenameNgramInput | string[] + type: $Enums.AssetType + mediaType?: string | null + fileCount?: number + sizeByte?: number + status: $Enums.AssetStatus + transcodeTaskId?: string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: boolean + deletedAt?: Date | string | null + sortIndex?: string | null + createdAt?: Date | string + updatedAt?: Date | string + parentId?: string | null + targetId?: string | null + storageKeyId?: string | null + creatorId?: string | null + projectId?: string | null +} + +export type AssetUpdateWithoutTaskInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parent?: Prisma.AssetUpdateOneWithoutChildrenNestedInput + children?: Prisma.AssetUpdateManyWithoutParentNestedInput + target?: Prisma.AssetUpdateOneWithoutSymlinksNestedInput + symlinks?: Prisma.AssetUpdateManyWithoutTargetNestedInput + storageKey?: Prisma.StorageKeyUpdateOneWithoutAssetsNestedInput + metadataValues?: Prisma.AssetMetadataValueUpdateManyWithoutAssetNestedInput + creator?: Prisma.UserUpdateOneWithoutAssetsNestedInput + project?: Prisma.ProjectUpdateOneWithoutAssetsNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateWithoutTaskInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + children?: Prisma.AssetUncheckedUpdateManyWithoutParentNestedInput + symlinks?: Prisma.AssetUncheckedUpdateManyWithoutTargetNestedInput + metadataValues?: Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutAssetNestedInput + commentAttachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutAssetNestedInput + embeddings?: Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput + teamRootFolder?: Prisma.TeamUncheckedUpdateOneWithoutRootFolderNestedInput + projectRootFolder?: Prisma.ProjectUncheckedUpdateOneWithoutRootFolderNestedInput + projectShareRoot?: Prisma.ProjectUncheckedUpdateOneWithoutShareRootNestedInput + shareLinkRootFolder?: Prisma.ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput +} + +export type AssetUncheckedUpdateManyWithoutTaskInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + nameNgram?: Prisma.AssetUpdatenameNgramInput | string[] + type?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType + mediaType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fileCount?: Prisma.IntFieldUpdateOperationsInput | number + sizeByte?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.EnumAssetStatusFieldUpdateOperationsInput | $Enums.AssetStatus + transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + media?: PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput + isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean + deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + storageKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +/** + * Count Type AssetCountOutputType + */ + +export type AssetCountOutputType = { + children: number + symlinks: number + metadataValues: number + comments: number + commentAttachments: number + notifications: number + embeddings: number +} + +export type AssetCountOutputTypeSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + children?: boolean | AssetCountOutputTypeCountChildrenArgs + symlinks?: boolean | AssetCountOutputTypeCountSymlinksArgs + metadataValues?: boolean | AssetCountOutputTypeCountMetadataValuesArgs + comments?: boolean | AssetCountOutputTypeCountCommentsArgs + commentAttachments?: boolean | AssetCountOutputTypeCountCommentAttachmentsArgs + notifications?: boolean | AssetCountOutputTypeCountNotificationsArgs + embeddings?: boolean | AssetCountOutputTypeCountEmbeddingsArgs +} + +/** + * AssetCountOutputType without action + */ +export type AssetCountOutputTypeDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCountOutputType + */ + select?: Prisma.AssetCountOutputTypeSelect | null +} + +/** + * AssetCountOutputType without action + */ +export type AssetCountOutputTypeCountChildrenArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetWhereInput +} + +/** + * AssetCountOutputType without action + */ +export type AssetCountOutputTypeCountSymlinksArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetWhereInput +} + +/** + * AssetCountOutputType without action + */ +export type AssetCountOutputTypeCountMetadataValuesArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetMetadataValueWhereInput +} + +/** + * AssetCountOutputType without action + */ +export type AssetCountOutputTypeCountCommentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetCommentWhereInput +} + +/** + * AssetCountOutputType without action + */ +export type AssetCountOutputTypeCountCommentAttachmentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetCommentAttachmentWhereInput +} + +/** + * AssetCountOutputType without action + */ +export type AssetCountOutputTypeCountNotificationsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.NotificationWhereInput +} + +/** + * AssetCountOutputType without action + */ +export type AssetCountOutputTypeCountEmbeddingsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetEmbeddingWhereInput +} + +export type AssetSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + nameNgram?: boolean + type?: boolean + mediaType?: boolean + fileCount?: boolean + sizeByte?: boolean + status?: boolean + transcodeTaskId?: boolean + media?: boolean + isDeleted?: boolean + deletedAt?: boolean + sortIndex?: boolean + createdAt?: boolean + updatedAt?: boolean + parentId?: boolean + targetId?: boolean + storageKeyId?: boolean + creatorId?: boolean + taskId?: boolean + projectId?: boolean + parent?: boolean | Prisma.Asset$parentArgs + children?: boolean | Prisma.Asset$childrenArgs + target?: boolean | Prisma.Asset$targetArgs + symlinks?: boolean | Prisma.Asset$symlinksArgs + storageKey?: boolean | Prisma.Asset$storageKeyArgs + metadataValues?: boolean | Prisma.Asset$metadataValuesArgs + creator?: boolean | Prisma.Asset$creatorArgs + task?: boolean | Prisma.Asset$taskArgs + project?: boolean | Prisma.Asset$projectArgs + comments?: boolean | Prisma.Asset$commentsArgs + commentAttachments?: boolean | Prisma.Asset$commentAttachmentsArgs + notifications?: boolean | Prisma.Asset$notificationsArgs + embeddings?: boolean | Prisma.Asset$embeddingsArgs + teamRootFolder?: boolean | Prisma.Asset$teamRootFolderArgs + projectRootFolder?: boolean | Prisma.Asset$projectRootFolderArgs + projectShareRoot?: boolean | Prisma.Asset$projectShareRootArgs + shareLinkRootFolder?: boolean | Prisma.Asset$shareLinkRootFolderArgs + _count?: boolean | Prisma.AssetCountOutputTypeDefaultArgs + }, + ExtArgs['result']['asset'] +> + +export type AssetSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + nameNgram?: boolean + type?: boolean + mediaType?: boolean + fileCount?: boolean + sizeByte?: boolean + status?: boolean + transcodeTaskId?: boolean + media?: boolean + isDeleted?: boolean + deletedAt?: boolean + sortIndex?: boolean + createdAt?: boolean + updatedAt?: boolean + parentId?: boolean + targetId?: boolean + storageKeyId?: boolean + creatorId?: boolean + taskId?: boolean + projectId?: boolean + parent?: boolean | Prisma.Asset$parentArgs + target?: boolean | Prisma.Asset$targetArgs + storageKey?: boolean | Prisma.Asset$storageKeyArgs + creator?: boolean | Prisma.Asset$creatorArgs + task?: boolean | Prisma.Asset$taskArgs + project?: boolean | Prisma.Asset$projectArgs + }, + ExtArgs['result']['asset'] +> + +export type AssetSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + nameNgram?: boolean + type?: boolean + mediaType?: boolean + fileCount?: boolean + sizeByte?: boolean + status?: boolean + transcodeTaskId?: boolean + media?: boolean + isDeleted?: boolean + deletedAt?: boolean + sortIndex?: boolean + createdAt?: boolean + updatedAt?: boolean + parentId?: boolean + targetId?: boolean + storageKeyId?: boolean + creatorId?: boolean + taskId?: boolean + projectId?: boolean + parent?: boolean | Prisma.Asset$parentArgs + target?: boolean | Prisma.Asset$targetArgs + storageKey?: boolean | Prisma.Asset$storageKeyArgs + creator?: boolean | Prisma.Asset$creatorArgs + task?: boolean | Prisma.Asset$taskArgs + project?: boolean | Prisma.Asset$projectArgs + }, + ExtArgs['result']['asset'] +> + +export type AssetSelectScalar = { + id?: boolean + name?: boolean + nameNgram?: boolean + type?: boolean + mediaType?: boolean + fileCount?: boolean + sizeByte?: boolean + status?: boolean + transcodeTaskId?: boolean + media?: boolean + isDeleted?: boolean + deletedAt?: boolean + sortIndex?: boolean + createdAt?: boolean + updatedAt?: boolean + parentId?: boolean + targetId?: boolean + storageKeyId?: boolean + creatorId?: boolean + taskId?: boolean + projectId?: boolean +} + +export type AssetOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'name' + | 'nameNgram' + | 'type' + | 'mediaType' + | 'fileCount' + | 'sizeByte' + | 'status' + | 'transcodeTaskId' + | 'media' + | 'isDeleted' + | 'deletedAt' + | 'sortIndex' + | 'createdAt' + | 'updatedAt' + | 'parentId' + | 'targetId' + | 'storageKeyId' + | 'creatorId' + | 'taskId' + | 'projectId', + ExtArgs['result']['asset'] +> +export type AssetInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + parent?: boolean | Prisma.Asset$parentArgs + children?: boolean | Prisma.Asset$childrenArgs + target?: boolean | Prisma.Asset$targetArgs + symlinks?: boolean | Prisma.Asset$symlinksArgs + storageKey?: boolean | Prisma.Asset$storageKeyArgs + metadataValues?: boolean | Prisma.Asset$metadataValuesArgs + creator?: boolean | Prisma.Asset$creatorArgs + task?: boolean | Prisma.Asset$taskArgs + project?: boolean | Prisma.Asset$projectArgs + comments?: boolean | Prisma.Asset$commentsArgs + commentAttachments?: boolean | Prisma.Asset$commentAttachmentsArgs + notifications?: boolean | Prisma.Asset$notificationsArgs + embeddings?: boolean | Prisma.Asset$embeddingsArgs + teamRootFolder?: boolean | Prisma.Asset$teamRootFolderArgs + projectRootFolder?: boolean | Prisma.Asset$projectRootFolderArgs + projectShareRoot?: boolean | Prisma.Asset$projectShareRootArgs + shareLinkRootFolder?: boolean | Prisma.Asset$shareLinkRootFolderArgs + _count?: boolean | Prisma.AssetCountOutputTypeDefaultArgs +} +export type AssetIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + parent?: boolean | Prisma.Asset$parentArgs + target?: boolean | Prisma.Asset$targetArgs + storageKey?: boolean | Prisma.Asset$storageKeyArgs + creator?: boolean | Prisma.Asset$creatorArgs + task?: boolean | Prisma.Asset$taskArgs + project?: boolean | Prisma.Asset$projectArgs +} +export type AssetIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + parent?: boolean | Prisma.Asset$parentArgs + target?: boolean | Prisma.Asset$targetArgs + storageKey?: boolean | Prisma.Asset$storageKeyArgs + creator?: boolean | Prisma.Asset$creatorArgs + task?: boolean | Prisma.Asset$taskArgs + project?: boolean | Prisma.Asset$projectArgs +} + +export type $AssetPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Asset' + objects: { + parent: Prisma.$AssetPayload | null + children: Prisma.$AssetPayload[] + target: Prisma.$AssetPayload | null + symlinks: Prisma.$AssetPayload[] + storageKey: Prisma.$StorageKeyPayload | null + metadataValues: Prisma.$AssetMetadataValuePayload[] + creator: Prisma.$UserPayload | null + task: Prisma.$TaskPayload | null + project: Prisma.$ProjectPayload | null + comments: Prisma.$AssetCommentPayload[] + commentAttachments: Prisma.$AssetCommentAttachmentPayload[] + notifications: Prisma.$NotificationPayload[] + embeddings: Prisma.$AssetEmbeddingPayload[] + teamRootFolder: Prisma.$TeamPayload | null + projectRootFolder: Prisma.$ProjectPayload | null + projectShareRoot: Prisma.$ProjectPayload | null + shareLinkRootFolder: Prisma.$ShareLinkPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + name: string + nameNgram: string[] + type: $Enums.AssetType + mediaType: string | null + fileCount: number + sizeByte: number + status: $Enums.AssetStatus + transcodeTaskId: string | null + /** + * [MediaInfo] + */ + media: PrismaJson.MediaInfo | null + isDeleted: boolean + deletedAt: Date | null + sortIndex: string | null + createdAt: Date + updatedAt: Date + parentId: string | null + targetId: string | null + storageKeyId: string | null + creatorId: string | null + taskId: string | null + projectId: string | null + }, + ExtArgs['result']['asset'] + > + composites: {} +} + +export type AssetGetPayload = + runtime.Types.Result.GetResult + +export type AssetCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: AssetCountAggregateInputType | true +} + +export interface AssetDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['Asset']; meta: { name: 'Asset' } } + /** + * Find zero or one Asset that matches the filter. + * @param {AssetFindUniqueArgs} args - Arguments to find a Asset + * @example + * // Get one Asset + * const asset = await prisma.asset.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Asset that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AssetFindUniqueOrThrowArgs} args - Arguments to find a Asset + * @example + * // Get one Asset + * const asset = await prisma.asset.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Asset that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetFindFirstArgs} args - Arguments to find a Asset + * @example + * // Get one Asset + * const asset = await prisma.asset.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Asset that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetFindFirstOrThrowArgs} args - Arguments to find a Asset + * @example + * // Get one Asset + * const asset = await prisma.asset.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Assets that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Assets + * const assets = await prisma.asset.findMany() + * + * // Get first 10 Assets + * const assets = await prisma.asset.findMany({ take: 10 }) + * + * // Only select the `id` + * const assetWithIdOnly = await prisma.asset.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult, T, 'findMany', GlobalOmitOptions> + > + + /** + * Create a Asset. + * @param {AssetCreateArgs} args - Arguments to create a Asset. + * @example + * // Create one Asset + * const Asset = await prisma.asset.create({ + * data: { + * // ... data to create a Asset + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult, T, 'create', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Assets. + * @param {AssetCreateManyArgs} args - Arguments to create many Assets. + * @example + * // Create many Assets + * const asset = await prisma.asset.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Assets and returns the data saved in the database. + * @param {AssetCreateManyAndReturnArgs} args - Arguments to create many Assets. + * @example + * // Create many Assets + * const asset = await prisma.asset.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Assets and only return the `id` + * const assetWithIdOnly = await prisma.asset.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Asset. + * @param {AssetDeleteArgs} args - Arguments to delete one Asset. + * @example + * // Delete one Asset + * const Asset = await prisma.asset.delete({ + * where: { + * // ... filter to delete one Asset + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult, T, 'delete', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Asset. + * @param {AssetUpdateArgs} args - Arguments to update one Asset. + * @example + * // Update one Asset + * const asset = await prisma.asset.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult, T, 'update', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Assets. + * @param {AssetDeleteManyArgs} args - Arguments to filter Assets to delete. + * @example + * // Delete a few Assets + * const { count } = await prisma.asset.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Assets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Assets + * const asset = await prisma.asset.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Assets and returns the data updated in the database. + * @param {AssetUpdateManyAndReturnArgs} args - Arguments to update many Assets. + * @example + * // Update many Assets + * const asset = await prisma.asset.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Assets and only return the `id` + * const assetWithIdOnly = await prisma.asset.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Asset. + * @param {AssetUpsertArgs} args - Arguments to update or create a Asset. + * @example + * // Update or create a Asset + * const asset = await prisma.asset.upsert({ + * create: { + * // ... data to create a Asset + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Asset we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult, T, 'upsert', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Assets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCountArgs} args - Arguments to filter Assets to count. + * @example + * // Count the number of Assets + * const count = await prisma.asset.count({ + * where: { + * // ... the filter for the Assets we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Asset. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Asset. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends AssetGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AssetGroupByArgs['orderBy'] } + : { orderBy?: AssetGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetAssetGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Asset model + */ + readonly fields: AssetFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Asset. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__AssetClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + parent = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + children = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + target = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + symlinks = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + storageKey = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__StorageKeyClient< + runtime.Types.Result.GetResult< + Prisma.$StorageKeyPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + metadataValues = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetMetadataValuePayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + creator = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + task = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TaskClient< + runtime.Types.Result.GetResult< + Prisma.$TaskPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + project = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + comments = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + commentAttachments = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetCommentAttachmentPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + notifications = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + embeddings = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetEmbeddingPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + teamRootFolder = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TeamClient< + runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + projectRootFolder = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + projectShareRoot = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + shareLinkRootFolder = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ShareLinkClient< + runtime.Types.Result.GetResult< + Prisma.$ShareLinkPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Asset model + */ +export interface AssetFieldRefs { + readonly id: Prisma.FieldRef<'Asset', 'String'> + readonly name: Prisma.FieldRef<'Asset', 'String'> + readonly nameNgram: Prisma.FieldRef<'Asset', 'String[]'> + readonly type: Prisma.FieldRef<'Asset', 'AssetType'> + readonly mediaType: Prisma.FieldRef<'Asset', 'String'> + readonly fileCount: Prisma.FieldRef<'Asset', 'Int'> + readonly sizeByte: Prisma.FieldRef<'Asset', 'Int'> + readonly status: Prisma.FieldRef<'Asset', 'AssetStatus'> + readonly transcodeTaskId: Prisma.FieldRef<'Asset', 'String'> + readonly media: Prisma.FieldRef<'Asset', 'Json'> + readonly isDeleted: Prisma.FieldRef<'Asset', 'Boolean'> + readonly deletedAt: Prisma.FieldRef<'Asset', 'DateTime'> + readonly sortIndex: Prisma.FieldRef<'Asset', 'String'> + readonly createdAt: Prisma.FieldRef<'Asset', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Asset', 'DateTime'> + readonly parentId: Prisma.FieldRef<'Asset', 'String'> + readonly targetId: Prisma.FieldRef<'Asset', 'String'> + readonly storageKeyId: Prisma.FieldRef<'Asset', 'String'> + readonly creatorId: Prisma.FieldRef<'Asset', 'String'> + readonly taskId: Prisma.FieldRef<'Asset', 'String'> + readonly projectId: Prisma.FieldRef<'Asset', 'String'> +} + +// Custom InputTypes +/** + * Asset findUnique + */ +export type AssetFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + /** + * Filter, which Asset to fetch. + */ + where: Prisma.AssetWhereUniqueInput +} + +/** + * Asset findUniqueOrThrow + */ +export type AssetFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + /** + * Filter, which Asset to fetch. + */ + where: Prisma.AssetWhereUniqueInput +} + +/** + * Asset findFirst + */ +export type AssetFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + /** + * Filter, which Asset to fetch. + */ + where?: Prisma.AssetWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Assets to fetch. + */ + orderBy?: Prisma.AssetOrderByWithRelationInput | Prisma.AssetOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Assets. + */ + cursor?: Prisma.AssetWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Assets from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Assets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Assets. + */ + distinct?: Prisma.AssetScalarFieldEnum | Prisma.AssetScalarFieldEnum[] +} + +/** + * Asset findFirstOrThrow + */ +export type AssetFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + /** + * Filter, which Asset to fetch. + */ + where?: Prisma.AssetWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Assets to fetch. + */ + orderBy?: Prisma.AssetOrderByWithRelationInput | Prisma.AssetOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Assets. + */ + cursor?: Prisma.AssetWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Assets from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Assets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Assets. + */ + distinct?: Prisma.AssetScalarFieldEnum | Prisma.AssetScalarFieldEnum[] +} + +/** + * Asset findMany + */ +export type AssetFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + /** + * Filter, which Assets to fetch. + */ + where?: Prisma.AssetWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Assets to fetch. + */ + orderBy?: Prisma.AssetOrderByWithRelationInput | Prisma.AssetOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Assets. + */ + cursor?: Prisma.AssetWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Assets from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Assets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Assets. + */ + distinct?: Prisma.AssetScalarFieldEnum | Prisma.AssetScalarFieldEnum[] +} + +/** + * Asset create + */ +export type AssetCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + /** + * The data needed to create a Asset. + */ + data: Prisma.XOR +} + +/** + * Asset createMany + */ +export type AssetCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Assets. + */ + data: Prisma.AssetCreateManyInput | Prisma.AssetCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Asset createManyAndReturn + */ +export type AssetCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * The data used to create many Assets. + */ + data: Prisma.AssetCreateManyInput | Prisma.AssetCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetIncludeCreateManyAndReturn | null +} + +/** + * Asset update + */ +export type AssetUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + /** + * The data needed to update a Asset. + */ + data: Prisma.XOR + /** + * Choose, which Asset to update. + */ + where: Prisma.AssetWhereUniqueInput +} + +/** + * Asset updateMany + */ +export type AssetUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Assets. + */ + data: Prisma.XOR + /** + * Filter which Assets to update + */ + where?: Prisma.AssetWhereInput + /** + * Limit how many Assets to update. + */ + limit?: number +} + +/** + * Asset updateManyAndReturn + */ +export type AssetUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * The data used to update Assets. + */ + data: Prisma.XOR + /** + * Filter which Assets to update + */ + where?: Prisma.AssetWhereInput + /** + * Limit how many Assets to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetIncludeUpdateManyAndReturn | null +} + +/** + * Asset upsert + */ +export type AssetUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + /** + * The filter to search for the Asset to update in case it exists. + */ + where: Prisma.AssetWhereUniqueInput + /** + * In case the Asset found by the `where` argument doesn't exist, create a new Asset with this data. + */ + create: Prisma.XOR + /** + * In case the Asset was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Asset delete + */ +export type AssetDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + /** + * Filter which Asset to delete. + */ + where: Prisma.AssetWhereUniqueInput +} + +/** + * Asset deleteMany + */ +export type AssetDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Assets to delete + */ + where?: Prisma.AssetWhereInput + /** + * Limit how many Assets to delete. + */ + limit?: number +} + +/** + * Asset.parent + */ +export type Asset$parentArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + where?: Prisma.AssetWhereInput +} + +/** + * Asset.children + */ +export type Asset$childrenArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + where?: Prisma.AssetWhereInput + orderBy?: Prisma.AssetOrderByWithRelationInput | Prisma.AssetOrderByWithRelationInput[] + cursor?: Prisma.AssetWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AssetScalarFieldEnum | Prisma.AssetScalarFieldEnum[] +} + +/** + * Asset.target + */ +export type Asset$targetArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + where?: Prisma.AssetWhereInput +} + +/** + * Asset.symlinks + */ +export type Asset$symlinksArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + where?: Prisma.AssetWhereInput + orderBy?: Prisma.AssetOrderByWithRelationInput | Prisma.AssetOrderByWithRelationInput[] + cursor?: Prisma.AssetWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AssetScalarFieldEnum | Prisma.AssetScalarFieldEnum[] +} + +/** + * Asset.storageKey + */ +export type Asset$storageKeyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKey + */ + select?: Prisma.StorageKeySelect | null + /** + * Omit specific fields from the StorageKey + */ + omit?: Prisma.StorageKeyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StorageKeyInclude | null + where?: Prisma.StorageKeyWhereInput +} + +/** + * Asset.metadataValues + */ +export type Asset$metadataValuesArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetMetadataValue + */ + select?: Prisma.AssetMetadataValueSelect | null + /** + * Omit specific fields from the AssetMetadataValue + */ + omit?: Prisma.AssetMetadataValueOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetMetadataValueInclude | null + where?: Prisma.AssetMetadataValueWhereInput + orderBy?: + | Prisma.AssetMetadataValueOrderByWithRelationInput + | Prisma.AssetMetadataValueOrderByWithRelationInput[] + cursor?: Prisma.AssetMetadataValueWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AssetMetadataValueScalarFieldEnum | Prisma.AssetMetadataValueScalarFieldEnum[] +} + +/** + * Asset.creator + */ +export type Asset$creatorArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + where?: Prisma.UserWhereInput +} + +/** + * Asset.task + */ +export type Asset$taskArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelect | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskInclude | null + where?: Prisma.TaskWhereInput +} + +/** + * Asset.project + */ +export type Asset$projectArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + where?: Prisma.ProjectWhereInput +} + +/** + * Asset.comments + */ +export type Asset$commentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + where?: Prisma.AssetCommentWhereInput + orderBy?: + | Prisma.AssetCommentOrderByWithRelationInput + | Prisma.AssetCommentOrderByWithRelationInput[] + cursor?: Prisma.AssetCommentWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AssetCommentScalarFieldEnum | Prisma.AssetCommentScalarFieldEnum[] +} + +/** + * Asset.commentAttachments + */ +export type Asset$commentAttachmentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelect | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentInclude | null + where?: Prisma.AssetCommentAttachmentWhereInput + orderBy?: + | Prisma.AssetCommentAttachmentOrderByWithRelationInput + | Prisma.AssetCommentAttachmentOrderByWithRelationInput[] + cursor?: Prisma.AssetCommentAttachmentWhereUniqueInput + take?: number + skip?: number + distinct?: + | Prisma.AssetCommentAttachmentScalarFieldEnum + | Prisma.AssetCommentAttachmentScalarFieldEnum[] +} + +/** + * Asset.notifications + */ +export type Asset$notificationsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + where?: Prisma.NotificationWhereInput + orderBy?: + | Prisma.NotificationOrderByWithRelationInput + | Prisma.NotificationOrderByWithRelationInput[] + cursor?: Prisma.NotificationWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * Asset.embeddings + */ +export type Asset$embeddingsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetEmbedding + */ + select?: Prisma.AssetEmbeddingSelect | null + /** + * Omit specific fields from the AssetEmbedding + */ + omit?: Prisma.AssetEmbeddingOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetEmbeddingInclude | null + where?: Prisma.AssetEmbeddingWhereInput + orderBy?: + | Prisma.AssetEmbeddingOrderByWithRelationInput + | Prisma.AssetEmbeddingOrderByWithRelationInput[] + cursor?: Prisma.AssetEmbeddingWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AssetEmbeddingScalarFieldEnum | Prisma.AssetEmbeddingScalarFieldEnum[] +} + +/** + * Asset.teamRootFolder + */ +export type Asset$teamRootFolderArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelect | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamInclude | null + where?: Prisma.TeamWhereInput +} + +/** + * Asset.projectRootFolder + */ +export type Asset$projectRootFolderArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + where?: Prisma.ProjectWhereInput +} + +/** + * Asset.projectShareRoot + */ +export type Asset$projectShareRootArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + where?: Prisma.ProjectWhereInput +} + +/** + * Asset.shareLinkRootFolder + */ +export type Asset$shareLinkRootFolderArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelect | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkInclude | null + where?: Prisma.ShareLinkWhereInput +} + +/** + * Asset without action + */ +export type AssetDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null +} diff --git a/packages/db/src/generated/prisma/models/AssetComment.ts b/packages/db/src/generated/prisma/models/AssetComment.ts new file mode 100644 index 00000000..4221238e --- /dev/null +++ b/packages/db/src/generated/prisma/models/AssetComment.ts @@ -0,0 +1,3015 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `AssetComment` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model AssetComment + * + */ +export type AssetCommentModel = runtime.Types.Result.DefaultSelection + +export type AggregateAssetComment = { + _count: AssetCommentCountAggregateOutputType | null + _avg: AssetCommentAvgAggregateOutputType | null + _sum: AssetCommentSumAggregateOutputType | null + _min: AssetCommentMinAggregateOutputType | null + _max: AssetCommentMaxAggregateOutputType | null +} + +export type AssetCommentAvgAggregateOutputType = { + second: number | null +} + +export type AssetCommentSumAggregateOutputType = { + second: number | null +} + +export type AssetCommentMinAggregateOutputType = { + id: string | null + message: string | null + second: number | null + sessionId: string | null + createdAt: Date | null + updatedAt: Date | null + assetId: string | null + creatorId: string | null + replyToId: string | null +} + +export type AssetCommentMaxAggregateOutputType = { + id: string | null + message: string | null + second: number | null + sessionId: string | null + createdAt: Date | null + updatedAt: Date | null + assetId: string | null + creatorId: string | null + replyToId: string | null +} + +export type AssetCommentCountAggregateOutputType = { + id: number + message: number + annotation: PrismaJson.AnnotationList + second: number + sessionId: number + createdAt: number + updatedAt: number + assetId: number + creatorId: number + replyToId: number + _all: number +} + +export type AssetCommentAvgAggregateInputType = { + second?: true +} + +export type AssetCommentSumAggregateInputType = { + second?: true +} + +export type AssetCommentMinAggregateInputType = { + id?: true + message?: true + second?: true + sessionId?: true + createdAt?: true + updatedAt?: true + assetId?: true + creatorId?: true + replyToId?: true +} + +export type AssetCommentMaxAggregateInputType = { + id?: true + message?: true + second?: true + sessionId?: true + createdAt?: true + updatedAt?: true + assetId?: true + creatorId?: true + replyToId?: true +} + +export type AssetCommentCountAggregateInputType = { + id?: true + message?: true + annotation?: true + second?: true + sessionId?: true + createdAt?: true + updatedAt?: true + assetId?: true + creatorId?: true + replyToId?: true + _all?: true +} + +export type AssetCommentAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AssetComment to aggregate. + */ + where?: Prisma.AssetCommentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetComments to fetch. + */ + orderBy?: + | Prisma.AssetCommentOrderByWithRelationInput + | Prisma.AssetCommentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AssetCommentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetComments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetComments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned AssetComments + **/ + _count?: true | AssetCommentCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: AssetCommentAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: AssetCommentSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AssetCommentMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AssetCommentMaxAggregateInputType +} + +export type GetAssetCommentAggregateType = { + [P in keyof T & keyof AggregateAssetComment]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type AssetCommentGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetCommentWhereInput + orderBy?: + | Prisma.AssetCommentOrderByWithAggregationInput + | Prisma.AssetCommentOrderByWithAggregationInput[] + by: Prisma.AssetCommentScalarFieldEnum[] | Prisma.AssetCommentScalarFieldEnum + having?: Prisma.AssetCommentScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AssetCommentCountAggregateInputType | true + _avg?: AssetCommentAvgAggregateInputType + _sum?: AssetCommentSumAggregateInputType + _min?: AssetCommentMinAggregateInputType + _max?: AssetCommentMaxAggregateInputType +} + +export type AssetCommentGroupByOutputType = { + id: string + message: string | null + annotation: PrismaJson.AnnotationList | null + second: number | null + sessionId: string | null + createdAt: Date + updatedAt: Date + assetId: string + creatorId: string | null + replyToId: string | null + _count: AssetCommentCountAggregateOutputType | null + _avg: AssetCommentAvgAggregateOutputType | null + _sum: AssetCommentSumAggregateOutputType | null + _min: AssetCommentMinAggregateOutputType | null + _max: AssetCommentMaxAggregateOutputType | null +} + +export type GetAssetCommentGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof AssetCommentGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type AssetCommentWhereInput = { + AND?: Prisma.AssetCommentWhereInput | Prisma.AssetCommentWhereInput[] + OR?: Prisma.AssetCommentWhereInput[] + NOT?: Prisma.AssetCommentWhereInput | Prisma.AssetCommentWhereInput[] + id?: Prisma.StringFilter<'AssetComment'> | string + message?: Prisma.StringNullableFilter<'AssetComment'> | string | null + annotation?: Prisma.JsonNullableFilter<'AssetComment'> + second?: Prisma.FloatNullableFilter<'AssetComment'> | number | null + sessionId?: Prisma.StringNullableFilter<'AssetComment'> | string | null + createdAt?: Prisma.DateTimeFilter<'AssetComment'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AssetComment'> | Date | string + assetId?: Prisma.StringFilter<'AssetComment'> | string + creatorId?: Prisma.StringNullableFilter<'AssetComment'> | string | null + replyToId?: Prisma.StringNullableFilter<'AssetComment'> | string | null + session?: Prisma.XOR< + Prisma.AgentSessionNullableScalarRelationFilter, + Prisma.AgentSessionWhereInput + > | null + asset?: Prisma.XOR + creator?: Prisma.XOR | null + replyTo?: Prisma.XOR< + Prisma.AssetCommentNullableScalarRelationFilter, + Prisma.AssetCommentWhereInput + > | null + replies?: Prisma.AssetCommentListRelationFilter + attachments?: Prisma.AssetCommentAttachmentListRelationFilter +} + +export type AssetCommentOrderByWithRelationInput = { + id?: Prisma.SortOrder + message?: Prisma.SortOrderInput | Prisma.SortOrder + annotation?: Prisma.SortOrderInput | Prisma.SortOrder + second?: Prisma.SortOrderInput | Prisma.SortOrder + sessionId?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + assetId?: Prisma.SortOrder + creatorId?: Prisma.SortOrderInput | Prisma.SortOrder + replyToId?: Prisma.SortOrderInput | Prisma.SortOrder + session?: Prisma.AgentSessionOrderByWithRelationInput + asset?: Prisma.AssetOrderByWithRelationInput + creator?: Prisma.UserOrderByWithRelationInput + replyTo?: Prisma.AssetCommentOrderByWithRelationInput + replies?: Prisma.AssetCommentOrderByRelationAggregateInput + attachments?: Prisma.AssetCommentAttachmentOrderByRelationAggregateInput +} + +export type AssetCommentWhereUniqueInput = Prisma.AtLeast< + { + id?: string + AND?: Prisma.AssetCommentWhereInput | Prisma.AssetCommentWhereInput[] + OR?: Prisma.AssetCommentWhereInput[] + NOT?: Prisma.AssetCommentWhereInput | Prisma.AssetCommentWhereInput[] + message?: Prisma.StringNullableFilter<'AssetComment'> | string | null + annotation?: Prisma.JsonNullableFilter<'AssetComment'> + second?: Prisma.FloatNullableFilter<'AssetComment'> | number | null + sessionId?: Prisma.StringNullableFilter<'AssetComment'> | string | null + createdAt?: Prisma.DateTimeFilter<'AssetComment'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AssetComment'> | Date | string + assetId?: Prisma.StringFilter<'AssetComment'> | string + creatorId?: Prisma.StringNullableFilter<'AssetComment'> | string | null + replyToId?: Prisma.StringNullableFilter<'AssetComment'> | string | null + session?: Prisma.XOR< + Prisma.AgentSessionNullableScalarRelationFilter, + Prisma.AgentSessionWhereInput + > | null + asset?: Prisma.XOR + creator?: Prisma.XOR | null + replyTo?: Prisma.XOR< + Prisma.AssetCommentNullableScalarRelationFilter, + Prisma.AssetCommentWhereInput + > | null + replies?: Prisma.AssetCommentListRelationFilter + attachments?: Prisma.AssetCommentAttachmentListRelationFilter + }, + 'id' +> + +export type AssetCommentOrderByWithAggregationInput = { + id?: Prisma.SortOrder + message?: Prisma.SortOrderInput | Prisma.SortOrder + annotation?: Prisma.SortOrderInput | Prisma.SortOrder + second?: Prisma.SortOrderInput | Prisma.SortOrder + sessionId?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + assetId?: Prisma.SortOrder + creatorId?: Prisma.SortOrderInput | Prisma.SortOrder + replyToId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.AssetCommentCountOrderByAggregateInput + _avg?: Prisma.AssetCommentAvgOrderByAggregateInput + _max?: Prisma.AssetCommentMaxOrderByAggregateInput + _min?: Prisma.AssetCommentMinOrderByAggregateInput + _sum?: Prisma.AssetCommentSumOrderByAggregateInput +} + +export type AssetCommentScalarWhereWithAggregatesInput = { + AND?: + | Prisma.AssetCommentScalarWhereWithAggregatesInput + | Prisma.AssetCommentScalarWhereWithAggregatesInput[] + OR?: Prisma.AssetCommentScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.AssetCommentScalarWhereWithAggregatesInput + | Prisma.AssetCommentScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'AssetComment'> | string + message?: Prisma.StringNullableWithAggregatesFilter<'AssetComment'> | string | null + annotation?: Prisma.JsonNullableWithAggregatesFilter<'AssetComment'> + second?: Prisma.FloatNullableWithAggregatesFilter<'AssetComment'> | number | null + sessionId?: Prisma.StringNullableWithAggregatesFilter<'AssetComment'> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<'AssetComment'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'AssetComment'> | Date | string + assetId?: Prisma.StringWithAggregatesFilter<'AssetComment'> | string + creatorId?: Prisma.StringNullableWithAggregatesFilter<'AssetComment'> | string | null + replyToId?: Prisma.StringNullableWithAggregatesFilter<'AssetComment'> | string | null +} + +export type AssetCommentCreateInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + createdAt?: Date | string + updatedAt?: Date | string + session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput + asset: Prisma.AssetCreateNestedOneWithoutCommentsInput + creator?: Prisma.UserCreateNestedOneWithoutCommentsInput + replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput + replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput + attachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutCommentInput +} + +export type AssetCommentUncheckedCreateInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + sessionId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assetId: string + creatorId?: string | null + replyToId?: string | null + replies?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutReplyToInput + attachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput +} + +export type AssetCommentUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput + asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput + creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput + replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput + replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput + attachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutCommentNestedInput +} + +export type AssetCommentUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput + attachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput +} + +export type AssetCommentCreateManyInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + sessionId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assetId: string + creatorId?: string | null + replyToId?: string | null +} + +export type AssetCommentUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AssetCommentUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type AssetCommentListRelationFilter = { + every?: Prisma.AssetCommentWhereInput + some?: Prisma.AssetCommentWhereInput + none?: Prisma.AssetCommentWhereInput +} + +export type AssetCommentOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AssetCommentNullableScalarRelationFilter = { + is?: Prisma.AssetCommentWhereInput | null + isNot?: Prisma.AssetCommentWhereInput | null +} + +export type AssetCommentCountOrderByAggregateInput = { + id?: Prisma.SortOrder + message?: Prisma.SortOrder + annotation?: Prisma.SortOrder + second?: Prisma.SortOrder + sessionId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + assetId?: Prisma.SortOrder + creatorId?: Prisma.SortOrder + replyToId?: Prisma.SortOrder +} + +export type AssetCommentAvgOrderByAggregateInput = { + second?: Prisma.SortOrder +} + +export type AssetCommentMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + message?: Prisma.SortOrder + second?: Prisma.SortOrder + sessionId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + assetId?: Prisma.SortOrder + creatorId?: Prisma.SortOrder + replyToId?: Prisma.SortOrder +} + +export type AssetCommentMinOrderByAggregateInput = { + id?: Prisma.SortOrder + message?: Prisma.SortOrder + second?: Prisma.SortOrder + sessionId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + assetId?: Prisma.SortOrder + creatorId?: Prisma.SortOrder + replyToId?: Prisma.SortOrder +} + +export type AssetCommentSumOrderByAggregateInput = { + second?: Prisma.SortOrder +} + +export type AssetCommentScalarRelationFilter = { + is?: Prisma.AssetCommentWhereInput + isNot?: Prisma.AssetCommentWhereInput +} + +export type AssetCommentCreateNestedManyWithoutCreatorInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutCreatorInput, + Prisma.AssetCommentUncheckedCreateWithoutCreatorInput + > + | Prisma.AssetCommentCreateWithoutCreatorInput[] + | Prisma.AssetCommentUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutCreatorInput + | Prisma.AssetCommentCreateOrConnectWithoutCreatorInput[] + createMany?: Prisma.AssetCommentCreateManyCreatorInputEnvelope + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] +} + +export type AssetCommentUncheckedCreateNestedManyWithoutCreatorInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutCreatorInput, + Prisma.AssetCommentUncheckedCreateWithoutCreatorInput + > + | Prisma.AssetCommentCreateWithoutCreatorInput[] + | Prisma.AssetCommentUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutCreatorInput + | Prisma.AssetCommentCreateOrConnectWithoutCreatorInput[] + createMany?: Prisma.AssetCommentCreateManyCreatorInputEnvelope + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] +} + +export type AssetCommentUpdateManyWithoutCreatorNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutCreatorInput, + Prisma.AssetCommentUncheckedCreateWithoutCreatorInput + > + | Prisma.AssetCommentCreateWithoutCreatorInput[] + | Prisma.AssetCommentUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutCreatorInput + | Prisma.AssetCommentCreateOrConnectWithoutCreatorInput[] + upsert?: + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutCreatorInput + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutCreatorInput[] + createMany?: Prisma.AssetCommentCreateManyCreatorInputEnvelope + set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + update?: + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutCreatorInput + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutCreatorInput[] + updateMany?: + | Prisma.AssetCommentUpdateManyWithWhereWithoutCreatorInput + | Prisma.AssetCommentUpdateManyWithWhereWithoutCreatorInput[] + deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[] +} + +export type AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutCreatorInput, + Prisma.AssetCommentUncheckedCreateWithoutCreatorInput + > + | Prisma.AssetCommentCreateWithoutCreatorInput[] + | Prisma.AssetCommentUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutCreatorInput + | Prisma.AssetCommentCreateOrConnectWithoutCreatorInput[] + upsert?: + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutCreatorInput + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutCreatorInput[] + createMany?: Prisma.AssetCommentCreateManyCreatorInputEnvelope + set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + update?: + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutCreatorInput + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutCreatorInput[] + updateMany?: + | Prisma.AssetCommentUpdateManyWithWhereWithoutCreatorInput + | Prisma.AssetCommentUpdateManyWithWhereWithoutCreatorInput[] + deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[] +} + +export type AssetCommentCreateNestedManyWithoutAssetInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutAssetInput, + Prisma.AssetCommentUncheckedCreateWithoutAssetInput + > + | Prisma.AssetCommentCreateWithoutAssetInput[] + | Prisma.AssetCommentUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutAssetInput + | Prisma.AssetCommentCreateOrConnectWithoutAssetInput[] + createMany?: Prisma.AssetCommentCreateManyAssetInputEnvelope + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] +} + +export type AssetCommentUncheckedCreateNestedManyWithoutAssetInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutAssetInput, + Prisma.AssetCommentUncheckedCreateWithoutAssetInput + > + | Prisma.AssetCommentCreateWithoutAssetInput[] + | Prisma.AssetCommentUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutAssetInput + | Prisma.AssetCommentCreateOrConnectWithoutAssetInput[] + createMany?: Prisma.AssetCommentCreateManyAssetInputEnvelope + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] +} + +export type AssetCommentUpdateManyWithoutAssetNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutAssetInput, + Prisma.AssetCommentUncheckedCreateWithoutAssetInput + > + | Prisma.AssetCommentCreateWithoutAssetInput[] + | Prisma.AssetCommentUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutAssetInput + | Prisma.AssetCommentCreateOrConnectWithoutAssetInput[] + upsert?: + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutAssetInput + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutAssetInput[] + createMany?: Prisma.AssetCommentCreateManyAssetInputEnvelope + set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + update?: + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutAssetInput + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutAssetInput[] + updateMany?: + | Prisma.AssetCommentUpdateManyWithWhereWithoutAssetInput + | Prisma.AssetCommentUpdateManyWithWhereWithoutAssetInput[] + deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[] +} + +export type AssetCommentUncheckedUpdateManyWithoutAssetNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutAssetInput, + Prisma.AssetCommentUncheckedCreateWithoutAssetInput + > + | Prisma.AssetCommentCreateWithoutAssetInput[] + | Prisma.AssetCommentUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutAssetInput + | Prisma.AssetCommentCreateOrConnectWithoutAssetInput[] + upsert?: + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutAssetInput + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutAssetInput[] + createMany?: Prisma.AssetCommentCreateManyAssetInputEnvelope + set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + update?: + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutAssetInput + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutAssetInput[] + updateMany?: + | Prisma.AssetCommentUpdateManyWithWhereWithoutAssetInput + | Prisma.AssetCommentUpdateManyWithWhereWithoutAssetInput[] + deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[] +} + +export type AssetCommentCreateNestedOneWithoutRepliesInput = { + create?: Prisma.XOR< + Prisma.AssetCommentCreateWithoutRepliesInput, + Prisma.AssetCommentUncheckedCreateWithoutRepliesInput + > + connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutRepliesInput + connect?: Prisma.AssetCommentWhereUniqueInput +} + +export type AssetCommentCreateNestedManyWithoutReplyToInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutReplyToInput, + Prisma.AssetCommentUncheckedCreateWithoutReplyToInput + > + | Prisma.AssetCommentCreateWithoutReplyToInput[] + | Prisma.AssetCommentUncheckedCreateWithoutReplyToInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutReplyToInput + | Prisma.AssetCommentCreateOrConnectWithoutReplyToInput[] + createMany?: Prisma.AssetCommentCreateManyReplyToInputEnvelope + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] +} + +export type AssetCommentUncheckedCreateNestedManyWithoutReplyToInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutReplyToInput, + Prisma.AssetCommentUncheckedCreateWithoutReplyToInput + > + | Prisma.AssetCommentCreateWithoutReplyToInput[] + | Prisma.AssetCommentUncheckedCreateWithoutReplyToInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutReplyToInput + | Prisma.AssetCommentCreateOrConnectWithoutReplyToInput[] + createMany?: Prisma.AssetCommentCreateManyReplyToInputEnvelope + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] +} + +export type AssetCommentUpdateOneWithoutRepliesNestedInput = { + create?: Prisma.XOR< + Prisma.AssetCommentCreateWithoutRepliesInput, + Prisma.AssetCommentUncheckedCreateWithoutRepliesInput + > + connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutRepliesInput + upsert?: Prisma.AssetCommentUpsertWithoutRepliesInput + disconnect?: Prisma.AssetCommentWhereInput | boolean + delete?: Prisma.AssetCommentWhereInput | boolean + connect?: Prisma.AssetCommentWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AssetCommentUpdateToOneWithWhereWithoutRepliesInput, + Prisma.AssetCommentUpdateWithoutRepliesInput + >, + Prisma.AssetCommentUncheckedUpdateWithoutRepliesInput + > +} + +export type AssetCommentUpdateManyWithoutReplyToNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutReplyToInput, + Prisma.AssetCommentUncheckedCreateWithoutReplyToInput + > + | Prisma.AssetCommentCreateWithoutReplyToInput[] + | Prisma.AssetCommentUncheckedCreateWithoutReplyToInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutReplyToInput + | Prisma.AssetCommentCreateOrConnectWithoutReplyToInput[] + upsert?: + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutReplyToInput + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutReplyToInput[] + createMany?: Prisma.AssetCommentCreateManyReplyToInputEnvelope + set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + update?: + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutReplyToInput + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutReplyToInput[] + updateMany?: + | Prisma.AssetCommentUpdateManyWithWhereWithoutReplyToInput + | Prisma.AssetCommentUpdateManyWithWhereWithoutReplyToInput[] + deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[] +} + +export type AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutReplyToInput, + Prisma.AssetCommentUncheckedCreateWithoutReplyToInput + > + | Prisma.AssetCommentCreateWithoutReplyToInput[] + | Prisma.AssetCommentUncheckedCreateWithoutReplyToInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutReplyToInput + | Prisma.AssetCommentCreateOrConnectWithoutReplyToInput[] + upsert?: + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutReplyToInput + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutReplyToInput[] + createMany?: Prisma.AssetCommentCreateManyReplyToInputEnvelope + set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + update?: + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutReplyToInput + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutReplyToInput[] + updateMany?: + | Prisma.AssetCommentUpdateManyWithWhereWithoutReplyToInput + | Prisma.AssetCommentUpdateManyWithWhereWithoutReplyToInput[] + deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[] +} + +export type AssetCommentCreateNestedOneWithoutAttachmentsInput = { + create?: Prisma.XOR< + Prisma.AssetCommentCreateWithoutAttachmentsInput, + Prisma.AssetCommentUncheckedCreateWithoutAttachmentsInput + > + connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutAttachmentsInput + connect?: Prisma.AssetCommentWhereUniqueInput +} + +export type AssetCommentUpdateOneRequiredWithoutAttachmentsNestedInput = { + create?: Prisma.XOR< + Prisma.AssetCommentCreateWithoutAttachmentsInput, + Prisma.AssetCommentUncheckedCreateWithoutAttachmentsInput + > + connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutAttachmentsInput + upsert?: Prisma.AssetCommentUpsertWithoutAttachmentsInput + connect?: Prisma.AssetCommentWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.AssetCommentUpdateToOneWithWhereWithoutAttachmentsInput, + Prisma.AssetCommentUpdateWithoutAttachmentsInput + >, + Prisma.AssetCommentUncheckedUpdateWithoutAttachmentsInput + > +} + +export type AssetCommentCreateNestedManyWithoutSessionInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutSessionInput, + Prisma.AssetCommentUncheckedCreateWithoutSessionInput + > + | Prisma.AssetCommentCreateWithoutSessionInput[] + | Prisma.AssetCommentUncheckedCreateWithoutSessionInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutSessionInput + | Prisma.AssetCommentCreateOrConnectWithoutSessionInput[] + createMany?: Prisma.AssetCommentCreateManySessionInputEnvelope + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] +} + +export type AssetCommentUncheckedCreateNestedManyWithoutSessionInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutSessionInput, + Prisma.AssetCommentUncheckedCreateWithoutSessionInput + > + | Prisma.AssetCommentCreateWithoutSessionInput[] + | Prisma.AssetCommentUncheckedCreateWithoutSessionInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutSessionInput + | Prisma.AssetCommentCreateOrConnectWithoutSessionInput[] + createMany?: Prisma.AssetCommentCreateManySessionInputEnvelope + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] +} + +export type AssetCommentUpdateManyWithoutSessionNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutSessionInput, + Prisma.AssetCommentUncheckedCreateWithoutSessionInput + > + | Prisma.AssetCommentCreateWithoutSessionInput[] + | Prisma.AssetCommentUncheckedCreateWithoutSessionInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutSessionInput + | Prisma.AssetCommentCreateOrConnectWithoutSessionInput[] + upsert?: + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutSessionInput + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutSessionInput[] + createMany?: Prisma.AssetCommentCreateManySessionInputEnvelope + set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + update?: + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutSessionInput + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutSessionInput[] + updateMany?: + | Prisma.AssetCommentUpdateManyWithWhereWithoutSessionInput + | Prisma.AssetCommentUpdateManyWithWhereWithoutSessionInput[] + deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[] +} + +export type AssetCommentUncheckedUpdateManyWithoutSessionNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentCreateWithoutSessionInput, + Prisma.AssetCommentUncheckedCreateWithoutSessionInput + > + | Prisma.AssetCommentCreateWithoutSessionInput[] + | Prisma.AssetCommentUncheckedCreateWithoutSessionInput[] + connectOrCreate?: + | Prisma.AssetCommentCreateOrConnectWithoutSessionInput + | Prisma.AssetCommentCreateOrConnectWithoutSessionInput[] + upsert?: + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutSessionInput + | Prisma.AssetCommentUpsertWithWhereUniqueWithoutSessionInput[] + createMany?: Prisma.AssetCommentCreateManySessionInputEnvelope + set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[] + update?: + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutSessionInput + | Prisma.AssetCommentUpdateWithWhereUniqueWithoutSessionInput[] + updateMany?: + | Prisma.AssetCommentUpdateManyWithWhereWithoutSessionInput + | Prisma.AssetCommentUpdateManyWithWhereWithoutSessionInput[] + deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[] +} + +export type AssetCommentCreateWithoutCreatorInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + createdAt?: Date | string + updatedAt?: Date | string + session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput + asset: Prisma.AssetCreateNestedOneWithoutCommentsInput + replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput + replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput + attachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutCommentInput +} + +export type AssetCommentUncheckedCreateWithoutCreatorInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + sessionId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assetId: string + replyToId?: string | null + replies?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutReplyToInput + attachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput +} + +export type AssetCommentCreateOrConnectWithoutCreatorInput = { + where: Prisma.AssetCommentWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCommentCreateWithoutCreatorInput, + Prisma.AssetCommentUncheckedCreateWithoutCreatorInput + > +} + +export type AssetCommentCreateManyCreatorInputEnvelope = { + data: Prisma.AssetCommentCreateManyCreatorInput | Prisma.AssetCommentCreateManyCreatorInput[] + skipDuplicates?: boolean +} + +export type AssetCommentUpsertWithWhereUniqueWithoutCreatorInput = { + where: Prisma.AssetCommentWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetCommentUpdateWithoutCreatorInput, + Prisma.AssetCommentUncheckedUpdateWithoutCreatorInput + > + create: Prisma.XOR< + Prisma.AssetCommentCreateWithoutCreatorInput, + Prisma.AssetCommentUncheckedCreateWithoutCreatorInput + > +} + +export type AssetCommentUpdateWithWhereUniqueWithoutCreatorInput = { + where: Prisma.AssetCommentWhereUniqueInput + data: Prisma.XOR< + Prisma.AssetCommentUpdateWithoutCreatorInput, + Prisma.AssetCommentUncheckedUpdateWithoutCreatorInput + > +} + +export type AssetCommentUpdateManyWithWhereWithoutCreatorInput = { + where: Prisma.AssetCommentScalarWhereInput + data: Prisma.XOR< + Prisma.AssetCommentUpdateManyMutationInput, + Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorInput + > +} + +export type AssetCommentScalarWhereInput = { + AND?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[] + OR?: Prisma.AssetCommentScalarWhereInput[] + NOT?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[] + id?: Prisma.StringFilter<'AssetComment'> | string + message?: Prisma.StringNullableFilter<'AssetComment'> | string | null + annotation?: Prisma.JsonNullableFilter<'AssetComment'> + second?: Prisma.FloatNullableFilter<'AssetComment'> | number | null + sessionId?: Prisma.StringNullableFilter<'AssetComment'> | string | null + createdAt?: Prisma.DateTimeFilter<'AssetComment'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AssetComment'> | Date | string + assetId?: Prisma.StringFilter<'AssetComment'> | string + creatorId?: Prisma.StringNullableFilter<'AssetComment'> | string | null + replyToId?: Prisma.StringNullableFilter<'AssetComment'> | string | null +} + +export type AssetCommentCreateWithoutAssetInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + createdAt?: Date | string + updatedAt?: Date | string + session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput + creator?: Prisma.UserCreateNestedOneWithoutCommentsInput + replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput + replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput + attachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutCommentInput +} + +export type AssetCommentUncheckedCreateWithoutAssetInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + sessionId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + creatorId?: string | null + replyToId?: string | null + replies?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutReplyToInput + attachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput +} + +export type AssetCommentCreateOrConnectWithoutAssetInput = { + where: Prisma.AssetCommentWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCommentCreateWithoutAssetInput, + Prisma.AssetCommentUncheckedCreateWithoutAssetInput + > +} + +export type AssetCommentCreateManyAssetInputEnvelope = { + data: Prisma.AssetCommentCreateManyAssetInput | Prisma.AssetCommentCreateManyAssetInput[] + skipDuplicates?: boolean +} + +export type AssetCommentUpsertWithWhereUniqueWithoutAssetInput = { + where: Prisma.AssetCommentWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetCommentUpdateWithoutAssetInput, + Prisma.AssetCommentUncheckedUpdateWithoutAssetInput + > + create: Prisma.XOR< + Prisma.AssetCommentCreateWithoutAssetInput, + Prisma.AssetCommentUncheckedCreateWithoutAssetInput + > +} + +export type AssetCommentUpdateWithWhereUniqueWithoutAssetInput = { + where: Prisma.AssetCommentWhereUniqueInput + data: Prisma.XOR< + Prisma.AssetCommentUpdateWithoutAssetInput, + Prisma.AssetCommentUncheckedUpdateWithoutAssetInput + > +} + +export type AssetCommentUpdateManyWithWhereWithoutAssetInput = { + where: Prisma.AssetCommentScalarWhereInput + data: Prisma.XOR< + Prisma.AssetCommentUpdateManyMutationInput, + Prisma.AssetCommentUncheckedUpdateManyWithoutAssetInput + > +} + +export type AssetCommentCreateWithoutRepliesInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + createdAt?: Date | string + updatedAt?: Date | string + session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput + asset: Prisma.AssetCreateNestedOneWithoutCommentsInput + creator?: Prisma.UserCreateNestedOneWithoutCommentsInput + replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput + attachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutCommentInput +} + +export type AssetCommentUncheckedCreateWithoutRepliesInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + sessionId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assetId: string + creatorId?: string | null + replyToId?: string | null + attachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput +} + +export type AssetCommentCreateOrConnectWithoutRepliesInput = { + where: Prisma.AssetCommentWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCommentCreateWithoutRepliesInput, + Prisma.AssetCommentUncheckedCreateWithoutRepliesInput + > +} + +export type AssetCommentCreateWithoutReplyToInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + createdAt?: Date | string + updatedAt?: Date | string + session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput + asset: Prisma.AssetCreateNestedOneWithoutCommentsInput + creator?: Prisma.UserCreateNestedOneWithoutCommentsInput + replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput + attachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutCommentInput +} + +export type AssetCommentUncheckedCreateWithoutReplyToInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + sessionId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assetId: string + creatorId?: string | null + replies?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutReplyToInput + attachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput +} + +export type AssetCommentCreateOrConnectWithoutReplyToInput = { + where: Prisma.AssetCommentWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCommentCreateWithoutReplyToInput, + Prisma.AssetCommentUncheckedCreateWithoutReplyToInput + > +} + +export type AssetCommentCreateManyReplyToInputEnvelope = { + data: Prisma.AssetCommentCreateManyReplyToInput | Prisma.AssetCommentCreateManyReplyToInput[] + skipDuplicates?: boolean +} + +export type AssetCommentUpsertWithoutRepliesInput = { + update: Prisma.XOR< + Prisma.AssetCommentUpdateWithoutRepliesInput, + Prisma.AssetCommentUncheckedUpdateWithoutRepliesInput + > + create: Prisma.XOR< + Prisma.AssetCommentCreateWithoutRepliesInput, + Prisma.AssetCommentUncheckedCreateWithoutRepliesInput + > + where?: Prisma.AssetCommentWhereInput +} + +export type AssetCommentUpdateToOneWithWhereWithoutRepliesInput = { + where?: Prisma.AssetCommentWhereInput + data: Prisma.XOR< + Prisma.AssetCommentUpdateWithoutRepliesInput, + Prisma.AssetCommentUncheckedUpdateWithoutRepliesInput + > +} + +export type AssetCommentUpdateWithoutRepliesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput + asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput + creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput + replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput + attachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutCommentNestedInput +} + +export type AssetCommentUncheckedUpdateWithoutRepliesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + attachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput +} + +export type AssetCommentUpsertWithWhereUniqueWithoutReplyToInput = { + where: Prisma.AssetCommentWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetCommentUpdateWithoutReplyToInput, + Prisma.AssetCommentUncheckedUpdateWithoutReplyToInput + > + create: Prisma.XOR< + Prisma.AssetCommentCreateWithoutReplyToInput, + Prisma.AssetCommentUncheckedCreateWithoutReplyToInput + > +} + +export type AssetCommentUpdateWithWhereUniqueWithoutReplyToInput = { + where: Prisma.AssetCommentWhereUniqueInput + data: Prisma.XOR< + Prisma.AssetCommentUpdateWithoutReplyToInput, + Prisma.AssetCommentUncheckedUpdateWithoutReplyToInput + > +} + +export type AssetCommentUpdateManyWithWhereWithoutReplyToInput = { + where: Prisma.AssetCommentScalarWhereInput + data: Prisma.XOR< + Prisma.AssetCommentUpdateManyMutationInput, + Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToInput + > +} + +export type AssetCommentCreateWithoutAttachmentsInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + createdAt?: Date | string + updatedAt?: Date | string + session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput + asset: Prisma.AssetCreateNestedOneWithoutCommentsInput + creator?: Prisma.UserCreateNestedOneWithoutCommentsInput + replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput + replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput +} + +export type AssetCommentUncheckedCreateWithoutAttachmentsInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + sessionId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assetId: string + creatorId?: string | null + replyToId?: string | null + replies?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutReplyToInput +} + +export type AssetCommentCreateOrConnectWithoutAttachmentsInput = { + where: Prisma.AssetCommentWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCommentCreateWithoutAttachmentsInput, + Prisma.AssetCommentUncheckedCreateWithoutAttachmentsInput + > +} + +export type AssetCommentUpsertWithoutAttachmentsInput = { + update: Prisma.XOR< + Prisma.AssetCommentUpdateWithoutAttachmentsInput, + Prisma.AssetCommentUncheckedUpdateWithoutAttachmentsInput + > + create: Prisma.XOR< + Prisma.AssetCommentCreateWithoutAttachmentsInput, + Prisma.AssetCommentUncheckedCreateWithoutAttachmentsInput + > + where?: Prisma.AssetCommentWhereInput +} + +export type AssetCommentUpdateToOneWithWhereWithoutAttachmentsInput = { + where?: Prisma.AssetCommentWhereInput + data: Prisma.XOR< + Prisma.AssetCommentUpdateWithoutAttachmentsInput, + Prisma.AssetCommentUncheckedUpdateWithoutAttachmentsInput + > +} + +export type AssetCommentUpdateWithoutAttachmentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput + asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput + creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput + replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput + replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput +} + +export type AssetCommentUncheckedUpdateWithoutAttachmentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput +} + +export type AssetCommentCreateWithoutSessionInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + createdAt?: Date | string + updatedAt?: Date | string + asset: Prisma.AssetCreateNestedOneWithoutCommentsInput + creator?: Prisma.UserCreateNestedOneWithoutCommentsInput + replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput + replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput + attachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutCommentInput +} + +export type AssetCommentUncheckedCreateWithoutSessionInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + createdAt?: Date | string + updatedAt?: Date | string + assetId: string + creatorId?: string | null + replyToId?: string | null + replies?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutReplyToInput + attachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput +} + +export type AssetCommentCreateOrConnectWithoutSessionInput = { + where: Prisma.AssetCommentWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCommentCreateWithoutSessionInput, + Prisma.AssetCommentUncheckedCreateWithoutSessionInput + > +} + +export type AssetCommentCreateManySessionInputEnvelope = { + data: Prisma.AssetCommentCreateManySessionInput | Prisma.AssetCommentCreateManySessionInput[] + skipDuplicates?: boolean +} + +export type AssetCommentUpsertWithWhereUniqueWithoutSessionInput = { + where: Prisma.AssetCommentWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetCommentUpdateWithoutSessionInput, + Prisma.AssetCommentUncheckedUpdateWithoutSessionInput + > + create: Prisma.XOR< + Prisma.AssetCommentCreateWithoutSessionInput, + Prisma.AssetCommentUncheckedCreateWithoutSessionInput + > +} + +export type AssetCommentUpdateWithWhereUniqueWithoutSessionInput = { + where: Prisma.AssetCommentWhereUniqueInput + data: Prisma.XOR< + Prisma.AssetCommentUpdateWithoutSessionInput, + Prisma.AssetCommentUncheckedUpdateWithoutSessionInput + > +} + +export type AssetCommentUpdateManyWithWhereWithoutSessionInput = { + where: Prisma.AssetCommentScalarWhereInput + data: Prisma.XOR< + Prisma.AssetCommentUpdateManyMutationInput, + Prisma.AssetCommentUncheckedUpdateManyWithoutSessionInput + > +} + +export type AssetCommentCreateManyCreatorInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + sessionId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assetId: string + replyToId?: string | null +} + +export type AssetCommentUpdateWithoutCreatorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput + asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput + replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput + replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput + attachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutCommentNestedInput +} + +export type AssetCommentUncheckedUpdateWithoutCreatorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string + replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput + attachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput +} + +export type AssetCommentUncheckedUpdateManyWithoutCreatorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string + replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type AssetCommentCreateManyAssetInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + sessionId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + creatorId?: string | null + replyToId?: string | null +} + +export type AssetCommentUpdateWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput + creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput + replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput + replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput + attachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutCommentNestedInput +} + +export type AssetCommentUncheckedUpdateWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput + attachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput +} + +export type AssetCommentUncheckedUpdateManyWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type AssetCommentCreateManyReplyToInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + sessionId?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assetId: string + creatorId?: string | null +} + +export type AssetCommentUpdateWithoutReplyToInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput + asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput + creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput + replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput + attachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutCommentNestedInput +} + +export type AssetCommentUncheckedUpdateWithoutReplyToInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput + attachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput +} + +export type AssetCommentUncheckedUpdateManyWithoutReplyToInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type AssetCommentCreateManySessionInput = { + id?: string + message?: string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: number | null + createdAt?: Date | string + updatedAt?: Date | string + assetId: string + creatorId?: string | null + replyToId?: string | null +} + +export type AssetCommentUpdateWithoutSessionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput + creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput + replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput + replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput + attachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutCommentNestedInput +} + +export type AssetCommentUncheckedUpdateWithoutSessionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput + attachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput +} + +export type AssetCommentUncheckedUpdateManyWithoutSessionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + annotation?: PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput + second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +/** + * Count Type AssetCommentCountOutputType + */ + +export type AssetCommentCountOutputType = { + replies: number + attachments: number +} + +export type AssetCommentCountOutputTypeSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + replies?: boolean | AssetCommentCountOutputTypeCountRepliesArgs + attachments?: boolean | AssetCommentCountOutputTypeCountAttachmentsArgs +} + +/** + * AssetCommentCountOutputType without action + */ +export type AssetCommentCountOutputTypeDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentCountOutputType + */ + select?: Prisma.AssetCommentCountOutputTypeSelect | null +} + +/** + * AssetCommentCountOutputType without action + */ +export type AssetCommentCountOutputTypeCountRepliesArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetCommentWhereInput +} + +/** + * AssetCommentCountOutputType without action + */ +export type AssetCommentCountOutputTypeCountAttachmentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetCommentAttachmentWhereInput +} + +export type AssetCommentSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + message?: boolean + annotation?: boolean + second?: boolean + sessionId?: boolean + createdAt?: boolean + updatedAt?: boolean + assetId?: boolean + creatorId?: boolean + replyToId?: boolean + session?: boolean | Prisma.AssetComment$sessionArgs + asset?: boolean | Prisma.AssetDefaultArgs + creator?: boolean | Prisma.AssetComment$creatorArgs + replyTo?: boolean | Prisma.AssetComment$replyToArgs + replies?: boolean | Prisma.AssetComment$repliesArgs + attachments?: boolean | Prisma.AssetComment$attachmentsArgs + _count?: boolean | Prisma.AssetCommentCountOutputTypeDefaultArgs + }, + ExtArgs['result']['assetComment'] +> + +export type AssetCommentSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + message?: boolean + annotation?: boolean + second?: boolean + sessionId?: boolean + createdAt?: boolean + updatedAt?: boolean + assetId?: boolean + creatorId?: boolean + replyToId?: boolean + session?: boolean | Prisma.AssetComment$sessionArgs + asset?: boolean | Prisma.AssetDefaultArgs + creator?: boolean | Prisma.AssetComment$creatorArgs + replyTo?: boolean | Prisma.AssetComment$replyToArgs + }, + ExtArgs['result']['assetComment'] +> + +export type AssetCommentSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + message?: boolean + annotation?: boolean + second?: boolean + sessionId?: boolean + createdAt?: boolean + updatedAt?: boolean + assetId?: boolean + creatorId?: boolean + replyToId?: boolean + session?: boolean | Prisma.AssetComment$sessionArgs + asset?: boolean | Prisma.AssetDefaultArgs + creator?: boolean | Prisma.AssetComment$creatorArgs + replyTo?: boolean | Prisma.AssetComment$replyToArgs + }, + ExtArgs['result']['assetComment'] +> + +export type AssetCommentSelectScalar = { + id?: boolean + message?: boolean + annotation?: boolean + second?: boolean + sessionId?: boolean + createdAt?: boolean + updatedAt?: boolean + assetId?: boolean + creatorId?: boolean + replyToId?: boolean +} + +export type AssetCommentOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'message' + | 'annotation' + | 'second' + | 'sessionId' + | 'createdAt' + | 'updatedAt' + | 'assetId' + | 'creatorId' + | 'replyToId', + ExtArgs['result']['assetComment'] +> +export type AssetCommentInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + session?: boolean | Prisma.AssetComment$sessionArgs + asset?: boolean | Prisma.AssetDefaultArgs + creator?: boolean | Prisma.AssetComment$creatorArgs + replyTo?: boolean | Prisma.AssetComment$replyToArgs + replies?: boolean | Prisma.AssetComment$repliesArgs + attachments?: boolean | Prisma.AssetComment$attachmentsArgs + _count?: boolean | Prisma.AssetCommentCountOutputTypeDefaultArgs +} +export type AssetCommentIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + session?: boolean | Prisma.AssetComment$sessionArgs + asset?: boolean | Prisma.AssetDefaultArgs + creator?: boolean | Prisma.AssetComment$creatorArgs + replyTo?: boolean | Prisma.AssetComment$replyToArgs +} +export type AssetCommentIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + session?: boolean | Prisma.AssetComment$sessionArgs + asset?: boolean | Prisma.AssetDefaultArgs + creator?: boolean | Prisma.AssetComment$creatorArgs + replyTo?: boolean | Prisma.AssetComment$replyToArgs +} + +export type $AssetCommentPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'AssetComment' + objects: { + session: Prisma.$AgentSessionPayload | null + asset: Prisma.$AssetPayload + creator: Prisma.$UserPayload | null + replyTo: Prisma.$AssetCommentPayload | null + replies: Prisma.$AssetCommentPayload[] + attachments: Prisma.$AssetCommentAttachmentPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + message: string | null + /** + * [AnnotationList] + */ + annotation: PrismaJson.AnnotationList | null + second: number | null + sessionId: string | null + createdAt: Date + updatedAt: Date + assetId: string + creatorId: string | null + replyToId: string | null + }, + ExtArgs['result']['assetComment'] + > + composites: {} +} + +export type AssetCommentGetPayload = + runtime.Types.Result.GetResult + +export type AssetCommentCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: AssetCommentCountAggregateInputType | true +} + +export interface AssetCommentDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['AssetComment'] + meta: { name: 'AssetComment' } + } + /** + * Find zero or one AssetComment that matches the filter. + * @param {AssetCommentFindUniqueArgs} args - Arguments to find a AssetComment + * @example + * // Get one AssetComment + * const assetComment = await prisma.assetComment.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one AssetComment that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AssetCommentFindUniqueOrThrowArgs} args - Arguments to find a AssetComment + * @example + * // Get one AssetComment + * const assetComment = await prisma.assetComment.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AssetComment that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentFindFirstArgs} args - Arguments to find a AssetComment + * @example + * // Get one AssetComment + * const assetComment = await prisma.assetComment.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AssetComment that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentFindFirstOrThrowArgs} args - Arguments to find a AssetComment + * @example + * // Get one AssetComment + * const assetComment = await prisma.assetComment.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more AssetComments that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all AssetComments + * const assetComments = await prisma.assetComment.findMany() + * + * // Get first 10 AssetComments + * const assetComments = await prisma.assetComment.findMany({ take: 10 }) + * + * // Only select the `id` + * const assetCommentWithIdOnly = await prisma.assetComment.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a AssetComment. + * @param {AssetCommentCreateArgs} args - Arguments to create a AssetComment. + * @example + * // Create one AssetComment + * const AssetComment = await prisma.assetComment.create({ + * data: { + * // ... data to create a AssetComment + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many AssetComments. + * @param {AssetCommentCreateManyArgs} args - Arguments to create many AssetComments. + * @example + * // Create many AssetComments + * const assetComment = await prisma.assetComment.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many AssetComments and returns the data saved in the database. + * @param {AssetCommentCreateManyAndReturnArgs} args - Arguments to create many AssetComments. + * @example + * // Create many AssetComments + * const assetComment = await prisma.assetComment.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many AssetComments and only return the `id` + * const assetCommentWithIdOnly = await prisma.assetComment.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a AssetComment. + * @param {AssetCommentDeleteArgs} args - Arguments to delete one AssetComment. + * @example + * // Delete one AssetComment + * const AssetComment = await prisma.assetComment.delete({ + * where: { + * // ... filter to delete one AssetComment + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one AssetComment. + * @param {AssetCommentUpdateArgs} args - Arguments to update one AssetComment. + * @example + * // Update one AssetComment + * const assetComment = await prisma.assetComment.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more AssetComments. + * @param {AssetCommentDeleteManyArgs} args - Arguments to filter AssetComments to delete. + * @example + * // Delete a few AssetComments + * const { count } = await prisma.assetComment.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AssetComments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many AssetComments + * const assetComment = await prisma.assetComment.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AssetComments and returns the data updated in the database. + * @param {AssetCommentUpdateManyAndReturnArgs} args - Arguments to update many AssetComments. + * @example + * // Update many AssetComments + * const assetComment = await prisma.assetComment.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more AssetComments and only return the `id` + * const assetCommentWithIdOnly = await prisma.assetComment.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one AssetComment. + * @param {AssetCommentUpsertArgs} args - Arguments to update or create a AssetComment. + * @example + * // Update or create a AssetComment + * const assetComment = await prisma.assetComment.upsert({ + * create: { + * // ... data to create a AssetComment + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the AssetComment we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of AssetComments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentCountArgs} args - Arguments to filter AssetComments to count. + * @example + * // Count the number of AssetComments + * const count = await prisma.assetComment.count({ + * where: { + * // ... the filter for the AssetComments we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a AssetComment. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by AssetComment. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends AssetCommentGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AssetCommentGroupByArgs['orderBy'] } + : { orderBy?: AssetCommentGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetAssetCommentGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the AssetComment model + */ + readonly fields: AssetCommentFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for AssetComment. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__AssetCommentClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + session = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AgentSessionClient< + runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + asset = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AssetClient< + | runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + creator = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + replyTo = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AssetCommentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + replies = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + attachments = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetCommentAttachmentPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the AssetComment model + */ +export interface AssetCommentFieldRefs { + readonly id: Prisma.FieldRef<'AssetComment', 'String'> + readonly message: Prisma.FieldRef<'AssetComment', 'String'> + readonly annotation: Prisma.FieldRef<'AssetComment', 'Json'> + readonly second: Prisma.FieldRef<'AssetComment', 'Float'> + readonly sessionId: Prisma.FieldRef<'AssetComment', 'String'> + readonly createdAt: Prisma.FieldRef<'AssetComment', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'AssetComment', 'DateTime'> + readonly assetId: Prisma.FieldRef<'AssetComment', 'String'> + readonly creatorId: Prisma.FieldRef<'AssetComment', 'String'> + readonly replyToId: Prisma.FieldRef<'AssetComment', 'String'> +} + +// Custom InputTypes +/** + * AssetComment findUnique + */ +export type AssetCommentFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + /** + * Filter, which AssetComment to fetch. + */ + where: Prisma.AssetCommentWhereUniqueInput +} + +/** + * AssetComment findUniqueOrThrow + */ +export type AssetCommentFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + /** + * Filter, which AssetComment to fetch. + */ + where: Prisma.AssetCommentWhereUniqueInput +} + +/** + * AssetComment findFirst + */ +export type AssetCommentFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + /** + * Filter, which AssetComment to fetch. + */ + where?: Prisma.AssetCommentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetComments to fetch. + */ + orderBy?: + | Prisma.AssetCommentOrderByWithRelationInput + | Prisma.AssetCommentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AssetComments. + */ + cursor?: Prisma.AssetCommentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetComments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetComments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AssetComments. + */ + distinct?: Prisma.AssetCommentScalarFieldEnum | Prisma.AssetCommentScalarFieldEnum[] +} + +/** + * AssetComment findFirstOrThrow + */ +export type AssetCommentFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + /** + * Filter, which AssetComment to fetch. + */ + where?: Prisma.AssetCommentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetComments to fetch. + */ + orderBy?: + | Prisma.AssetCommentOrderByWithRelationInput + | Prisma.AssetCommentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AssetComments. + */ + cursor?: Prisma.AssetCommentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetComments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetComments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AssetComments. + */ + distinct?: Prisma.AssetCommentScalarFieldEnum | Prisma.AssetCommentScalarFieldEnum[] +} + +/** + * AssetComment findMany + */ +export type AssetCommentFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + /** + * Filter, which AssetComments to fetch. + */ + where?: Prisma.AssetCommentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetComments to fetch. + */ + orderBy?: + | Prisma.AssetCommentOrderByWithRelationInput + | Prisma.AssetCommentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing AssetComments. + */ + cursor?: Prisma.AssetCommentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetComments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetComments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AssetComments. + */ + distinct?: Prisma.AssetCommentScalarFieldEnum | Prisma.AssetCommentScalarFieldEnum[] +} + +/** + * AssetComment create + */ +export type AssetCommentCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + /** + * The data needed to create a AssetComment. + */ + data: Prisma.XOR +} + +/** + * AssetComment createMany + */ +export type AssetCommentCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many AssetComments. + */ + data: Prisma.AssetCommentCreateManyInput | Prisma.AssetCommentCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * AssetComment createManyAndReturn + */ +export type AssetCommentCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelectCreateManyAndReturn | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * The data used to create many AssetComments. + */ + data: Prisma.AssetCommentCreateManyInput | Prisma.AssetCommentCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentIncludeCreateManyAndReturn | null +} + +/** + * AssetComment update + */ +export type AssetCommentUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + /** + * The data needed to update a AssetComment. + */ + data: Prisma.XOR + /** + * Choose, which AssetComment to update. + */ + where: Prisma.AssetCommentWhereUniqueInput +} + +/** + * AssetComment updateMany + */ +export type AssetCommentUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update AssetComments. + */ + data: Prisma.XOR< + Prisma.AssetCommentUpdateManyMutationInput, + Prisma.AssetCommentUncheckedUpdateManyInput + > + /** + * Filter which AssetComments to update + */ + where?: Prisma.AssetCommentWhereInput + /** + * Limit how many AssetComments to update. + */ + limit?: number +} + +/** + * AssetComment updateManyAndReturn + */ +export type AssetCommentUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * The data used to update AssetComments. + */ + data: Prisma.XOR< + Prisma.AssetCommentUpdateManyMutationInput, + Prisma.AssetCommentUncheckedUpdateManyInput + > + /** + * Filter which AssetComments to update + */ + where?: Prisma.AssetCommentWhereInput + /** + * Limit how many AssetComments to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentIncludeUpdateManyAndReturn | null +} + +/** + * AssetComment upsert + */ +export type AssetCommentUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + /** + * The filter to search for the AssetComment to update in case it exists. + */ + where: Prisma.AssetCommentWhereUniqueInput + /** + * In case the AssetComment found by the `where` argument doesn't exist, create a new AssetComment with this data. + */ + create: Prisma.XOR + /** + * In case the AssetComment was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * AssetComment delete + */ +export type AssetCommentDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + /** + * Filter which AssetComment to delete. + */ + where: Prisma.AssetCommentWhereUniqueInput +} + +/** + * AssetComment deleteMany + */ +export type AssetCommentDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AssetComments to delete + */ + where?: Prisma.AssetCommentWhereInput + /** + * Limit how many AssetComments to delete. + */ + limit?: number +} + +/** + * AssetComment.session + */ +export type AssetComment$sessionArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelect | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionInclude | null + where?: Prisma.AgentSessionWhereInput +} + +/** + * AssetComment.creator + */ +export type AssetComment$creatorArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + where?: Prisma.UserWhereInput +} + +/** + * AssetComment.replyTo + */ +export type AssetComment$replyToArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + where?: Prisma.AssetCommentWhereInput +} + +/** + * AssetComment.replies + */ +export type AssetComment$repliesArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + where?: Prisma.AssetCommentWhereInput + orderBy?: + | Prisma.AssetCommentOrderByWithRelationInput + | Prisma.AssetCommentOrderByWithRelationInput[] + cursor?: Prisma.AssetCommentWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AssetCommentScalarFieldEnum | Prisma.AssetCommentScalarFieldEnum[] +} + +/** + * AssetComment.attachments + */ +export type AssetComment$attachmentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelect | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentInclude | null + where?: Prisma.AssetCommentAttachmentWhereInput + orderBy?: + | Prisma.AssetCommentAttachmentOrderByWithRelationInput + | Prisma.AssetCommentAttachmentOrderByWithRelationInput[] + cursor?: Prisma.AssetCommentAttachmentWhereUniqueInput + take?: number + skip?: number + distinct?: + | Prisma.AssetCommentAttachmentScalarFieldEnum + | Prisma.AssetCommentAttachmentScalarFieldEnum[] +} + +/** + * AssetComment without action + */ +export type AssetCommentDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null +} diff --git a/packages/db/src/generated/prisma/models/AssetCommentAttachment.ts b/packages/db/src/generated/prisma/models/AssetCommentAttachment.ts new file mode 100644 index 00000000..29d7c483 --- /dev/null +++ b/packages/db/src/generated/prisma/models/AssetCommentAttachment.ts @@ -0,0 +1,1916 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `AssetCommentAttachment` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model AssetCommentAttachment + * + */ +export type AssetCommentAttachmentModel = + runtime.Types.Result.DefaultSelection + +export type AggregateAssetCommentAttachment = { + _count: AssetCommentAttachmentCountAggregateOutputType | null + _min: AssetCommentAttachmentMinAggregateOutputType | null + _max: AssetCommentAttachmentMaxAggregateOutputType | null +} + +export type AssetCommentAttachmentMinAggregateOutputType = { + id: string | null + createdAt: Date | null + updatedAt: Date | null + commentId: string | null + assetId: string | null +} + +export type AssetCommentAttachmentMaxAggregateOutputType = { + id: string | null + createdAt: Date | null + updatedAt: Date | null + commentId: string | null + assetId: string | null +} + +export type AssetCommentAttachmentCountAggregateOutputType = { + id: number + createdAt: number + updatedAt: number + commentId: number + assetId: number + _all: number +} + +export type AssetCommentAttachmentMinAggregateInputType = { + id?: true + createdAt?: true + updatedAt?: true + commentId?: true + assetId?: true +} + +export type AssetCommentAttachmentMaxAggregateInputType = { + id?: true + createdAt?: true + updatedAt?: true + commentId?: true + assetId?: true +} + +export type AssetCommentAttachmentCountAggregateInputType = { + id?: true + createdAt?: true + updatedAt?: true + commentId?: true + assetId?: true + _all?: true +} + +export type AssetCommentAttachmentAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AssetCommentAttachment to aggregate. + */ + where?: Prisma.AssetCommentAttachmentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetCommentAttachments to fetch. + */ + orderBy?: + | Prisma.AssetCommentAttachmentOrderByWithRelationInput + | Prisma.AssetCommentAttachmentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AssetCommentAttachmentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetCommentAttachments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetCommentAttachments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned AssetCommentAttachments + **/ + _count?: true | AssetCommentAttachmentCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AssetCommentAttachmentMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AssetCommentAttachmentMaxAggregateInputType +} + +export type GetAssetCommentAttachmentAggregateType = + { + [P in keyof T & keyof AggregateAssetCommentAttachment]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + +export type AssetCommentAttachmentGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetCommentAttachmentWhereInput + orderBy?: + | Prisma.AssetCommentAttachmentOrderByWithAggregationInput + | Prisma.AssetCommentAttachmentOrderByWithAggregationInput[] + by: Prisma.AssetCommentAttachmentScalarFieldEnum[] | Prisma.AssetCommentAttachmentScalarFieldEnum + having?: Prisma.AssetCommentAttachmentScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AssetCommentAttachmentCountAggregateInputType | true + _min?: AssetCommentAttachmentMinAggregateInputType + _max?: AssetCommentAttachmentMaxAggregateInputType +} + +export type AssetCommentAttachmentGroupByOutputType = { + id: string + createdAt: Date + updatedAt: Date + commentId: string + assetId: string + _count: AssetCommentAttachmentCountAggregateOutputType | null + _min: AssetCommentAttachmentMinAggregateOutputType | null + _max: AssetCommentAttachmentMaxAggregateOutputType | null +} + +export type GetAssetCommentAttachmentGroupByPayload = + Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof AssetCommentAttachmentGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + +export type AssetCommentAttachmentWhereInput = { + AND?: Prisma.AssetCommentAttachmentWhereInput | Prisma.AssetCommentAttachmentWhereInput[] + OR?: Prisma.AssetCommentAttachmentWhereInput[] + NOT?: Prisma.AssetCommentAttachmentWhereInput | Prisma.AssetCommentAttachmentWhereInput[] + id?: Prisma.StringFilter<'AssetCommentAttachment'> | string + createdAt?: Prisma.DateTimeFilter<'AssetCommentAttachment'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AssetCommentAttachment'> | Date | string + commentId?: Prisma.StringFilter<'AssetCommentAttachment'> | string + assetId?: Prisma.StringFilter<'AssetCommentAttachment'> | string + comment?: Prisma.XOR + asset?: Prisma.XOR +} + +export type AssetCommentAttachmentOrderByWithRelationInput = { + id?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + commentId?: Prisma.SortOrder + assetId?: Prisma.SortOrder + comment?: Prisma.AssetCommentOrderByWithRelationInput + asset?: Prisma.AssetOrderByWithRelationInput +} + +export type AssetCommentAttachmentWhereUniqueInput = Prisma.AtLeast< + { + id?: string + AND?: Prisma.AssetCommentAttachmentWhereInput | Prisma.AssetCommentAttachmentWhereInput[] + OR?: Prisma.AssetCommentAttachmentWhereInput[] + NOT?: Prisma.AssetCommentAttachmentWhereInput | Prisma.AssetCommentAttachmentWhereInput[] + createdAt?: Prisma.DateTimeFilter<'AssetCommentAttachment'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AssetCommentAttachment'> | Date | string + commentId?: Prisma.StringFilter<'AssetCommentAttachment'> | string + assetId?: Prisma.StringFilter<'AssetCommentAttachment'> | string + comment?: Prisma.XOR + asset?: Prisma.XOR + }, + 'id' +> + +export type AssetCommentAttachmentOrderByWithAggregationInput = { + id?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + commentId?: Prisma.SortOrder + assetId?: Prisma.SortOrder + _count?: Prisma.AssetCommentAttachmentCountOrderByAggregateInput + _max?: Prisma.AssetCommentAttachmentMaxOrderByAggregateInput + _min?: Prisma.AssetCommentAttachmentMinOrderByAggregateInput +} + +export type AssetCommentAttachmentScalarWhereWithAggregatesInput = { + AND?: + | Prisma.AssetCommentAttachmentScalarWhereWithAggregatesInput + | Prisma.AssetCommentAttachmentScalarWhereWithAggregatesInput[] + OR?: Prisma.AssetCommentAttachmentScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.AssetCommentAttachmentScalarWhereWithAggregatesInput + | Prisma.AssetCommentAttachmentScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'AssetCommentAttachment'> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<'AssetCommentAttachment'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'AssetCommentAttachment'> | Date | string + commentId?: Prisma.StringWithAggregatesFilter<'AssetCommentAttachment'> | string + assetId?: Prisma.StringWithAggregatesFilter<'AssetCommentAttachment'> | string +} + +export type AssetCommentAttachmentCreateInput = { + id?: string + createdAt?: Date | string + updatedAt?: Date | string + comment: Prisma.AssetCommentCreateNestedOneWithoutAttachmentsInput + asset: Prisma.AssetCreateNestedOneWithoutCommentAttachmentsInput +} + +export type AssetCommentAttachmentUncheckedCreateInput = { + id?: string + createdAt?: Date | string + updatedAt?: Date | string + commentId: string + assetId: string +} + +export type AssetCommentAttachmentUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + comment?: Prisma.AssetCommentUpdateOneRequiredWithoutAttachmentsNestedInput + asset?: Prisma.AssetUpdateOneRequiredWithoutCommentAttachmentsNestedInput +} + +export type AssetCommentAttachmentUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + commentId?: Prisma.StringFieldUpdateOperationsInput | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AssetCommentAttachmentCreateManyInput = { + id?: string + createdAt?: Date | string + updatedAt?: Date | string + commentId: string + assetId: string +} + +export type AssetCommentAttachmentUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AssetCommentAttachmentUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + commentId?: Prisma.StringFieldUpdateOperationsInput | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AssetCommentAttachmentListRelationFilter = { + every?: Prisma.AssetCommentAttachmentWhereInput + some?: Prisma.AssetCommentAttachmentWhereInput + none?: Prisma.AssetCommentAttachmentWhereInput +} + +export type AssetCommentAttachmentOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AssetCommentAttachmentCountOrderByAggregateInput = { + id?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + commentId?: Prisma.SortOrder + assetId?: Prisma.SortOrder +} + +export type AssetCommentAttachmentMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + commentId?: Prisma.SortOrder + assetId?: Prisma.SortOrder +} + +export type AssetCommentAttachmentMinOrderByAggregateInput = { + id?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + commentId?: Prisma.SortOrder + assetId?: Prisma.SortOrder +} + +export type AssetCommentAttachmentCreateNestedManyWithoutAssetInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentAttachmentCreateWithoutAssetInput, + Prisma.AssetCommentAttachmentUncheckedCreateWithoutAssetInput + > + | Prisma.AssetCommentAttachmentCreateWithoutAssetInput[] + | Prisma.AssetCommentAttachmentUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutAssetInput + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutAssetInput[] + createMany?: Prisma.AssetCommentAttachmentCreateManyAssetInputEnvelope + connect?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] +} + +export type AssetCommentAttachmentUncheckedCreateNestedManyWithoutAssetInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentAttachmentCreateWithoutAssetInput, + Prisma.AssetCommentAttachmentUncheckedCreateWithoutAssetInput + > + | Prisma.AssetCommentAttachmentCreateWithoutAssetInput[] + | Prisma.AssetCommentAttachmentUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutAssetInput + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutAssetInput[] + createMany?: Prisma.AssetCommentAttachmentCreateManyAssetInputEnvelope + connect?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] +} + +export type AssetCommentAttachmentUpdateManyWithoutAssetNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentAttachmentCreateWithoutAssetInput, + Prisma.AssetCommentAttachmentUncheckedCreateWithoutAssetInput + > + | Prisma.AssetCommentAttachmentCreateWithoutAssetInput[] + | Prisma.AssetCommentAttachmentUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutAssetInput + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutAssetInput[] + upsert?: + | Prisma.AssetCommentAttachmentUpsertWithWhereUniqueWithoutAssetInput + | Prisma.AssetCommentAttachmentUpsertWithWhereUniqueWithoutAssetInput[] + createMany?: Prisma.AssetCommentAttachmentCreateManyAssetInputEnvelope + set?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + disconnect?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + delete?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + connect?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + update?: + | Prisma.AssetCommentAttachmentUpdateWithWhereUniqueWithoutAssetInput + | Prisma.AssetCommentAttachmentUpdateWithWhereUniqueWithoutAssetInput[] + updateMany?: + | Prisma.AssetCommentAttachmentUpdateManyWithWhereWithoutAssetInput + | Prisma.AssetCommentAttachmentUpdateManyWithWhereWithoutAssetInput[] + deleteMany?: + | Prisma.AssetCommentAttachmentScalarWhereInput + | Prisma.AssetCommentAttachmentScalarWhereInput[] +} + +export type AssetCommentAttachmentUncheckedUpdateManyWithoutAssetNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentAttachmentCreateWithoutAssetInput, + Prisma.AssetCommentAttachmentUncheckedCreateWithoutAssetInput + > + | Prisma.AssetCommentAttachmentCreateWithoutAssetInput[] + | Prisma.AssetCommentAttachmentUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutAssetInput + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutAssetInput[] + upsert?: + | Prisma.AssetCommentAttachmentUpsertWithWhereUniqueWithoutAssetInput + | Prisma.AssetCommentAttachmentUpsertWithWhereUniqueWithoutAssetInput[] + createMany?: Prisma.AssetCommentAttachmentCreateManyAssetInputEnvelope + set?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + disconnect?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + delete?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + connect?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + update?: + | Prisma.AssetCommentAttachmentUpdateWithWhereUniqueWithoutAssetInput + | Prisma.AssetCommentAttachmentUpdateWithWhereUniqueWithoutAssetInput[] + updateMany?: + | Prisma.AssetCommentAttachmentUpdateManyWithWhereWithoutAssetInput + | Prisma.AssetCommentAttachmentUpdateManyWithWhereWithoutAssetInput[] + deleteMany?: + | Prisma.AssetCommentAttachmentScalarWhereInput + | Prisma.AssetCommentAttachmentScalarWhereInput[] +} + +export type AssetCommentAttachmentCreateNestedManyWithoutCommentInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentAttachmentCreateWithoutCommentInput, + Prisma.AssetCommentAttachmentUncheckedCreateWithoutCommentInput + > + | Prisma.AssetCommentAttachmentCreateWithoutCommentInput[] + | Prisma.AssetCommentAttachmentUncheckedCreateWithoutCommentInput[] + connectOrCreate?: + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutCommentInput + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutCommentInput[] + createMany?: Prisma.AssetCommentAttachmentCreateManyCommentInputEnvelope + connect?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] +} + +export type AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentAttachmentCreateWithoutCommentInput, + Prisma.AssetCommentAttachmentUncheckedCreateWithoutCommentInput + > + | Prisma.AssetCommentAttachmentCreateWithoutCommentInput[] + | Prisma.AssetCommentAttachmentUncheckedCreateWithoutCommentInput[] + connectOrCreate?: + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutCommentInput + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutCommentInput[] + createMany?: Prisma.AssetCommentAttachmentCreateManyCommentInputEnvelope + connect?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] +} + +export type AssetCommentAttachmentUpdateManyWithoutCommentNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentAttachmentCreateWithoutCommentInput, + Prisma.AssetCommentAttachmentUncheckedCreateWithoutCommentInput + > + | Prisma.AssetCommentAttachmentCreateWithoutCommentInput[] + | Prisma.AssetCommentAttachmentUncheckedCreateWithoutCommentInput[] + connectOrCreate?: + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutCommentInput + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutCommentInput[] + upsert?: + | Prisma.AssetCommentAttachmentUpsertWithWhereUniqueWithoutCommentInput + | Prisma.AssetCommentAttachmentUpsertWithWhereUniqueWithoutCommentInput[] + createMany?: Prisma.AssetCommentAttachmentCreateManyCommentInputEnvelope + set?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + disconnect?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + delete?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + connect?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + update?: + | Prisma.AssetCommentAttachmentUpdateWithWhereUniqueWithoutCommentInput + | Prisma.AssetCommentAttachmentUpdateWithWhereUniqueWithoutCommentInput[] + updateMany?: + | Prisma.AssetCommentAttachmentUpdateManyWithWhereWithoutCommentInput + | Prisma.AssetCommentAttachmentUpdateManyWithWhereWithoutCommentInput[] + deleteMany?: + | Prisma.AssetCommentAttachmentScalarWhereInput + | Prisma.AssetCommentAttachmentScalarWhereInput[] +} + +export type AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetCommentAttachmentCreateWithoutCommentInput, + Prisma.AssetCommentAttachmentUncheckedCreateWithoutCommentInput + > + | Prisma.AssetCommentAttachmentCreateWithoutCommentInput[] + | Prisma.AssetCommentAttachmentUncheckedCreateWithoutCommentInput[] + connectOrCreate?: + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutCommentInput + | Prisma.AssetCommentAttachmentCreateOrConnectWithoutCommentInput[] + upsert?: + | Prisma.AssetCommentAttachmentUpsertWithWhereUniqueWithoutCommentInput + | Prisma.AssetCommentAttachmentUpsertWithWhereUniqueWithoutCommentInput[] + createMany?: Prisma.AssetCommentAttachmentCreateManyCommentInputEnvelope + set?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + disconnect?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + delete?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + connect?: + | Prisma.AssetCommentAttachmentWhereUniqueInput + | Prisma.AssetCommentAttachmentWhereUniqueInput[] + update?: + | Prisma.AssetCommentAttachmentUpdateWithWhereUniqueWithoutCommentInput + | Prisma.AssetCommentAttachmentUpdateWithWhereUniqueWithoutCommentInput[] + updateMany?: + | Prisma.AssetCommentAttachmentUpdateManyWithWhereWithoutCommentInput + | Prisma.AssetCommentAttachmentUpdateManyWithWhereWithoutCommentInput[] + deleteMany?: + | Prisma.AssetCommentAttachmentScalarWhereInput + | Prisma.AssetCommentAttachmentScalarWhereInput[] +} + +export type AssetCommentAttachmentCreateWithoutAssetInput = { + id?: string + createdAt?: Date | string + updatedAt?: Date | string + comment: Prisma.AssetCommentCreateNestedOneWithoutAttachmentsInput +} + +export type AssetCommentAttachmentUncheckedCreateWithoutAssetInput = { + id?: string + createdAt?: Date | string + updatedAt?: Date | string + commentId: string +} + +export type AssetCommentAttachmentCreateOrConnectWithoutAssetInput = { + where: Prisma.AssetCommentAttachmentWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCommentAttachmentCreateWithoutAssetInput, + Prisma.AssetCommentAttachmentUncheckedCreateWithoutAssetInput + > +} + +export type AssetCommentAttachmentCreateManyAssetInputEnvelope = { + data: + | Prisma.AssetCommentAttachmentCreateManyAssetInput + | Prisma.AssetCommentAttachmentCreateManyAssetInput[] + skipDuplicates?: boolean +} + +export type AssetCommentAttachmentUpsertWithWhereUniqueWithoutAssetInput = { + where: Prisma.AssetCommentAttachmentWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetCommentAttachmentUpdateWithoutAssetInput, + Prisma.AssetCommentAttachmentUncheckedUpdateWithoutAssetInput + > + create: Prisma.XOR< + Prisma.AssetCommentAttachmentCreateWithoutAssetInput, + Prisma.AssetCommentAttachmentUncheckedCreateWithoutAssetInput + > +} + +export type AssetCommentAttachmentUpdateWithWhereUniqueWithoutAssetInput = { + where: Prisma.AssetCommentAttachmentWhereUniqueInput + data: Prisma.XOR< + Prisma.AssetCommentAttachmentUpdateWithoutAssetInput, + Prisma.AssetCommentAttachmentUncheckedUpdateWithoutAssetInput + > +} + +export type AssetCommentAttachmentUpdateManyWithWhereWithoutAssetInput = { + where: Prisma.AssetCommentAttachmentScalarWhereInput + data: Prisma.XOR< + Prisma.AssetCommentAttachmentUpdateManyMutationInput, + Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutAssetInput + > +} + +export type AssetCommentAttachmentScalarWhereInput = { + AND?: + | Prisma.AssetCommentAttachmentScalarWhereInput + | Prisma.AssetCommentAttachmentScalarWhereInput[] + OR?: Prisma.AssetCommentAttachmentScalarWhereInput[] + NOT?: + | Prisma.AssetCommentAttachmentScalarWhereInput + | Prisma.AssetCommentAttachmentScalarWhereInput[] + id?: Prisma.StringFilter<'AssetCommentAttachment'> | string + createdAt?: Prisma.DateTimeFilter<'AssetCommentAttachment'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AssetCommentAttachment'> | Date | string + commentId?: Prisma.StringFilter<'AssetCommentAttachment'> | string + assetId?: Prisma.StringFilter<'AssetCommentAttachment'> | string +} + +export type AssetCommentAttachmentCreateWithoutCommentInput = { + id?: string + createdAt?: Date | string + updatedAt?: Date | string + asset: Prisma.AssetCreateNestedOneWithoutCommentAttachmentsInput +} + +export type AssetCommentAttachmentUncheckedCreateWithoutCommentInput = { + id?: string + createdAt?: Date | string + updatedAt?: Date | string + assetId: string +} + +export type AssetCommentAttachmentCreateOrConnectWithoutCommentInput = { + where: Prisma.AssetCommentAttachmentWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetCommentAttachmentCreateWithoutCommentInput, + Prisma.AssetCommentAttachmentUncheckedCreateWithoutCommentInput + > +} + +export type AssetCommentAttachmentCreateManyCommentInputEnvelope = { + data: + | Prisma.AssetCommentAttachmentCreateManyCommentInput + | Prisma.AssetCommentAttachmentCreateManyCommentInput[] + skipDuplicates?: boolean +} + +export type AssetCommentAttachmentUpsertWithWhereUniqueWithoutCommentInput = { + where: Prisma.AssetCommentAttachmentWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetCommentAttachmentUpdateWithoutCommentInput, + Prisma.AssetCommentAttachmentUncheckedUpdateWithoutCommentInput + > + create: Prisma.XOR< + Prisma.AssetCommentAttachmentCreateWithoutCommentInput, + Prisma.AssetCommentAttachmentUncheckedCreateWithoutCommentInput + > +} + +export type AssetCommentAttachmentUpdateWithWhereUniqueWithoutCommentInput = { + where: Prisma.AssetCommentAttachmentWhereUniqueInput + data: Prisma.XOR< + Prisma.AssetCommentAttachmentUpdateWithoutCommentInput, + Prisma.AssetCommentAttachmentUncheckedUpdateWithoutCommentInput + > +} + +export type AssetCommentAttachmentUpdateManyWithWhereWithoutCommentInput = { + where: Prisma.AssetCommentAttachmentScalarWhereInput + data: Prisma.XOR< + Prisma.AssetCommentAttachmentUpdateManyMutationInput, + Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentInput + > +} + +export type AssetCommentAttachmentCreateManyAssetInput = { + id?: string + createdAt?: Date | string + updatedAt?: Date | string + commentId: string +} + +export type AssetCommentAttachmentUpdateWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + comment?: Prisma.AssetCommentUpdateOneRequiredWithoutAttachmentsNestedInput +} + +export type AssetCommentAttachmentUncheckedUpdateWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + commentId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AssetCommentAttachmentUncheckedUpdateManyWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + commentId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AssetCommentAttachmentCreateManyCommentInput = { + id?: string + createdAt?: Date | string + updatedAt?: Date | string + assetId: string +} + +export type AssetCommentAttachmentUpdateWithoutCommentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + asset?: Prisma.AssetUpdateOneRequiredWithoutCommentAttachmentsNestedInput +} + +export type AssetCommentAttachmentUncheckedUpdateWithoutCommentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AssetCommentAttachmentUncheckedUpdateManyWithoutCommentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AssetCommentAttachmentSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + createdAt?: boolean + updatedAt?: boolean + commentId?: boolean + assetId?: boolean + comment?: boolean | Prisma.AssetCommentDefaultArgs + asset?: boolean | Prisma.AssetDefaultArgs + }, + ExtArgs['result']['assetCommentAttachment'] +> + +export type AssetCommentAttachmentSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + createdAt?: boolean + updatedAt?: boolean + commentId?: boolean + assetId?: boolean + comment?: boolean | Prisma.AssetCommentDefaultArgs + asset?: boolean | Prisma.AssetDefaultArgs + }, + ExtArgs['result']['assetCommentAttachment'] +> + +export type AssetCommentAttachmentSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + createdAt?: boolean + updatedAt?: boolean + commentId?: boolean + assetId?: boolean + comment?: boolean | Prisma.AssetCommentDefaultArgs + asset?: boolean | Prisma.AssetDefaultArgs + }, + ExtArgs['result']['assetCommentAttachment'] +> + +export type AssetCommentAttachmentSelectScalar = { + id?: boolean + createdAt?: boolean + updatedAt?: boolean + commentId?: boolean + assetId?: boolean +} + +export type AssetCommentAttachmentOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'createdAt' | 'updatedAt' | 'commentId' | 'assetId', + ExtArgs['result']['assetCommentAttachment'] +> +export type AssetCommentAttachmentInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + comment?: boolean | Prisma.AssetCommentDefaultArgs + asset?: boolean | Prisma.AssetDefaultArgs +} +export type AssetCommentAttachmentIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + comment?: boolean | Prisma.AssetCommentDefaultArgs + asset?: boolean | Prisma.AssetDefaultArgs +} +export type AssetCommentAttachmentIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + comment?: boolean | Prisma.AssetCommentDefaultArgs + asset?: boolean | Prisma.AssetDefaultArgs +} + +export type $AssetCommentAttachmentPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'AssetCommentAttachment' + objects: { + comment: Prisma.$AssetCommentPayload + asset: Prisma.$AssetPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + createdAt: Date + updatedAt: Date + commentId: string + assetId: string + }, + ExtArgs['result']['assetCommentAttachment'] + > + composites: {} +} + +export type AssetCommentAttachmentGetPayload< + S extends boolean | null | undefined | AssetCommentAttachmentDefaultArgs, +> = runtime.Types.Result.GetResult + +export type AssetCommentAttachmentCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: AssetCommentAttachmentCountAggregateInputType | true +} + +export interface AssetCommentAttachmentDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['AssetCommentAttachment'] + meta: { name: 'AssetCommentAttachment' } + } + /** + * Find zero or one AssetCommentAttachment that matches the filter. + * @param {AssetCommentAttachmentFindUniqueArgs} args - Arguments to find a AssetCommentAttachment + * @example + * // Get one AssetCommentAttachment + * const assetCommentAttachment = await prisma.assetCommentAttachment.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentAttachmentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentAttachmentPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one AssetCommentAttachment that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AssetCommentAttachmentFindUniqueOrThrowArgs} args - Arguments to find a AssetCommentAttachment + * @example + * // Get one AssetCommentAttachment + * const assetCommentAttachment = await prisma.assetCommentAttachment.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentAttachmentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentAttachmentPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AssetCommentAttachment that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentAttachmentFindFirstArgs} args - Arguments to find a AssetCommentAttachment + * @example + * // Get one AssetCommentAttachment + * const assetCommentAttachment = await prisma.assetCommentAttachment.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentAttachmentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentAttachmentPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AssetCommentAttachment that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentAttachmentFindFirstOrThrowArgs} args - Arguments to find a AssetCommentAttachment + * @example + * // Get one AssetCommentAttachment + * const assetCommentAttachment = await prisma.assetCommentAttachment.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentAttachmentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentAttachmentPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more AssetCommentAttachments that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentAttachmentFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all AssetCommentAttachments + * const assetCommentAttachments = await prisma.assetCommentAttachment.findMany() + * + * // Get first 10 AssetCommentAttachments + * const assetCommentAttachments = await prisma.assetCommentAttachment.findMany({ take: 10 }) + * + * // Only select the `id` + * const assetCommentAttachmentWithIdOnly = await prisma.assetCommentAttachment.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentAttachmentPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a AssetCommentAttachment. + * @param {AssetCommentAttachmentCreateArgs} args - Arguments to create a AssetCommentAttachment. + * @example + * // Create one AssetCommentAttachment + * const AssetCommentAttachment = await prisma.assetCommentAttachment.create({ + * data: { + * // ... data to create a AssetCommentAttachment + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentAttachmentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentAttachmentPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many AssetCommentAttachments. + * @param {AssetCommentAttachmentCreateManyArgs} args - Arguments to create many AssetCommentAttachments. + * @example + * // Create many AssetCommentAttachments + * const assetCommentAttachment = await prisma.assetCommentAttachment.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many AssetCommentAttachments and returns the data saved in the database. + * @param {AssetCommentAttachmentCreateManyAndReturnArgs} args - Arguments to create many AssetCommentAttachments. + * @example + * // Create many AssetCommentAttachments + * const assetCommentAttachment = await prisma.assetCommentAttachment.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many AssetCommentAttachments and only return the `id` + * const assetCommentAttachmentWithIdOnly = await prisma.assetCommentAttachment.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentAttachmentPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a AssetCommentAttachment. + * @param {AssetCommentAttachmentDeleteArgs} args - Arguments to delete one AssetCommentAttachment. + * @example + * // Delete one AssetCommentAttachment + * const AssetCommentAttachment = await prisma.assetCommentAttachment.delete({ + * where: { + * // ... filter to delete one AssetCommentAttachment + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentAttachmentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentAttachmentPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one AssetCommentAttachment. + * @param {AssetCommentAttachmentUpdateArgs} args - Arguments to update one AssetCommentAttachment. + * @example + * // Update one AssetCommentAttachment + * const assetCommentAttachment = await prisma.assetCommentAttachment.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentAttachmentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentAttachmentPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more AssetCommentAttachments. + * @param {AssetCommentAttachmentDeleteManyArgs} args - Arguments to filter AssetCommentAttachments to delete. + * @example + * // Delete a few AssetCommentAttachments + * const { count } = await prisma.assetCommentAttachment.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AssetCommentAttachments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentAttachmentUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many AssetCommentAttachments + * const assetCommentAttachment = await prisma.assetCommentAttachment.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AssetCommentAttachments and returns the data updated in the database. + * @param {AssetCommentAttachmentUpdateManyAndReturnArgs} args - Arguments to update many AssetCommentAttachments. + * @example + * // Update many AssetCommentAttachments + * const assetCommentAttachment = await prisma.assetCommentAttachment.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more AssetCommentAttachments and only return the `id` + * const assetCommentAttachmentWithIdOnly = await prisma.assetCommentAttachment.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentAttachmentPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one AssetCommentAttachment. + * @param {AssetCommentAttachmentUpsertArgs} args - Arguments to update or create a AssetCommentAttachment. + * @example + * // Update or create a AssetCommentAttachment + * const assetCommentAttachment = await prisma.assetCommentAttachment.upsert({ + * create: { + * // ... data to create a AssetCommentAttachment + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the AssetCommentAttachment we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetCommentAttachmentClient< + runtime.Types.Result.GetResult< + Prisma.$AssetCommentAttachmentPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of AssetCommentAttachments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentAttachmentCountArgs} args - Arguments to filter AssetCommentAttachments to count. + * @example + * // Count the number of AssetCommentAttachments + * const count = await prisma.assetCommentAttachment.count({ + * where: { + * // ... the filter for the AssetCommentAttachments we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a AssetCommentAttachment. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentAttachmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by AssetCommentAttachment. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetCommentAttachmentGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends AssetCommentAttachmentGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AssetCommentAttachmentGroupByArgs['orderBy'] } + : { orderBy?: AssetCommentAttachmentGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors + ? GetAssetCommentAttachmentGroupByPayload + : Prisma.PrismaPromise + /** + * Fields of the AssetCommentAttachment model + */ + readonly fields: AssetCommentAttachmentFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for AssetCommentAttachment. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__AssetCommentAttachmentClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + comment = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AssetCommentClient< + | runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + asset = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AssetClient< + | runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the AssetCommentAttachment model + */ +export interface AssetCommentAttachmentFieldRefs { + readonly id: Prisma.FieldRef<'AssetCommentAttachment', 'String'> + readonly createdAt: Prisma.FieldRef<'AssetCommentAttachment', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'AssetCommentAttachment', 'DateTime'> + readonly commentId: Prisma.FieldRef<'AssetCommentAttachment', 'String'> + readonly assetId: Prisma.FieldRef<'AssetCommentAttachment', 'String'> +} + +// Custom InputTypes +/** + * AssetCommentAttachment findUnique + */ +export type AssetCommentAttachmentFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelect | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentInclude | null + /** + * Filter, which AssetCommentAttachment to fetch. + */ + where: Prisma.AssetCommentAttachmentWhereUniqueInput +} + +/** + * AssetCommentAttachment findUniqueOrThrow + */ +export type AssetCommentAttachmentFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelect | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentInclude | null + /** + * Filter, which AssetCommentAttachment to fetch. + */ + where: Prisma.AssetCommentAttachmentWhereUniqueInput +} + +/** + * AssetCommentAttachment findFirst + */ +export type AssetCommentAttachmentFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelect | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentInclude | null + /** + * Filter, which AssetCommentAttachment to fetch. + */ + where?: Prisma.AssetCommentAttachmentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetCommentAttachments to fetch. + */ + orderBy?: + | Prisma.AssetCommentAttachmentOrderByWithRelationInput + | Prisma.AssetCommentAttachmentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AssetCommentAttachments. + */ + cursor?: Prisma.AssetCommentAttachmentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetCommentAttachments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetCommentAttachments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AssetCommentAttachments. + */ + distinct?: + | Prisma.AssetCommentAttachmentScalarFieldEnum + | Prisma.AssetCommentAttachmentScalarFieldEnum[] +} + +/** + * AssetCommentAttachment findFirstOrThrow + */ +export type AssetCommentAttachmentFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelect | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentInclude | null + /** + * Filter, which AssetCommentAttachment to fetch. + */ + where?: Prisma.AssetCommentAttachmentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetCommentAttachments to fetch. + */ + orderBy?: + | Prisma.AssetCommentAttachmentOrderByWithRelationInput + | Prisma.AssetCommentAttachmentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AssetCommentAttachments. + */ + cursor?: Prisma.AssetCommentAttachmentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetCommentAttachments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetCommentAttachments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AssetCommentAttachments. + */ + distinct?: + | Prisma.AssetCommentAttachmentScalarFieldEnum + | Prisma.AssetCommentAttachmentScalarFieldEnum[] +} + +/** + * AssetCommentAttachment findMany + */ +export type AssetCommentAttachmentFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelect | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentInclude | null + /** + * Filter, which AssetCommentAttachments to fetch. + */ + where?: Prisma.AssetCommentAttachmentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetCommentAttachments to fetch. + */ + orderBy?: + | Prisma.AssetCommentAttachmentOrderByWithRelationInput + | Prisma.AssetCommentAttachmentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing AssetCommentAttachments. + */ + cursor?: Prisma.AssetCommentAttachmentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetCommentAttachments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetCommentAttachments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AssetCommentAttachments. + */ + distinct?: + | Prisma.AssetCommentAttachmentScalarFieldEnum + | Prisma.AssetCommentAttachmentScalarFieldEnum[] +} + +/** + * AssetCommentAttachment create + */ +export type AssetCommentAttachmentCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelect | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentInclude | null + /** + * The data needed to create a AssetCommentAttachment. + */ + data: Prisma.XOR< + Prisma.AssetCommentAttachmentCreateInput, + Prisma.AssetCommentAttachmentUncheckedCreateInput + > +} + +/** + * AssetCommentAttachment createMany + */ +export type AssetCommentAttachmentCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many AssetCommentAttachments. + */ + data: + | Prisma.AssetCommentAttachmentCreateManyInput + | Prisma.AssetCommentAttachmentCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * AssetCommentAttachment createManyAndReturn + */ +export type AssetCommentAttachmentCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelectCreateManyAndReturn | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * The data used to create many AssetCommentAttachments. + */ + data: + | Prisma.AssetCommentAttachmentCreateManyInput + | Prisma.AssetCommentAttachmentCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentIncludeCreateManyAndReturn | null +} + +/** + * AssetCommentAttachment update + */ +export type AssetCommentAttachmentUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelect | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentInclude | null + /** + * The data needed to update a AssetCommentAttachment. + */ + data: Prisma.XOR< + Prisma.AssetCommentAttachmentUpdateInput, + Prisma.AssetCommentAttachmentUncheckedUpdateInput + > + /** + * Choose, which AssetCommentAttachment to update. + */ + where: Prisma.AssetCommentAttachmentWhereUniqueInput +} + +/** + * AssetCommentAttachment updateMany + */ +export type AssetCommentAttachmentUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update AssetCommentAttachments. + */ + data: Prisma.XOR< + Prisma.AssetCommentAttachmentUpdateManyMutationInput, + Prisma.AssetCommentAttachmentUncheckedUpdateManyInput + > + /** + * Filter which AssetCommentAttachments to update + */ + where?: Prisma.AssetCommentAttachmentWhereInput + /** + * Limit how many AssetCommentAttachments to update. + */ + limit?: number +} + +/** + * AssetCommentAttachment updateManyAndReturn + */ +export type AssetCommentAttachmentUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * The data used to update AssetCommentAttachments. + */ + data: Prisma.XOR< + Prisma.AssetCommentAttachmentUpdateManyMutationInput, + Prisma.AssetCommentAttachmentUncheckedUpdateManyInput + > + /** + * Filter which AssetCommentAttachments to update + */ + where?: Prisma.AssetCommentAttachmentWhereInput + /** + * Limit how many AssetCommentAttachments to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentIncludeUpdateManyAndReturn | null +} + +/** + * AssetCommentAttachment upsert + */ +export type AssetCommentAttachmentUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelect | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentInclude | null + /** + * The filter to search for the AssetCommentAttachment to update in case it exists. + */ + where: Prisma.AssetCommentAttachmentWhereUniqueInput + /** + * In case the AssetCommentAttachment found by the `where` argument doesn't exist, create a new AssetCommentAttachment with this data. + */ + create: Prisma.XOR< + Prisma.AssetCommentAttachmentCreateInput, + Prisma.AssetCommentAttachmentUncheckedCreateInput + > + /** + * In case the AssetCommentAttachment was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR< + Prisma.AssetCommentAttachmentUpdateInput, + Prisma.AssetCommentAttachmentUncheckedUpdateInput + > +} + +/** + * AssetCommentAttachment delete + */ +export type AssetCommentAttachmentDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelect | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentInclude | null + /** + * Filter which AssetCommentAttachment to delete. + */ + where: Prisma.AssetCommentAttachmentWhereUniqueInput +} + +/** + * AssetCommentAttachment deleteMany + */ +export type AssetCommentAttachmentDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AssetCommentAttachments to delete + */ + where?: Prisma.AssetCommentAttachmentWhereInput + /** + * Limit how many AssetCommentAttachments to delete. + */ + limit?: number +} + +/** + * AssetCommentAttachment without action + */ +export type AssetCommentAttachmentDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetCommentAttachment + */ + select?: Prisma.AssetCommentAttachmentSelect | null + /** + * Omit specific fields from the AssetCommentAttachment + */ + omit?: Prisma.AssetCommentAttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentAttachmentInclude | null +} diff --git a/packages/db/src/generated/prisma/models/AssetEmbedding.ts b/packages/db/src/generated/prisma/models/AssetEmbedding.ts new file mode 100644 index 00000000..60e66edf --- /dev/null +++ b/packages/db/src/generated/prisma/models/AssetEmbedding.ts @@ -0,0 +1,1728 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `AssetEmbedding` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model AssetEmbedding + * + */ +export type AssetEmbeddingModel = + runtime.Types.Result.DefaultSelection + +export type AggregateAssetEmbedding = { + _count: AssetEmbeddingCountAggregateOutputType | null + _avg: AssetEmbeddingAvgAggregateOutputType | null + _sum: AssetEmbeddingSumAggregateOutputType | null + _min: AssetEmbeddingMinAggregateOutputType | null + _max: AssetEmbeddingMaxAggregateOutputType | null +} + +export type AssetEmbeddingAvgAggregateOutputType = { + startTime: number | null + endTime: number | null +} + +export type AssetEmbeddingSumAggregateOutputType = { + startTime: number | null + endTime: number | null +} + +export type AssetEmbeddingMinAggregateOutputType = { + id: string | null + startTime: number | null + endTime: number | null + createdAt: Date | null + updatedAt: Date | null + assetId: string | null +} + +export type AssetEmbeddingMaxAggregateOutputType = { + id: string | null + startTime: number | null + endTime: number | null + createdAt: Date | null + updatedAt: Date | null + assetId: string | null +} + +export type AssetEmbeddingCountAggregateOutputType = { + id: number + startTime: number + endTime: number + createdAt: number + updatedAt: number + assetId: number + _all: number +} + +export type AssetEmbeddingAvgAggregateInputType = { + startTime?: true + endTime?: true +} + +export type AssetEmbeddingSumAggregateInputType = { + startTime?: true + endTime?: true +} + +export type AssetEmbeddingMinAggregateInputType = { + id?: true + startTime?: true + endTime?: true + createdAt?: true + updatedAt?: true + assetId?: true +} + +export type AssetEmbeddingMaxAggregateInputType = { + id?: true + startTime?: true + endTime?: true + createdAt?: true + updatedAt?: true + assetId?: true +} + +export type AssetEmbeddingCountAggregateInputType = { + id?: true + startTime?: true + endTime?: true + createdAt?: true + updatedAt?: true + assetId?: true + _all?: true +} + +export type AssetEmbeddingAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AssetEmbedding to aggregate. + */ + where?: Prisma.AssetEmbeddingWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetEmbeddings to fetch. + */ + orderBy?: + | Prisma.AssetEmbeddingOrderByWithRelationInput + | Prisma.AssetEmbeddingOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AssetEmbeddingWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetEmbeddings from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetEmbeddings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned AssetEmbeddings + **/ + _count?: true | AssetEmbeddingCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: AssetEmbeddingAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: AssetEmbeddingSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AssetEmbeddingMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AssetEmbeddingMaxAggregateInputType +} + +export type GetAssetEmbeddingAggregateType = { + [P in keyof T & keyof AggregateAssetEmbedding]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type AssetEmbeddingGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetEmbeddingWhereInput + orderBy?: + | Prisma.AssetEmbeddingOrderByWithAggregationInput + | Prisma.AssetEmbeddingOrderByWithAggregationInput[] + by: Prisma.AssetEmbeddingScalarFieldEnum[] | Prisma.AssetEmbeddingScalarFieldEnum + having?: Prisma.AssetEmbeddingScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AssetEmbeddingCountAggregateInputType | true + _avg?: AssetEmbeddingAvgAggregateInputType + _sum?: AssetEmbeddingSumAggregateInputType + _min?: AssetEmbeddingMinAggregateInputType + _max?: AssetEmbeddingMaxAggregateInputType +} + +export type AssetEmbeddingGroupByOutputType = { + id: string + startTime: number | null + endTime: number | null + createdAt: Date + updatedAt: Date + assetId: string + _count: AssetEmbeddingCountAggregateOutputType | null + _avg: AssetEmbeddingAvgAggregateOutputType | null + _sum: AssetEmbeddingSumAggregateOutputType | null + _min: AssetEmbeddingMinAggregateOutputType | null + _max: AssetEmbeddingMaxAggregateOutputType | null +} + +export type GetAssetEmbeddingGroupByPayload = + Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof AssetEmbeddingGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + +export type AssetEmbeddingWhereInput = { + AND?: Prisma.AssetEmbeddingWhereInput | Prisma.AssetEmbeddingWhereInput[] + OR?: Prisma.AssetEmbeddingWhereInput[] + NOT?: Prisma.AssetEmbeddingWhereInput | Prisma.AssetEmbeddingWhereInput[] + id?: Prisma.StringFilter<'AssetEmbedding'> | string + startTime?: Prisma.FloatNullableFilter<'AssetEmbedding'> | number | null + endTime?: Prisma.FloatNullableFilter<'AssetEmbedding'> | number | null + createdAt?: Prisma.DateTimeFilter<'AssetEmbedding'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AssetEmbedding'> | Date | string + assetId?: Prisma.StringFilter<'AssetEmbedding'> | string + asset?: Prisma.XOR +} + +export type AssetEmbeddingOrderByWithRelationInput = { + id?: Prisma.SortOrder + startTime?: Prisma.SortOrderInput | Prisma.SortOrder + endTime?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + assetId?: Prisma.SortOrder + asset?: Prisma.AssetOrderByWithRelationInput +} + +export type AssetEmbeddingWhereUniqueInput = Prisma.AtLeast< + { + id?: string + AND?: Prisma.AssetEmbeddingWhereInput | Prisma.AssetEmbeddingWhereInput[] + OR?: Prisma.AssetEmbeddingWhereInput[] + NOT?: Prisma.AssetEmbeddingWhereInput | Prisma.AssetEmbeddingWhereInput[] + startTime?: Prisma.FloatNullableFilter<'AssetEmbedding'> | number | null + endTime?: Prisma.FloatNullableFilter<'AssetEmbedding'> | number | null + createdAt?: Prisma.DateTimeFilter<'AssetEmbedding'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AssetEmbedding'> | Date | string + assetId?: Prisma.StringFilter<'AssetEmbedding'> | string + asset?: Prisma.XOR + }, + 'id' +> + +export type AssetEmbeddingOrderByWithAggregationInput = { + id?: Prisma.SortOrder + startTime?: Prisma.SortOrderInput | Prisma.SortOrder + endTime?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + assetId?: Prisma.SortOrder + _count?: Prisma.AssetEmbeddingCountOrderByAggregateInput + _avg?: Prisma.AssetEmbeddingAvgOrderByAggregateInput + _max?: Prisma.AssetEmbeddingMaxOrderByAggregateInput + _min?: Prisma.AssetEmbeddingMinOrderByAggregateInput + _sum?: Prisma.AssetEmbeddingSumOrderByAggregateInput +} + +export type AssetEmbeddingScalarWhereWithAggregatesInput = { + AND?: + | Prisma.AssetEmbeddingScalarWhereWithAggregatesInput + | Prisma.AssetEmbeddingScalarWhereWithAggregatesInput[] + OR?: Prisma.AssetEmbeddingScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.AssetEmbeddingScalarWhereWithAggregatesInput + | Prisma.AssetEmbeddingScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'AssetEmbedding'> | string + startTime?: Prisma.FloatNullableWithAggregatesFilter<'AssetEmbedding'> | number | null + endTime?: Prisma.FloatNullableWithAggregatesFilter<'AssetEmbedding'> | number | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<'AssetEmbedding'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'AssetEmbedding'> | Date | string + assetId?: Prisma.StringWithAggregatesFilter<'AssetEmbedding'> | string +} + +export type AssetEmbeddingCreateInput = { + id?: string + startTime?: number | null + endTime?: number | null + createdAt?: Date | string + updatedAt?: Date | string + asset: Prisma.AssetCreateNestedOneWithoutEmbeddingsInput +} + +export type AssetEmbeddingUncheckedCreateInput = { + id?: string + startTime?: number | null + endTime?: number | null + createdAt?: Date | string + updatedAt?: Date | string + assetId: string +} + +export type AssetEmbeddingUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + startTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + endTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + asset?: Prisma.AssetUpdateOneRequiredWithoutEmbeddingsNestedInput +} + +export type AssetEmbeddingUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + startTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + endTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AssetEmbeddingCreateManyInput = { + id?: string + startTime?: number | null + endTime?: number | null + createdAt?: Date | string + updatedAt?: Date | string + assetId: string +} + +export type AssetEmbeddingUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + startTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + endTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AssetEmbeddingUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + startTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + endTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AssetEmbeddingListRelationFilter = { + every?: Prisma.AssetEmbeddingWhereInput + some?: Prisma.AssetEmbeddingWhereInput + none?: Prisma.AssetEmbeddingWhereInput +} + +export type AssetEmbeddingOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AssetEmbeddingCountOrderByAggregateInput = { + id?: Prisma.SortOrder + startTime?: Prisma.SortOrder + endTime?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + assetId?: Prisma.SortOrder +} + +export type AssetEmbeddingAvgOrderByAggregateInput = { + startTime?: Prisma.SortOrder + endTime?: Prisma.SortOrder +} + +export type AssetEmbeddingMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + startTime?: Prisma.SortOrder + endTime?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + assetId?: Prisma.SortOrder +} + +export type AssetEmbeddingMinOrderByAggregateInput = { + id?: Prisma.SortOrder + startTime?: Prisma.SortOrder + endTime?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + assetId?: Prisma.SortOrder +} + +export type AssetEmbeddingSumOrderByAggregateInput = { + startTime?: Prisma.SortOrder + endTime?: Prisma.SortOrder +} + +export type AssetEmbeddingCreateNestedManyWithoutAssetInput = { + create?: + | Prisma.XOR< + Prisma.AssetEmbeddingCreateWithoutAssetInput, + Prisma.AssetEmbeddingUncheckedCreateWithoutAssetInput + > + | Prisma.AssetEmbeddingCreateWithoutAssetInput[] + | Prisma.AssetEmbeddingUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetEmbeddingCreateOrConnectWithoutAssetInput + | Prisma.AssetEmbeddingCreateOrConnectWithoutAssetInput[] + createMany?: Prisma.AssetEmbeddingCreateManyAssetInputEnvelope + connect?: Prisma.AssetEmbeddingWhereUniqueInput | Prisma.AssetEmbeddingWhereUniqueInput[] +} + +export type AssetEmbeddingUncheckedCreateNestedManyWithoutAssetInput = { + create?: + | Prisma.XOR< + Prisma.AssetEmbeddingCreateWithoutAssetInput, + Prisma.AssetEmbeddingUncheckedCreateWithoutAssetInput + > + | Prisma.AssetEmbeddingCreateWithoutAssetInput[] + | Prisma.AssetEmbeddingUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetEmbeddingCreateOrConnectWithoutAssetInput + | Prisma.AssetEmbeddingCreateOrConnectWithoutAssetInput[] + createMany?: Prisma.AssetEmbeddingCreateManyAssetInputEnvelope + connect?: Prisma.AssetEmbeddingWhereUniqueInput | Prisma.AssetEmbeddingWhereUniqueInput[] +} + +export type AssetEmbeddingUpdateManyWithoutAssetNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetEmbeddingCreateWithoutAssetInput, + Prisma.AssetEmbeddingUncheckedCreateWithoutAssetInput + > + | Prisma.AssetEmbeddingCreateWithoutAssetInput[] + | Prisma.AssetEmbeddingUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetEmbeddingCreateOrConnectWithoutAssetInput + | Prisma.AssetEmbeddingCreateOrConnectWithoutAssetInput[] + upsert?: + | Prisma.AssetEmbeddingUpsertWithWhereUniqueWithoutAssetInput + | Prisma.AssetEmbeddingUpsertWithWhereUniqueWithoutAssetInput[] + createMany?: Prisma.AssetEmbeddingCreateManyAssetInputEnvelope + set?: Prisma.AssetEmbeddingWhereUniqueInput | Prisma.AssetEmbeddingWhereUniqueInput[] + disconnect?: Prisma.AssetEmbeddingWhereUniqueInput | Prisma.AssetEmbeddingWhereUniqueInput[] + delete?: Prisma.AssetEmbeddingWhereUniqueInput | Prisma.AssetEmbeddingWhereUniqueInput[] + connect?: Prisma.AssetEmbeddingWhereUniqueInput | Prisma.AssetEmbeddingWhereUniqueInput[] + update?: + | Prisma.AssetEmbeddingUpdateWithWhereUniqueWithoutAssetInput + | Prisma.AssetEmbeddingUpdateWithWhereUniqueWithoutAssetInput[] + updateMany?: + | Prisma.AssetEmbeddingUpdateManyWithWhereWithoutAssetInput + | Prisma.AssetEmbeddingUpdateManyWithWhereWithoutAssetInput[] + deleteMany?: Prisma.AssetEmbeddingScalarWhereInput | Prisma.AssetEmbeddingScalarWhereInput[] +} + +export type AssetEmbeddingUncheckedUpdateManyWithoutAssetNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetEmbeddingCreateWithoutAssetInput, + Prisma.AssetEmbeddingUncheckedCreateWithoutAssetInput + > + | Prisma.AssetEmbeddingCreateWithoutAssetInput[] + | Prisma.AssetEmbeddingUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetEmbeddingCreateOrConnectWithoutAssetInput + | Prisma.AssetEmbeddingCreateOrConnectWithoutAssetInput[] + upsert?: + | Prisma.AssetEmbeddingUpsertWithWhereUniqueWithoutAssetInput + | Prisma.AssetEmbeddingUpsertWithWhereUniqueWithoutAssetInput[] + createMany?: Prisma.AssetEmbeddingCreateManyAssetInputEnvelope + set?: Prisma.AssetEmbeddingWhereUniqueInput | Prisma.AssetEmbeddingWhereUniqueInput[] + disconnect?: Prisma.AssetEmbeddingWhereUniqueInput | Prisma.AssetEmbeddingWhereUniqueInput[] + delete?: Prisma.AssetEmbeddingWhereUniqueInput | Prisma.AssetEmbeddingWhereUniqueInput[] + connect?: Prisma.AssetEmbeddingWhereUniqueInput | Prisma.AssetEmbeddingWhereUniqueInput[] + update?: + | Prisma.AssetEmbeddingUpdateWithWhereUniqueWithoutAssetInput + | Prisma.AssetEmbeddingUpdateWithWhereUniqueWithoutAssetInput[] + updateMany?: + | Prisma.AssetEmbeddingUpdateManyWithWhereWithoutAssetInput + | Prisma.AssetEmbeddingUpdateManyWithWhereWithoutAssetInput[] + deleteMany?: Prisma.AssetEmbeddingScalarWhereInput | Prisma.AssetEmbeddingScalarWhereInput[] +} + +export type AssetEmbeddingCreateWithoutAssetInput = { + id?: string + startTime?: number | null + endTime?: number | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AssetEmbeddingUncheckedCreateWithoutAssetInput = { + id?: string + startTime?: number | null + endTime?: number | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AssetEmbeddingCreateOrConnectWithoutAssetInput = { + where: Prisma.AssetEmbeddingWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetEmbeddingCreateWithoutAssetInput, + Prisma.AssetEmbeddingUncheckedCreateWithoutAssetInput + > +} + +export type AssetEmbeddingCreateManyAssetInputEnvelope = { + data: Prisma.AssetEmbeddingCreateManyAssetInput | Prisma.AssetEmbeddingCreateManyAssetInput[] + skipDuplicates?: boolean +} + +export type AssetEmbeddingUpsertWithWhereUniqueWithoutAssetInput = { + where: Prisma.AssetEmbeddingWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetEmbeddingUpdateWithoutAssetInput, + Prisma.AssetEmbeddingUncheckedUpdateWithoutAssetInput + > + create: Prisma.XOR< + Prisma.AssetEmbeddingCreateWithoutAssetInput, + Prisma.AssetEmbeddingUncheckedCreateWithoutAssetInput + > +} + +export type AssetEmbeddingUpdateWithWhereUniqueWithoutAssetInput = { + where: Prisma.AssetEmbeddingWhereUniqueInput + data: Prisma.XOR< + Prisma.AssetEmbeddingUpdateWithoutAssetInput, + Prisma.AssetEmbeddingUncheckedUpdateWithoutAssetInput + > +} + +export type AssetEmbeddingUpdateManyWithWhereWithoutAssetInput = { + where: Prisma.AssetEmbeddingScalarWhereInput + data: Prisma.XOR< + Prisma.AssetEmbeddingUpdateManyMutationInput, + Prisma.AssetEmbeddingUncheckedUpdateManyWithoutAssetInput + > +} + +export type AssetEmbeddingScalarWhereInput = { + AND?: Prisma.AssetEmbeddingScalarWhereInput | Prisma.AssetEmbeddingScalarWhereInput[] + OR?: Prisma.AssetEmbeddingScalarWhereInput[] + NOT?: Prisma.AssetEmbeddingScalarWhereInput | Prisma.AssetEmbeddingScalarWhereInput[] + id?: Prisma.StringFilter<'AssetEmbedding'> | string + startTime?: Prisma.FloatNullableFilter<'AssetEmbedding'> | number | null + endTime?: Prisma.FloatNullableFilter<'AssetEmbedding'> | number | null + createdAt?: Prisma.DateTimeFilter<'AssetEmbedding'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'AssetEmbedding'> | Date | string + assetId?: Prisma.StringFilter<'AssetEmbedding'> | string +} + +export type AssetEmbeddingCreateManyAssetInput = { + id?: string + startTime?: number | null + endTime?: number | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AssetEmbeddingUpdateWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + startTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + endTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AssetEmbeddingUncheckedUpdateWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + startTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + endTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AssetEmbeddingUncheckedUpdateManyWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + startTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + endTime?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AssetEmbeddingSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + startTime?: boolean + endTime?: boolean + createdAt?: boolean + updatedAt?: boolean + assetId?: boolean + asset?: boolean | Prisma.AssetDefaultArgs + }, + ExtArgs['result']['assetEmbedding'] +> + +export type AssetEmbeddingSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + startTime?: boolean + endTime?: boolean + createdAt?: boolean + updatedAt?: boolean + assetId?: boolean + asset?: boolean | Prisma.AssetDefaultArgs + }, + ExtArgs['result']['assetEmbedding'] +> + +export type AssetEmbeddingSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + startTime?: boolean + endTime?: boolean + createdAt?: boolean + updatedAt?: boolean + assetId?: boolean + asset?: boolean | Prisma.AssetDefaultArgs + }, + ExtArgs['result']['assetEmbedding'] +> + +export type AssetEmbeddingSelectScalar = { + id?: boolean + startTime?: boolean + endTime?: boolean + createdAt?: boolean + updatedAt?: boolean + assetId?: boolean +} + +export type AssetEmbeddingOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'startTime' | 'endTime' | 'createdAt' | 'updatedAt' | 'assetId', + ExtArgs['result']['assetEmbedding'] +> +export type AssetEmbeddingInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + asset?: boolean | Prisma.AssetDefaultArgs +} +export type AssetEmbeddingIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + asset?: boolean | Prisma.AssetDefaultArgs +} +export type AssetEmbeddingIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + asset?: boolean | Prisma.AssetDefaultArgs +} + +export type $AssetEmbeddingPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'AssetEmbedding' + objects: { + asset: Prisma.$AssetPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + startTime: number | null + endTime: number | null + createdAt: Date + updatedAt: Date + assetId: string + }, + ExtArgs['result']['assetEmbedding'] + > + composites: {} +} + +export type AssetEmbeddingGetPayload< + S extends boolean | null | undefined | AssetEmbeddingDefaultArgs, +> = runtime.Types.Result.GetResult + +export type AssetEmbeddingCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: AssetEmbeddingCountAggregateInputType | true +} + +export interface AssetEmbeddingDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['AssetEmbedding'] + meta: { name: 'AssetEmbedding' } + } + /** + * Find zero or one AssetEmbedding that matches the filter. + * @param {AssetEmbeddingFindUniqueArgs} args - Arguments to find a AssetEmbedding + * @example + * // Get one AssetEmbedding + * const assetEmbedding = await prisma.assetEmbedding.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetEmbeddingClient< + runtime.Types.Result.GetResult< + Prisma.$AssetEmbeddingPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one AssetEmbedding that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AssetEmbeddingFindUniqueOrThrowArgs} args - Arguments to find a AssetEmbedding + * @example + * // Get one AssetEmbedding + * const assetEmbedding = await prisma.assetEmbedding.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetEmbeddingClient< + runtime.Types.Result.GetResult< + Prisma.$AssetEmbeddingPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AssetEmbedding that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetEmbeddingFindFirstArgs} args - Arguments to find a AssetEmbedding + * @example + * // Get one AssetEmbedding + * const assetEmbedding = await prisma.assetEmbedding.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetEmbeddingClient< + runtime.Types.Result.GetResult< + Prisma.$AssetEmbeddingPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AssetEmbedding that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetEmbeddingFindFirstOrThrowArgs} args - Arguments to find a AssetEmbedding + * @example + * // Get one AssetEmbedding + * const assetEmbedding = await prisma.assetEmbedding.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetEmbeddingClient< + runtime.Types.Result.GetResult< + Prisma.$AssetEmbeddingPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more AssetEmbeddings that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetEmbeddingFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all AssetEmbeddings + * const assetEmbeddings = await prisma.assetEmbedding.findMany() + * + * // Get first 10 AssetEmbeddings + * const assetEmbeddings = await prisma.assetEmbedding.findMany({ take: 10 }) + * + * // Only select the `id` + * const assetEmbeddingWithIdOnly = await prisma.assetEmbedding.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetEmbeddingPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a AssetEmbedding. + * @param {AssetEmbeddingCreateArgs} args - Arguments to create a AssetEmbedding. + * @example + * // Create one AssetEmbedding + * const AssetEmbedding = await prisma.assetEmbedding.create({ + * data: { + * // ... data to create a AssetEmbedding + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetEmbeddingClient< + runtime.Types.Result.GetResult< + Prisma.$AssetEmbeddingPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many AssetEmbeddings. + * @param {AssetEmbeddingCreateManyArgs} args - Arguments to create many AssetEmbeddings. + * @example + * // Create many AssetEmbeddings + * const assetEmbedding = await prisma.assetEmbedding.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many AssetEmbeddings and returns the data saved in the database. + * @param {AssetEmbeddingCreateManyAndReturnArgs} args - Arguments to create many AssetEmbeddings. + * @example + * // Create many AssetEmbeddings + * const assetEmbedding = await prisma.assetEmbedding.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many AssetEmbeddings and only return the `id` + * const assetEmbeddingWithIdOnly = await prisma.assetEmbedding.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetEmbeddingPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a AssetEmbedding. + * @param {AssetEmbeddingDeleteArgs} args - Arguments to delete one AssetEmbedding. + * @example + * // Delete one AssetEmbedding + * const AssetEmbedding = await prisma.assetEmbedding.delete({ + * where: { + * // ... filter to delete one AssetEmbedding + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetEmbeddingClient< + runtime.Types.Result.GetResult< + Prisma.$AssetEmbeddingPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one AssetEmbedding. + * @param {AssetEmbeddingUpdateArgs} args - Arguments to update one AssetEmbedding. + * @example + * // Update one AssetEmbedding + * const assetEmbedding = await prisma.assetEmbedding.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetEmbeddingClient< + runtime.Types.Result.GetResult< + Prisma.$AssetEmbeddingPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more AssetEmbeddings. + * @param {AssetEmbeddingDeleteManyArgs} args - Arguments to filter AssetEmbeddings to delete. + * @example + * // Delete a few AssetEmbeddings + * const { count } = await prisma.assetEmbedding.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AssetEmbeddings. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetEmbeddingUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many AssetEmbeddings + * const assetEmbedding = await prisma.assetEmbedding.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AssetEmbeddings and returns the data updated in the database. + * @param {AssetEmbeddingUpdateManyAndReturnArgs} args - Arguments to update many AssetEmbeddings. + * @example + * // Update many AssetEmbeddings + * const assetEmbedding = await prisma.assetEmbedding.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more AssetEmbeddings and only return the `id` + * const assetEmbeddingWithIdOnly = await prisma.assetEmbedding.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetEmbeddingPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one AssetEmbedding. + * @param {AssetEmbeddingUpsertArgs} args - Arguments to update or create a AssetEmbedding. + * @example + * // Update or create a AssetEmbedding + * const assetEmbedding = await prisma.assetEmbedding.upsert({ + * create: { + * // ... data to create a AssetEmbedding + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the AssetEmbedding we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetEmbeddingClient< + runtime.Types.Result.GetResult< + Prisma.$AssetEmbeddingPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of AssetEmbeddings. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetEmbeddingCountArgs} args - Arguments to filter AssetEmbeddings to count. + * @example + * // Count the number of AssetEmbeddings + * const count = await prisma.assetEmbedding.count({ + * where: { + * // ... the filter for the AssetEmbeddings we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a AssetEmbedding. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetEmbeddingAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by AssetEmbedding. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetEmbeddingGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends AssetEmbeddingGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AssetEmbeddingGroupByArgs['orderBy'] } + : { orderBy?: AssetEmbeddingGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetAssetEmbeddingGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the AssetEmbedding model + */ + readonly fields: AssetEmbeddingFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for AssetEmbedding. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__AssetEmbeddingClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + asset = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AssetClient< + | runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the AssetEmbedding model + */ +export interface AssetEmbeddingFieldRefs { + readonly id: Prisma.FieldRef<'AssetEmbedding', 'String'> + readonly startTime: Prisma.FieldRef<'AssetEmbedding', 'Float'> + readonly endTime: Prisma.FieldRef<'AssetEmbedding', 'Float'> + readonly createdAt: Prisma.FieldRef<'AssetEmbedding', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'AssetEmbedding', 'DateTime'> + readonly assetId: Prisma.FieldRef<'AssetEmbedding', 'String'> +} + +// Custom InputTypes +/** + * AssetEmbedding findUnique + */ +export type AssetEmbeddingFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetEmbedding + */ + select?: Prisma.AssetEmbeddingSelect | null + /** + * Omit specific fields from the AssetEmbedding + */ + omit?: Prisma.AssetEmbeddingOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetEmbeddingInclude | null + /** + * Filter, which AssetEmbedding to fetch. + */ + where: Prisma.AssetEmbeddingWhereUniqueInput +} + +/** + * AssetEmbedding findUniqueOrThrow + */ +export type AssetEmbeddingFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetEmbedding + */ + select?: Prisma.AssetEmbeddingSelect | null + /** + * Omit specific fields from the AssetEmbedding + */ + omit?: Prisma.AssetEmbeddingOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetEmbeddingInclude | null + /** + * Filter, which AssetEmbedding to fetch. + */ + where: Prisma.AssetEmbeddingWhereUniqueInput +} + +/** + * AssetEmbedding findFirst + */ +export type AssetEmbeddingFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetEmbedding + */ + select?: Prisma.AssetEmbeddingSelect | null + /** + * Omit specific fields from the AssetEmbedding + */ + omit?: Prisma.AssetEmbeddingOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetEmbeddingInclude | null + /** + * Filter, which AssetEmbedding to fetch. + */ + where?: Prisma.AssetEmbeddingWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetEmbeddings to fetch. + */ + orderBy?: + | Prisma.AssetEmbeddingOrderByWithRelationInput + | Prisma.AssetEmbeddingOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AssetEmbeddings. + */ + cursor?: Prisma.AssetEmbeddingWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetEmbeddings from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetEmbeddings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AssetEmbeddings. + */ + distinct?: Prisma.AssetEmbeddingScalarFieldEnum | Prisma.AssetEmbeddingScalarFieldEnum[] +} + +/** + * AssetEmbedding findFirstOrThrow + */ +export type AssetEmbeddingFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetEmbedding + */ + select?: Prisma.AssetEmbeddingSelect | null + /** + * Omit specific fields from the AssetEmbedding + */ + omit?: Prisma.AssetEmbeddingOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetEmbeddingInclude | null + /** + * Filter, which AssetEmbedding to fetch. + */ + where?: Prisma.AssetEmbeddingWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetEmbeddings to fetch. + */ + orderBy?: + | Prisma.AssetEmbeddingOrderByWithRelationInput + | Prisma.AssetEmbeddingOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AssetEmbeddings. + */ + cursor?: Prisma.AssetEmbeddingWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetEmbeddings from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetEmbeddings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AssetEmbeddings. + */ + distinct?: Prisma.AssetEmbeddingScalarFieldEnum | Prisma.AssetEmbeddingScalarFieldEnum[] +} + +/** + * AssetEmbedding findMany + */ +export type AssetEmbeddingFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetEmbedding + */ + select?: Prisma.AssetEmbeddingSelect | null + /** + * Omit specific fields from the AssetEmbedding + */ + omit?: Prisma.AssetEmbeddingOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetEmbeddingInclude | null + /** + * Filter, which AssetEmbeddings to fetch. + */ + where?: Prisma.AssetEmbeddingWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetEmbeddings to fetch. + */ + orderBy?: + | Prisma.AssetEmbeddingOrderByWithRelationInput + | Prisma.AssetEmbeddingOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing AssetEmbeddings. + */ + cursor?: Prisma.AssetEmbeddingWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetEmbeddings from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetEmbeddings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AssetEmbeddings. + */ + distinct?: Prisma.AssetEmbeddingScalarFieldEnum | Prisma.AssetEmbeddingScalarFieldEnum[] +} + +/** + * AssetEmbedding create + */ +export type AssetEmbeddingCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetEmbedding + */ + select?: Prisma.AssetEmbeddingSelect | null + /** + * Omit specific fields from the AssetEmbedding + */ + omit?: Prisma.AssetEmbeddingOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetEmbeddingInclude | null + /** + * The data needed to create a AssetEmbedding. + */ + data: Prisma.XOR +} + +/** + * AssetEmbedding createMany + */ +export type AssetEmbeddingCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many AssetEmbeddings. + */ + data: Prisma.AssetEmbeddingCreateManyInput | Prisma.AssetEmbeddingCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * AssetEmbedding createManyAndReturn + */ +export type AssetEmbeddingCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetEmbedding + */ + select?: Prisma.AssetEmbeddingSelectCreateManyAndReturn | null + /** + * Omit specific fields from the AssetEmbedding + */ + omit?: Prisma.AssetEmbeddingOmit | null + /** + * The data used to create many AssetEmbeddings. + */ + data: Prisma.AssetEmbeddingCreateManyInput | Prisma.AssetEmbeddingCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetEmbeddingIncludeCreateManyAndReturn | null +} + +/** + * AssetEmbedding update + */ +export type AssetEmbeddingUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetEmbedding + */ + select?: Prisma.AssetEmbeddingSelect | null + /** + * Omit specific fields from the AssetEmbedding + */ + omit?: Prisma.AssetEmbeddingOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetEmbeddingInclude | null + /** + * The data needed to update a AssetEmbedding. + */ + data: Prisma.XOR + /** + * Choose, which AssetEmbedding to update. + */ + where: Prisma.AssetEmbeddingWhereUniqueInput +} + +/** + * AssetEmbedding updateMany + */ +export type AssetEmbeddingUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update AssetEmbeddings. + */ + data: Prisma.XOR< + Prisma.AssetEmbeddingUpdateManyMutationInput, + Prisma.AssetEmbeddingUncheckedUpdateManyInput + > + /** + * Filter which AssetEmbeddings to update + */ + where?: Prisma.AssetEmbeddingWhereInput + /** + * Limit how many AssetEmbeddings to update. + */ + limit?: number +} + +/** + * AssetEmbedding updateManyAndReturn + */ +export type AssetEmbeddingUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetEmbedding + */ + select?: Prisma.AssetEmbeddingSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the AssetEmbedding + */ + omit?: Prisma.AssetEmbeddingOmit | null + /** + * The data used to update AssetEmbeddings. + */ + data: Prisma.XOR< + Prisma.AssetEmbeddingUpdateManyMutationInput, + Prisma.AssetEmbeddingUncheckedUpdateManyInput + > + /** + * Filter which AssetEmbeddings to update + */ + where?: Prisma.AssetEmbeddingWhereInput + /** + * Limit how many AssetEmbeddings to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetEmbeddingIncludeUpdateManyAndReturn | null +} + +/** + * AssetEmbedding upsert + */ +export type AssetEmbeddingUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetEmbedding + */ + select?: Prisma.AssetEmbeddingSelect | null + /** + * Omit specific fields from the AssetEmbedding + */ + omit?: Prisma.AssetEmbeddingOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetEmbeddingInclude | null + /** + * The filter to search for the AssetEmbedding to update in case it exists. + */ + where: Prisma.AssetEmbeddingWhereUniqueInput + /** + * In case the AssetEmbedding found by the `where` argument doesn't exist, create a new AssetEmbedding with this data. + */ + create: Prisma.XOR + /** + * In case the AssetEmbedding was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * AssetEmbedding delete + */ +export type AssetEmbeddingDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetEmbedding + */ + select?: Prisma.AssetEmbeddingSelect | null + /** + * Omit specific fields from the AssetEmbedding + */ + omit?: Prisma.AssetEmbeddingOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetEmbeddingInclude | null + /** + * Filter which AssetEmbedding to delete. + */ + where: Prisma.AssetEmbeddingWhereUniqueInput +} + +/** + * AssetEmbedding deleteMany + */ +export type AssetEmbeddingDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AssetEmbeddings to delete + */ + where?: Prisma.AssetEmbeddingWhereInput + /** + * Limit how many AssetEmbeddings to delete. + */ + limit?: number +} + +/** + * AssetEmbedding without action + */ +export type AssetEmbeddingDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetEmbedding + */ + select?: Prisma.AssetEmbeddingSelect | null + /** + * Omit specific fields from the AssetEmbedding + */ + omit?: Prisma.AssetEmbeddingOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetEmbeddingInclude | null +} diff --git a/packages/db/src/generated/prisma/models/AssetMetadataValue.ts b/packages/db/src/generated/prisma/models/AssetMetadataValue.ts new file mode 100644 index 00000000..885c5f6b --- /dev/null +++ b/packages/db/src/generated/prisma/models/AssetMetadataValue.ts @@ -0,0 +1,1839 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `AssetMetadataValue` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model AssetMetadataValue + * + */ +export type AssetMetadataValueModel = + runtime.Types.Result.DefaultSelection + +export type AggregateAssetMetadataValue = { + _count: AssetMetadataValueCountAggregateOutputType | null + _avg: AssetMetadataValueAvgAggregateOutputType | null + _sum: AssetMetadataValueSumAggregateOutputType | null + _min: AssetMetadataValueMinAggregateOutputType | null + _max: AssetMetadataValueMaxAggregateOutputType | null +} + +export type AssetMetadataValueAvgAggregateOutputType = { + numberValue: number | null +} + +export type AssetMetadataValueSumAggregateOutputType = { + numberValue: number | null +} + +export type AssetMetadataValueMinAggregateOutputType = { + id: string | null + assetId: string | null + fieldKey: string | null + stringValue: string | null + numberValue: number | null + booleanValue: boolean | null + dateValue: Date | null +} + +export type AssetMetadataValueMaxAggregateOutputType = { + id: string | null + assetId: string | null + fieldKey: string | null + stringValue: string | null + numberValue: number | null + booleanValue: boolean | null + dateValue: Date | null +} + +export type AssetMetadataValueCountAggregateOutputType = { + id: number + assetId: number + fieldKey: number + stringValue: number + numberValue: number + booleanValue: number + jsonValue: number + dateValue: number + _all: number +} + +export type AssetMetadataValueAvgAggregateInputType = { + numberValue?: true +} + +export type AssetMetadataValueSumAggregateInputType = { + numberValue?: true +} + +export type AssetMetadataValueMinAggregateInputType = { + id?: true + assetId?: true + fieldKey?: true + stringValue?: true + numberValue?: true + booleanValue?: true + dateValue?: true +} + +export type AssetMetadataValueMaxAggregateInputType = { + id?: true + assetId?: true + fieldKey?: true + stringValue?: true + numberValue?: true + booleanValue?: true + dateValue?: true +} + +export type AssetMetadataValueCountAggregateInputType = { + id?: true + assetId?: true + fieldKey?: true + stringValue?: true + numberValue?: true + booleanValue?: true + jsonValue?: true + dateValue?: true + _all?: true +} + +export type AssetMetadataValueAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AssetMetadataValue to aggregate. + */ + where?: Prisma.AssetMetadataValueWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetMetadataValues to fetch. + */ + orderBy?: + | Prisma.AssetMetadataValueOrderByWithRelationInput + | Prisma.AssetMetadataValueOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AssetMetadataValueWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetMetadataValues from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetMetadataValues. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned AssetMetadataValues + **/ + _count?: true | AssetMetadataValueCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: AssetMetadataValueAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: AssetMetadataValueSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AssetMetadataValueMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AssetMetadataValueMaxAggregateInputType +} + +export type GetAssetMetadataValueAggregateType = { + [P in keyof T & keyof AggregateAssetMetadataValue]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type AssetMetadataValueGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetMetadataValueWhereInput + orderBy?: + | Prisma.AssetMetadataValueOrderByWithAggregationInput + | Prisma.AssetMetadataValueOrderByWithAggregationInput[] + by: Prisma.AssetMetadataValueScalarFieldEnum[] | Prisma.AssetMetadataValueScalarFieldEnum + having?: Prisma.AssetMetadataValueScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AssetMetadataValueCountAggregateInputType | true + _avg?: AssetMetadataValueAvgAggregateInputType + _sum?: AssetMetadataValueSumAggregateInputType + _min?: AssetMetadataValueMinAggregateInputType + _max?: AssetMetadataValueMaxAggregateInputType +} + +export type AssetMetadataValueGroupByOutputType = { + id: string + assetId: string + fieldKey: string + stringValue: string | null + numberValue: number | null + booleanValue: boolean | null + jsonValue: unknown | null + dateValue: Date | null + _count: AssetMetadataValueCountAggregateOutputType | null + _avg: AssetMetadataValueAvgAggregateOutputType | null + _sum: AssetMetadataValueSumAggregateOutputType | null + _min: AssetMetadataValueMinAggregateOutputType | null + _max: AssetMetadataValueMaxAggregateOutputType | null +} + +export type GetAssetMetadataValueGroupByPayload = + Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof AssetMetadataValueGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + +export type AssetMetadataValueWhereInput = { + AND?: Prisma.AssetMetadataValueWhereInput | Prisma.AssetMetadataValueWhereInput[] + OR?: Prisma.AssetMetadataValueWhereInput[] + NOT?: Prisma.AssetMetadataValueWhereInput | Prisma.AssetMetadataValueWhereInput[] + id?: Prisma.StringFilter<'AssetMetadataValue'> | string + assetId?: Prisma.StringFilter<'AssetMetadataValue'> | string + fieldKey?: Prisma.StringFilter<'AssetMetadataValue'> | string + stringValue?: Prisma.StringNullableFilter<'AssetMetadataValue'> | string | null + numberValue?: Prisma.FloatNullableFilter<'AssetMetadataValue'> | number | null + booleanValue?: Prisma.BoolNullableFilter<'AssetMetadataValue'> | boolean | null + jsonValue?: Prisma.JsonNullableFilter<'AssetMetadataValue'> + dateValue?: Prisma.DateTimeNullableFilter<'AssetMetadataValue'> | Date | string | null + asset?: Prisma.XOR +} + +export type AssetMetadataValueOrderByWithRelationInput = { + id?: Prisma.SortOrder + assetId?: Prisma.SortOrder + fieldKey?: Prisma.SortOrder + stringValue?: Prisma.SortOrderInput | Prisma.SortOrder + numberValue?: Prisma.SortOrderInput | Prisma.SortOrder + booleanValue?: Prisma.SortOrderInput | Prisma.SortOrder + jsonValue?: Prisma.SortOrderInput | Prisma.SortOrder + dateValue?: Prisma.SortOrderInput | Prisma.SortOrder + asset?: Prisma.AssetOrderByWithRelationInput +} + +export type AssetMetadataValueWhereUniqueInput = Prisma.AtLeast< + { + id?: string + assetId_fieldKey?: Prisma.AssetMetadataValueAssetIdFieldKeyCompoundUniqueInput + AND?: Prisma.AssetMetadataValueWhereInput | Prisma.AssetMetadataValueWhereInput[] + OR?: Prisma.AssetMetadataValueWhereInput[] + NOT?: Prisma.AssetMetadataValueWhereInput | Prisma.AssetMetadataValueWhereInput[] + assetId?: Prisma.StringFilter<'AssetMetadataValue'> | string + fieldKey?: Prisma.StringFilter<'AssetMetadataValue'> | string + stringValue?: Prisma.StringNullableFilter<'AssetMetadataValue'> | string | null + numberValue?: Prisma.FloatNullableFilter<'AssetMetadataValue'> | number | null + booleanValue?: Prisma.BoolNullableFilter<'AssetMetadataValue'> | boolean | null + jsonValue?: Prisma.JsonNullableFilter<'AssetMetadataValue'> + dateValue?: Prisma.DateTimeNullableFilter<'AssetMetadataValue'> | Date | string | null + asset?: Prisma.XOR + }, + 'id' | 'assetId_fieldKey' +> + +export type AssetMetadataValueOrderByWithAggregationInput = { + id?: Prisma.SortOrder + assetId?: Prisma.SortOrder + fieldKey?: Prisma.SortOrder + stringValue?: Prisma.SortOrderInput | Prisma.SortOrder + numberValue?: Prisma.SortOrderInput | Prisma.SortOrder + booleanValue?: Prisma.SortOrderInput | Prisma.SortOrder + jsonValue?: Prisma.SortOrderInput | Prisma.SortOrder + dateValue?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.AssetMetadataValueCountOrderByAggregateInput + _avg?: Prisma.AssetMetadataValueAvgOrderByAggregateInput + _max?: Prisma.AssetMetadataValueMaxOrderByAggregateInput + _min?: Prisma.AssetMetadataValueMinOrderByAggregateInput + _sum?: Prisma.AssetMetadataValueSumOrderByAggregateInput +} + +export type AssetMetadataValueScalarWhereWithAggregatesInput = { + AND?: + | Prisma.AssetMetadataValueScalarWhereWithAggregatesInput + | Prisma.AssetMetadataValueScalarWhereWithAggregatesInput[] + OR?: Prisma.AssetMetadataValueScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.AssetMetadataValueScalarWhereWithAggregatesInput + | Prisma.AssetMetadataValueScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'AssetMetadataValue'> | string + assetId?: Prisma.StringWithAggregatesFilter<'AssetMetadataValue'> | string + fieldKey?: Prisma.StringWithAggregatesFilter<'AssetMetadataValue'> | string + stringValue?: Prisma.StringNullableWithAggregatesFilter<'AssetMetadataValue'> | string | null + numberValue?: Prisma.FloatNullableWithAggregatesFilter<'AssetMetadataValue'> | number | null + booleanValue?: Prisma.BoolNullableWithAggregatesFilter<'AssetMetadataValue'> | boolean | null + jsonValue?: Prisma.JsonNullableWithAggregatesFilter<'AssetMetadataValue'> + dateValue?: + | Prisma.DateTimeNullableWithAggregatesFilter<'AssetMetadataValue'> + | Date + | string + | null +} + +export type AssetMetadataValueCreateInput = { + id?: string + fieldKey: string + stringValue?: string | null + numberValue?: number | null + booleanValue?: boolean | null + jsonValue?: unknown | Prisma.NullableJsonNullValueInput + dateValue?: Date | string | null + asset: Prisma.AssetCreateNestedOneWithoutMetadataValuesInput +} + +export type AssetMetadataValueUncheckedCreateInput = { + id?: string + assetId: string + fieldKey: string + stringValue?: string | null + numberValue?: number | null + booleanValue?: boolean | null + jsonValue?: unknown | Prisma.NullableJsonNullValueInput + dateValue?: Date | string | null +} + +export type AssetMetadataValueUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + fieldKey?: Prisma.StringFieldUpdateOperationsInput | string + stringValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + numberValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + booleanValue?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + jsonValue?: unknown | Prisma.NullableJsonNullValueInput + dateValue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + asset?: Prisma.AssetUpdateOneRequiredWithoutMetadataValuesNestedInput +} + +export type AssetMetadataValueUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string + fieldKey?: Prisma.StringFieldUpdateOperationsInput | string + stringValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + numberValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + booleanValue?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + jsonValue?: unknown | Prisma.NullableJsonNullValueInput + dateValue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type AssetMetadataValueCreateManyInput = { + id?: string + assetId: string + fieldKey: string + stringValue?: string | null + numberValue?: number | null + booleanValue?: boolean | null + jsonValue?: unknown | Prisma.NullableJsonNullValueInput + dateValue?: Date | string | null +} + +export type AssetMetadataValueUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + fieldKey?: Prisma.StringFieldUpdateOperationsInput | string + stringValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + numberValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + booleanValue?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + jsonValue?: unknown | Prisma.NullableJsonNullValueInput + dateValue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type AssetMetadataValueUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + assetId?: Prisma.StringFieldUpdateOperationsInput | string + fieldKey?: Prisma.StringFieldUpdateOperationsInput | string + stringValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + numberValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + booleanValue?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + jsonValue?: unknown | Prisma.NullableJsonNullValueInput + dateValue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type AssetMetadataValueListRelationFilter = { + every?: Prisma.AssetMetadataValueWhereInput + some?: Prisma.AssetMetadataValueWhereInput + none?: Prisma.AssetMetadataValueWhereInput +} + +export type AssetMetadataValueOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AssetMetadataValueAssetIdFieldKeyCompoundUniqueInput = { + assetId: string + fieldKey: string +} + +export type AssetMetadataValueCountOrderByAggregateInput = { + id?: Prisma.SortOrder + assetId?: Prisma.SortOrder + fieldKey?: Prisma.SortOrder + stringValue?: Prisma.SortOrder + numberValue?: Prisma.SortOrder + booleanValue?: Prisma.SortOrder + jsonValue?: Prisma.SortOrder + dateValue?: Prisma.SortOrder +} + +export type AssetMetadataValueAvgOrderByAggregateInput = { + numberValue?: Prisma.SortOrder +} + +export type AssetMetadataValueMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + assetId?: Prisma.SortOrder + fieldKey?: Prisma.SortOrder + stringValue?: Prisma.SortOrder + numberValue?: Prisma.SortOrder + booleanValue?: Prisma.SortOrder + dateValue?: Prisma.SortOrder +} + +export type AssetMetadataValueMinOrderByAggregateInput = { + id?: Prisma.SortOrder + assetId?: Prisma.SortOrder + fieldKey?: Prisma.SortOrder + stringValue?: Prisma.SortOrder + numberValue?: Prisma.SortOrder + booleanValue?: Prisma.SortOrder + dateValue?: Prisma.SortOrder +} + +export type AssetMetadataValueSumOrderByAggregateInput = { + numberValue?: Prisma.SortOrder +} + +export type AssetMetadataValueCreateNestedManyWithoutAssetInput = { + create?: + | Prisma.XOR< + Prisma.AssetMetadataValueCreateWithoutAssetInput, + Prisma.AssetMetadataValueUncheckedCreateWithoutAssetInput + > + | Prisma.AssetMetadataValueCreateWithoutAssetInput[] + | Prisma.AssetMetadataValueUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetMetadataValueCreateOrConnectWithoutAssetInput + | Prisma.AssetMetadataValueCreateOrConnectWithoutAssetInput[] + createMany?: Prisma.AssetMetadataValueCreateManyAssetInputEnvelope + connect?: Prisma.AssetMetadataValueWhereUniqueInput | Prisma.AssetMetadataValueWhereUniqueInput[] +} + +export type AssetMetadataValueUncheckedCreateNestedManyWithoutAssetInput = { + create?: + | Prisma.XOR< + Prisma.AssetMetadataValueCreateWithoutAssetInput, + Prisma.AssetMetadataValueUncheckedCreateWithoutAssetInput + > + | Prisma.AssetMetadataValueCreateWithoutAssetInput[] + | Prisma.AssetMetadataValueUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetMetadataValueCreateOrConnectWithoutAssetInput + | Prisma.AssetMetadataValueCreateOrConnectWithoutAssetInput[] + createMany?: Prisma.AssetMetadataValueCreateManyAssetInputEnvelope + connect?: Prisma.AssetMetadataValueWhereUniqueInput | Prisma.AssetMetadataValueWhereUniqueInput[] +} + +export type AssetMetadataValueUpdateManyWithoutAssetNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetMetadataValueCreateWithoutAssetInput, + Prisma.AssetMetadataValueUncheckedCreateWithoutAssetInput + > + | Prisma.AssetMetadataValueCreateWithoutAssetInput[] + | Prisma.AssetMetadataValueUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetMetadataValueCreateOrConnectWithoutAssetInput + | Prisma.AssetMetadataValueCreateOrConnectWithoutAssetInput[] + upsert?: + | Prisma.AssetMetadataValueUpsertWithWhereUniqueWithoutAssetInput + | Prisma.AssetMetadataValueUpsertWithWhereUniqueWithoutAssetInput[] + createMany?: Prisma.AssetMetadataValueCreateManyAssetInputEnvelope + set?: Prisma.AssetMetadataValueWhereUniqueInput | Prisma.AssetMetadataValueWhereUniqueInput[] + disconnect?: + | Prisma.AssetMetadataValueWhereUniqueInput + | Prisma.AssetMetadataValueWhereUniqueInput[] + delete?: Prisma.AssetMetadataValueWhereUniqueInput | Prisma.AssetMetadataValueWhereUniqueInput[] + connect?: Prisma.AssetMetadataValueWhereUniqueInput | Prisma.AssetMetadataValueWhereUniqueInput[] + update?: + | Prisma.AssetMetadataValueUpdateWithWhereUniqueWithoutAssetInput + | Prisma.AssetMetadataValueUpdateWithWhereUniqueWithoutAssetInput[] + updateMany?: + | Prisma.AssetMetadataValueUpdateManyWithWhereWithoutAssetInput + | Prisma.AssetMetadataValueUpdateManyWithWhereWithoutAssetInput[] + deleteMany?: + | Prisma.AssetMetadataValueScalarWhereInput + | Prisma.AssetMetadataValueScalarWhereInput[] +} + +export type AssetMetadataValueUncheckedUpdateManyWithoutAssetNestedInput = { + create?: + | Prisma.XOR< + Prisma.AssetMetadataValueCreateWithoutAssetInput, + Prisma.AssetMetadataValueUncheckedCreateWithoutAssetInput + > + | Prisma.AssetMetadataValueCreateWithoutAssetInput[] + | Prisma.AssetMetadataValueUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.AssetMetadataValueCreateOrConnectWithoutAssetInput + | Prisma.AssetMetadataValueCreateOrConnectWithoutAssetInput[] + upsert?: + | Prisma.AssetMetadataValueUpsertWithWhereUniqueWithoutAssetInput + | Prisma.AssetMetadataValueUpsertWithWhereUniqueWithoutAssetInput[] + createMany?: Prisma.AssetMetadataValueCreateManyAssetInputEnvelope + set?: Prisma.AssetMetadataValueWhereUniqueInput | Prisma.AssetMetadataValueWhereUniqueInput[] + disconnect?: + | Prisma.AssetMetadataValueWhereUniqueInput + | Prisma.AssetMetadataValueWhereUniqueInput[] + delete?: Prisma.AssetMetadataValueWhereUniqueInput | Prisma.AssetMetadataValueWhereUniqueInput[] + connect?: Prisma.AssetMetadataValueWhereUniqueInput | Prisma.AssetMetadataValueWhereUniqueInput[] + update?: + | Prisma.AssetMetadataValueUpdateWithWhereUniqueWithoutAssetInput + | Prisma.AssetMetadataValueUpdateWithWhereUniqueWithoutAssetInput[] + updateMany?: + | Prisma.AssetMetadataValueUpdateManyWithWhereWithoutAssetInput + | Prisma.AssetMetadataValueUpdateManyWithWhereWithoutAssetInput[] + deleteMany?: + | Prisma.AssetMetadataValueScalarWhereInput + | Prisma.AssetMetadataValueScalarWhereInput[] +} + +export type NullableFloatFieldUpdateOperationsInput = { + set?: number | null + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type NullableBoolFieldUpdateOperationsInput = { + set?: boolean | null +} + +export type AssetMetadataValueCreateWithoutAssetInput = { + id?: string + fieldKey: string + stringValue?: string | null + numberValue?: number | null + booleanValue?: boolean | null + jsonValue?: unknown | Prisma.NullableJsonNullValueInput + dateValue?: Date | string | null +} + +export type AssetMetadataValueUncheckedCreateWithoutAssetInput = { + id?: string + fieldKey: string + stringValue?: string | null + numberValue?: number | null + booleanValue?: boolean | null + jsonValue?: unknown | Prisma.NullableJsonNullValueInput + dateValue?: Date | string | null +} + +export type AssetMetadataValueCreateOrConnectWithoutAssetInput = { + where: Prisma.AssetMetadataValueWhereUniqueInput + create: Prisma.XOR< + Prisma.AssetMetadataValueCreateWithoutAssetInput, + Prisma.AssetMetadataValueUncheckedCreateWithoutAssetInput + > +} + +export type AssetMetadataValueCreateManyAssetInputEnvelope = { + data: + | Prisma.AssetMetadataValueCreateManyAssetInput + | Prisma.AssetMetadataValueCreateManyAssetInput[] + skipDuplicates?: boolean +} + +export type AssetMetadataValueUpsertWithWhereUniqueWithoutAssetInput = { + where: Prisma.AssetMetadataValueWhereUniqueInput + update: Prisma.XOR< + Prisma.AssetMetadataValueUpdateWithoutAssetInput, + Prisma.AssetMetadataValueUncheckedUpdateWithoutAssetInput + > + create: Prisma.XOR< + Prisma.AssetMetadataValueCreateWithoutAssetInput, + Prisma.AssetMetadataValueUncheckedCreateWithoutAssetInput + > +} + +export type AssetMetadataValueUpdateWithWhereUniqueWithoutAssetInput = { + where: Prisma.AssetMetadataValueWhereUniqueInput + data: Prisma.XOR< + Prisma.AssetMetadataValueUpdateWithoutAssetInput, + Prisma.AssetMetadataValueUncheckedUpdateWithoutAssetInput + > +} + +export type AssetMetadataValueUpdateManyWithWhereWithoutAssetInput = { + where: Prisma.AssetMetadataValueScalarWhereInput + data: Prisma.XOR< + Prisma.AssetMetadataValueUpdateManyMutationInput, + Prisma.AssetMetadataValueUncheckedUpdateManyWithoutAssetInput + > +} + +export type AssetMetadataValueScalarWhereInput = { + AND?: Prisma.AssetMetadataValueScalarWhereInput | Prisma.AssetMetadataValueScalarWhereInput[] + OR?: Prisma.AssetMetadataValueScalarWhereInput[] + NOT?: Prisma.AssetMetadataValueScalarWhereInput | Prisma.AssetMetadataValueScalarWhereInput[] + id?: Prisma.StringFilter<'AssetMetadataValue'> | string + assetId?: Prisma.StringFilter<'AssetMetadataValue'> | string + fieldKey?: Prisma.StringFilter<'AssetMetadataValue'> | string + stringValue?: Prisma.StringNullableFilter<'AssetMetadataValue'> | string | null + numberValue?: Prisma.FloatNullableFilter<'AssetMetadataValue'> | number | null + booleanValue?: Prisma.BoolNullableFilter<'AssetMetadataValue'> | boolean | null + jsonValue?: Prisma.JsonNullableFilter<'AssetMetadataValue'> + dateValue?: Prisma.DateTimeNullableFilter<'AssetMetadataValue'> | Date | string | null +} + +export type AssetMetadataValueCreateManyAssetInput = { + id?: string + fieldKey: string + stringValue?: string | null + numberValue?: number | null + booleanValue?: boolean | null + jsonValue?: unknown | Prisma.NullableJsonNullValueInput + dateValue?: Date | string | null +} + +export type AssetMetadataValueUpdateWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + fieldKey?: Prisma.StringFieldUpdateOperationsInput | string + stringValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + numberValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + booleanValue?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + jsonValue?: unknown | Prisma.NullableJsonNullValueInput + dateValue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type AssetMetadataValueUncheckedUpdateWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + fieldKey?: Prisma.StringFieldUpdateOperationsInput | string + stringValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + numberValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + booleanValue?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + jsonValue?: unknown | Prisma.NullableJsonNullValueInput + dateValue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type AssetMetadataValueUncheckedUpdateManyWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + fieldKey?: Prisma.StringFieldUpdateOperationsInput | string + stringValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + numberValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + booleanValue?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + jsonValue?: unknown | Prisma.NullableJsonNullValueInput + dateValue?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type AssetMetadataValueSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + assetId?: boolean + fieldKey?: boolean + stringValue?: boolean + numberValue?: boolean + booleanValue?: boolean + jsonValue?: boolean + dateValue?: boolean + asset?: boolean | Prisma.AssetDefaultArgs + }, + ExtArgs['result']['assetMetadataValue'] +> + +export type AssetMetadataValueSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + assetId?: boolean + fieldKey?: boolean + stringValue?: boolean + numberValue?: boolean + booleanValue?: boolean + jsonValue?: boolean + dateValue?: boolean + asset?: boolean | Prisma.AssetDefaultArgs + }, + ExtArgs['result']['assetMetadataValue'] +> + +export type AssetMetadataValueSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + assetId?: boolean + fieldKey?: boolean + stringValue?: boolean + numberValue?: boolean + booleanValue?: boolean + jsonValue?: boolean + dateValue?: boolean + asset?: boolean | Prisma.AssetDefaultArgs + }, + ExtArgs['result']['assetMetadataValue'] +> + +export type AssetMetadataValueSelectScalar = { + id?: boolean + assetId?: boolean + fieldKey?: boolean + stringValue?: boolean + numberValue?: boolean + booleanValue?: boolean + jsonValue?: boolean + dateValue?: boolean +} + +export type AssetMetadataValueOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'assetId' + | 'fieldKey' + | 'stringValue' + | 'numberValue' + | 'booleanValue' + | 'jsonValue' + | 'dateValue', + ExtArgs['result']['assetMetadataValue'] +> +export type AssetMetadataValueInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + asset?: boolean | Prisma.AssetDefaultArgs +} +export type AssetMetadataValueIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + asset?: boolean | Prisma.AssetDefaultArgs +} +export type AssetMetadataValueIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + asset?: boolean | Prisma.AssetDefaultArgs +} + +export type $AssetMetadataValuePayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'AssetMetadataValue' + objects: { + asset: Prisma.$AssetPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + assetId: string + fieldKey: string + stringValue: string | null + numberValue: number | null + booleanValue: boolean | null + jsonValue: unknown | null + dateValue: Date | null + }, + ExtArgs['result']['assetMetadataValue'] + > + composites: {} +} + +export type AssetMetadataValueGetPayload< + S extends boolean | null | undefined | AssetMetadataValueDefaultArgs, +> = runtime.Types.Result.GetResult + +export type AssetMetadataValueCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: AssetMetadataValueCountAggregateInputType | true +} + +export interface AssetMetadataValueDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['AssetMetadataValue'] + meta: { name: 'AssetMetadataValue' } + } + /** + * Find zero or one AssetMetadataValue that matches the filter. + * @param {AssetMetadataValueFindUniqueArgs} args - Arguments to find a AssetMetadataValue + * @example + * // Get one AssetMetadataValue + * const assetMetadataValue = await prisma.assetMetadataValue.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetMetadataValueClient< + runtime.Types.Result.GetResult< + Prisma.$AssetMetadataValuePayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one AssetMetadataValue that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AssetMetadataValueFindUniqueOrThrowArgs} args - Arguments to find a AssetMetadataValue + * @example + * // Get one AssetMetadataValue + * const assetMetadataValue = await prisma.assetMetadataValue.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetMetadataValueClient< + runtime.Types.Result.GetResult< + Prisma.$AssetMetadataValuePayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AssetMetadataValue that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetMetadataValueFindFirstArgs} args - Arguments to find a AssetMetadataValue + * @example + * // Get one AssetMetadataValue + * const assetMetadataValue = await prisma.assetMetadataValue.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetMetadataValueClient< + runtime.Types.Result.GetResult< + Prisma.$AssetMetadataValuePayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AssetMetadataValue that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetMetadataValueFindFirstOrThrowArgs} args - Arguments to find a AssetMetadataValue + * @example + * // Get one AssetMetadataValue + * const assetMetadataValue = await prisma.assetMetadataValue.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetMetadataValueClient< + runtime.Types.Result.GetResult< + Prisma.$AssetMetadataValuePayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more AssetMetadataValues that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetMetadataValueFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all AssetMetadataValues + * const assetMetadataValues = await prisma.assetMetadataValue.findMany() + * + * // Get first 10 AssetMetadataValues + * const assetMetadataValues = await prisma.assetMetadataValue.findMany({ take: 10 }) + * + * // Only select the `id` + * const assetMetadataValueWithIdOnly = await prisma.assetMetadataValue.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetMetadataValuePayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a AssetMetadataValue. + * @param {AssetMetadataValueCreateArgs} args - Arguments to create a AssetMetadataValue. + * @example + * // Create one AssetMetadataValue + * const AssetMetadataValue = await prisma.assetMetadataValue.create({ + * data: { + * // ... data to create a AssetMetadataValue + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetMetadataValueClient< + runtime.Types.Result.GetResult< + Prisma.$AssetMetadataValuePayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many AssetMetadataValues. + * @param {AssetMetadataValueCreateManyArgs} args - Arguments to create many AssetMetadataValues. + * @example + * // Create many AssetMetadataValues + * const assetMetadataValue = await prisma.assetMetadataValue.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many AssetMetadataValues and returns the data saved in the database. + * @param {AssetMetadataValueCreateManyAndReturnArgs} args - Arguments to create many AssetMetadataValues. + * @example + * // Create many AssetMetadataValues + * const assetMetadataValue = await prisma.assetMetadataValue.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many AssetMetadataValues and only return the `id` + * const assetMetadataValueWithIdOnly = await prisma.assetMetadataValue.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetMetadataValuePayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a AssetMetadataValue. + * @param {AssetMetadataValueDeleteArgs} args - Arguments to delete one AssetMetadataValue. + * @example + * // Delete one AssetMetadataValue + * const AssetMetadataValue = await prisma.assetMetadataValue.delete({ + * where: { + * // ... filter to delete one AssetMetadataValue + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetMetadataValueClient< + runtime.Types.Result.GetResult< + Prisma.$AssetMetadataValuePayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one AssetMetadataValue. + * @param {AssetMetadataValueUpdateArgs} args - Arguments to update one AssetMetadataValue. + * @example + * // Update one AssetMetadataValue + * const assetMetadataValue = await prisma.assetMetadataValue.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetMetadataValueClient< + runtime.Types.Result.GetResult< + Prisma.$AssetMetadataValuePayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more AssetMetadataValues. + * @param {AssetMetadataValueDeleteManyArgs} args - Arguments to filter AssetMetadataValues to delete. + * @example + * // Delete a few AssetMetadataValues + * const { count } = await prisma.assetMetadataValue.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AssetMetadataValues. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetMetadataValueUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many AssetMetadataValues + * const assetMetadataValue = await prisma.assetMetadataValue.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AssetMetadataValues and returns the data updated in the database. + * @param {AssetMetadataValueUpdateManyAndReturnArgs} args - Arguments to update many AssetMetadataValues. + * @example + * // Update many AssetMetadataValues + * const assetMetadataValue = await prisma.assetMetadataValue.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more AssetMetadataValues and only return the `id` + * const assetMetadataValueWithIdOnly = await prisma.assetMetadataValue.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AssetMetadataValuePayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one AssetMetadataValue. + * @param {AssetMetadataValueUpsertArgs} args - Arguments to update or create a AssetMetadataValue. + * @example + * // Update or create a AssetMetadataValue + * const assetMetadataValue = await prisma.assetMetadataValue.upsert({ + * create: { + * // ... data to create a AssetMetadataValue + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the AssetMetadataValue we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AssetMetadataValueClient< + runtime.Types.Result.GetResult< + Prisma.$AssetMetadataValuePayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of AssetMetadataValues. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetMetadataValueCountArgs} args - Arguments to filter AssetMetadataValues to count. + * @example + * // Count the number of AssetMetadataValues + * const count = await prisma.assetMetadataValue.count({ + * where: { + * // ... the filter for the AssetMetadataValues we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a AssetMetadataValue. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetMetadataValueAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by AssetMetadataValue. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AssetMetadataValueGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends AssetMetadataValueGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AssetMetadataValueGroupByArgs['orderBy'] } + : { orderBy?: AssetMetadataValueGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors + ? GetAssetMetadataValueGroupByPayload + : Prisma.PrismaPromise + /** + * Fields of the AssetMetadataValue model + */ + readonly fields: AssetMetadataValueFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for AssetMetadataValue. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__AssetMetadataValueClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + asset = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AssetClient< + | runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the AssetMetadataValue model + */ +export interface AssetMetadataValueFieldRefs { + readonly id: Prisma.FieldRef<'AssetMetadataValue', 'String'> + readonly assetId: Prisma.FieldRef<'AssetMetadataValue', 'String'> + readonly fieldKey: Prisma.FieldRef<'AssetMetadataValue', 'String'> + readonly stringValue: Prisma.FieldRef<'AssetMetadataValue', 'String'> + readonly numberValue: Prisma.FieldRef<'AssetMetadataValue', 'Float'> + readonly booleanValue: Prisma.FieldRef<'AssetMetadataValue', 'Boolean'> + readonly jsonValue: Prisma.FieldRef<'AssetMetadataValue', 'Json'> + readonly dateValue: Prisma.FieldRef<'AssetMetadataValue', 'DateTime'> +} + +// Custom InputTypes +/** + * AssetMetadataValue findUnique + */ +export type AssetMetadataValueFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetMetadataValue + */ + select?: Prisma.AssetMetadataValueSelect | null + /** + * Omit specific fields from the AssetMetadataValue + */ + omit?: Prisma.AssetMetadataValueOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetMetadataValueInclude | null + /** + * Filter, which AssetMetadataValue to fetch. + */ + where: Prisma.AssetMetadataValueWhereUniqueInput +} + +/** + * AssetMetadataValue findUniqueOrThrow + */ +export type AssetMetadataValueFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetMetadataValue + */ + select?: Prisma.AssetMetadataValueSelect | null + /** + * Omit specific fields from the AssetMetadataValue + */ + omit?: Prisma.AssetMetadataValueOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetMetadataValueInclude | null + /** + * Filter, which AssetMetadataValue to fetch. + */ + where: Prisma.AssetMetadataValueWhereUniqueInput +} + +/** + * AssetMetadataValue findFirst + */ +export type AssetMetadataValueFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetMetadataValue + */ + select?: Prisma.AssetMetadataValueSelect | null + /** + * Omit specific fields from the AssetMetadataValue + */ + omit?: Prisma.AssetMetadataValueOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetMetadataValueInclude | null + /** + * Filter, which AssetMetadataValue to fetch. + */ + where?: Prisma.AssetMetadataValueWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetMetadataValues to fetch. + */ + orderBy?: + | Prisma.AssetMetadataValueOrderByWithRelationInput + | Prisma.AssetMetadataValueOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AssetMetadataValues. + */ + cursor?: Prisma.AssetMetadataValueWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetMetadataValues from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetMetadataValues. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AssetMetadataValues. + */ + distinct?: Prisma.AssetMetadataValueScalarFieldEnum | Prisma.AssetMetadataValueScalarFieldEnum[] +} + +/** + * AssetMetadataValue findFirstOrThrow + */ +export type AssetMetadataValueFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetMetadataValue + */ + select?: Prisma.AssetMetadataValueSelect | null + /** + * Omit specific fields from the AssetMetadataValue + */ + omit?: Prisma.AssetMetadataValueOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetMetadataValueInclude | null + /** + * Filter, which AssetMetadataValue to fetch. + */ + where?: Prisma.AssetMetadataValueWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetMetadataValues to fetch. + */ + orderBy?: + | Prisma.AssetMetadataValueOrderByWithRelationInput + | Prisma.AssetMetadataValueOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AssetMetadataValues. + */ + cursor?: Prisma.AssetMetadataValueWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetMetadataValues from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetMetadataValues. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AssetMetadataValues. + */ + distinct?: Prisma.AssetMetadataValueScalarFieldEnum | Prisma.AssetMetadataValueScalarFieldEnum[] +} + +/** + * AssetMetadataValue findMany + */ +export type AssetMetadataValueFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetMetadataValue + */ + select?: Prisma.AssetMetadataValueSelect | null + /** + * Omit specific fields from the AssetMetadataValue + */ + omit?: Prisma.AssetMetadataValueOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetMetadataValueInclude | null + /** + * Filter, which AssetMetadataValues to fetch. + */ + where?: Prisma.AssetMetadataValueWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AssetMetadataValues to fetch. + */ + orderBy?: + | Prisma.AssetMetadataValueOrderByWithRelationInput + | Prisma.AssetMetadataValueOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing AssetMetadataValues. + */ + cursor?: Prisma.AssetMetadataValueWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AssetMetadataValues from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AssetMetadataValues. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AssetMetadataValues. + */ + distinct?: Prisma.AssetMetadataValueScalarFieldEnum | Prisma.AssetMetadataValueScalarFieldEnum[] +} + +/** + * AssetMetadataValue create + */ +export type AssetMetadataValueCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetMetadataValue + */ + select?: Prisma.AssetMetadataValueSelect | null + /** + * Omit specific fields from the AssetMetadataValue + */ + omit?: Prisma.AssetMetadataValueOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetMetadataValueInclude | null + /** + * The data needed to create a AssetMetadataValue. + */ + data: Prisma.XOR< + Prisma.AssetMetadataValueCreateInput, + Prisma.AssetMetadataValueUncheckedCreateInput + > +} + +/** + * AssetMetadataValue createMany + */ +export type AssetMetadataValueCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many AssetMetadataValues. + */ + data: Prisma.AssetMetadataValueCreateManyInput | Prisma.AssetMetadataValueCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * AssetMetadataValue createManyAndReturn + */ +export type AssetMetadataValueCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetMetadataValue + */ + select?: Prisma.AssetMetadataValueSelectCreateManyAndReturn | null + /** + * Omit specific fields from the AssetMetadataValue + */ + omit?: Prisma.AssetMetadataValueOmit | null + /** + * The data used to create many AssetMetadataValues. + */ + data: Prisma.AssetMetadataValueCreateManyInput | Prisma.AssetMetadataValueCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetMetadataValueIncludeCreateManyAndReturn | null +} + +/** + * AssetMetadataValue update + */ +export type AssetMetadataValueUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetMetadataValue + */ + select?: Prisma.AssetMetadataValueSelect | null + /** + * Omit specific fields from the AssetMetadataValue + */ + omit?: Prisma.AssetMetadataValueOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetMetadataValueInclude | null + /** + * The data needed to update a AssetMetadataValue. + */ + data: Prisma.XOR< + Prisma.AssetMetadataValueUpdateInput, + Prisma.AssetMetadataValueUncheckedUpdateInput + > + /** + * Choose, which AssetMetadataValue to update. + */ + where: Prisma.AssetMetadataValueWhereUniqueInput +} + +/** + * AssetMetadataValue updateMany + */ +export type AssetMetadataValueUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update AssetMetadataValues. + */ + data: Prisma.XOR< + Prisma.AssetMetadataValueUpdateManyMutationInput, + Prisma.AssetMetadataValueUncheckedUpdateManyInput + > + /** + * Filter which AssetMetadataValues to update + */ + where?: Prisma.AssetMetadataValueWhereInput + /** + * Limit how many AssetMetadataValues to update. + */ + limit?: number +} + +/** + * AssetMetadataValue updateManyAndReturn + */ +export type AssetMetadataValueUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetMetadataValue + */ + select?: Prisma.AssetMetadataValueSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the AssetMetadataValue + */ + omit?: Prisma.AssetMetadataValueOmit | null + /** + * The data used to update AssetMetadataValues. + */ + data: Prisma.XOR< + Prisma.AssetMetadataValueUpdateManyMutationInput, + Prisma.AssetMetadataValueUncheckedUpdateManyInput + > + /** + * Filter which AssetMetadataValues to update + */ + where?: Prisma.AssetMetadataValueWhereInput + /** + * Limit how many AssetMetadataValues to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetMetadataValueIncludeUpdateManyAndReturn | null +} + +/** + * AssetMetadataValue upsert + */ +export type AssetMetadataValueUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetMetadataValue + */ + select?: Prisma.AssetMetadataValueSelect | null + /** + * Omit specific fields from the AssetMetadataValue + */ + omit?: Prisma.AssetMetadataValueOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetMetadataValueInclude | null + /** + * The filter to search for the AssetMetadataValue to update in case it exists. + */ + where: Prisma.AssetMetadataValueWhereUniqueInput + /** + * In case the AssetMetadataValue found by the `where` argument doesn't exist, create a new AssetMetadataValue with this data. + */ + create: Prisma.XOR< + Prisma.AssetMetadataValueCreateInput, + Prisma.AssetMetadataValueUncheckedCreateInput + > + /** + * In case the AssetMetadataValue was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR< + Prisma.AssetMetadataValueUpdateInput, + Prisma.AssetMetadataValueUncheckedUpdateInput + > +} + +/** + * AssetMetadataValue delete + */ +export type AssetMetadataValueDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetMetadataValue + */ + select?: Prisma.AssetMetadataValueSelect | null + /** + * Omit specific fields from the AssetMetadataValue + */ + omit?: Prisma.AssetMetadataValueOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetMetadataValueInclude | null + /** + * Filter which AssetMetadataValue to delete. + */ + where: Prisma.AssetMetadataValueWhereUniqueInput +} + +/** + * AssetMetadataValue deleteMany + */ +export type AssetMetadataValueDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AssetMetadataValues to delete + */ + where?: Prisma.AssetMetadataValueWhereInput + /** + * Limit how many AssetMetadataValues to delete. + */ + limit?: number +} + +/** + * AssetMetadataValue without action + */ +export type AssetMetadataValueDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetMetadataValue + */ + select?: Prisma.AssetMetadataValueSelect | null + /** + * Omit specific fields from the AssetMetadataValue + */ + omit?: Prisma.AssetMetadataValueOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetMetadataValueInclude | null +} diff --git a/packages/db/src/generated/prisma/models/AuthToken.ts b/packages/db/src/generated/prisma/models/AuthToken.ts new file mode 100644 index 00000000..75350b7d --- /dev/null +++ b/packages/db/src/generated/prisma/models/AuthToken.ts @@ -0,0 +1,1669 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `AuthToken` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model AuthToken + * + */ +export type AuthTokenModel = runtime.Types.Result.DefaultSelection + +export type AggregateAuthToken = { + _count: AuthTokenCountAggregateOutputType | null + _min: AuthTokenMinAggregateOutputType | null + _max: AuthTokenMaxAggregateOutputType | null +} + +export type AuthTokenMinAggregateOutputType = { + id: string | null + accessToken: string | null + refreshToken: string | null + accessTokenExpiresAt: Date | null + refreshTokenExpiresAt: Date | null + userId: string | null +} + +export type AuthTokenMaxAggregateOutputType = { + id: string | null + accessToken: string | null + refreshToken: string | null + accessTokenExpiresAt: Date | null + refreshTokenExpiresAt: Date | null + userId: string | null +} + +export type AuthTokenCountAggregateOutputType = { + id: number + accessToken: number + refreshToken: number + accessTokenExpiresAt: number + refreshTokenExpiresAt: number + userId: number + _all: number +} + +export type AuthTokenMinAggregateInputType = { + id?: true + accessToken?: true + refreshToken?: true + accessTokenExpiresAt?: true + refreshTokenExpiresAt?: true + userId?: true +} + +export type AuthTokenMaxAggregateInputType = { + id?: true + accessToken?: true + refreshToken?: true + accessTokenExpiresAt?: true + refreshTokenExpiresAt?: true + userId?: true +} + +export type AuthTokenCountAggregateInputType = { + id?: true + accessToken?: true + refreshToken?: true + accessTokenExpiresAt?: true + refreshTokenExpiresAt?: true + userId?: true + _all?: true +} + +export type AuthTokenAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AuthToken to aggregate. + */ + where?: Prisma.AuthTokenWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AuthTokens to fetch. + */ + orderBy?: Prisma.AuthTokenOrderByWithRelationInput | Prisma.AuthTokenOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AuthTokenWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AuthTokens from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AuthTokens. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned AuthTokens + **/ + _count?: true | AuthTokenCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AuthTokenMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AuthTokenMaxAggregateInputType +} + +export type GetAuthTokenAggregateType = { + [P in keyof T & keyof AggregateAuthToken]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type AuthTokenGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AuthTokenWhereInput + orderBy?: + | Prisma.AuthTokenOrderByWithAggregationInput + | Prisma.AuthTokenOrderByWithAggregationInput[] + by: Prisma.AuthTokenScalarFieldEnum[] | Prisma.AuthTokenScalarFieldEnum + having?: Prisma.AuthTokenScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AuthTokenCountAggregateInputType | true + _min?: AuthTokenMinAggregateInputType + _max?: AuthTokenMaxAggregateInputType +} + +export type AuthTokenGroupByOutputType = { + id: string + accessToken: string + refreshToken: string + accessTokenExpiresAt: Date + refreshTokenExpiresAt: Date + userId: string + _count: AuthTokenCountAggregateOutputType | null + _min: AuthTokenMinAggregateOutputType | null + _max: AuthTokenMaxAggregateOutputType | null +} + +export type GetAuthTokenGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof AuthTokenGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type AuthTokenWhereInput = { + AND?: Prisma.AuthTokenWhereInput | Prisma.AuthTokenWhereInput[] + OR?: Prisma.AuthTokenWhereInput[] + NOT?: Prisma.AuthTokenWhereInput | Prisma.AuthTokenWhereInput[] + id?: Prisma.StringFilter<'AuthToken'> | string + accessToken?: Prisma.StringFilter<'AuthToken'> | string + refreshToken?: Prisma.StringFilter<'AuthToken'> | string + accessTokenExpiresAt?: Prisma.DateTimeFilter<'AuthToken'> | Date | string + refreshTokenExpiresAt?: Prisma.DateTimeFilter<'AuthToken'> | Date | string + userId?: Prisma.StringFilter<'AuthToken'> | string + user?: Prisma.XOR +} + +export type AuthTokenOrderByWithRelationInput = { + id?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrder + userId?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput +} + +export type AuthTokenWhereUniqueInput = Prisma.AtLeast< + { + id?: string + accessToken?: string + refreshToken?: string + AND?: Prisma.AuthTokenWhereInput | Prisma.AuthTokenWhereInput[] + OR?: Prisma.AuthTokenWhereInput[] + NOT?: Prisma.AuthTokenWhereInput | Prisma.AuthTokenWhereInput[] + accessTokenExpiresAt?: Prisma.DateTimeFilter<'AuthToken'> | Date | string + refreshTokenExpiresAt?: Prisma.DateTimeFilter<'AuthToken'> | Date | string + userId?: Prisma.StringFilter<'AuthToken'> | string + user?: Prisma.XOR + }, + 'id' | 'accessToken' | 'refreshToken' +> + +export type AuthTokenOrderByWithAggregationInput = { + id?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrder + userId?: Prisma.SortOrder + _count?: Prisma.AuthTokenCountOrderByAggregateInput + _max?: Prisma.AuthTokenMaxOrderByAggregateInput + _min?: Prisma.AuthTokenMinOrderByAggregateInput +} + +export type AuthTokenScalarWhereWithAggregatesInput = { + AND?: + | Prisma.AuthTokenScalarWhereWithAggregatesInput + | Prisma.AuthTokenScalarWhereWithAggregatesInput[] + OR?: Prisma.AuthTokenScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.AuthTokenScalarWhereWithAggregatesInput + | Prisma.AuthTokenScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'AuthToken'> | string + accessToken?: Prisma.StringWithAggregatesFilter<'AuthToken'> | string + refreshToken?: Prisma.StringWithAggregatesFilter<'AuthToken'> | string + accessTokenExpiresAt?: Prisma.DateTimeWithAggregatesFilter<'AuthToken'> | Date | string + refreshTokenExpiresAt?: Prisma.DateTimeWithAggregatesFilter<'AuthToken'> | Date | string + userId?: Prisma.StringWithAggregatesFilter<'AuthToken'> | string +} + +export type AuthTokenCreateInput = { + id?: string + accessToken: string + refreshToken: string + accessTokenExpiresAt: Date | string + refreshTokenExpiresAt: Date | string + user: Prisma.UserCreateNestedOneWithoutAuthTokensInput +} + +export type AuthTokenUncheckedCreateInput = { + id?: string + accessToken: string + refreshToken: string + accessTokenExpiresAt: Date | string + refreshTokenExpiresAt: Date | string + userId: string +} + +export type AuthTokenUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.StringFieldUpdateOperationsInput | string + refreshToken?: Prisma.StringFieldUpdateOperationsInput | string + accessTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refreshTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutAuthTokensNestedInput +} + +export type AuthTokenUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.StringFieldUpdateOperationsInput | string + refreshToken?: Prisma.StringFieldUpdateOperationsInput | string + accessTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refreshTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + userId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AuthTokenCreateManyInput = { + id?: string + accessToken: string + refreshToken: string + accessTokenExpiresAt: Date | string + refreshTokenExpiresAt: Date | string + userId: string +} + +export type AuthTokenUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.StringFieldUpdateOperationsInput | string + refreshToken?: Prisma.StringFieldUpdateOperationsInput | string + accessTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refreshTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AuthTokenUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.StringFieldUpdateOperationsInput | string + refreshToken?: Prisma.StringFieldUpdateOperationsInput | string + accessTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refreshTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + userId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AuthTokenListRelationFilter = { + every?: Prisma.AuthTokenWhereInput + some?: Prisma.AuthTokenWhereInput + none?: Prisma.AuthTokenWhereInput +} + +export type AuthTokenOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AuthTokenCountOrderByAggregateInput = { + id?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type AuthTokenMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type AuthTokenMinOrderByAggregateInput = { + id?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type AuthTokenCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.AuthTokenCreateWithoutUserInput, + Prisma.AuthTokenUncheckedCreateWithoutUserInput + > + | Prisma.AuthTokenCreateWithoutUserInput[] + | Prisma.AuthTokenUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.AuthTokenCreateOrConnectWithoutUserInput + | Prisma.AuthTokenCreateOrConnectWithoutUserInput[] + createMany?: Prisma.AuthTokenCreateManyUserInputEnvelope + connect?: Prisma.AuthTokenWhereUniqueInput | Prisma.AuthTokenWhereUniqueInput[] +} + +export type AuthTokenUncheckedCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.AuthTokenCreateWithoutUserInput, + Prisma.AuthTokenUncheckedCreateWithoutUserInput + > + | Prisma.AuthTokenCreateWithoutUserInput[] + | Prisma.AuthTokenUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.AuthTokenCreateOrConnectWithoutUserInput + | Prisma.AuthTokenCreateOrConnectWithoutUserInput[] + createMany?: Prisma.AuthTokenCreateManyUserInputEnvelope + connect?: Prisma.AuthTokenWhereUniqueInput | Prisma.AuthTokenWhereUniqueInput[] +} + +export type AuthTokenUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.AuthTokenCreateWithoutUserInput, + Prisma.AuthTokenUncheckedCreateWithoutUserInput + > + | Prisma.AuthTokenCreateWithoutUserInput[] + | Prisma.AuthTokenUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.AuthTokenCreateOrConnectWithoutUserInput + | Prisma.AuthTokenCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.AuthTokenUpsertWithWhereUniqueWithoutUserInput + | Prisma.AuthTokenUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.AuthTokenCreateManyUserInputEnvelope + set?: Prisma.AuthTokenWhereUniqueInput | Prisma.AuthTokenWhereUniqueInput[] + disconnect?: Prisma.AuthTokenWhereUniqueInput | Prisma.AuthTokenWhereUniqueInput[] + delete?: Prisma.AuthTokenWhereUniqueInput | Prisma.AuthTokenWhereUniqueInput[] + connect?: Prisma.AuthTokenWhereUniqueInput | Prisma.AuthTokenWhereUniqueInput[] + update?: + | Prisma.AuthTokenUpdateWithWhereUniqueWithoutUserInput + | Prisma.AuthTokenUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.AuthTokenUpdateManyWithWhereWithoutUserInput + | Prisma.AuthTokenUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.AuthTokenScalarWhereInput | Prisma.AuthTokenScalarWhereInput[] +} + +export type AuthTokenUncheckedUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.AuthTokenCreateWithoutUserInput, + Prisma.AuthTokenUncheckedCreateWithoutUserInput + > + | Prisma.AuthTokenCreateWithoutUserInput[] + | Prisma.AuthTokenUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.AuthTokenCreateOrConnectWithoutUserInput + | Prisma.AuthTokenCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.AuthTokenUpsertWithWhereUniqueWithoutUserInput + | Prisma.AuthTokenUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.AuthTokenCreateManyUserInputEnvelope + set?: Prisma.AuthTokenWhereUniqueInput | Prisma.AuthTokenWhereUniqueInput[] + disconnect?: Prisma.AuthTokenWhereUniqueInput | Prisma.AuthTokenWhereUniqueInput[] + delete?: Prisma.AuthTokenWhereUniqueInput | Prisma.AuthTokenWhereUniqueInput[] + connect?: Prisma.AuthTokenWhereUniqueInput | Prisma.AuthTokenWhereUniqueInput[] + update?: + | Prisma.AuthTokenUpdateWithWhereUniqueWithoutUserInput + | Prisma.AuthTokenUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.AuthTokenUpdateManyWithWhereWithoutUserInput + | Prisma.AuthTokenUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.AuthTokenScalarWhereInput | Prisma.AuthTokenScalarWhereInput[] +} + +export type AuthTokenCreateWithoutUserInput = { + id?: string + accessToken: string + refreshToken: string + accessTokenExpiresAt: Date | string + refreshTokenExpiresAt: Date | string +} + +export type AuthTokenUncheckedCreateWithoutUserInput = { + id?: string + accessToken: string + refreshToken: string + accessTokenExpiresAt: Date | string + refreshTokenExpiresAt: Date | string +} + +export type AuthTokenCreateOrConnectWithoutUserInput = { + where: Prisma.AuthTokenWhereUniqueInput + create: Prisma.XOR< + Prisma.AuthTokenCreateWithoutUserInput, + Prisma.AuthTokenUncheckedCreateWithoutUserInput + > +} + +export type AuthTokenCreateManyUserInputEnvelope = { + data: Prisma.AuthTokenCreateManyUserInput | Prisma.AuthTokenCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type AuthTokenUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.AuthTokenWhereUniqueInput + update: Prisma.XOR< + Prisma.AuthTokenUpdateWithoutUserInput, + Prisma.AuthTokenUncheckedUpdateWithoutUserInput + > + create: Prisma.XOR< + Prisma.AuthTokenCreateWithoutUserInput, + Prisma.AuthTokenUncheckedCreateWithoutUserInput + > +} + +export type AuthTokenUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.AuthTokenWhereUniqueInput + data: Prisma.XOR< + Prisma.AuthTokenUpdateWithoutUserInput, + Prisma.AuthTokenUncheckedUpdateWithoutUserInput + > +} + +export type AuthTokenUpdateManyWithWhereWithoutUserInput = { + where: Prisma.AuthTokenScalarWhereInput + data: Prisma.XOR< + Prisma.AuthTokenUpdateManyMutationInput, + Prisma.AuthTokenUncheckedUpdateManyWithoutUserInput + > +} + +export type AuthTokenScalarWhereInput = { + AND?: Prisma.AuthTokenScalarWhereInput | Prisma.AuthTokenScalarWhereInput[] + OR?: Prisma.AuthTokenScalarWhereInput[] + NOT?: Prisma.AuthTokenScalarWhereInput | Prisma.AuthTokenScalarWhereInput[] + id?: Prisma.StringFilter<'AuthToken'> | string + accessToken?: Prisma.StringFilter<'AuthToken'> | string + refreshToken?: Prisma.StringFilter<'AuthToken'> | string + accessTokenExpiresAt?: Prisma.DateTimeFilter<'AuthToken'> | Date | string + refreshTokenExpiresAt?: Prisma.DateTimeFilter<'AuthToken'> | Date | string + userId?: Prisma.StringFilter<'AuthToken'> | string +} + +export type AuthTokenCreateManyUserInput = { + id?: string + accessToken: string + refreshToken: string + accessTokenExpiresAt: Date | string + refreshTokenExpiresAt: Date | string +} + +export type AuthTokenUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.StringFieldUpdateOperationsInput | string + refreshToken?: Prisma.StringFieldUpdateOperationsInput | string + accessTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refreshTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AuthTokenUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.StringFieldUpdateOperationsInput | string + refreshToken?: Prisma.StringFieldUpdateOperationsInput | string + accessTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refreshTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AuthTokenUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.StringFieldUpdateOperationsInput | string + refreshToken?: Prisma.StringFieldUpdateOperationsInput | string + accessTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refreshTokenExpiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AuthTokenSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + accessToken?: boolean + refreshToken?: boolean + accessTokenExpiresAt?: boolean + refreshTokenExpiresAt?: boolean + userId?: boolean + user?: boolean | Prisma.UserDefaultArgs + }, + ExtArgs['result']['authToken'] +> + +export type AuthTokenSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + accessToken?: boolean + refreshToken?: boolean + accessTokenExpiresAt?: boolean + refreshTokenExpiresAt?: boolean + userId?: boolean + user?: boolean | Prisma.UserDefaultArgs + }, + ExtArgs['result']['authToken'] +> + +export type AuthTokenSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + accessToken?: boolean + refreshToken?: boolean + accessTokenExpiresAt?: boolean + refreshTokenExpiresAt?: boolean + userId?: boolean + user?: boolean | Prisma.UserDefaultArgs + }, + ExtArgs['result']['authToken'] +> + +export type AuthTokenSelectScalar = { + id?: boolean + accessToken?: boolean + refreshToken?: boolean + accessTokenExpiresAt?: boolean + refreshTokenExpiresAt?: boolean + userId?: boolean +} + +export type AuthTokenOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'accessToken' + | 'refreshToken' + | 'accessTokenExpiresAt' + | 'refreshTokenExpiresAt' + | 'userId', + ExtArgs['result']['authToken'] +> +export type AuthTokenInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs +} +export type AuthTokenIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs +} +export type AuthTokenIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs +} + +export type $AuthTokenPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'AuthToken' + objects: { + user: Prisma.$UserPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + accessToken: string + refreshToken: string + accessTokenExpiresAt: Date + refreshTokenExpiresAt: Date + userId: string + }, + ExtArgs['result']['authToken'] + > + composites: {} +} + +export type AuthTokenGetPayload = + runtime.Types.Result.GetResult + +export type AuthTokenCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: AuthTokenCountAggregateInputType | true +} + +export interface AuthTokenDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['AuthToken']; meta: { name: 'AuthToken' } } + /** + * Find zero or one AuthToken that matches the filter. + * @param {AuthTokenFindUniqueArgs} args - Arguments to find a AuthToken + * @example + * // Get one AuthToken + * const authToken = await prisma.authToken.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AuthTokenClient< + runtime.Types.Result.GetResult< + Prisma.$AuthTokenPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one AuthToken that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AuthTokenFindUniqueOrThrowArgs} args - Arguments to find a AuthToken + * @example + * // Get one AuthToken + * const authToken = await prisma.authToken.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AuthTokenClient< + runtime.Types.Result.GetResult< + Prisma.$AuthTokenPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AuthToken that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AuthTokenFindFirstArgs} args - Arguments to find a AuthToken + * @example + * // Get one AuthToken + * const authToken = await prisma.authToken.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AuthTokenClient< + runtime.Types.Result.GetResult< + Prisma.$AuthTokenPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first AuthToken that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AuthTokenFindFirstOrThrowArgs} args - Arguments to find a AuthToken + * @example + * // Get one AuthToken + * const authToken = await prisma.authToken.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__AuthTokenClient< + runtime.Types.Result.GetResult< + Prisma.$AuthTokenPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more AuthTokens that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AuthTokenFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all AuthTokens + * const authTokens = await prisma.authToken.findMany() + * + * // Get first 10 AuthTokens + * const authTokens = await prisma.authToken.findMany({ take: 10 }) + * + * // Only select the `id` + * const authTokenWithIdOnly = await prisma.authToken.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AuthTokenPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a AuthToken. + * @param {AuthTokenCreateArgs} args - Arguments to create a AuthToken. + * @example + * // Create one AuthToken + * const AuthToken = await prisma.authToken.create({ + * data: { + * // ... data to create a AuthToken + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AuthTokenClient< + runtime.Types.Result.GetResult< + Prisma.$AuthTokenPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many AuthTokens. + * @param {AuthTokenCreateManyArgs} args - Arguments to create many AuthTokens. + * @example + * // Create many AuthTokens + * const authToken = await prisma.authToken.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many AuthTokens and returns the data saved in the database. + * @param {AuthTokenCreateManyAndReturnArgs} args - Arguments to create many AuthTokens. + * @example + * // Create many AuthTokens + * const authToken = await prisma.authToken.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many AuthTokens and only return the `id` + * const authTokenWithIdOnly = await prisma.authToken.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AuthTokenPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a AuthToken. + * @param {AuthTokenDeleteArgs} args - Arguments to delete one AuthToken. + * @example + * // Delete one AuthToken + * const AuthToken = await prisma.authToken.delete({ + * where: { + * // ... filter to delete one AuthToken + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AuthTokenClient< + runtime.Types.Result.GetResult< + Prisma.$AuthTokenPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one AuthToken. + * @param {AuthTokenUpdateArgs} args - Arguments to update one AuthToken. + * @example + * // Update one AuthToken + * const authToken = await prisma.authToken.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AuthTokenClient< + runtime.Types.Result.GetResult< + Prisma.$AuthTokenPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more AuthTokens. + * @param {AuthTokenDeleteManyArgs} args - Arguments to filter AuthTokens to delete. + * @example + * // Delete a few AuthTokens + * const { count } = await prisma.authToken.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AuthTokens. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AuthTokenUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many AuthTokens + * const authToken = await prisma.authToken.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more AuthTokens and returns the data updated in the database. + * @param {AuthTokenUpdateManyAndReturnArgs} args - Arguments to update many AuthTokens. + * @example + * // Update many AuthTokens + * const authToken = await prisma.authToken.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more AuthTokens and only return the `id` + * const authTokenWithIdOnly = await prisma.authToken.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$AuthTokenPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one AuthToken. + * @param {AuthTokenUpsertArgs} args - Arguments to update or create a AuthToken. + * @example + * // Update or create a AuthToken + * const authToken = await prisma.authToken.upsert({ + * create: { + * // ... data to create a AuthToken + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the AuthToken we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__AuthTokenClient< + runtime.Types.Result.GetResult< + Prisma.$AuthTokenPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of AuthTokens. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AuthTokenCountArgs} args - Arguments to filter AuthTokens to count. + * @example + * // Count the number of AuthTokens + * const count = await prisma.authToken.count({ + * where: { + * // ... the filter for the AuthTokens we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a AuthToken. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AuthTokenAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by AuthToken. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AuthTokenGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends AuthTokenGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AuthTokenGroupByArgs['orderBy'] } + : { orderBy?: AuthTokenGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetAuthTokenGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the AuthToken model + */ + readonly fields: AuthTokenFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for AuthToken. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__AuthTokenClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + user = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__UserClient< + | runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the AuthToken model + */ +export interface AuthTokenFieldRefs { + readonly id: Prisma.FieldRef<'AuthToken', 'String'> + readonly accessToken: Prisma.FieldRef<'AuthToken', 'String'> + readonly refreshToken: Prisma.FieldRef<'AuthToken', 'String'> + readonly accessTokenExpiresAt: Prisma.FieldRef<'AuthToken', 'DateTime'> + readonly refreshTokenExpiresAt: Prisma.FieldRef<'AuthToken', 'DateTime'> + readonly userId: Prisma.FieldRef<'AuthToken', 'String'> +} + +// Custom InputTypes +/** + * AuthToken findUnique + */ +export type AuthTokenFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AuthToken + */ + select?: Prisma.AuthTokenSelect | null + /** + * Omit specific fields from the AuthToken + */ + omit?: Prisma.AuthTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AuthTokenInclude | null + /** + * Filter, which AuthToken to fetch. + */ + where: Prisma.AuthTokenWhereUniqueInput +} + +/** + * AuthToken findUniqueOrThrow + */ +export type AuthTokenFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AuthToken + */ + select?: Prisma.AuthTokenSelect | null + /** + * Omit specific fields from the AuthToken + */ + omit?: Prisma.AuthTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AuthTokenInclude | null + /** + * Filter, which AuthToken to fetch. + */ + where: Prisma.AuthTokenWhereUniqueInput +} + +/** + * AuthToken findFirst + */ +export type AuthTokenFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AuthToken + */ + select?: Prisma.AuthTokenSelect | null + /** + * Omit specific fields from the AuthToken + */ + omit?: Prisma.AuthTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AuthTokenInclude | null + /** + * Filter, which AuthToken to fetch. + */ + where?: Prisma.AuthTokenWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AuthTokens to fetch. + */ + orderBy?: Prisma.AuthTokenOrderByWithRelationInput | Prisma.AuthTokenOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AuthTokens. + */ + cursor?: Prisma.AuthTokenWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AuthTokens from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AuthTokens. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AuthTokens. + */ + distinct?: Prisma.AuthTokenScalarFieldEnum | Prisma.AuthTokenScalarFieldEnum[] +} + +/** + * AuthToken findFirstOrThrow + */ +export type AuthTokenFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AuthToken + */ + select?: Prisma.AuthTokenSelect | null + /** + * Omit specific fields from the AuthToken + */ + omit?: Prisma.AuthTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AuthTokenInclude | null + /** + * Filter, which AuthToken to fetch. + */ + where?: Prisma.AuthTokenWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AuthTokens to fetch. + */ + orderBy?: Prisma.AuthTokenOrderByWithRelationInput | Prisma.AuthTokenOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AuthTokens. + */ + cursor?: Prisma.AuthTokenWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AuthTokens from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AuthTokens. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AuthTokens. + */ + distinct?: Prisma.AuthTokenScalarFieldEnum | Prisma.AuthTokenScalarFieldEnum[] +} + +/** + * AuthToken findMany + */ +export type AuthTokenFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AuthToken + */ + select?: Prisma.AuthTokenSelect | null + /** + * Omit specific fields from the AuthToken + */ + omit?: Prisma.AuthTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AuthTokenInclude | null + /** + * Filter, which AuthTokens to fetch. + */ + where?: Prisma.AuthTokenWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AuthTokens to fetch. + */ + orderBy?: Prisma.AuthTokenOrderByWithRelationInput | Prisma.AuthTokenOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing AuthTokens. + */ + cursor?: Prisma.AuthTokenWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` AuthTokens from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` AuthTokens. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AuthTokens. + */ + distinct?: Prisma.AuthTokenScalarFieldEnum | Prisma.AuthTokenScalarFieldEnum[] +} + +/** + * AuthToken create + */ +export type AuthTokenCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AuthToken + */ + select?: Prisma.AuthTokenSelect | null + /** + * Omit specific fields from the AuthToken + */ + omit?: Prisma.AuthTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AuthTokenInclude | null + /** + * The data needed to create a AuthToken. + */ + data: Prisma.XOR +} + +/** + * AuthToken createMany + */ +export type AuthTokenCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many AuthTokens. + */ + data: Prisma.AuthTokenCreateManyInput | Prisma.AuthTokenCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * AuthToken createManyAndReturn + */ +export type AuthTokenCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AuthToken + */ + select?: Prisma.AuthTokenSelectCreateManyAndReturn | null + /** + * Omit specific fields from the AuthToken + */ + omit?: Prisma.AuthTokenOmit | null + /** + * The data used to create many AuthTokens. + */ + data: Prisma.AuthTokenCreateManyInput | Prisma.AuthTokenCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AuthTokenIncludeCreateManyAndReturn | null +} + +/** + * AuthToken update + */ +export type AuthTokenUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AuthToken + */ + select?: Prisma.AuthTokenSelect | null + /** + * Omit specific fields from the AuthToken + */ + omit?: Prisma.AuthTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AuthTokenInclude | null + /** + * The data needed to update a AuthToken. + */ + data: Prisma.XOR + /** + * Choose, which AuthToken to update. + */ + where: Prisma.AuthTokenWhereUniqueInput +} + +/** + * AuthToken updateMany + */ +export type AuthTokenUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update AuthTokens. + */ + data: Prisma.XOR< + Prisma.AuthTokenUpdateManyMutationInput, + Prisma.AuthTokenUncheckedUpdateManyInput + > + /** + * Filter which AuthTokens to update + */ + where?: Prisma.AuthTokenWhereInput + /** + * Limit how many AuthTokens to update. + */ + limit?: number +} + +/** + * AuthToken updateManyAndReturn + */ +export type AuthTokenUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AuthToken + */ + select?: Prisma.AuthTokenSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the AuthToken + */ + omit?: Prisma.AuthTokenOmit | null + /** + * The data used to update AuthTokens. + */ + data: Prisma.XOR< + Prisma.AuthTokenUpdateManyMutationInput, + Prisma.AuthTokenUncheckedUpdateManyInput + > + /** + * Filter which AuthTokens to update + */ + where?: Prisma.AuthTokenWhereInput + /** + * Limit how many AuthTokens to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AuthTokenIncludeUpdateManyAndReturn | null +} + +/** + * AuthToken upsert + */ +export type AuthTokenUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AuthToken + */ + select?: Prisma.AuthTokenSelect | null + /** + * Omit specific fields from the AuthToken + */ + omit?: Prisma.AuthTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AuthTokenInclude | null + /** + * The filter to search for the AuthToken to update in case it exists. + */ + where: Prisma.AuthTokenWhereUniqueInput + /** + * In case the AuthToken found by the `where` argument doesn't exist, create a new AuthToken with this data. + */ + create: Prisma.XOR + /** + * In case the AuthToken was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * AuthToken delete + */ +export type AuthTokenDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AuthToken + */ + select?: Prisma.AuthTokenSelect | null + /** + * Omit specific fields from the AuthToken + */ + omit?: Prisma.AuthTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AuthTokenInclude | null + /** + * Filter which AuthToken to delete. + */ + where: Prisma.AuthTokenWhereUniqueInput +} + +/** + * AuthToken deleteMany + */ +export type AuthTokenDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which AuthTokens to delete + */ + where?: Prisma.AuthTokenWhereInput + /** + * Limit how many AuthTokens to delete. + */ + limit?: number +} + +/** + * AuthToken without action + */ +export type AuthTokenDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AuthToken + */ + select?: Prisma.AuthTokenSelect | null + /** + * Omit specific fields from the AuthToken + */ + omit?: Prisma.AuthTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AuthTokenInclude | null +} diff --git a/packages/db/src/generated/prisma/models/Collection.ts b/packages/db/src/generated/prisma/models/Collection.ts new file mode 100644 index 00000000..96a5793a --- /dev/null +++ b/packages/db/src/generated/prisma/models/Collection.ts @@ -0,0 +1,1664 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Collection` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Collection + * + */ +export type CollectionModel = runtime.Types.Result.DefaultSelection + +export type AggregateCollection = { + _count: CollectionCountAggregateOutputType | null + _min: CollectionMinAggregateOutputType | null + _max: CollectionMaxAggregateOutputType | null +} + +export type CollectionMinAggregateOutputType = { + id: string | null + name: string | null + createdAt: Date | null + updatedAt: Date | null + projectId: string | null +} + +export type CollectionMaxAggregateOutputType = { + id: string | null + name: string | null + createdAt: Date | null + updatedAt: Date | null + projectId: string | null +} + +export type CollectionCountAggregateOutputType = { + id: number + name: number + filter: PrismaJson.CollectionFilter + createdAt: number + updatedAt: number + projectId: number + _all: number +} + +export type CollectionMinAggregateInputType = { + id?: true + name?: true + createdAt?: true + updatedAt?: true + projectId?: true +} + +export type CollectionMaxAggregateInputType = { + id?: true + name?: true + createdAt?: true + updatedAt?: true + projectId?: true +} + +export type CollectionCountAggregateInputType = { + id?: true + name?: true + filter?: true + createdAt?: true + updatedAt?: true + projectId?: true + _all?: true +} + +export type CollectionAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Collection to aggregate. + */ + where?: Prisma.CollectionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Collections to fetch. + */ + orderBy?: Prisma.CollectionOrderByWithRelationInput | Prisma.CollectionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.CollectionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Collections from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Collections. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Collections + **/ + _count?: true | CollectionCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: CollectionMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: CollectionMaxAggregateInputType +} + +export type GetCollectionAggregateType = { + [P in keyof T & keyof AggregateCollection]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type CollectionGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.CollectionWhereInput + orderBy?: + | Prisma.CollectionOrderByWithAggregationInput + | Prisma.CollectionOrderByWithAggregationInput[] + by: Prisma.CollectionScalarFieldEnum[] | Prisma.CollectionScalarFieldEnum + having?: Prisma.CollectionScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: CollectionCountAggregateInputType | true + _min?: CollectionMinAggregateInputType + _max?: CollectionMaxAggregateInputType +} + +export type CollectionGroupByOutputType = { + id: string + name: string + filter: PrismaJson.CollectionFilter + createdAt: Date + updatedAt: Date + projectId: string + _count: CollectionCountAggregateOutputType | null + _min: CollectionMinAggregateOutputType | null + _max: CollectionMaxAggregateOutputType | null +} + +export type GetCollectionGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof CollectionGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type CollectionWhereInput = { + AND?: Prisma.CollectionWhereInput | Prisma.CollectionWhereInput[] + OR?: Prisma.CollectionWhereInput[] + NOT?: Prisma.CollectionWhereInput | Prisma.CollectionWhereInput[] + id?: Prisma.StringFilter<'Collection'> | string + name?: Prisma.StringFilter<'Collection'> | string + filter?: Prisma.JsonFilter<'Collection'> + createdAt?: Prisma.DateTimeFilter<'Collection'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Collection'> | Date | string + projectId?: Prisma.StringFilter<'Collection'> | string + project?: Prisma.XOR +} + +export type CollectionOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + filter?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + project?: Prisma.ProjectOrderByWithRelationInput +} + +export type CollectionWhereUniqueInput = Prisma.AtLeast< + { + id?: string + AND?: Prisma.CollectionWhereInput | Prisma.CollectionWhereInput[] + OR?: Prisma.CollectionWhereInput[] + NOT?: Prisma.CollectionWhereInput | Prisma.CollectionWhereInput[] + name?: Prisma.StringFilter<'Collection'> | string + filter?: Prisma.JsonFilter<'Collection'> + createdAt?: Prisma.DateTimeFilter<'Collection'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Collection'> | Date | string + projectId?: Prisma.StringFilter<'Collection'> | string + project?: Prisma.XOR + }, + 'id' +> + +export type CollectionOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + filter?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + _count?: Prisma.CollectionCountOrderByAggregateInput + _max?: Prisma.CollectionMaxOrderByAggregateInput + _min?: Prisma.CollectionMinOrderByAggregateInput +} + +export type CollectionScalarWhereWithAggregatesInput = { + AND?: + | Prisma.CollectionScalarWhereWithAggregatesInput + | Prisma.CollectionScalarWhereWithAggregatesInput[] + OR?: Prisma.CollectionScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.CollectionScalarWhereWithAggregatesInput + | Prisma.CollectionScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Collection'> | string + name?: Prisma.StringWithAggregatesFilter<'Collection'> | string + filter?: Prisma.JsonWithAggregatesFilter<'Collection'> + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Collection'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Collection'> | Date | string + projectId?: Prisma.StringWithAggregatesFilter<'Collection'> | string +} + +export type CollectionCreateInput = { + id?: string + name: string + filter: PrismaJson.CollectionFilter + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutCollectionsInput +} + +export type CollectionUncheckedCreateInput = { + id?: string + name: string + filter: PrismaJson.CollectionFilter + createdAt?: Date | string + updatedAt?: Date | string + projectId: string +} + +export type CollectionUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + filter?: PrismaJson.CollectionFilter + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutCollectionsNestedInput +} + +export type CollectionUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + filter?: PrismaJson.CollectionFilter + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type CollectionCreateManyInput = { + id?: string + name: string + filter: PrismaJson.CollectionFilter + createdAt?: Date | string + updatedAt?: Date | string + projectId: string +} + +export type CollectionUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + filter?: PrismaJson.CollectionFilter + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type CollectionUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + filter?: PrismaJson.CollectionFilter + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type CollectionListRelationFilter = { + every?: Prisma.CollectionWhereInput + some?: Prisma.CollectionWhereInput + none?: Prisma.CollectionWhereInput +} + +export type CollectionOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type CollectionCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + filter?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type CollectionMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type CollectionMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type CollectionCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.CollectionCreateWithoutProjectInput, + Prisma.CollectionUncheckedCreateWithoutProjectInput + > + | Prisma.CollectionCreateWithoutProjectInput[] + | Prisma.CollectionUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.CollectionCreateOrConnectWithoutProjectInput + | Prisma.CollectionCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.CollectionCreateManyProjectInputEnvelope + connect?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[] +} + +export type CollectionUncheckedCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.CollectionCreateWithoutProjectInput, + Prisma.CollectionUncheckedCreateWithoutProjectInput + > + | Prisma.CollectionCreateWithoutProjectInput[] + | Prisma.CollectionUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.CollectionCreateOrConnectWithoutProjectInput + | Prisma.CollectionCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.CollectionCreateManyProjectInputEnvelope + connect?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[] +} + +export type CollectionUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.CollectionCreateWithoutProjectInput, + Prisma.CollectionUncheckedCreateWithoutProjectInput + > + | Prisma.CollectionCreateWithoutProjectInput[] + | Prisma.CollectionUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.CollectionCreateOrConnectWithoutProjectInput + | Prisma.CollectionCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.CollectionUpsertWithWhereUniqueWithoutProjectInput + | Prisma.CollectionUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.CollectionCreateManyProjectInputEnvelope + set?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[] + disconnect?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[] + delete?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[] + connect?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[] + update?: + | Prisma.CollectionUpdateWithWhereUniqueWithoutProjectInput + | Prisma.CollectionUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.CollectionUpdateManyWithWhereWithoutProjectInput + | Prisma.CollectionUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.CollectionScalarWhereInput | Prisma.CollectionScalarWhereInput[] +} + +export type CollectionUncheckedUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.CollectionCreateWithoutProjectInput, + Prisma.CollectionUncheckedCreateWithoutProjectInput + > + | Prisma.CollectionCreateWithoutProjectInput[] + | Prisma.CollectionUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.CollectionCreateOrConnectWithoutProjectInput + | Prisma.CollectionCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.CollectionUpsertWithWhereUniqueWithoutProjectInput + | Prisma.CollectionUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.CollectionCreateManyProjectInputEnvelope + set?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[] + disconnect?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[] + delete?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[] + connect?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[] + update?: + | Prisma.CollectionUpdateWithWhereUniqueWithoutProjectInput + | Prisma.CollectionUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.CollectionUpdateManyWithWhereWithoutProjectInput + | Prisma.CollectionUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.CollectionScalarWhereInput | Prisma.CollectionScalarWhereInput[] +} + +export type CollectionCreateWithoutProjectInput = { + id?: string + name: string + filter: PrismaJson.CollectionFilter + createdAt?: Date | string + updatedAt?: Date | string +} + +export type CollectionUncheckedCreateWithoutProjectInput = { + id?: string + name: string + filter: PrismaJson.CollectionFilter + createdAt?: Date | string + updatedAt?: Date | string +} + +export type CollectionCreateOrConnectWithoutProjectInput = { + where: Prisma.CollectionWhereUniqueInput + create: Prisma.XOR< + Prisma.CollectionCreateWithoutProjectInput, + Prisma.CollectionUncheckedCreateWithoutProjectInput + > +} + +export type CollectionCreateManyProjectInputEnvelope = { + data: Prisma.CollectionCreateManyProjectInput | Prisma.CollectionCreateManyProjectInput[] + skipDuplicates?: boolean +} + +export type CollectionUpsertWithWhereUniqueWithoutProjectInput = { + where: Prisma.CollectionWhereUniqueInput + update: Prisma.XOR< + Prisma.CollectionUpdateWithoutProjectInput, + Prisma.CollectionUncheckedUpdateWithoutProjectInput + > + create: Prisma.XOR< + Prisma.CollectionCreateWithoutProjectInput, + Prisma.CollectionUncheckedCreateWithoutProjectInput + > +} + +export type CollectionUpdateWithWhereUniqueWithoutProjectInput = { + where: Prisma.CollectionWhereUniqueInput + data: Prisma.XOR< + Prisma.CollectionUpdateWithoutProjectInput, + Prisma.CollectionUncheckedUpdateWithoutProjectInput + > +} + +export type CollectionUpdateManyWithWhereWithoutProjectInput = { + where: Prisma.CollectionScalarWhereInput + data: Prisma.XOR< + Prisma.CollectionUpdateManyMutationInput, + Prisma.CollectionUncheckedUpdateManyWithoutProjectInput + > +} + +export type CollectionScalarWhereInput = { + AND?: Prisma.CollectionScalarWhereInput | Prisma.CollectionScalarWhereInput[] + OR?: Prisma.CollectionScalarWhereInput[] + NOT?: Prisma.CollectionScalarWhereInput | Prisma.CollectionScalarWhereInput[] + id?: Prisma.StringFilter<'Collection'> | string + name?: Prisma.StringFilter<'Collection'> | string + filter?: Prisma.JsonFilter<'Collection'> + createdAt?: Prisma.DateTimeFilter<'Collection'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Collection'> | Date | string + projectId?: Prisma.StringFilter<'Collection'> | string +} + +export type CollectionCreateManyProjectInput = { + id?: string + name: string + filter: PrismaJson.CollectionFilter + createdAt?: Date | string + updatedAt?: Date | string +} + +export type CollectionUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + filter?: PrismaJson.CollectionFilter + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type CollectionUncheckedUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + filter?: PrismaJson.CollectionFilter + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type CollectionUncheckedUpdateManyWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + filter?: PrismaJson.CollectionFilter + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type CollectionSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + filter?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + }, + ExtArgs['result']['collection'] +> + +export type CollectionSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + filter?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + }, + ExtArgs['result']['collection'] +> + +export type CollectionSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + filter?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + }, + ExtArgs['result']['collection'] +> + +export type CollectionSelectScalar = { + id?: boolean + name?: boolean + filter?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean +} + +export type CollectionOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'name' | 'filter' | 'createdAt' | 'updatedAt' | 'projectId', + ExtArgs['result']['collection'] +> +export type CollectionInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + project?: boolean | Prisma.ProjectDefaultArgs +} +export type CollectionIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + project?: boolean | Prisma.ProjectDefaultArgs +} +export type CollectionIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + project?: boolean | Prisma.ProjectDefaultArgs +} + +export type $CollectionPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Collection' + objects: { + project: Prisma.$ProjectPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + name: string + /** + * [CollectionFilter] + */ + filter: PrismaJson.CollectionFilter + createdAt: Date + updatedAt: Date + projectId: string + }, + ExtArgs['result']['collection'] + > + composites: {} +} + +export type CollectionGetPayload = + runtime.Types.Result.GetResult + +export type CollectionCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: CollectionCountAggregateInputType | true +} + +export interface CollectionDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['Collection'] + meta: { name: 'Collection' } + } + /** + * Find zero or one Collection that matches the filter. + * @param {CollectionFindUniqueArgs} args - Arguments to find a Collection + * @example + * // Get one Collection + * const collection = await prisma.collection.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__CollectionClient< + runtime.Types.Result.GetResult< + Prisma.$CollectionPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Collection that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {CollectionFindUniqueOrThrowArgs} args - Arguments to find a Collection + * @example + * // Get one Collection + * const collection = await prisma.collection.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__CollectionClient< + runtime.Types.Result.GetResult< + Prisma.$CollectionPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Collection that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {CollectionFindFirstArgs} args - Arguments to find a Collection + * @example + * // Get one Collection + * const collection = await prisma.collection.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__CollectionClient< + runtime.Types.Result.GetResult< + Prisma.$CollectionPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Collection that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {CollectionFindFirstOrThrowArgs} args - Arguments to find a Collection + * @example + * // Get one Collection + * const collection = await prisma.collection.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__CollectionClient< + runtime.Types.Result.GetResult< + Prisma.$CollectionPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Collections that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {CollectionFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Collections + * const collections = await prisma.collection.findMany() + * + * // Get first 10 Collections + * const collections = await prisma.collection.findMany({ take: 10 }) + * + * // Only select the `id` + * const collectionWithIdOnly = await prisma.collection.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$CollectionPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a Collection. + * @param {CollectionCreateArgs} args - Arguments to create a Collection. + * @example + * // Create one Collection + * const Collection = await prisma.collection.create({ + * data: { + * // ... data to create a Collection + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__CollectionClient< + runtime.Types.Result.GetResult< + Prisma.$CollectionPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Collections. + * @param {CollectionCreateManyArgs} args - Arguments to create many Collections. + * @example + * // Create many Collections + * const collection = await prisma.collection.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Collections and returns the data saved in the database. + * @param {CollectionCreateManyAndReturnArgs} args - Arguments to create many Collections. + * @example + * // Create many Collections + * const collection = await prisma.collection.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Collections and only return the `id` + * const collectionWithIdOnly = await prisma.collection.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$CollectionPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Collection. + * @param {CollectionDeleteArgs} args - Arguments to delete one Collection. + * @example + * // Delete one Collection + * const Collection = await prisma.collection.delete({ + * where: { + * // ... filter to delete one Collection + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__CollectionClient< + runtime.Types.Result.GetResult< + Prisma.$CollectionPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Collection. + * @param {CollectionUpdateArgs} args - Arguments to update one Collection. + * @example + * // Update one Collection + * const collection = await prisma.collection.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__CollectionClient< + runtime.Types.Result.GetResult< + Prisma.$CollectionPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Collections. + * @param {CollectionDeleteManyArgs} args - Arguments to filter Collections to delete. + * @example + * // Delete a few Collections + * const { count } = await prisma.collection.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Collections. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {CollectionUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Collections + * const collection = await prisma.collection.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Collections and returns the data updated in the database. + * @param {CollectionUpdateManyAndReturnArgs} args - Arguments to update many Collections. + * @example + * // Update many Collections + * const collection = await prisma.collection.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Collections and only return the `id` + * const collectionWithIdOnly = await prisma.collection.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$CollectionPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Collection. + * @param {CollectionUpsertArgs} args - Arguments to update or create a Collection. + * @example + * // Update or create a Collection + * const collection = await prisma.collection.upsert({ + * create: { + * // ... data to create a Collection + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Collection we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__CollectionClient< + runtime.Types.Result.GetResult< + Prisma.$CollectionPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Collections. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {CollectionCountArgs} args - Arguments to filter Collections to count. + * @example + * // Count the number of Collections + * const count = await prisma.collection.count({ + * where: { + * // ... the filter for the Collections we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Collection. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {CollectionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Collection. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {CollectionGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends CollectionGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: CollectionGroupByArgs['orderBy'] } + : { orderBy?: CollectionGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetCollectionGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Collection model + */ + readonly fields: CollectionFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Collection. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__CollectionClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + project = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ProjectClient< + | runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Collection model + */ +export interface CollectionFieldRefs { + readonly id: Prisma.FieldRef<'Collection', 'String'> + readonly name: Prisma.FieldRef<'Collection', 'String'> + readonly filter: Prisma.FieldRef<'Collection', 'Json'> + readonly createdAt: Prisma.FieldRef<'Collection', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Collection', 'DateTime'> + readonly projectId: Prisma.FieldRef<'Collection', 'String'> +} + +// Custom InputTypes +/** + * Collection findUnique + */ +export type CollectionFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Collection + */ + select?: Prisma.CollectionSelect | null + /** + * Omit specific fields from the Collection + */ + omit?: Prisma.CollectionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.CollectionInclude | null + /** + * Filter, which Collection to fetch. + */ + where: Prisma.CollectionWhereUniqueInput +} + +/** + * Collection findUniqueOrThrow + */ +export type CollectionFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Collection + */ + select?: Prisma.CollectionSelect | null + /** + * Omit specific fields from the Collection + */ + omit?: Prisma.CollectionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.CollectionInclude | null + /** + * Filter, which Collection to fetch. + */ + where: Prisma.CollectionWhereUniqueInput +} + +/** + * Collection findFirst + */ +export type CollectionFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Collection + */ + select?: Prisma.CollectionSelect | null + /** + * Omit specific fields from the Collection + */ + omit?: Prisma.CollectionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.CollectionInclude | null + /** + * Filter, which Collection to fetch. + */ + where?: Prisma.CollectionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Collections to fetch. + */ + orderBy?: Prisma.CollectionOrderByWithRelationInput | Prisma.CollectionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Collections. + */ + cursor?: Prisma.CollectionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Collections from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Collections. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Collections. + */ + distinct?: Prisma.CollectionScalarFieldEnum | Prisma.CollectionScalarFieldEnum[] +} + +/** + * Collection findFirstOrThrow + */ +export type CollectionFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Collection + */ + select?: Prisma.CollectionSelect | null + /** + * Omit specific fields from the Collection + */ + omit?: Prisma.CollectionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.CollectionInclude | null + /** + * Filter, which Collection to fetch. + */ + where?: Prisma.CollectionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Collections to fetch. + */ + orderBy?: Prisma.CollectionOrderByWithRelationInput | Prisma.CollectionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Collections. + */ + cursor?: Prisma.CollectionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Collections from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Collections. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Collections. + */ + distinct?: Prisma.CollectionScalarFieldEnum | Prisma.CollectionScalarFieldEnum[] +} + +/** + * Collection findMany + */ +export type CollectionFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Collection + */ + select?: Prisma.CollectionSelect | null + /** + * Omit specific fields from the Collection + */ + omit?: Prisma.CollectionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.CollectionInclude | null + /** + * Filter, which Collections to fetch. + */ + where?: Prisma.CollectionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Collections to fetch. + */ + orderBy?: Prisma.CollectionOrderByWithRelationInput | Prisma.CollectionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Collections. + */ + cursor?: Prisma.CollectionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Collections from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Collections. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Collections. + */ + distinct?: Prisma.CollectionScalarFieldEnum | Prisma.CollectionScalarFieldEnum[] +} + +/** + * Collection create + */ +export type CollectionCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Collection + */ + select?: Prisma.CollectionSelect | null + /** + * Omit specific fields from the Collection + */ + omit?: Prisma.CollectionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.CollectionInclude | null + /** + * The data needed to create a Collection. + */ + data: Prisma.XOR +} + +/** + * Collection createMany + */ +export type CollectionCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Collections. + */ + data: Prisma.CollectionCreateManyInput | Prisma.CollectionCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Collection createManyAndReturn + */ +export type CollectionCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Collection + */ + select?: Prisma.CollectionSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Collection + */ + omit?: Prisma.CollectionOmit | null + /** + * The data used to create many Collections. + */ + data: Prisma.CollectionCreateManyInput | Prisma.CollectionCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.CollectionIncludeCreateManyAndReturn | null +} + +/** + * Collection update + */ +export type CollectionUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Collection + */ + select?: Prisma.CollectionSelect | null + /** + * Omit specific fields from the Collection + */ + omit?: Prisma.CollectionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.CollectionInclude | null + /** + * The data needed to update a Collection. + */ + data: Prisma.XOR + /** + * Choose, which Collection to update. + */ + where: Prisma.CollectionWhereUniqueInput +} + +/** + * Collection updateMany + */ +export type CollectionUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Collections. + */ + data: Prisma.XOR< + Prisma.CollectionUpdateManyMutationInput, + Prisma.CollectionUncheckedUpdateManyInput + > + /** + * Filter which Collections to update + */ + where?: Prisma.CollectionWhereInput + /** + * Limit how many Collections to update. + */ + limit?: number +} + +/** + * Collection updateManyAndReturn + */ +export type CollectionUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Collection + */ + select?: Prisma.CollectionSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Collection + */ + omit?: Prisma.CollectionOmit | null + /** + * The data used to update Collections. + */ + data: Prisma.XOR< + Prisma.CollectionUpdateManyMutationInput, + Prisma.CollectionUncheckedUpdateManyInput + > + /** + * Filter which Collections to update + */ + where?: Prisma.CollectionWhereInput + /** + * Limit how many Collections to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.CollectionIncludeUpdateManyAndReturn | null +} + +/** + * Collection upsert + */ +export type CollectionUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Collection + */ + select?: Prisma.CollectionSelect | null + /** + * Omit specific fields from the Collection + */ + omit?: Prisma.CollectionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.CollectionInclude | null + /** + * The filter to search for the Collection to update in case it exists. + */ + where: Prisma.CollectionWhereUniqueInput + /** + * In case the Collection found by the `where` argument doesn't exist, create a new Collection with this data. + */ + create: Prisma.XOR + /** + * In case the Collection was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Collection delete + */ +export type CollectionDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Collection + */ + select?: Prisma.CollectionSelect | null + /** + * Omit specific fields from the Collection + */ + omit?: Prisma.CollectionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.CollectionInclude | null + /** + * Filter which Collection to delete. + */ + where: Prisma.CollectionWhereUniqueInput +} + +/** + * Collection deleteMany + */ +export type CollectionDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Collections to delete + */ + where?: Prisma.CollectionWhereInput + /** + * Limit how many Collections to delete. + */ + limit?: number +} + +/** + * Collection without action + */ +export type CollectionDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Collection + */ + select?: Prisma.CollectionSelect | null + /** + * Omit specific fields from the Collection + */ + omit?: Prisma.CollectionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.CollectionInclude | null +} diff --git a/packages/db/src/generated/prisma/models/Invite.ts b/packages/db/src/generated/prisma/models/Invite.ts new file mode 100644 index 00000000..4ff38ad8 --- /dev/null +++ b/packages/db/src/generated/prisma/models/Invite.ts @@ -0,0 +1,2187 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Invite` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Invite + * + */ +export type InviteModel = runtime.Types.Result.DefaultSelection + +export type AggregateInvite = { + _count: InviteCountAggregateOutputType | null + _min: InviteMinAggregateOutputType | null + _max: InviteMaxAggregateOutputType | null +} + +export type InviteMinAggregateOutputType = { + id: string | null + code: string | null + role: $Enums.InviteRole | null + used: boolean | null + createdAt: Date | null + updatedAt: Date | null + teamId: string | null + projectId: string | null + inviterId: string | null +} + +export type InviteMaxAggregateOutputType = { + id: string | null + code: string | null + role: $Enums.InviteRole | null + used: boolean | null + createdAt: Date | null + updatedAt: Date | null + teamId: string | null + projectId: string | null + inviterId: string | null +} + +export type InviteCountAggregateOutputType = { + id: number + code: number + role: number + used: number + createdAt: number + updatedAt: number + teamId: number + projectId: number + inviterId: number + _all: number +} + +export type InviteMinAggregateInputType = { + id?: true + code?: true + role?: true + used?: true + createdAt?: true + updatedAt?: true + teamId?: true + projectId?: true + inviterId?: true +} + +export type InviteMaxAggregateInputType = { + id?: true + code?: true + role?: true + used?: true + createdAt?: true + updatedAt?: true + teamId?: true + projectId?: true + inviterId?: true +} + +export type InviteCountAggregateInputType = { + id?: true + code?: true + role?: true + used?: true + createdAt?: true + updatedAt?: true + teamId?: true + projectId?: true + inviterId?: true + _all?: true +} + +export type InviteAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Invite to aggregate. + */ + where?: Prisma.InviteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Invites to fetch. + */ + orderBy?: Prisma.InviteOrderByWithRelationInput | Prisma.InviteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.InviteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Invites from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Invites. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Invites + **/ + _count?: true | InviteCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: InviteMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: InviteMaxAggregateInputType +} + +export type GetInviteAggregateType = { + [P in keyof T & keyof AggregateInvite]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type InviteGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.InviteWhereInput + orderBy?: Prisma.InviteOrderByWithAggregationInput | Prisma.InviteOrderByWithAggregationInput[] + by: Prisma.InviteScalarFieldEnum[] | Prisma.InviteScalarFieldEnum + having?: Prisma.InviteScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: InviteCountAggregateInputType | true + _min?: InviteMinAggregateInputType + _max?: InviteMaxAggregateInputType +} + +export type InviteGroupByOutputType = { + id: string + code: string + role: $Enums.InviteRole | null + used: boolean + createdAt: Date + updatedAt: Date + teamId: string + projectId: string | null + inviterId: string + _count: InviteCountAggregateOutputType | null + _min: InviteMinAggregateOutputType | null + _max: InviteMaxAggregateOutputType | null +} + +export type GetInviteGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof InviteGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type InviteWhereInput = { + AND?: Prisma.InviteWhereInput | Prisma.InviteWhereInput[] + OR?: Prisma.InviteWhereInput[] + NOT?: Prisma.InviteWhereInput | Prisma.InviteWhereInput[] + id?: Prisma.StringFilter<'Invite'> | string + code?: Prisma.StringFilter<'Invite'> | string + role?: Prisma.EnumInviteRoleNullableFilter<'Invite'> | $Enums.InviteRole | null + used?: Prisma.BoolFilter<'Invite'> | boolean + createdAt?: Prisma.DateTimeFilter<'Invite'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Invite'> | Date | string + teamId?: Prisma.StringFilter<'Invite'> | string + projectId?: Prisma.StringNullableFilter<'Invite'> | string | null + inviterId?: Prisma.StringFilter<'Invite'> | string + team?: Prisma.XOR + project?: Prisma.XOR | null + inviter?: Prisma.XOR +} + +export type InviteOrderByWithRelationInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + role?: Prisma.SortOrderInput | Prisma.SortOrder + used?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrderInput | Prisma.SortOrder + inviterId?: Prisma.SortOrder + team?: Prisma.TeamOrderByWithRelationInput + project?: Prisma.ProjectOrderByWithRelationInput + inviter?: Prisma.UserOrderByWithRelationInput +} + +export type InviteWhereUniqueInput = Prisma.AtLeast< + { + id?: string + code?: string + AND?: Prisma.InviteWhereInput | Prisma.InviteWhereInput[] + OR?: Prisma.InviteWhereInput[] + NOT?: Prisma.InviteWhereInput | Prisma.InviteWhereInput[] + role?: Prisma.EnumInviteRoleNullableFilter<'Invite'> | $Enums.InviteRole | null + used?: Prisma.BoolFilter<'Invite'> | boolean + createdAt?: Prisma.DateTimeFilter<'Invite'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Invite'> | Date | string + teamId?: Prisma.StringFilter<'Invite'> | string + projectId?: Prisma.StringNullableFilter<'Invite'> | string | null + inviterId?: Prisma.StringFilter<'Invite'> | string + team?: Prisma.XOR + project?: Prisma.XOR< + Prisma.ProjectNullableScalarRelationFilter, + Prisma.ProjectWhereInput + > | null + inviter?: Prisma.XOR + }, + 'id' | 'code' +> + +export type InviteOrderByWithAggregationInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + role?: Prisma.SortOrderInput | Prisma.SortOrder + used?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrderInput | Prisma.SortOrder + inviterId?: Prisma.SortOrder + _count?: Prisma.InviteCountOrderByAggregateInput + _max?: Prisma.InviteMaxOrderByAggregateInput + _min?: Prisma.InviteMinOrderByAggregateInput +} + +export type InviteScalarWhereWithAggregatesInput = { + AND?: Prisma.InviteScalarWhereWithAggregatesInput | Prisma.InviteScalarWhereWithAggregatesInput[] + OR?: Prisma.InviteScalarWhereWithAggregatesInput[] + NOT?: Prisma.InviteScalarWhereWithAggregatesInput | Prisma.InviteScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Invite'> | string + code?: Prisma.StringWithAggregatesFilter<'Invite'> | string + role?: Prisma.EnumInviteRoleNullableWithAggregatesFilter<'Invite'> | $Enums.InviteRole | null + used?: Prisma.BoolWithAggregatesFilter<'Invite'> | boolean + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Invite'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Invite'> | Date | string + teamId?: Prisma.StringWithAggregatesFilter<'Invite'> | string + projectId?: Prisma.StringNullableWithAggregatesFilter<'Invite'> | string | null + inviterId?: Prisma.StringWithAggregatesFilter<'Invite'> | string +} + +export type InviteCreateInput = { + id?: string + code: string + role?: $Enums.InviteRole | null + used?: boolean + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutInvitesInput + project?: Prisma.ProjectCreateNestedOneWithoutInvitesInput + inviter: Prisma.UserCreateNestedOneWithoutCreatedInvitesInput +} + +export type InviteUncheckedCreateInput = { + id?: string + code: string + role?: $Enums.InviteRole | null + used?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null + inviterId: string +} + +export type InviteUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null + used?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutInvitesNestedInput + project?: Prisma.ProjectUpdateOneWithoutInvitesNestedInput + inviter?: Prisma.UserUpdateOneRequiredWithoutCreatedInvitesNestedInput +} + +export type InviteUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null + used?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inviterId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type InviteCreateManyInput = { + id?: string + code: string + role?: $Enums.InviteRole | null + used?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null + inviterId: string +} + +export type InviteUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null + used?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type InviteUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null + used?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inviterId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type InviteListRelationFilter = { + every?: Prisma.InviteWhereInput + some?: Prisma.InviteWhereInput + none?: Prisma.InviteWhereInput +} + +export type InviteOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type InviteCountOrderByAggregateInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + role?: Prisma.SortOrder + used?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + inviterId?: Prisma.SortOrder +} + +export type InviteMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + role?: Prisma.SortOrder + used?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + inviterId?: Prisma.SortOrder +} + +export type InviteMinOrderByAggregateInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + role?: Prisma.SortOrder + used?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + inviterId?: Prisma.SortOrder +} + +export type InviteCreateNestedManyWithoutInviterInput = { + create?: + | Prisma.XOR< + Prisma.InviteCreateWithoutInviterInput, + Prisma.InviteUncheckedCreateWithoutInviterInput + > + | Prisma.InviteCreateWithoutInviterInput[] + | Prisma.InviteUncheckedCreateWithoutInviterInput[] + connectOrCreate?: + | Prisma.InviteCreateOrConnectWithoutInviterInput + | Prisma.InviteCreateOrConnectWithoutInviterInput[] + createMany?: Prisma.InviteCreateManyInviterInputEnvelope + connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] +} + +export type InviteUncheckedCreateNestedManyWithoutInviterInput = { + create?: + | Prisma.XOR< + Prisma.InviteCreateWithoutInviterInput, + Prisma.InviteUncheckedCreateWithoutInviterInput + > + | Prisma.InviteCreateWithoutInviterInput[] + | Prisma.InviteUncheckedCreateWithoutInviterInput[] + connectOrCreate?: + | Prisma.InviteCreateOrConnectWithoutInviterInput + | Prisma.InviteCreateOrConnectWithoutInviterInput[] + createMany?: Prisma.InviteCreateManyInviterInputEnvelope + connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] +} + +export type InviteUpdateManyWithoutInviterNestedInput = { + create?: + | Prisma.XOR< + Prisma.InviteCreateWithoutInviterInput, + Prisma.InviteUncheckedCreateWithoutInviterInput + > + | Prisma.InviteCreateWithoutInviterInput[] + | Prisma.InviteUncheckedCreateWithoutInviterInput[] + connectOrCreate?: + | Prisma.InviteCreateOrConnectWithoutInviterInput + | Prisma.InviteCreateOrConnectWithoutInviterInput[] + upsert?: + | Prisma.InviteUpsertWithWhereUniqueWithoutInviterInput + | Prisma.InviteUpsertWithWhereUniqueWithoutInviterInput[] + createMany?: Prisma.InviteCreateManyInviterInputEnvelope + set?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + disconnect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + delete?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + update?: + | Prisma.InviteUpdateWithWhereUniqueWithoutInviterInput + | Prisma.InviteUpdateWithWhereUniqueWithoutInviterInput[] + updateMany?: + | Prisma.InviteUpdateManyWithWhereWithoutInviterInput + | Prisma.InviteUpdateManyWithWhereWithoutInviterInput[] + deleteMany?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] +} + +export type InviteUncheckedUpdateManyWithoutInviterNestedInput = { + create?: + | Prisma.XOR< + Prisma.InviteCreateWithoutInviterInput, + Prisma.InviteUncheckedCreateWithoutInviterInput + > + | Prisma.InviteCreateWithoutInviterInput[] + | Prisma.InviteUncheckedCreateWithoutInviterInput[] + connectOrCreate?: + | Prisma.InviteCreateOrConnectWithoutInviterInput + | Prisma.InviteCreateOrConnectWithoutInviterInput[] + upsert?: + | Prisma.InviteUpsertWithWhereUniqueWithoutInviterInput + | Prisma.InviteUpsertWithWhereUniqueWithoutInviterInput[] + createMany?: Prisma.InviteCreateManyInviterInputEnvelope + set?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + disconnect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + delete?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + update?: + | Prisma.InviteUpdateWithWhereUniqueWithoutInviterInput + | Prisma.InviteUpdateWithWhereUniqueWithoutInviterInput[] + updateMany?: + | Prisma.InviteUpdateManyWithWhereWithoutInviterInput + | Prisma.InviteUpdateManyWithWhereWithoutInviterInput[] + deleteMany?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] +} + +export type InviteCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR + | Prisma.InviteCreateWithoutTeamInput[] + | Prisma.InviteUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.InviteCreateOrConnectWithoutTeamInput + | Prisma.InviteCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.InviteCreateManyTeamInputEnvelope + connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] +} + +export type InviteUncheckedCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR + | Prisma.InviteCreateWithoutTeamInput[] + | Prisma.InviteUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.InviteCreateOrConnectWithoutTeamInput + | Prisma.InviteCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.InviteCreateManyTeamInputEnvelope + connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] +} + +export type InviteUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR + | Prisma.InviteCreateWithoutTeamInput[] + | Prisma.InviteUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.InviteCreateOrConnectWithoutTeamInput + | Prisma.InviteCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.InviteUpsertWithWhereUniqueWithoutTeamInput + | Prisma.InviteUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.InviteCreateManyTeamInputEnvelope + set?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + disconnect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + delete?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + update?: + | Prisma.InviteUpdateWithWhereUniqueWithoutTeamInput + | Prisma.InviteUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.InviteUpdateManyWithWhereWithoutTeamInput + | Prisma.InviteUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] +} + +export type InviteUncheckedUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR + | Prisma.InviteCreateWithoutTeamInput[] + | Prisma.InviteUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.InviteCreateOrConnectWithoutTeamInput + | Prisma.InviteCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.InviteUpsertWithWhereUniqueWithoutTeamInput + | Prisma.InviteUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.InviteCreateManyTeamInputEnvelope + set?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + disconnect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + delete?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + update?: + | Prisma.InviteUpdateWithWhereUniqueWithoutTeamInput + | Prisma.InviteUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.InviteUpdateManyWithWhereWithoutTeamInput + | Prisma.InviteUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] +} + +export type InviteCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.InviteCreateWithoutProjectInput, + Prisma.InviteUncheckedCreateWithoutProjectInput + > + | Prisma.InviteCreateWithoutProjectInput[] + | Prisma.InviteUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.InviteCreateOrConnectWithoutProjectInput + | Prisma.InviteCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.InviteCreateManyProjectInputEnvelope + connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] +} + +export type InviteUncheckedCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.InviteCreateWithoutProjectInput, + Prisma.InviteUncheckedCreateWithoutProjectInput + > + | Prisma.InviteCreateWithoutProjectInput[] + | Prisma.InviteUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.InviteCreateOrConnectWithoutProjectInput + | Prisma.InviteCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.InviteCreateManyProjectInputEnvelope + connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] +} + +export type InviteUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.InviteCreateWithoutProjectInput, + Prisma.InviteUncheckedCreateWithoutProjectInput + > + | Prisma.InviteCreateWithoutProjectInput[] + | Prisma.InviteUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.InviteCreateOrConnectWithoutProjectInput + | Prisma.InviteCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.InviteUpsertWithWhereUniqueWithoutProjectInput + | Prisma.InviteUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.InviteCreateManyProjectInputEnvelope + set?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + disconnect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + delete?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + update?: + | Prisma.InviteUpdateWithWhereUniqueWithoutProjectInput + | Prisma.InviteUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.InviteUpdateManyWithWhereWithoutProjectInput + | Prisma.InviteUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] +} + +export type InviteUncheckedUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.InviteCreateWithoutProjectInput, + Prisma.InviteUncheckedCreateWithoutProjectInput + > + | Prisma.InviteCreateWithoutProjectInput[] + | Prisma.InviteUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.InviteCreateOrConnectWithoutProjectInput + | Prisma.InviteCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.InviteUpsertWithWhereUniqueWithoutProjectInput + | Prisma.InviteUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.InviteCreateManyProjectInputEnvelope + set?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + disconnect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + delete?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] + update?: + | Prisma.InviteUpdateWithWhereUniqueWithoutProjectInput + | Prisma.InviteUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.InviteUpdateManyWithWhereWithoutProjectInput + | Prisma.InviteUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] +} + +export type NullableEnumInviteRoleFieldUpdateOperationsInput = { + set?: $Enums.InviteRole | null +} + +export type InviteCreateWithoutInviterInput = { + id?: string + code: string + role?: $Enums.InviteRole | null + used?: boolean + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutInvitesInput + project?: Prisma.ProjectCreateNestedOneWithoutInvitesInput +} + +export type InviteUncheckedCreateWithoutInviterInput = { + id?: string + code: string + role?: $Enums.InviteRole | null + used?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null +} + +export type InviteCreateOrConnectWithoutInviterInput = { + where: Prisma.InviteWhereUniqueInput + create: Prisma.XOR< + Prisma.InviteCreateWithoutInviterInput, + Prisma.InviteUncheckedCreateWithoutInviterInput + > +} + +export type InviteCreateManyInviterInputEnvelope = { + data: Prisma.InviteCreateManyInviterInput | Prisma.InviteCreateManyInviterInput[] + skipDuplicates?: boolean +} + +export type InviteUpsertWithWhereUniqueWithoutInviterInput = { + where: Prisma.InviteWhereUniqueInput + update: Prisma.XOR< + Prisma.InviteUpdateWithoutInviterInput, + Prisma.InviteUncheckedUpdateWithoutInviterInput + > + create: Prisma.XOR< + Prisma.InviteCreateWithoutInviterInput, + Prisma.InviteUncheckedCreateWithoutInviterInput + > +} + +export type InviteUpdateWithWhereUniqueWithoutInviterInput = { + where: Prisma.InviteWhereUniqueInput + data: Prisma.XOR< + Prisma.InviteUpdateWithoutInviterInput, + Prisma.InviteUncheckedUpdateWithoutInviterInput + > +} + +export type InviteUpdateManyWithWhereWithoutInviterInput = { + where: Prisma.InviteScalarWhereInput + data: Prisma.XOR< + Prisma.InviteUpdateManyMutationInput, + Prisma.InviteUncheckedUpdateManyWithoutInviterInput + > +} + +export type InviteScalarWhereInput = { + AND?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] + OR?: Prisma.InviteScalarWhereInput[] + NOT?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] + id?: Prisma.StringFilter<'Invite'> | string + code?: Prisma.StringFilter<'Invite'> | string + role?: Prisma.EnumInviteRoleNullableFilter<'Invite'> | $Enums.InviteRole | null + used?: Prisma.BoolFilter<'Invite'> | boolean + createdAt?: Prisma.DateTimeFilter<'Invite'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Invite'> | Date | string + teamId?: Prisma.StringFilter<'Invite'> | string + projectId?: Prisma.StringNullableFilter<'Invite'> | string | null + inviterId?: Prisma.StringFilter<'Invite'> | string +} + +export type InviteCreateWithoutTeamInput = { + id?: string + code: string + role?: $Enums.InviteRole | null + used?: boolean + createdAt?: Date | string + updatedAt?: Date | string + project?: Prisma.ProjectCreateNestedOneWithoutInvitesInput + inviter: Prisma.UserCreateNestedOneWithoutCreatedInvitesInput +} + +export type InviteUncheckedCreateWithoutTeamInput = { + id?: string + code: string + role?: $Enums.InviteRole | null + used?: boolean + createdAt?: Date | string + updatedAt?: Date | string + projectId?: string | null + inviterId: string +} + +export type InviteCreateOrConnectWithoutTeamInput = { + where: Prisma.InviteWhereUniqueInput + create: Prisma.XOR< + Prisma.InviteCreateWithoutTeamInput, + Prisma.InviteUncheckedCreateWithoutTeamInput + > +} + +export type InviteCreateManyTeamInputEnvelope = { + data: Prisma.InviteCreateManyTeamInput | Prisma.InviteCreateManyTeamInput[] + skipDuplicates?: boolean +} + +export type InviteUpsertWithWhereUniqueWithoutTeamInput = { + where: Prisma.InviteWhereUniqueInput + update: Prisma.XOR< + Prisma.InviteUpdateWithoutTeamInput, + Prisma.InviteUncheckedUpdateWithoutTeamInput + > + create: Prisma.XOR< + Prisma.InviteCreateWithoutTeamInput, + Prisma.InviteUncheckedCreateWithoutTeamInput + > +} + +export type InviteUpdateWithWhereUniqueWithoutTeamInput = { + where: Prisma.InviteWhereUniqueInput + data: Prisma.XOR< + Prisma.InviteUpdateWithoutTeamInput, + Prisma.InviteUncheckedUpdateWithoutTeamInput + > +} + +export type InviteUpdateManyWithWhereWithoutTeamInput = { + where: Prisma.InviteScalarWhereInput + data: Prisma.XOR< + Prisma.InviteUpdateManyMutationInput, + Prisma.InviteUncheckedUpdateManyWithoutTeamInput + > +} + +export type InviteCreateWithoutProjectInput = { + id?: string + code: string + role?: $Enums.InviteRole | null + used?: boolean + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutInvitesInput + inviter: Prisma.UserCreateNestedOneWithoutCreatedInvitesInput +} + +export type InviteUncheckedCreateWithoutProjectInput = { + id?: string + code: string + role?: $Enums.InviteRole | null + used?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + inviterId: string +} + +export type InviteCreateOrConnectWithoutProjectInput = { + where: Prisma.InviteWhereUniqueInput + create: Prisma.XOR< + Prisma.InviteCreateWithoutProjectInput, + Prisma.InviteUncheckedCreateWithoutProjectInput + > +} + +export type InviteCreateManyProjectInputEnvelope = { + data: Prisma.InviteCreateManyProjectInput | Prisma.InviteCreateManyProjectInput[] + skipDuplicates?: boolean +} + +export type InviteUpsertWithWhereUniqueWithoutProjectInput = { + where: Prisma.InviteWhereUniqueInput + update: Prisma.XOR< + Prisma.InviteUpdateWithoutProjectInput, + Prisma.InviteUncheckedUpdateWithoutProjectInput + > + create: Prisma.XOR< + Prisma.InviteCreateWithoutProjectInput, + Prisma.InviteUncheckedCreateWithoutProjectInput + > +} + +export type InviteUpdateWithWhereUniqueWithoutProjectInput = { + where: Prisma.InviteWhereUniqueInput + data: Prisma.XOR< + Prisma.InviteUpdateWithoutProjectInput, + Prisma.InviteUncheckedUpdateWithoutProjectInput + > +} + +export type InviteUpdateManyWithWhereWithoutProjectInput = { + where: Prisma.InviteScalarWhereInput + data: Prisma.XOR< + Prisma.InviteUpdateManyMutationInput, + Prisma.InviteUncheckedUpdateManyWithoutProjectInput + > +} + +export type InviteCreateManyInviterInput = { + id?: string + code: string + role?: $Enums.InviteRole | null + used?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null +} + +export type InviteUpdateWithoutInviterInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null + used?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutInvitesNestedInput + project?: Prisma.ProjectUpdateOneWithoutInvitesNestedInput +} + +export type InviteUncheckedUpdateWithoutInviterInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null + used?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type InviteUncheckedUpdateManyWithoutInviterInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null + used?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type InviteCreateManyTeamInput = { + id?: string + code: string + role?: $Enums.InviteRole | null + used?: boolean + createdAt?: Date | string + updatedAt?: Date | string + projectId?: string | null + inviterId: string +} + +export type InviteUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null + used?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneWithoutInvitesNestedInput + inviter?: Prisma.UserUpdateOneRequiredWithoutCreatedInvitesNestedInput +} + +export type InviteUncheckedUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null + used?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inviterId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type InviteUncheckedUpdateManyWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null + used?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inviterId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type InviteCreateManyProjectInput = { + id?: string + code: string + role?: $Enums.InviteRole | null + used?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + inviterId: string +} + +export type InviteUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null + used?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutInvitesNestedInput + inviter?: Prisma.UserUpdateOneRequiredWithoutCreatedInvitesNestedInput +} + +export type InviteUncheckedUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null + used?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + inviterId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type InviteUncheckedUpdateManyWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null + used?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + inviterId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type InviteSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + code?: boolean + role?: boolean + used?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + projectId?: boolean + inviterId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + project?: boolean | Prisma.Invite$projectArgs + inviter?: boolean | Prisma.UserDefaultArgs + }, + ExtArgs['result']['invite'] +> + +export type InviteSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + code?: boolean + role?: boolean + used?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + projectId?: boolean + inviterId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + project?: boolean | Prisma.Invite$projectArgs + inviter?: boolean | Prisma.UserDefaultArgs + }, + ExtArgs['result']['invite'] +> + +export type InviteSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + code?: boolean + role?: boolean + used?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + projectId?: boolean + inviterId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + project?: boolean | Prisma.Invite$projectArgs + inviter?: boolean | Prisma.UserDefaultArgs + }, + ExtArgs['result']['invite'] +> + +export type InviteSelectScalar = { + id?: boolean + code?: boolean + role?: boolean + used?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + projectId?: boolean + inviterId?: boolean +} + +export type InviteOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'code' + | 'role' + | 'used' + | 'createdAt' + | 'updatedAt' + | 'teamId' + | 'projectId' + | 'inviterId', + ExtArgs['result']['invite'] +> +export type InviteInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + project?: boolean | Prisma.Invite$projectArgs + inviter?: boolean | Prisma.UserDefaultArgs +} +export type InviteIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + project?: boolean | Prisma.Invite$projectArgs + inviter?: boolean | Prisma.UserDefaultArgs +} +export type InviteIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + project?: boolean | Prisma.Invite$projectArgs + inviter?: boolean | Prisma.UserDefaultArgs +} + +export type $InvitePayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Invite' + objects: { + team: Prisma.$TeamPayload + project: Prisma.$ProjectPayload | null + inviter: Prisma.$UserPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + code: string + role: $Enums.InviteRole | null + used: boolean + createdAt: Date + updatedAt: Date + teamId: string + projectId: string | null + inviterId: string + }, + ExtArgs['result']['invite'] + > + composites: {} +} + +export type InviteGetPayload = + runtime.Types.Result.GetResult + +export type InviteCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: InviteCountAggregateInputType | true +} + +export interface InviteDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['Invite']; meta: { name: 'Invite' } } + /** + * Find zero or one Invite that matches the filter. + * @param {InviteFindUniqueArgs} args - Arguments to find a Invite + * @example + * // Get one Invite + * const invite = await prisma.invite.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__InviteClient< + runtime.Types.Result.GetResult< + Prisma.$InvitePayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Invite that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {InviteFindUniqueOrThrowArgs} args - Arguments to find a Invite + * @example + * // Get one Invite + * const invite = await prisma.invite.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__InviteClient< + runtime.Types.Result.GetResult< + Prisma.$InvitePayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Invite that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {InviteFindFirstArgs} args - Arguments to find a Invite + * @example + * // Get one Invite + * const invite = await prisma.invite.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__InviteClient< + runtime.Types.Result.GetResult< + Prisma.$InvitePayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Invite that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {InviteFindFirstOrThrowArgs} args - Arguments to find a Invite + * @example + * // Get one Invite + * const invite = await prisma.invite.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__InviteClient< + runtime.Types.Result.GetResult< + Prisma.$InvitePayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Invites that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {InviteFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Invites + * const invites = await prisma.invite.findMany() + * + * // Get first 10 Invites + * const invites = await prisma.invite.findMany({ take: 10 }) + * + * // Only select the `id` + * const inviteWithIdOnly = await prisma.invite.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult, T, 'findMany', GlobalOmitOptions> + > + + /** + * Create a Invite. + * @param {InviteCreateArgs} args - Arguments to create a Invite. + * @example + * // Create one Invite + * const Invite = await prisma.invite.create({ + * data: { + * // ... data to create a Invite + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__InviteClient< + runtime.Types.Result.GetResult, T, 'create', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Invites. + * @param {InviteCreateManyArgs} args - Arguments to create many Invites. + * @example + * // Create many Invites + * const invite = await prisma.invite.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Invites and returns the data saved in the database. + * @param {InviteCreateManyAndReturnArgs} args - Arguments to create many Invites. + * @example + * // Create many Invites + * const invite = await prisma.invite.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Invites and only return the `id` + * const inviteWithIdOnly = await prisma.invite.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$InvitePayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Invite. + * @param {InviteDeleteArgs} args - Arguments to delete one Invite. + * @example + * // Delete one Invite + * const Invite = await prisma.invite.delete({ + * where: { + * // ... filter to delete one Invite + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__InviteClient< + runtime.Types.Result.GetResult, T, 'delete', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Invite. + * @param {InviteUpdateArgs} args - Arguments to update one Invite. + * @example + * // Update one Invite + * const invite = await prisma.invite.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__InviteClient< + runtime.Types.Result.GetResult, T, 'update', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Invites. + * @param {InviteDeleteManyArgs} args - Arguments to filter Invites to delete. + * @example + * // Delete a few Invites + * const { count } = await prisma.invite.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Invites. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {InviteUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Invites + * const invite = await prisma.invite.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Invites and returns the data updated in the database. + * @param {InviteUpdateManyAndReturnArgs} args - Arguments to update many Invites. + * @example + * // Update many Invites + * const invite = await prisma.invite.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Invites and only return the `id` + * const inviteWithIdOnly = await prisma.invite.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$InvitePayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Invite. + * @param {InviteUpsertArgs} args - Arguments to update or create a Invite. + * @example + * // Update or create a Invite + * const invite = await prisma.invite.upsert({ + * create: { + * // ... data to create a Invite + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Invite we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__InviteClient< + runtime.Types.Result.GetResult, T, 'upsert', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Invites. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {InviteCountArgs} args - Arguments to filter Invites to count. + * @example + * // Count the number of Invites + * const count = await prisma.invite.count({ + * where: { + * // ... the filter for the Invites we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Invite. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {InviteAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Invite. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {InviteGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends InviteGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: InviteGroupByArgs['orderBy'] } + : { orderBy?: InviteGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetInviteGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Invite model + */ + readonly fields: InviteFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Invite. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__InviteClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + team = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TeamClient< + | runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + project = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + inviter = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__UserClient< + | runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Invite model + */ +export interface InviteFieldRefs { + readonly id: Prisma.FieldRef<'Invite', 'String'> + readonly code: Prisma.FieldRef<'Invite', 'String'> + readonly role: Prisma.FieldRef<'Invite', 'InviteRole'> + readonly used: Prisma.FieldRef<'Invite', 'Boolean'> + readonly createdAt: Prisma.FieldRef<'Invite', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Invite', 'DateTime'> + readonly teamId: Prisma.FieldRef<'Invite', 'String'> + readonly projectId: Prisma.FieldRef<'Invite', 'String'> + readonly inviterId: Prisma.FieldRef<'Invite', 'String'> +} + +// Custom InputTypes +/** + * Invite findUnique + */ +export type InviteFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelect | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteInclude | null + /** + * Filter, which Invite to fetch. + */ + where: Prisma.InviteWhereUniqueInput +} + +/** + * Invite findUniqueOrThrow + */ +export type InviteFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelect | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteInclude | null + /** + * Filter, which Invite to fetch. + */ + where: Prisma.InviteWhereUniqueInput +} + +/** + * Invite findFirst + */ +export type InviteFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelect | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteInclude | null + /** + * Filter, which Invite to fetch. + */ + where?: Prisma.InviteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Invites to fetch. + */ + orderBy?: Prisma.InviteOrderByWithRelationInput | Prisma.InviteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Invites. + */ + cursor?: Prisma.InviteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Invites from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Invites. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Invites. + */ + distinct?: Prisma.InviteScalarFieldEnum | Prisma.InviteScalarFieldEnum[] +} + +/** + * Invite findFirstOrThrow + */ +export type InviteFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelect | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteInclude | null + /** + * Filter, which Invite to fetch. + */ + where?: Prisma.InviteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Invites to fetch. + */ + orderBy?: Prisma.InviteOrderByWithRelationInput | Prisma.InviteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Invites. + */ + cursor?: Prisma.InviteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Invites from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Invites. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Invites. + */ + distinct?: Prisma.InviteScalarFieldEnum | Prisma.InviteScalarFieldEnum[] +} + +/** + * Invite findMany + */ +export type InviteFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelect | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteInclude | null + /** + * Filter, which Invites to fetch. + */ + where?: Prisma.InviteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Invites to fetch. + */ + orderBy?: Prisma.InviteOrderByWithRelationInput | Prisma.InviteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Invites. + */ + cursor?: Prisma.InviteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Invites from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Invites. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Invites. + */ + distinct?: Prisma.InviteScalarFieldEnum | Prisma.InviteScalarFieldEnum[] +} + +/** + * Invite create + */ +export type InviteCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelect | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteInclude | null + /** + * The data needed to create a Invite. + */ + data: Prisma.XOR +} + +/** + * Invite createMany + */ +export type InviteCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Invites. + */ + data: Prisma.InviteCreateManyInput | Prisma.InviteCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Invite createManyAndReturn + */ +export type InviteCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * The data used to create many Invites. + */ + data: Prisma.InviteCreateManyInput | Prisma.InviteCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteIncludeCreateManyAndReturn | null +} + +/** + * Invite update + */ +export type InviteUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelect | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteInclude | null + /** + * The data needed to update a Invite. + */ + data: Prisma.XOR + /** + * Choose, which Invite to update. + */ + where: Prisma.InviteWhereUniqueInput +} + +/** + * Invite updateMany + */ +export type InviteUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Invites. + */ + data: Prisma.XOR + /** + * Filter which Invites to update + */ + where?: Prisma.InviteWhereInput + /** + * Limit how many Invites to update. + */ + limit?: number +} + +/** + * Invite updateManyAndReturn + */ +export type InviteUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * The data used to update Invites. + */ + data: Prisma.XOR + /** + * Filter which Invites to update + */ + where?: Prisma.InviteWhereInput + /** + * Limit how many Invites to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteIncludeUpdateManyAndReturn | null +} + +/** + * Invite upsert + */ +export type InviteUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelect | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteInclude | null + /** + * The filter to search for the Invite to update in case it exists. + */ + where: Prisma.InviteWhereUniqueInput + /** + * In case the Invite found by the `where` argument doesn't exist, create a new Invite with this data. + */ + create: Prisma.XOR + /** + * In case the Invite was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Invite delete + */ +export type InviteDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelect | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteInclude | null + /** + * Filter which Invite to delete. + */ + where: Prisma.InviteWhereUniqueInput +} + +/** + * Invite deleteMany + */ +export type InviteDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Invites to delete + */ + where?: Prisma.InviteWhereInput + /** + * Limit how many Invites to delete. + */ + limit?: number +} + +/** + * Invite.project + */ +export type Invite$projectArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + where?: Prisma.ProjectWhereInput +} + +/** + * Invite without action + */ +export type InviteDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelect | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteInclude | null +} diff --git a/packages/db/src/generated/prisma/models/MetadataField.ts b/packages/db/src/generated/prisma/models/MetadataField.ts new file mode 100644 index 00000000..1b897f47 --- /dev/null +++ b/packages/db/src/generated/prisma/models/MetadataField.ts @@ -0,0 +1,2092 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `MetadataField` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model MetadataField + * + */ +export type MetadataFieldModel = runtime.Types.Result.DefaultSelection + +export type AggregateMetadataField = { + _count: MetadataFieldCountAggregateOutputType | null + _min: MetadataFieldMinAggregateOutputType | null + _max: MetadataFieldMaxAggregateOutputType | null +} + +export type MetadataFieldMinAggregateOutputType = { + id: string | null + key: string | null + scope: $Enums.MetadataFieldScope | null + readOnly: boolean | null + aiAutofill: boolean | null + description: string | null + teamId: string | null + projectId: string | null +} + +export type MetadataFieldMaxAggregateOutputType = { + id: string | null + key: string | null + scope: $Enums.MetadataFieldScope | null + readOnly: boolean | null + aiAutofill: boolean | null + description: string | null + teamId: string | null + projectId: string | null +} + +export type MetadataFieldCountAggregateOutputType = { + id: number + key: number + scope: number + config: PrismaJson.FieldConfig + readOnly: number + aiAutofill: number + description: number + teamId: number + projectId: number + _all: number +} + +export type MetadataFieldMinAggregateInputType = { + id?: true + key?: true + scope?: true + readOnly?: true + aiAutofill?: true + description?: true + teamId?: true + projectId?: true +} + +export type MetadataFieldMaxAggregateInputType = { + id?: true + key?: true + scope?: true + readOnly?: true + aiAutofill?: true + description?: true + teamId?: true + projectId?: true +} + +export type MetadataFieldCountAggregateInputType = { + id?: true + key?: true + scope?: true + config?: true + readOnly?: true + aiAutofill?: true + description?: true + teamId?: true + projectId?: true + _all?: true +} + +export type MetadataFieldAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which MetadataField to aggregate. + */ + where?: Prisma.MetadataFieldWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MetadataFields to fetch. + */ + orderBy?: + | Prisma.MetadataFieldOrderByWithRelationInput + | Prisma.MetadataFieldOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.MetadataFieldWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MetadataFields from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` MetadataFields. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned MetadataFields + **/ + _count?: true | MetadataFieldCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: MetadataFieldMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: MetadataFieldMaxAggregateInputType +} + +export type GetMetadataFieldAggregateType = { + [P in keyof T & keyof AggregateMetadataField]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type MetadataFieldGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.MetadataFieldWhereInput + orderBy?: + | Prisma.MetadataFieldOrderByWithAggregationInput + | Prisma.MetadataFieldOrderByWithAggregationInput[] + by: Prisma.MetadataFieldScalarFieldEnum[] | Prisma.MetadataFieldScalarFieldEnum + having?: Prisma.MetadataFieldScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: MetadataFieldCountAggregateInputType | true + _min?: MetadataFieldMinAggregateInputType + _max?: MetadataFieldMaxAggregateInputType +} + +export type MetadataFieldGroupByOutputType = { + id: string + key: string + scope: $Enums.MetadataFieldScope | null + config: PrismaJson.FieldConfig | null + readOnly: boolean + aiAutofill: boolean + description: string + teamId: string | null + projectId: string | null + _count: MetadataFieldCountAggregateOutputType | null + _min: MetadataFieldMinAggregateOutputType | null + _max: MetadataFieldMaxAggregateOutputType | null +} + +export type GetMetadataFieldGroupByPayload = + Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof MetadataFieldGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + +export type MetadataFieldWhereInput = { + AND?: Prisma.MetadataFieldWhereInput | Prisma.MetadataFieldWhereInput[] + OR?: Prisma.MetadataFieldWhereInput[] + NOT?: Prisma.MetadataFieldWhereInput | Prisma.MetadataFieldWhereInput[] + id?: Prisma.StringFilter<'MetadataField'> | string + key?: Prisma.StringFilter<'MetadataField'> | string + scope?: + | Prisma.EnumMetadataFieldScopeNullableFilter<'MetadataField'> + | $Enums.MetadataFieldScope + | null + config?: Prisma.JsonNullableFilter<'MetadataField'> + readOnly?: Prisma.BoolFilter<'MetadataField'> | boolean + aiAutofill?: Prisma.BoolFilter<'MetadataField'> | boolean + description?: Prisma.StringFilter<'MetadataField'> | string + teamId?: Prisma.StringNullableFilter<'MetadataField'> | string | null + projectId?: Prisma.StringNullableFilter<'MetadataField'> | string | null + team?: Prisma.XOR | null + project?: Prisma.XOR | null +} + +export type MetadataFieldOrderByWithRelationInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + scope?: Prisma.SortOrderInput | Prisma.SortOrder + config?: Prisma.SortOrderInput | Prisma.SortOrder + readOnly?: Prisma.SortOrder + aiAutofill?: Prisma.SortOrder + description?: Prisma.SortOrder + teamId?: Prisma.SortOrderInput | Prisma.SortOrder + projectId?: Prisma.SortOrderInput | Prisma.SortOrder + team?: Prisma.TeamOrderByWithRelationInput + project?: Prisma.ProjectOrderByWithRelationInput +} + +export type MetadataFieldWhereUniqueInput = Prisma.AtLeast< + { + id?: string + key?: string + AND?: Prisma.MetadataFieldWhereInput | Prisma.MetadataFieldWhereInput[] + OR?: Prisma.MetadataFieldWhereInput[] + NOT?: Prisma.MetadataFieldWhereInput | Prisma.MetadataFieldWhereInput[] + scope?: + | Prisma.EnumMetadataFieldScopeNullableFilter<'MetadataField'> + | $Enums.MetadataFieldScope + | null + config?: Prisma.JsonNullableFilter<'MetadataField'> + readOnly?: Prisma.BoolFilter<'MetadataField'> | boolean + aiAutofill?: Prisma.BoolFilter<'MetadataField'> | boolean + description?: Prisma.StringFilter<'MetadataField'> | string + teamId?: Prisma.StringNullableFilter<'MetadataField'> | string | null + projectId?: Prisma.StringNullableFilter<'MetadataField'> | string | null + team?: Prisma.XOR | null + project?: Prisma.XOR< + Prisma.ProjectNullableScalarRelationFilter, + Prisma.ProjectWhereInput + > | null + }, + 'id' | 'key' +> + +export type MetadataFieldOrderByWithAggregationInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + scope?: Prisma.SortOrderInput | Prisma.SortOrder + config?: Prisma.SortOrderInput | Prisma.SortOrder + readOnly?: Prisma.SortOrder + aiAutofill?: Prisma.SortOrder + description?: Prisma.SortOrder + teamId?: Prisma.SortOrderInput | Prisma.SortOrder + projectId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.MetadataFieldCountOrderByAggregateInput + _max?: Prisma.MetadataFieldMaxOrderByAggregateInput + _min?: Prisma.MetadataFieldMinOrderByAggregateInput +} + +export type MetadataFieldScalarWhereWithAggregatesInput = { + AND?: + | Prisma.MetadataFieldScalarWhereWithAggregatesInput + | Prisma.MetadataFieldScalarWhereWithAggregatesInput[] + OR?: Prisma.MetadataFieldScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.MetadataFieldScalarWhereWithAggregatesInput + | Prisma.MetadataFieldScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'MetadataField'> | string + key?: Prisma.StringWithAggregatesFilter<'MetadataField'> | string + scope?: + | Prisma.EnumMetadataFieldScopeNullableWithAggregatesFilter<'MetadataField'> + | $Enums.MetadataFieldScope + | null + config?: Prisma.JsonNullableWithAggregatesFilter<'MetadataField'> + readOnly?: Prisma.BoolWithAggregatesFilter<'MetadataField'> | boolean + aiAutofill?: Prisma.BoolWithAggregatesFilter<'MetadataField'> | boolean + description?: Prisma.StringWithAggregatesFilter<'MetadataField'> | string + teamId?: Prisma.StringNullableWithAggregatesFilter<'MetadataField'> | string | null + projectId?: Prisma.StringNullableWithAggregatesFilter<'MetadataField'> | string | null +} + +export type MetadataFieldCreateInput = { + id?: string + key: string + scope?: $Enums.MetadataFieldScope | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: boolean + aiAutofill?: boolean + description?: string + team?: Prisma.TeamCreateNestedOneWithoutMetadataFieldsInput + project?: Prisma.ProjectCreateNestedOneWithoutMetadataFieldsInput +} + +export type MetadataFieldUncheckedCreateInput = { + id?: string + key: string + scope?: $Enums.MetadataFieldScope | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: boolean + aiAutofill?: boolean + description?: string + teamId?: string | null + projectId?: string | null +} + +export type MetadataFieldUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + scope?: + | Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput + | $Enums.MetadataFieldScope + | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean + aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean + description?: Prisma.StringFieldUpdateOperationsInput | string + team?: Prisma.TeamUpdateOneWithoutMetadataFieldsNestedInput + project?: Prisma.ProjectUpdateOneWithoutMetadataFieldsNestedInput +} + +export type MetadataFieldUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + scope?: + | Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput + | $Enums.MetadataFieldScope + | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean + aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean + description?: Prisma.StringFieldUpdateOperationsInput | string + teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type MetadataFieldCreateManyInput = { + id?: string + key: string + scope?: $Enums.MetadataFieldScope | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: boolean + aiAutofill?: boolean + description?: string + teamId?: string | null + projectId?: string | null +} + +export type MetadataFieldUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + scope?: + | Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput + | $Enums.MetadataFieldScope + | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean + aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean + description?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type MetadataFieldUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + scope?: + | Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput + | $Enums.MetadataFieldScope + | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean + aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean + description?: Prisma.StringFieldUpdateOperationsInput | string + teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type MetadataFieldListRelationFilter = { + every?: Prisma.MetadataFieldWhereInput + some?: Prisma.MetadataFieldWhereInput + none?: Prisma.MetadataFieldWhereInput +} + +export type MetadataFieldOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type MetadataFieldCountOrderByAggregateInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + scope?: Prisma.SortOrder + config?: Prisma.SortOrder + readOnly?: Prisma.SortOrder + aiAutofill?: Prisma.SortOrder + description?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type MetadataFieldMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + scope?: Prisma.SortOrder + readOnly?: Prisma.SortOrder + aiAutofill?: Prisma.SortOrder + description?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type MetadataFieldMinOrderByAggregateInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + scope?: Prisma.SortOrder + readOnly?: Prisma.SortOrder + aiAutofill?: Prisma.SortOrder + description?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type MetadataFieldCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR< + Prisma.MetadataFieldCreateWithoutTeamInput, + Prisma.MetadataFieldUncheckedCreateWithoutTeamInput + > + | Prisma.MetadataFieldCreateWithoutTeamInput[] + | Prisma.MetadataFieldUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.MetadataFieldCreateOrConnectWithoutTeamInput + | Prisma.MetadataFieldCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.MetadataFieldCreateManyTeamInputEnvelope + connect?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] +} + +export type MetadataFieldUncheckedCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR< + Prisma.MetadataFieldCreateWithoutTeamInput, + Prisma.MetadataFieldUncheckedCreateWithoutTeamInput + > + | Prisma.MetadataFieldCreateWithoutTeamInput[] + | Prisma.MetadataFieldUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.MetadataFieldCreateOrConnectWithoutTeamInput + | Prisma.MetadataFieldCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.MetadataFieldCreateManyTeamInputEnvelope + connect?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] +} + +export type MetadataFieldUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR< + Prisma.MetadataFieldCreateWithoutTeamInput, + Prisma.MetadataFieldUncheckedCreateWithoutTeamInput + > + | Prisma.MetadataFieldCreateWithoutTeamInput[] + | Prisma.MetadataFieldUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.MetadataFieldCreateOrConnectWithoutTeamInput + | Prisma.MetadataFieldCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.MetadataFieldUpsertWithWhereUniqueWithoutTeamInput + | Prisma.MetadataFieldUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.MetadataFieldCreateManyTeamInputEnvelope + set?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + disconnect?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + delete?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + connect?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + update?: + | Prisma.MetadataFieldUpdateWithWhereUniqueWithoutTeamInput + | Prisma.MetadataFieldUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.MetadataFieldUpdateManyWithWhereWithoutTeamInput + | Prisma.MetadataFieldUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.MetadataFieldScalarWhereInput | Prisma.MetadataFieldScalarWhereInput[] +} + +export type MetadataFieldUncheckedUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR< + Prisma.MetadataFieldCreateWithoutTeamInput, + Prisma.MetadataFieldUncheckedCreateWithoutTeamInput + > + | Prisma.MetadataFieldCreateWithoutTeamInput[] + | Prisma.MetadataFieldUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.MetadataFieldCreateOrConnectWithoutTeamInput + | Prisma.MetadataFieldCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.MetadataFieldUpsertWithWhereUniqueWithoutTeamInput + | Prisma.MetadataFieldUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.MetadataFieldCreateManyTeamInputEnvelope + set?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + disconnect?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + delete?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + connect?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + update?: + | Prisma.MetadataFieldUpdateWithWhereUniqueWithoutTeamInput + | Prisma.MetadataFieldUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.MetadataFieldUpdateManyWithWhereWithoutTeamInput + | Prisma.MetadataFieldUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.MetadataFieldScalarWhereInput | Prisma.MetadataFieldScalarWhereInput[] +} + +export type MetadataFieldCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.MetadataFieldCreateWithoutProjectInput, + Prisma.MetadataFieldUncheckedCreateWithoutProjectInput + > + | Prisma.MetadataFieldCreateWithoutProjectInput[] + | Prisma.MetadataFieldUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.MetadataFieldCreateOrConnectWithoutProjectInput + | Prisma.MetadataFieldCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.MetadataFieldCreateManyProjectInputEnvelope + connect?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] +} + +export type MetadataFieldUncheckedCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.MetadataFieldCreateWithoutProjectInput, + Prisma.MetadataFieldUncheckedCreateWithoutProjectInput + > + | Prisma.MetadataFieldCreateWithoutProjectInput[] + | Prisma.MetadataFieldUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.MetadataFieldCreateOrConnectWithoutProjectInput + | Prisma.MetadataFieldCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.MetadataFieldCreateManyProjectInputEnvelope + connect?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] +} + +export type MetadataFieldUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.MetadataFieldCreateWithoutProjectInput, + Prisma.MetadataFieldUncheckedCreateWithoutProjectInput + > + | Prisma.MetadataFieldCreateWithoutProjectInput[] + | Prisma.MetadataFieldUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.MetadataFieldCreateOrConnectWithoutProjectInput + | Prisma.MetadataFieldCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.MetadataFieldUpsertWithWhereUniqueWithoutProjectInput + | Prisma.MetadataFieldUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.MetadataFieldCreateManyProjectInputEnvelope + set?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + disconnect?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + delete?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + connect?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + update?: + | Prisma.MetadataFieldUpdateWithWhereUniqueWithoutProjectInput + | Prisma.MetadataFieldUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.MetadataFieldUpdateManyWithWhereWithoutProjectInput + | Prisma.MetadataFieldUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.MetadataFieldScalarWhereInput | Prisma.MetadataFieldScalarWhereInput[] +} + +export type MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.MetadataFieldCreateWithoutProjectInput, + Prisma.MetadataFieldUncheckedCreateWithoutProjectInput + > + | Prisma.MetadataFieldCreateWithoutProjectInput[] + | Prisma.MetadataFieldUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.MetadataFieldCreateOrConnectWithoutProjectInput + | Prisma.MetadataFieldCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.MetadataFieldUpsertWithWhereUniqueWithoutProjectInput + | Prisma.MetadataFieldUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.MetadataFieldCreateManyProjectInputEnvelope + set?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + disconnect?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + delete?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + connect?: Prisma.MetadataFieldWhereUniqueInput | Prisma.MetadataFieldWhereUniqueInput[] + update?: + | Prisma.MetadataFieldUpdateWithWhereUniqueWithoutProjectInput + | Prisma.MetadataFieldUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.MetadataFieldUpdateManyWithWhereWithoutProjectInput + | Prisma.MetadataFieldUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.MetadataFieldScalarWhereInput | Prisma.MetadataFieldScalarWhereInput[] +} + +export type NullableEnumMetadataFieldScopeFieldUpdateOperationsInput = { + set?: $Enums.MetadataFieldScope | null +} + +export type MetadataFieldCreateWithoutTeamInput = { + id?: string + key: string + scope?: $Enums.MetadataFieldScope | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: boolean + aiAutofill?: boolean + description?: string + project?: Prisma.ProjectCreateNestedOneWithoutMetadataFieldsInput +} + +export type MetadataFieldUncheckedCreateWithoutTeamInput = { + id?: string + key: string + scope?: $Enums.MetadataFieldScope | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: boolean + aiAutofill?: boolean + description?: string + projectId?: string | null +} + +export type MetadataFieldCreateOrConnectWithoutTeamInput = { + where: Prisma.MetadataFieldWhereUniqueInput + create: Prisma.XOR< + Prisma.MetadataFieldCreateWithoutTeamInput, + Prisma.MetadataFieldUncheckedCreateWithoutTeamInput + > +} + +export type MetadataFieldCreateManyTeamInputEnvelope = { + data: Prisma.MetadataFieldCreateManyTeamInput | Prisma.MetadataFieldCreateManyTeamInput[] + skipDuplicates?: boolean +} + +export type MetadataFieldUpsertWithWhereUniqueWithoutTeamInput = { + where: Prisma.MetadataFieldWhereUniqueInput + update: Prisma.XOR< + Prisma.MetadataFieldUpdateWithoutTeamInput, + Prisma.MetadataFieldUncheckedUpdateWithoutTeamInput + > + create: Prisma.XOR< + Prisma.MetadataFieldCreateWithoutTeamInput, + Prisma.MetadataFieldUncheckedCreateWithoutTeamInput + > +} + +export type MetadataFieldUpdateWithWhereUniqueWithoutTeamInput = { + where: Prisma.MetadataFieldWhereUniqueInput + data: Prisma.XOR< + Prisma.MetadataFieldUpdateWithoutTeamInput, + Prisma.MetadataFieldUncheckedUpdateWithoutTeamInput + > +} + +export type MetadataFieldUpdateManyWithWhereWithoutTeamInput = { + where: Prisma.MetadataFieldScalarWhereInput + data: Prisma.XOR< + Prisma.MetadataFieldUpdateManyMutationInput, + Prisma.MetadataFieldUncheckedUpdateManyWithoutTeamInput + > +} + +export type MetadataFieldScalarWhereInput = { + AND?: Prisma.MetadataFieldScalarWhereInput | Prisma.MetadataFieldScalarWhereInput[] + OR?: Prisma.MetadataFieldScalarWhereInput[] + NOT?: Prisma.MetadataFieldScalarWhereInput | Prisma.MetadataFieldScalarWhereInput[] + id?: Prisma.StringFilter<'MetadataField'> | string + key?: Prisma.StringFilter<'MetadataField'> | string + scope?: + | Prisma.EnumMetadataFieldScopeNullableFilter<'MetadataField'> + | $Enums.MetadataFieldScope + | null + config?: Prisma.JsonNullableFilter<'MetadataField'> + readOnly?: Prisma.BoolFilter<'MetadataField'> | boolean + aiAutofill?: Prisma.BoolFilter<'MetadataField'> | boolean + description?: Prisma.StringFilter<'MetadataField'> | string + teamId?: Prisma.StringNullableFilter<'MetadataField'> | string | null + projectId?: Prisma.StringNullableFilter<'MetadataField'> | string | null +} + +export type MetadataFieldCreateWithoutProjectInput = { + id?: string + key: string + scope?: $Enums.MetadataFieldScope | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: boolean + aiAutofill?: boolean + description?: string + team?: Prisma.TeamCreateNestedOneWithoutMetadataFieldsInput +} + +export type MetadataFieldUncheckedCreateWithoutProjectInput = { + id?: string + key: string + scope?: $Enums.MetadataFieldScope | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: boolean + aiAutofill?: boolean + description?: string + teamId?: string | null +} + +export type MetadataFieldCreateOrConnectWithoutProjectInput = { + where: Prisma.MetadataFieldWhereUniqueInput + create: Prisma.XOR< + Prisma.MetadataFieldCreateWithoutProjectInput, + Prisma.MetadataFieldUncheckedCreateWithoutProjectInput + > +} + +export type MetadataFieldCreateManyProjectInputEnvelope = { + data: Prisma.MetadataFieldCreateManyProjectInput | Prisma.MetadataFieldCreateManyProjectInput[] + skipDuplicates?: boolean +} + +export type MetadataFieldUpsertWithWhereUniqueWithoutProjectInput = { + where: Prisma.MetadataFieldWhereUniqueInput + update: Prisma.XOR< + Prisma.MetadataFieldUpdateWithoutProjectInput, + Prisma.MetadataFieldUncheckedUpdateWithoutProjectInput + > + create: Prisma.XOR< + Prisma.MetadataFieldCreateWithoutProjectInput, + Prisma.MetadataFieldUncheckedCreateWithoutProjectInput + > +} + +export type MetadataFieldUpdateWithWhereUniqueWithoutProjectInput = { + where: Prisma.MetadataFieldWhereUniqueInput + data: Prisma.XOR< + Prisma.MetadataFieldUpdateWithoutProjectInput, + Prisma.MetadataFieldUncheckedUpdateWithoutProjectInput + > +} + +export type MetadataFieldUpdateManyWithWhereWithoutProjectInput = { + where: Prisma.MetadataFieldScalarWhereInput + data: Prisma.XOR< + Prisma.MetadataFieldUpdateManyMutationInput, + Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectInput + > +} + +export type MetadataFieldCreateManyTeamInput = { + id?: string + key: string + scope?: $Enums.MetadataFieldScope | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: boolean + aiAutofill?: boolean + description?: string + projectId?: string | null +} + +export type MetadataFieldUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + scope?: + | Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput + | $Enums.MetadataFieldScope + | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean + aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean + description?: Prisma.StringFieldUpdateOperationsInput | string + project?: Prisma.ProjectUpdateOneWithoutMetadataFieldsNestedInput +} + +export type MetadataFieldUncheckedUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + scope?: + | Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput + | $Enums.MetadataFieldScope + | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean + aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean + description?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type MetadataFieldUncheckedUpdateManyWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + scope?: + | Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput + | $Enums.MetadataFieldScope + | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean + aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean + description?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type MetadataFieldCreateManyProjectInput = { + id?: string + key: string + scope?: $Enums.MetadataFieldScope | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: boolean + aiAutofill?: boolean + description?: string + teamId?: string | null +} + +export type MetadataFieldUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + scope?: + | Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput + | $Enums.MetadataFieldScope + | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean + aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean + description?: Prisma.StringFieldUpdateOperationsInput | string + team?: Prisma.TeamUpdateOneWithoutMetadataFieldsNestedInput +} + +export type MetadataFieldUncheckedUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + scope?: + | Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput + | $Enums.MetadataFieldScope + | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean + aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean + description?: Prisma.StringFieldUpdateOperationsInput | string + teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type MetadataFieldUncheckedUpdateManyWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + scope?: + | Prisma.NullableEnumMetadataFieldScopeFieldUpdateOperationsInput + | $Enums.MetadataFieldScope + | null + config?: PrismaJson.FieldConfig | Prisma.NullableJsonNullValueInput + readOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean + aiAutofill?: Prisma.BoolFieldUpdateOperationsInput | boolean + description?: Prisma.StringFieldUpdateOperationsInput | string + teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type MetadataFieldSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + key?: boolean + scope?: boolean + config?: boolean + readOnly?: boolean + aiAutofill?: boolean + description?: boolean + teamId?: boolean + projectId?: boolean + team?: boolean | Prisma.MetadataField$teamArgs + project?: boolean | Prisma.MetadataField$projectArgs + }, + ExtArgs['result']['metadataField'] +> + +export type MetadataFieldSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + key?: boolean + scope?: boolean + config?: boolean + readOnly?: boolean + aiAutofill?: boolean + description?: boolean + teamId?: boolean + projectId?: boolean + team?: boolean | Prisma.MetadataField$teamArgs + project?: boolean | Prisma.MetadataField$projectArgs + }, + ExtArgs['result']['metadataField'] +> + +export type MetadataFieldSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + key?: boolean + scope?: boolean + config?: boolean + readOnly?: boolean + aiAutofill?: boolean + description?: boolean + teamId?: boolean + projectId?: boolean + team?: boolean | Prisma.MetadataField$teamArgs + project?: boolean | Prisma.MetadataField$projectArgs + }, + ExtArgs['result']['metadataField'] +> + +export type MetadataFieldSelectScalar = { + id?: boolean + key?: boolean + scope?: boolean + config?: boolean + readOnly?: boolean + aiAutofill?: boolean + description?: boolean + teamId?: boolean + projectId?: boolean +} + +export type MetadataFieldOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'key' + | 'scope' + | 'config' + | 'readOnly' + | 'aiAutofill' + | 'description' + | 'teamId' + | 'projectId', + ExtArgs['result']['metadataField'] +> +export type MetadataFieldInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.MetadataField$teamArgs + project?: boolean | Prisma.MetadataField$projectArgs +} +export type MetadataFieldIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.MetadataField$teamArgs + project?: boolean | Prisma.MetadataField$projectArgs +} +export type MetadataFieldIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.MetadataField$teamArgs + project?: boolean | Prisma.MetadataField$projectArgs +} + +export type $MetadataFieldPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'MetadataField' + objects: { + team: Prisma.$TeamPayload | null + project: Prisma.$ProjectPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + key: string + scope: $Enums.MetadataFieldScope | null + /** + * [FieldConfig] + */ + config: PrismaJson.FieldConfig | null + readOnly: boolean + aiAutofill: boolean + description: string + teamId: string | null + projectId: string | null + }, + ExtArgs['result']['metadataField'] + > + composites: {} +} + +export type MetadataFieldGetPayload< + S extends boolean | null | undefined | MetadataFieldDefaultArgs, +> = runtime.Types.Result.GetResult + +export type MetadataFieldCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: MetadataFieldCountAggregateInputType | true +} + +export interface MetadataFieldDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['MetadataField'] + meta: { name: 'MetadataField' } + } + /** + * Find zero or one MetadataField that matches the filter. + * @param {MetadataFieldFindUniqueArgs} args - Arguments to find a MetadataField + * @example + * // Get one MetadataField + * const metadataField = await prisma.metadataField.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__MetadataFieldClient< + runtime.Types.Result.GetResult< + Prisma.$MetadataFieldPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one MetadataField that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {MetadataFieldFindUniqueOrThrowArgs} args - Arguments to find a MetadataField + * @example + * // Get one MetadataField + * const metadataField = await prisma.metadataField.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__MetadataFieldClient< + runtime.Types.Result.GetResult< + Prisma.$MetadataFieldPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first MetadataField that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MetadataFieldFindFirstArgs} args - Arguments to find a MetadataField + * @example + * // Get one MetadataField + * const metadataField = await prisma.metadataField.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__MetadataFieldClient< + runtime.Types.Result.GetResult< + Prisma.$MetadataFieldPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first MetadataField that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MetadataFieldFindFirstOrThrowArgs} args - Arguments to find a MetadataField + * @example + * // Get one MetadataField + * const metadataField = await prisma.metadataField.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__MetadataFieldClient< + runtime.Types.Result.GetResult< + Prisma.$MetadataFieldPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more MetadataFields that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MetadataFieldFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all MetadataFields + * const metadataFields = await prisma.metadataField.findMany() + * + * // Get first 10 MetadataFields + * const metadataFields = await prisma.metadataField.findMany({ take: 10 }) + * + * // Only select the `id` + * const metadataFieldWithIdOnly = await prisma.metadataField.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$MetadataFieldPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a MetadataField. + * @param {MetadataFieldCreateArgs} args - Arguments to create a MetadataField. + * @example + * // Create one MetadataField + * const MetadataField = await prisma.metadataField.create({ + * data: { + * // ... data to create a MetadataField + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__MetadataFieldClient< + runtime.Types.Result.GetResult< + Prisma.$MetadataFieldPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many MetadataFields. + * @param {MetadataFieldCreateManyArgs} args - Arguments to create many MetadataFields. + * @example + * // Create many MetadataFields + * const metadataField = await prisma.metadataField.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many MetadataFields and returns the data saved in the database. + * @param {MetadataFieldCreateManyAndReturnArgs} args - Arguments to create many MetadataFields. + * @example + * // Create many MetadataFields + * const metadataField = await prisma.metadataField.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many MetadataFields and only return the `id` + * const metadataFieldWithIdOnly = await prisma.metadataField.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$MetadataFieldPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a MetadataField. + * @param {MetadataFieldDeleteArgs} args - Arguments to delete one MetadataField. + * @example + * // Delete one MetadataField + * const MetadataField = await prisma.metadataField.delete({ + * where: { + * // ... filter to delete one MetadataField + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__MetadataFieldClient< + runtime.Types.Result.GetResult< + Prisma.$MetadataFieldPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one MetadataField. + * @param {MetadataFieldUpdateArgs} args - Arguments to update one MetadataField. + * @example + * // Update one MetadataField + * const metadataField = await prisma.metadataField.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__MetadataFieldClient< + runtime.Types.Result.GetResult< + Prisma.$MetadataFieldPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more MetadataFields. + * @param {MetadataFieldDeleteManyArgs} args - Arguments to filter MetadataFields to delete. + * @example + * // Delete a few MetadataFields + * const { count } = await prisma.metadataField.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more MetadataFields. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MetadataFieldUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many MetadataFields + * const metadataField = await prisma.metadataField.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more MetadataFields and returns the data updated in the database. + * @param {MetadataFieldUpdateManyAndReturnArgs} args - Arguments to update many MetadataFields. + * @example + * // Update many MetadataFields + * const metadataField = await prisma.metadataField.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more MetadataFields and only return the `id` + * const metadataFieldWithIdOnly = await prisma.metadataField.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$MetadataFieldPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one MetadataField. + * @param {MetadataFieldUpsertArgs} args - Arguments to update or create a MetadataField. + * @example + * // Update or create a MetadataField + * const metadataField = await prisma.metadataField.upsert({ + * create: { + * // ... data to create a MetadataField + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the MetadataField we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__MetadataFieldClient< + runtime.Types.Result.GetResult< + Prisma.$MetadataFieldPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of MetadataFields. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MetadataFieldCountArgs} args - Arguments to filter MetadataFields to count. + * @example + * // Count the number of MetadataFields + * const count = await prisma.metadataField.count({ + * where: { + * // ... the filter for the MetadataFields we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a MetadataField. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MetadataFieldAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by MetadataField. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MetadataFieldGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends MetadataFieldGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: MetadataFieldGroupByArgs['orderBy'] } + : { orderBy?: MetadataFieldGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetMetadataFieldGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the MetadataField model + */ + readonly fields: MetadataFieldFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for MetadataField. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__MetadataFieldClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + team = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TeamClient< + runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + project = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the MetadataField model + */ +export interface MetadataFieldFieldRefs { + readonly id: Prisma.FieldRef<'MetadataField', 'String'> + readonly key: Prisma.FieldRef<'MetadataField', 'String'> + readonly scope: Prisma.FieldRef<'MetadataField', 'MetadataFieldScope'> + readonly config: Prisma.FieldRef<'MetadataField', 'Json'> + readonly readOnly: Prisma.FieldRef<'MetadataField', 'Boolean'> + readonly aiAutofill: Prisma.FieldRef<'MetadataField', 'Boolean'> + readonly description: Prisma.FieldRef<'MetadataField', 'String'> + readonly teamId: Prisma.FieldRef<'MetadataField', 'String'> + readonly projectId: Prisma.FieldRef<'MetadataField', 'String'> +} + +// Custom InputTypes +/** + * MetadataField findUnique + */ +export type MetadataFieldFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelect | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldInclude | null + /** + * Filter, which MetadataField to fetch. + */ + where: Prisma.MetadataFieldWhereUniqueInput +} + +/** + * MetadataField findUniqueOrThrow + */ +export type MetadataFieldFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelect | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldInclude | null + /** + * Filter, which MetadataField to fetch. + */ + where: Prisma.MetadataFieldWhereUniqueInput +} + +/** + * MetadataField findFirst + */ +export type MetadataFieldFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelect | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldInclude | null + /** + * Filter, which MetadataField to fetch. + */ + where?: Prisma.MetadataFieldWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MetadataFields to fetch. + */ + orderBy?: + | Prisma.MetadataFieldOrderByWithRelationInput + | Prisma.MetadataFieldOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for MetadataFields. + */ + cursor?: Prisma.MetadataFieldWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MetadataFields from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` MetadataFields. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of MetadataFields. + */ + distinct?: Prisma.MetadataFieldScalarFieldEnum | Prisma.MetadataFieldScalarFieldEnum[] +} + +/** + * MetadataField findFirstOrThrow + */ +export type MetadataFieldFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelect | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldInclude | null + /** + * Filter, which MetadataField to fetch. + */ + where?: Prisma.MetadataFieldWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MetadataFields to fetch. + */ + orderBy?: + | Prisma.MetadataFieldOrderByWithRelationInput + | Prisma.MetadataFieldOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for MetadataFields. + */ + cursor?: Prisma.MetadataFieldWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MetadataFields from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` MetadataFields. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of MetadataFields. + */ + distinct?: Prisma.MetadataFieldScalarFieldEnum | Prisma.MetadataFieldScalarFieldEnum[] +} + +/** + * MetadataField findMany + */ +export type MetadataFieldFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelect | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldInclude | null + /** + * Filter, which MetadataFields to fetch. + */ + where?: Prisma.MetadataFieldWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MetadataFields to fetch. + */ + orderBy?: + | Prisma.MetadataFieldOrderByWithRelationInput + | Prisma.MetadataFieldOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing MetadataFields. + */ + cursor?: Prisma.MetadataFieldWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MetadataFields from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` MetadataFields. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of MetadataFields. + */ + distinct?: Prisma.MetadataFieldScalarFieldEnum | Prisma.MetadataFieldScalarFieldEnum[] +} + +/** + * MetadataField create + */ +export type MetadataFieldCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelect | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldInclude | null + /** + * The data needed to create a MetadataField. + */ + data: Prisma.XOR +} + +/** + * MetadataField createMany + */ +export type MetadataFieldCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many MetadataFields. + */ + data: Prisma.MetadataFieldCreateManyInput | Prisma.MetadataFieldCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * MetadataField createManyAndReturn + */ +export type MetadataFieldCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelectCreateManyAndReturn | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * The data used to create many MetadataFields. + */ + data: Prisma.MetadataFieldCreateManyInput | Prisma.MetadataFieldCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldIncludeCreateManyAndReturn | null +} + +/** + * MetadataField update + */ +export type MetadataFieldUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelect | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldInclude | null + /** + * The data needed to update a MetadataField. + */ + data: Prisma.XOR + /** + * Choose, which MetadataField to update. + */ + where: Prisma.MetadataFieldWhereUniqueInput +} + +/** + * MetadataField updateMany + */ +export type MetadataFieldUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update MetadataFields. + */ + data: Prisma.XOR< + Prisma.MetadataFieldUpdateManyMutationInput, + Prisma.MetadataFieldUncheckedUpdateManyInput + > + /** + * Filter which MetadataFields to update + */ + where?: Prisma.MetadataFieldWhereInput + /** + * Limit how many MetadataFields to update. + */ + limit?: number +} + +/** + * MetadataField updateManyAndReturn + */ +export type MetadataFieldUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * The data used to update MetadataFields. + */ + data: Prisma.XOR< + Prisma.MetadataFieldUpdateManyMutationInput, + Prisma.MetadataFieldUncheckedUpdateManyInput + > + /** + * Filter which MetadataFields to update + */ + where?: Prisma.MetadataFieldWhereInput + /** + * Limit how many MetadataFields to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldIncludeUpdateManyAndReturn | null +} + +/** + * MetadataField upsert + */ +export type MetadataFieldUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelect | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldInclude | null + /** + * The filter to search for the MetadataField to update in case it exists. + */ + where: Prisma.MetadataFieldWhereUniqueInput + /** + * In case the MetadataField found by the `where` argument doesn't exist, create a new MetadataField with this data. + */ + create: Prisma.XOR + /** + * In case the MetadataField was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * MetadataField delete + */ +export type MetadataFieldDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelect | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldInclude | null + /** + * Filter which MetadataField to delete. + */ + where: Prisma.MetadataFieldWhereUniqueInput +} + +/** + * MetadataField deleteMany + */ +export type MetadataFieldDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which MetadataFields to delete + */ + where?: Prisma.MetadataFieldWhereInput + /** + * Limit how many MetadataFields to delete. + */ + limit?: number +} + +/** + * MetadataField.team + */ +export type MetadataField$teamArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelect | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamInclude | null + where?: Prisma.TeamWhereInput +} + +/** + * MetadataField.project + */ +export type MetadataField$projectArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + where?: Prisma.ProjectWhereInput +} + +/** + * MetadataField without action + */ +export type MetadataFieldDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelect | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldInclude | null +} diff --git a/packages/db/src/generated/prisma/models/Model.ts b/packages/db/src/generated/prisma/models/Model.ts new file mode 100644 index 00000000..48ba2f53 --- /dev/null +++ b/packages/db/src/generated/prisma/models/Model.ts @@ -0,0 +1,1854 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Model` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Model + * + */ +export type ModelModel = runtime.Types.Result.DefaultSelection + +export type AggregateModel = { + _count: ModelCountAggregateOutputType | null + _min: ModelMinAggregateOutputType | null + _max: ModelMaxAggregateOutputType | null +} + +export type ModelMinAggregateOutputType = { + id: string | null + modelId: string | null + name: string | null + createdAt: Date | null + updatedAt: Date | null + providerId: string | null +} + +export type ModelMaxAggregateOutputType = { + id: string | null + modelId: string | null + name: string | null + createdAt: Date | null + updatedAt: Date | null + providerId: string | null +} + +export type ModelCountAggregateOutputType = { + id: number + modelId: number + name: number + config: PrismaJson.ModelConfig + createdAt: number + updatedAt: number + providerId: number + _all: number +} + +export type ModelMinAggregateInputType = { + id?: true + modelId?: true + name?: true + createdAt?: true + updatedAt?: true + providerId?: true +} + +export type ModelMaxAggregateInputType = { + id?: true + modelId?: true + name?: true + createdAt?: true + updatedAt?: true + providerId?: true +} + +export type ModelCountAggregateInputType = { + id?: true + modelId?: true + name?: true + config?: true + createdAt?: true + updatedAt?: true + providerId?: true + _all?: true +} + +export type ModelAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Model to aggregate. + */ + where?: Prisma.ModelWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Models to fetch. + */ + orderBy?: Prisma.ModelOrderByWithRelationInput | Prisma.ModelOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ModelWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Models from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Models. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Models + **/ + _count?: true | ModelCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ModelMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ModelMaxAggregateInputType +} + +export type GetModelAggregateType = { + [P in keyof T & keyof AggregateModel]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type ModelGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.ModelWhereInput + orderBy?: Prisma.ModelOrderByWithAggregationInput | Prisma.ModelOrderByWithAggregationInput[] + by: Prisma.ModelScalarFieldEnum[] | Prisma.ModelScalarFieldEnum + having?: Prisma.ModelScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ModelCountAggregateInputType | true + _min?: ModelMinAggregateInputType + _max?: ModelMaxAggregateInputType +} + +export type ModelGroupByOutputType = { + id: string + modelId: string + name: string + config: PrismaJson.ModelConfig + createdAt: Date + updatedAt: Date + providerId: string + _count: ModelCountAggregateOutputType | null + _min: ModelMinAggregateOutputType | null + _max: ModelMaxAggregateOutputType | null +} + +export type GetModelGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof ModelGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type ModelWhereInput = { + AND?: Prisma.ModelWhereInput | Prisma.ModelWhereInput[] + OR?: Prisma.ModelWhereInput[] + NOT?: Prisma.ModelWhereInput | Prisma.ModelWhereInput[] + id?: Prisma.StringFilter<'Model'> | string + modelId?: Prisma.StringFilter<'Model'> | string + name?: Prisma.StringFilter<'Model'> | string + config?: Prisma.JsonFilter<'Model'> + createdAt?: Prisma.DateTimeFilter<'Model'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Model'> | Date | string + providerId?: Prisma.StringFilter<'Model'> | string + provider?: Prisma.XOR + agents?: Prisma.AgentListRelationFilter +} + +export type ModelOrderByWithRelationInput = { + id?: Prisma.SortOrder + modelId?: Prisma.SortOrder + name?: Prisma.SortOrder + config?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + providerId?: Prisma.SortOrder + provider?: Prisma.ProviderOrderByWithRelationInput + agents?: Prisma.AgentOrderByRelationAggregateInput +} + +export type ModelWhereUniqueInput = Prisma.AtLeast< + { + id?: string + providerId_modelId?: Prisma.ModelProviderIdModelIdCompoundUniqueInput + AND?: Prisma.ModelWhereInput | Prisma.ModelWhereInput[] + OR?: Prisma.ModelWhereInput[] + NOT?: Prisma.ModelWhereInput | Prisma.ModelWhereInput[] + modelId?: Prisma.StringFilter<'Model'> | string + name?: Prisma.StringFilter<'Model'> | string + config?: Prisma.JsonFilter<'Model'> + createdAt?: Prisma.DateTimeFilter<'Model'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Model'> | Date | string + providerId?: Prisma.StringFilter<'Model'> | string + provider?: Prisma.XOR + agents?: Prisma.AgentListRelationFilter + }, + 'id' | 'providerId_modelId' +> + +export type ModelOrderByWithAggregationInput = { + id?: Prisma.SortOrder + modelId?: Prisma.SortOrder + name?: Prisma.SortOrder + config?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + providerId?: Prisma.SortOrder + _count?: Prisma.ModelCountOrderByAggregateInput + _max?: Prisma.ModelMaxOrderByAggregateInput + _min?: Prisma.ModelMinOrderByAggregateInput +} + +export type ModelScalarWhereWithAggregatesInput = { + AND?: Prisma.ModelScalarWhereWithAggregatesInput | Prisma.ModelScalarWhereWithAggregatesInput[] + OR?: Prisma.ModelScalarWhereWithAggregatesInput[] + NOT?: Prisma.ModelScalarWhereWithAggregatesInput | Prisma.ModelScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Model'> | string + modelId?: Prisma.StringWithAggregatesFilter<'Model'> | string + name?: Prisma.StringWithAggregatesFilter<'Model'> | string + config?: Prisma.JsonWithAggregatesFilter<'Model'> + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Model'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Model'> | Date | string + providerId?: Prisma.StringWithAggregatesFilter<'Model'> | string +} + +export type ModelCreateInput = { + id?: string + modelId: string + name?: string + config: PrismaJson.ModelConfig + createdAt?: Date | string + updatedAt?: Date | string + provider: Prisma.ProviderCreateNestedOneWithoutModelsInput + agents?: Prisma.AgentCreateNestedManyWithoutModelRefInput +} + +export type ModelUncheckedCreateInput = { + id?: string + modelId: string + name?: string + config: PrismaJson.ModelConfig + createdAt?: Date | string + updatedAt?: Date | string + providerId: string + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutModelRefInput +} + +export type ModelUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + modelId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.ModelConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + provider?: Prisma.ProviderUpdateOneRequiredWithoutModelsNestedInput + agents?: Prisma.AgentUpdateManyWithoutModelRefNestedInput +} + +export type ModelUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + modelId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.ModelConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + agents?: Prisma.AgentUncheckedUpdateManyWithoutModelRefNestedInput +} + +export type ModelCreateManyInput = { + id?: string + modelId: string + name?: string + config: PrismaJson.ModelConfig + createdAt?: Date | string + updatedAt?: Date | string + providerId: string +} + +export type ModelUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + modelId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.ModelConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ModelUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + modelId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.ModelConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ModelNullableScalarRelationFilter = { + is?: Prisma.ModelWhereInput | null + isNot?: Prisma.ModelWhereInput | null +} + +export type ModelProviderIdModelIdCompoundUniqueInput = { + providerId: string + modelId: string +} + +export type ModelCountOrderByAggregateInput = { + id?: Prisma.SortOrder + modelId?: Prisma.SortOrder + name?: Prisma.SortOrder + config?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + providerId?: Prisma.SortOrder +} + +export type ModelMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + modelId?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + providerId?: Prisma.SortOrder +} + +export type ModelMinOrderByAggregateInput = { + id?: Prisma.SortOrder + modelId?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + providerId?: Prisma.SortOrder +} + +export type ModelListRelationFilter = { + every?: Prisma.ModelWhereInput + some?: Prisma.ModelWhereInput + none?: Prisma.ModelWhereInput +} + +export type ModelOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ModelCreateNestedOneWithoutAgentsInput = { + create?: Prisma.XOR< + Prisma.ModelCreateWithoutAgentsInput, + Prisma.ModelUncheckedCreateWithoutAgentsInput + > + connectOrCreate?: Prisma.ModelCreateOrConnectWithoutAgentsInput + connect?: Prisma.ModelWhereUniqueInput +} + +export type ModelUpdateOneWithoutAgentsNestedInput = { + create?: Prisma.XOR< + Prisma.ModelCreateWithoutAgentsInput, + Prisma.ModelUncheckedCreateWithoutAgentsInput + > + connectOrCreate?: Prisma.ModelCreateOrConnectWithoutAgentsInput + upsert?: Prisma.ModelUpsertWithoutAgentsInput + disconnect?: Prisma.ModelWhereInput | boolean + delete?: Prisma.ModelWhereInput | boolean + connect?: Prisma.ModelWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ModelUpdateToOneWithWhereWithoutAgentsInput, + Prisma.ModelUpdateWithoutAgentsInput + >, + Prisma.ModelUncheckedUpdateWithoutAgentsInput + > +} + +export type ModelCreateNestedManyWithoutProviderInput = { + create?: + | Prisma.XOR< + Prisma.ModelCreateWithoutProviderInput, + Prisma.ModelUncheckedCreateWithoutProviderInput + > + | Prisma.ModelCreateWithoutProviderInput[] + | Prisma.ModelUncheckedCreateWithoutProviderInput[] + connectOrCreate?: + | Prisma.ModelCreateOrConnectWithoutProviderInput + | Prisma.ModelCreateOrConnectWithoutProviderInput[] + createMany?: Prisma.ModelCreateManyProviderInputEnvelope + connect?: Prisma.ModelWhereUniqueInput | Prisma.ModelWhereUniqueInput[] +} + +export type ModelUncheckedCreateNestedManyWithoutProviderInput = { + create?: + | Prisma.XOR< + Prisma.ModelCreateWithoutProviderInput, + Prisma.ModelUncheckedCreateWithoutProviderInput + > + | Prisma.ModelCreateWithoutProviderInput[] + | Prisma.ModelUncheckedCreateWithoutProviderInput[] + connectOrCreate?: + | Prisma.ModelCreateOrConnectWithoutProviderInput + | Prisma.ModelCreateOrConnectWithoutProviderInput[] + createMany?: Prisma.ModelCreateManyProviderInputEnvelope + connect?: Prisma.ModelWhereUniqueInput | Prisma.ModelWhereUniqueInput[] +} + +export type ModelUpdateManyWithoutProviderNestedInput = { + create?: + | Prisma.XOR< + Prisma.ModelCreateWithoutProviderInput, + Prisma.ModelUncheckedCreateWithoutProviderInput + > + | Prisma.ModelCreateWithoutProviderInput[] + | Prisma.ModelUncheckedCreateWithoutProviderInput[] + connectOrCreate?: + | Prisma.ModelCreateOrConnectWithoutProviderInput + | Prisma.ModelCreateOrConnectWithoutProviderInput[] + upsert?: + | Prisma.ModelUpsertWithWhereUniqueWithoutProviderInput + | Prisma.ModelUpsertWithWhereUniqueWithoutProviderInput[] + createMany?: Prisma.ModelCreateManyProviderInputEnvelope + set?: Prisma.ModelWhereUniqueInput | Prisma.ModelWhereUniqueInput[] + disconnect?: Prisma.ModelWhereUniqueInput | Prisma.ModelWhereUniqueInput[] + delete?: Prisma.ModelWhereUniqueInput | Prisma.ModelWhereUniqueInput[] + connect?: Prisma.ModelWhereUniqueInput | Prisma.ModelWhereUniqueInput[] + update?: + | Prisma.ModelUpdateWithWhereUniqueWithoutProviderInput + | Prisma.ModelUpdateWithWhereUniqueWithoutProviderInput[] + updateMany?: + | Prisma.ModelUpdateManyWithWhereWithoutProviderInput + | Prisma.ModelUpdateManyWithWhereWithoutProviderInput[] + deleteMany?: Prisma.ModelScalarWhereInput | Prisma.ModelScalarWhereInput[] +} + +export type ModelUncheckedUpdateManyWithoutProviderNestedInput = { + create?: + | Prisma.XOR< + Prisma.ModelCreateWithoutProviderInput, + Prisma.ModelUncheckedCreateWithoutProviderInput + > + | Prisma.ModelCreateWithoutProviderInput[] + | Prisma.ModelUncheckedCreateWithoutProviderInput[] + connectOrCreate?: + | Prisma.ModelCreateOrConnectWithoutProviderInput + | Prisma.ModelCreateOrConnectWithoutProviderInput[] + upsert?: + | Prisma.ModelUpsertWithWhereUniqueWithoutProviderInput + | Prisma.ModelUpsertWithWhereUniqueWithoutProviderInput[] + createMany?: Prisma.ModelCreateManyProviderInputEnvelope + set?: Prisma.ModelWhereUniqueInput | Prisma.ModelWhereUniqueInput[] + disconnect?: Prisma.ModelWhereUniqueInput | Prisma.ModelWhereUniqueInput[] + delete?: Prisma.ModelWhereUniqueInput | Prisma.ModelWhereUniqueInput[] + connect?: Prisma.ModelWhereUniqueInput | Prisma.ModelWhereUniqueInput[] + update?: + | Prisma.ModelUpdateWithWhereUniqueWithoutProviderInput + | Prisma.ModelUpdateWithWhereUniqueWithoutProviderInput[] + updateMany?: + | Prisma.ModelUpdateManyWithWhereWithoutProviderInput + | Prisma.ModelUpdateManyWithWhereWithoutProviderInput[] + deleteMany?: Prisma.ModelScalarWhereInput | Prisma.ModelScalarWhereInput[] +} + +export type ModelCreateWithoutAgentsInput = { + id?: string + modelId: string + name?: string + config: PrismaJson.ModelConfig + createdAt?: Date | string + updatedAt?: Date | string + provider: Prisma.ProviderCreateNestedOneWithoutModelsInput +} + +export type ModelUncheckedCreateWithoutAgentsInput = { + id?: string + modelId: string + name?: string + config: PrismaJson.ModelConfig + createdAt?: Date | string + updatedAt?: Date | string + providerId: string +} + +export type ModelCreateOrConnectWithoutAgentsInput = { + where: Prisma.ModelWhereUniqueInput + create: Prisma.XOR< + Prisma.ModelCreateWithoutAgentsInput, + Prisma.ModelUncheckedCreateWithoutAgentsInput + > +} + +export type ModelUpsertWithoutAgentsInput = { + update: Prisma.XOR< + Prisma.ModelUpdateWithoutAgentsInput, + Prisma.ModelUncheckedUpdateWithoutAgentsInput + > + create: Prisma.XOR< + Prisma.ModelCreateWithoutAgentsInput, + Prisma.ModelUncheckedCreateWithoutAgentsInput + > + where?: Prisma.ModelWhereInput +} + +export type ModelUpdateToOneWithWhereWithoutAgentsInput = { + where?: Prisma.ModelWhereInput + data: Prisma.XOR< + Prisma.ModelUpdateWithoutAgentsInput, + Prisma.ModelUncheckedUpdateWithoutAgentsInput + > +} + +export type ModelUpdateWithoutAgentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + modelId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.ModelConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + provider?: Prisma.ProviderUpdateOneRequiredWithoutModelsNestedInput +} + +export type ModelUncheckedUpdateWithoutAgentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + modelId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.ModelConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ModelCreateWithoutProviderInput = { + id?: string + modelId: string + name?: string + config: PrismaJson.ModelConfig + createdAt?: Date | string + updatedAt?: Date | string + agents?: Prisma.AgentCreateNestedManyWithoutModelRefInput +} + +export type ModelUncheckedCreateWithoutProviderInput = { + id?: string + modelId: string + name?: string + config: PrismaJson.ModelConfig + createdAt?: Date | string + updatedAt?: Date | string + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutModelRefInput +} + +export type ModelCreateOrConnectWithoutProviderInput = { + where: Prisma.ModelWhereUniqueInput + create: Prisma.XOR< + Prisma.ModelCreateWithoutProviderInput, + Prisma.ModelUncheckedCreateWithoutProviderInput + > +} + +export type ModelCreateManyProviderInputEnvelope = { + data: Prisma.ModelCreateManyProviderInput | Prisma.ModelCreateManyProviderInput[] + skipDuplicates?: boolean +} + +export type ModelUpsertWithWhereUniqueWithoutProviderInput = { + where: Prisma.ModelWhereUniqueInput + update: Prisma.XOR< + Prisma.ModelUpdateWithoutProviderInput, + Prisma.ModelUncheckedUpdateWithoutProviderInput + > + create: Prisma.XOR< + Prisma.ModelCreateWithoutProviderInput, + Prisma.ModelUncheckedCreateWithoutProviderInput + > +} + +export type ModelUpdateWithWhereUniqueWithoutProviderInput = { + where: Prisma.ModelWhereUniqueInput + data: Prisma.XOR< + Prisma.ModelUpdateWithoutProviderInput, + Prisma.ModelUncheckedUpdateWithoutProviderInput + > +} + +export type ModelUpdateManyWithWhereWithoutProviderInput = { + where: Prisma.ModelScalarWhereInput + data: Prisma.XOR< + Prisma.ModelUpdateManyMutationInput, + Prisma.ModelUncheckedUpdateManyWithoutProviderInput + > +} + +export type ModelScalarWhereInput = { + AND?: Prisma.ModelScalarWhereInput | Prisma.ModelScalarWhereInput[] + OR?: Prisma.ModelScalarWhereInput[] + NOT?: Prisma.ModelScalarWhereInput | Prisma.ModelScalarWhereInput[] + id?: Prisma.StringFilter<'Model'> | string + modelId?: Prisma.StringFilter<'Model'> | string + name?: Prisma.StringFilter<'Model'> | string + config?: Prisma.JsonFilter<'Model'> + createdAt?: Prisma.DateTimeFilter<'Model'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Model'> | Date | string + providerId?: Prisma.StringFilter<'Model'> | string +} + +export type ModelCreateManyProviderInput = { + id?: string + modelId: string + name?: string + config: PrismaJson.ModelConfig + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ModelUpdateWithoutProviderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + modelId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.ModelConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agents?: Prisma.AgentUpdateManyWithoutModelRefNestedInput +} + +export type ModelUncheckedUpdateWithoutProviderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + modelId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.ModelConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agents?: Prisma.AgentUncheckedUpdateManyWithoutModelRefNestedInput +} + +export type ModelUncheckedUpdateManyWithoutProviderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + modelId?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + config?: PrismaJson.ModelConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +/** + * Count Type ModelCountOutputType + */ + +export type ModelCountOutputType = { + agents: number +} + +export type ModelCountOutputTypeSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + agents?: boolean | ModelCountOutputTypeCountAgentsArgs +} + +/** + * ModelCountOutputType without action + */ +export type ModelCountOutputTypeDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ModelCountOutputType + */ + select?: Prisma.ModelCountOutputTypeSelect | null +} + +/** + * ModelCountOutputType without action + */ +export type ModelCountOutputTypeCountAgentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AgentWhereInput +} + +export type ModelSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + modelId?: boolean + name?: boolean + config?: boolean + createdAt?: boolean + updatedAt?: boolean + providerId?: boolean + provider?: boolean | Prisma.ProviderDefaultArgs + agents?: boolean | Prisma.Model$agentsArgs + _count?: boolean | Prisma.ModelCountOutputTypeDefaultArgs + }, + ExtArgs['result']['model'] +> + +export type ModelSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + modelId?: boolean + name?: boolean + config?: boolean + createdAt?: boolean + updatedAt?: boolean + providerId?: boolean + provider?: boolean | Prisma.ProviderDefaultArgs + }, + ExtArgs['result']['model'] +> + +export type ModelSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + modelId?: boolean + name?: boolean + config?: boolean + createdAt?: boolean + updatedAt?: boolean + providerId?: boolean + provider?: boolean | Prisma.ProviderDefaultArgs + }, + ExtArgs['result']['model'] +> + +export type ModelSelectScalar = { + id?: boolean + modelId?: boolean + name?: boolean + config?: boolean + createdAt?: boolean + updatedAt?: boolean + providerId?: boolean +} + +export type ModelOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'modelId' | 'name' | 'config' | 'createdAt' | 'updatedAt' | 'providerId', + ExtArgs['result']['model'] +> +export type ModelInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + provider?: boolean | Prisma.ProviderDefaultArgs + agents?: boolean | Prisma.Model$agentsArgs + _count?: boolean | Prisma.ModelCountOutputTypeDefaultArgs +} +export type ModelIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + provider?: boolean | Prisma.ProviderDefaultArgs +} +export type ModelIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + provider?: boolean | Prisma.ProviderDefaultArgs +} + +export type $ModelPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Model' + objects: { + provider: Prisma.$ProviderPayload + agents: Prisma.$AgentPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + modelId: string + name: string + /** + * [ModelConfig] + */ + config: PrismaJson.ModelConfig + createdAt: Date + updatedAt: Date + providerId: string + }, + ExtArgs['result']['model'] + > + composites: {} +} + +export type ModelGetPayload = + runtime.Types.Result.GetResult + +export type ModelCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: ModelCountAggregateInputType | true +} + +export interface ModelDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['Model']; meta: { name: 'Model' } } + /** + * Find zero or one Model that matches the filter. + * @param {ModelFindUniqueArgs} args - Arguments to find a Model + * @example + * // Get one Model + * const model = await prisma.model.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ModelClient< + runtime.Types.Result.GetResult< + Prisma.$ModelPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Model that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ModelFindUniqueOrThrowArgs} args - Arguments to find a Model + * @example + * // Get one Model + * const model = await prisma.model.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ModelClient< + runtime.Types.Result.GetResult< + Prisma.$ModelPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Model that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ModelFindFirstArgs} args - Arguments to find a Model + * @example + * // Get one Model + * const model = await prisma.model.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__ModelClient< + runtime.Types.Result.GetResult< + Prisma.$ModelPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Model that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ModelFindFirstOrThrowArgs} args - Arguments to find a Model + * @example + * // Get one Model + * const model = await prisma.model.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__ModelClient< + runtime.Types.Result.GetResult< + Prisma.$ModelPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Models that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ModelFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Models + * const models = await prisma.model.findMany() + * + * // Get first 10 Models + * const models = await prisma.model.findMany({ take: 10 }) + * + * // Only select the `id` + * const modelWithIdOnly = await prisma.model.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult, T, 'findMany', GlobalOmitOptions> + > + + /** + * Create a Model. + * @param {ModelCreateArgs} args - Arguments to create a Model. + * @example + * // Create one Model + * const Model = await prisma.model.create({ + * data: { + * // ... data to create a Model + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ModelClient< + runtime.Types.Result.GetResult, T, 'create', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Models. + * @param {ModelCreateManyArgs} args - Arguments to create many Models. + * @example + * // Create many Models + * const model = await prisma.model.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Models and returns the data saved in the database. + * @param {ModelCreateManyAndReturnArgs} args - Arguments to create many Models. + * @example + * // Create many Models + * const model = await prisma.model.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Models and only return the `id` + * const modelWithIdOnly = await prisma.model.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ModelPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Model. + * @param {ModelDeleteArgs} args - Arguments to delete one Model. + * @example + * // Delete one Model + * const Model = await prisma.model.delete({ + * where: { + * // ... filter to delete one Model + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ModelClient< + runtime.Types.Result.GetResult, T, 'delete', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Model. + * @param {ModelUpdateArgs} args - Arguments to update one Model. + * @example + * // Update one Model + * const model = await prisma.model.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ModelClient< + runtime.Types.Result.GetResult, T, 'update', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Models. + * @param {ModelDeleteManyArgs} args - Arguments to filter Models to delete. + * @example + * // Delete a few Models + * const { count } = await prisma.model.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Models. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ModelUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Models + * const model = await prisma.model.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Models and returns the data updated in the database. + * @param {ModelUpdateManyAndReturnArgs} args - Arguments to update many Models. + * @example + * // Update many Models + * const model = await prisma.model.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Models and only return the `id` + * const modelWithIdOnly = await prisma.model.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ModelPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Model. + * @param {ModelUpsertArgs} args - Arguments to update or create a Model. + * @example + * // Update or create a Model + * const model = await prisma.model.upsert({ + * create: { + * // ... data to create a Model + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Model we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ModelClient< + runtime.Types.Result.GetResult, T, 'upsert', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Models. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ModelCountArgs} args - Arguments to filter Models to count. + * @example + * // Count the number of Models + * const count = await prisma.model.count({ + * where: { + * // ... the filter for the Models we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Model. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ModelAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Model. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ModelGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends ModelGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ModelGroupByArgs['orderBy'] } + : { orderBy?: ModelGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetModelGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Model model + */ + readonly fields: ModelFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Model. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__ModelClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + provider = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ProviderClient< + | runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + agents = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AgentPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Model model + */ +export interface ModelFieldRefs { + readonly id: Prisma.FieldRef<'Model', 'String'> + readonly modelId: Prisma.FieldRef<'Model', 'String'> + readonly name: Prisma.FieldRef<'Model', 'String'> + readonly config: Prisma.FieldRef<'Model', 'Json'> + readonly createdAt: Prisma.FieldRef<'Model', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Model', 'DateTime'> + readonly providerId: Prisma.FieldRef<'Model', 'String'> +} + +// Custom InputTypes +/** + * Model findUnique + */ +export type ModelFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelect | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelInclude | null + /** + * Filter, which Model to fetch. + */ + where: Prisma.ModelWhereUniqueInput +} + +/** + * Model findUniqueOrThrow + */ +export type ModelFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelect | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelInclude | null + /** + * Filter, which Model to fetch. + */ + where: Prisma.ModelWhereUniqueInput +} + +/** + * Model findFirst + */ +export type ModelFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelect | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelInclude | null + /** + * Filter, which Model to fetch. + */ + where?: Prisma.ModelWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Models to fetch. + */ + orderBy?: Prisma.ModelOrderByWithRelationInput | Prisma.ModelOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Models. + */ + cursor?: Prisma.ModelWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Models from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Models. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Models. + */ + distinct?: Prisma.ModelScalarFieldEnum | Prisma.ModelScalarFieldEnum[] +} + +/** + * Model findFirstOrThrow + */ +export type ModelFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelect | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelInclude | null + /** + * Filter, which Model to fetch. + */ + where?: Prisma.ModelWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Models to fetch. + */ + orderBy?: Prisma.ModelOrderByWithRelationInput | Prisma.ModelOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Models. + */ + cursor?: Prisma.ModelWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Models from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Models. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Models. + */ + distinct?: Prisma.ModelScalarFieldEnum | Prisma.ModelScalarFieldEnum[] +} + +/** + * Model findMany + */ +export type ModelFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelect | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelInclude | null + /** + * Filter, which Models to fetch. + */ + where?: Prisma.ModelWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Models to fetch. + */ + orderBy?: Prisma.ModelOrderByWithRelationInput | Prisma.ModelOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Models. + */ + cursor?: Prisma.ModelWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Models from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Models. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Models. + */ + distinct?: Prisma.ModelScalarFieldEnum | Prisma.ModelScalarFieldEnum[] +} + +/** + * Model create + */ +export type ModelCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelect | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelInclude | null + /** + * The data needed to create a Model. + */ + data: Prisma.XOR +} + +/** + * Model createMany + */ +export type ModelCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Models. + */ + data: Prisma.ModelCreateManyInput | Prisma.ModelCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Model createManyAndReturn + */ +export type ModelCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * The data used to create many Models. + */ + data: Prisma.ModelCreateManyInput | Prisma.ModelCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelIncludeCreateManyAndReturn | null +} + +/** + * Model update + */ +export type ModelUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelect | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelInclude | null + /** + * The data needed to update a Model. + */ + data: Prisma.XOR + /** + * Choose, which Model to update. + */ + where: Prisma.ModelWhereUniqueInput +} + +/** + * Model updateMany + */ +export type ModelUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Models. + */ + data: Prisma.XOR + /** + * Filter which Models to update + */ + where?: Prisma.ModelWhereInput + /** + * Limit how many Models to update. + */ + limit?: number +} + +/** + * Model updateManyAndReturn + */ +export type ModelUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * The data used to update Models. + */ + data: Prisma.XOR + /** + * Filter which Models to update + */ + where?: Prisma.ModelWhereInput + /** + * Limit how many Models to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelIncludeUpdateManyAndReturn | null +} + +/** + * Model upsert + */ +export type ModelUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelect | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelInclude | null + /** + * The filter to search for the Model to update in case it exists. + */ + where: Prisma.ModelWhereUniqueInput + /** + * In case the Model found by the `where` argument doesn't exist, create a new Model with this data. + */ + create: Prisma.XOR + /** + * In case the Model was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Model delete + */ +export type ModelDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelect | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelInclude | null + /** + * Filter which Model to delete. + */ + where: Prisma.ModelWhereUniqueInput +} + +/** + * Model deleteMany + */ +export type ModelDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Models to delete + */ + where?: Prisma.ModelWhereInput + /** + * Limit how many Models to delete. + */ + limit?: number +} + +/** + * Model.agents + */ +export type Model$agentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null + where?: Prisma.AgentWhereInput + orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[] + cursor?: Prisma.AgentWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[] +} + +/** + * Model without action + */ +export type ModelDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelect | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelInclude | null +} diff --git a/packages/db/src/generated/prisma/models/Notification.ts b/packages/db/src/generated/prisma/models/Notification.ts new file mode 100644 index 00000000..95907580 --- /dev/null +++ b/packages/db/src/generated/prisma/models/Notification.ts @@ -0,0 +1,3306 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Notification` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Notification + * + */ +export type NotificationModel = runtime.Types.Result.DefaultSelection + +export type AggregateNotification = { + _count: NotificationCountAggregateOutputType | null + _min: NotificationMinAggregateOutputType | null + _max: NotificationMaxAggregateOutputType | null +} + +export type NotificationMinAggregateOutputType = { + id: string | null + type: $Enums.NotificationType | null + createdAt: Date | null + updatedAt: Date | null + teamId: string | null + projectId: string | null + creatorId: string | null + assetId: string | null + taskId: string | null + userId: string | null +} + +export type NotificationMaxAggregateOutputType = { + id: string | null + type: $Enums.NotificationType | null + createdAt: Date | null + updatedAt: Date | null + teamId: string | null + projectId: string | null + creatorId: string | null + assetId: string | null + taskId: string | null + userId: string | null +} + +export type NotificationCountAggregateOutputType = { + id: number + type: number + createdAt: number + updatedAt: number + teamId: number + projectId: number + creatorId: number + assetId: number + taskId: number + userId: number + _all: number +} + +export type NotificationMinAggregateInputType = { + id?: true + type?: true + createdAt?: true + updatedAt?: true + teamId?: true + projectId?: true + creatorId?: true + assetId?: true + taskId?: true + userId?: true +} + +export type NotificationMaxAggregateInputType = { + id?: true + type?: true + createdAt?: true + updatedAt?: true + teamId?: true + projectId?: true + creatorId?: true + assetId?: true + taskId?: true + userId?: true +} + +export type NotificationCountAggregateInputType = { + id?: true + type?: true + createdAt?: true + updatedAt?: true + teamId?: true + projectId?: true + creatorId?: true + assetId?: true + taskId?: true + userId?: true + _all?: true +} + +export type NotificationAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Notification to aggregate. + */ + where?: Prisma.NotificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Notifications to fetch. + */ + orderBy?: + | Prisma.NotificationOrderByWithRelationInput + | Prisma.NotificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.NotificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Notifications from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Notifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Notifications + **/ + _count?: true | NotificationCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: NotificationMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: NotificationMaxAggregateInputType +} + +export type GetNotificationAggregateType = { + [P in keyof T & keyof AggregateNotification]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type NotificationGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.NotificationWhereInput + orderBy?: + | Prisma.NotificationOrderByWithAggregationInput + | Prisma.NotificationOrderByWithAggregationInput[] + by: Prisma.NotificationScalarFieldEnum[] | Prisma.NotificationScalarFieldEnum + having?: Prisma.NotificationScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: NotificationCountAggregateInputType | true + _min?: NotificationMinAggregateInputType + _max?: NotificationMaxAggregateInputType +} + +export type NotificationGroupByOutputType = { + id: string + type: $Enums.NotificationType | null + createdAt: Date + updatedAt: Date + teamId: string + projectId: string | null + creatorId: string | null + assetId: string | null + taskId: string | null + userId: string | null + _count: NotificationCountAggregateOutputType | null + _min: NotificationMinAggregateOutputType | null + _max: NotificationMaxAggregateOutputType | null +} + +export type GetNotificationGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof NotificationGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type NotificationWhereInput = { + AND?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[] + OR?: Prisma.NotificationWhereInput[] + NOT?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[] + id?: Prisma.StringFilter<'Notification'> | string + type?: Prisma.EnumNotificationTypeNullableFilter<'Notification'> | $Enums.NotificationType | null + createdAt?: Prisma.DateTimeFilter<'Notification'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Notification'> | Date | string + teamId?: Prisma.StringFilter<'Notification'> | string + projectId?: Prisma.StringNullableFilter<'Notification'> | string | null + creatorId?: Prisma.StringNullableFilter<'Notification'> | string | null + assetId?: Prisma.StringNullableFilter<'Notification'> | string | null + taskId?: Prisma.StringNullableFilter<'Notification'> | string | null + userId?: Prisma.StringNullableFilter<'Notification'> | string | null + team?: Prisma.XOR + project?: Prisma.XOR | null + creator?: Prisma.XOR | null + asset?: Prisma.XOR | null + task?: Prisma.XOR | null + user?: Prisma.XOR | null + readByMembers?: Prisma.XOR< + Prisma.TeamMemberNullableScalarRelationFilter, + Prisma.TeamMemberWhereInput + > | null +} + +export type NotificationOrderByWithRelationInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrderInput | Prisma.SortOrder + creatorId?: Prisma.SortOrderInput | Prisma.SortOrder + assetId?: Prisma.SortOrderInput | Prisma.SortOrder + taskId?: Prisma.SortOrderInput | Prisma.SortOrder + userId?: Prisma.SortOrderInput | Prisma.SortOrder + team?: Prisma.TeamOrderByWithRelationInput + project?: Prisma.ProjectOrderByWithRelationInput + creator?: Prisma.UserOrderByWithRelationInput + asset?: Prisma.AssetOrderByWithRelationInput + task?: Prisma.TaskOrderByWithRelationInput + user?: Prisma.UserOrderByWithRelationInput + readByMembers?: Prisma.TeamMemberOrderByWithRelationInput +} + +export type NotificationWhereUniqueInput = Prisma.AtLeast< + { + id?: string + AND?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[] + OR?: Prisma.NotificationWhereInput[] + NOT?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[] + type?: + | Prisma.EnumNotificationTypeNullableFilter<'Notification'> + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFilter<'Notification'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Notification'> | Date | string + teamId?: Prisma.StringFilter<'Notification'> | string + projectId?: Prisma.StringNullableFilter<'Notification'> | string | null + creatorId?: Prisma.StringNullableFilter<'Notification'> | string | null + assetId?: Prisma.StringNullableFilter<'Notification'> | string | null + taskId?: Prisma.StringNullableFilter<'Notification'> | string | null + userId?: Prisma.StringNullableFilter<'Notification'> | string | null + team?: Prisma.XOR + project?: Prisma.XOR< + Prisma.ProjectNullableScalarRelationFilter, + Prisma.ProjectWhereInput + > | null + creator?: Prisma.XOR | null + asset?: Prisma.XOR | null + task?: Prisma.XOR | null + user?: Prisma.XOR | null + readByMembers?: Prisma.XOR< + Prisma.TeamMemberNullableScalarRelationFilter, + Prisma.TeamMemberWhereInput + > | null + }, + 'id' +> + +export type NotificationOrderByWithAggregationInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrderInput | Prisma.SortOrder + creatorId?: Prisma.SortOrderInput | Prisma.SortOrder + assetId?: Prisma.SortOrderInput | Prisma.SortOrder + taskId?: Prisma.SortOrderInput | Prisma.SortOrder + userId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.NotificationCountOrderByAggregateInput + _max?: Prisma.NotificationMaxOrderByAggregateInput + _min?: Prisma.NotificationMinOrderByAggregateInput +} + +export type NotificationScalarWhereWithAggregatesInput = { + AND?: + | Prisma.NotificationScalarWhereWithAggregatesInput + | Prisma.NotificationScalarWhereWithAggregatesInput[] + OR?: Prisma.NotificationScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.NotificationScalarWhereWithAggregatesInput + | Prisma.NotificationScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Notification'> | string + type?: + | Prisma.EnumNotificationTypeNullableWithAggregatesFilter<'Notification'> + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Notification'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Notification'> | Date | string + teamId?: Prisma.StringWithAggregatesFilter<'Notification'> | string + projectId?: Prisma.StringNullableWithAggregatesFilter<'Notification'> | string | null + creatorId?: Prisma.StringNullableWithAggregatesFilter<'Notification'> | string | null + assetId?: Prisma.StringNullableWithAggregatesFilter<'Notification'> | string | null + taskId?: Prisma.StringNullableWithAggregatesFilter<'Notification'> | string | null + userId?: Prisma.StringNullableWithAggregatesFilter<'Notification'> | string | null +} + +export type NotificationCreateInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutNotificationsInput + project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput + creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput + asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput + task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput + user?: Prisma.UserCreateNestedOneWithoutNotificationsInput + readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationUncheckedCreateInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null + creatorId?: string | null + assetId?: string | null + taskId?: string | null + userId?: string | null + readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput + project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput + creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput + asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput + task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput + user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput + readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationCreateManyInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null + creatorId?: string | null + assetId?: string | null + taskId?: string | null + userId?: string | null +} + +export type NotificationUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type NotificationUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type NotificationListRelationFilter = { + every?: Prisma.NotificationWhereInput + some?: Prisma.NotificationWhereInput + none?: Prisma.NotificationWhereInput +} + +export type NotificationOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type NotificationNullableScalarRelationFilter = { + is?: Prisma.NotificationWhereInput | null + isNot?: Prisma.NotificationWhereInput | null +} + +export type NotificationCountOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + creatorId?: Prisma.SortOrder + assetId?: Prisma.SortOrder + taskId?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type NotificationMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + creatorId?: Prisma.SortOrder + assetId?: Prisma.SortOrder + taskId?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type NotificationMinOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + creatorId?: Prisma.SortOrder + assetId?: Prisma.SortOrder + taskId?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type NotificationCreateNestedManyWithoutCreatorInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutCreatorInput, + Prisma.NotificationUncheckedCreateWithoutCreatorInput + > + | Prisma.NotificationCreateWithoutCreatorInput[] + | Prisma.NotificationUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutCreatorInput + | Prisma.NotificationCreateOrConnectWithoutCreatorInput[] + createMany?: Prisma.NotificationCreateManyCreatorInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutUserInput, + Prisma.NotificationUncheckedCreateWithoutUserInput + > + | Prisma.NotificationCreateWithoutUserInput[] + | Prisma.NotificationUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutUserInput + | Prisma.NotificationCreateOrConnectWithoutUserInput[] + createMany?: Prisma.NotificationCreateManyUserInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUncheckedCreateNestedManyWithoutCreatorInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutCreatorInput, + Prisma.NotificationUncheckedCreateWithoutCreatorInput + > + | Prisma.NotificationCreateWithoutCreatorInput[] + | Prisma.NotificationUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutCreatorInput + | Prisma.NotificationCreateOrConnectWithoutCreatorInput[] + createMany?: Prisma.NotificationCreateManyCreatorInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUncheckedCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutUserInput, + Prisma.NotificationUncheckedCreateWithoutUserInput + > + | Prisma.NotificationCreateWithoutUserInput[] + | Prisma.NotificationUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutUserInput + | Prisma.NotificationCreateOrConnectWithoutUserInput[] + createMany?: Prisma.NotificationCreateManyUserInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUpdateManyWithoutCreatorNestedInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutCreatorInput, + Prisma.NotificationUncheckedCreateWithoutCreatorInput + > + | Prisma.NotificationCreateWithoutCreatorInput[] + | Prisma.NotificationUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutCreatorInput + | Prisma.NotificationCreateOrConnectWithoutCreatorInput[] + upsert?: + | Prisma.NotificationUpsertWithWhereUniqueWithoutCreatorInput + | Prisma.NotificationUpsertWithWhereUniqueWithoutCreatorInput[] + createMany?: Prisma.NotificationCreateManyCreatorInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: + | Prisma.NotificationUpdateWithWhereUniqueWithoutCreatorInput + | Prisma.NotificationUpdateWithWhereUniqueWithoutCreatorInput[] + updateMany?: + | Prisma.NotificationUpdateManyWithWhereWithoutCreatorInput + | Prisma.NotificationUpdateManyWithWhereWithoutCreatorInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutUserInput, + Prisma.NotificationUncheckedCreateWithoutUserInput + > + | Prisma.NotificationCreateWithoutUserInput[] + | Prisma.NotificationUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutUserInput + | Prisma.NotificationCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput + | Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.NotificationCreateManyUserInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: + | Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput + | Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.NotificationUpdateManyWithWhereWithoutUserInput + | Prisma.NotificationUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationUncheckedUpdateManyWithoutCreatorNestedInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutCreatorInput, + Prisma.NotificationUncheckedCreateWithoutCreatorInput + > + | Prisma.NotificationCreateWithoutCreatorInput[] + | Prisma.NotificationUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutCreatorInput + | Prisma.NotificationCreateOrConnectWithoutCreatorInput[] + upsert?: + | Prisma.NotificationUpsertWithWhereUniqueWithoutCreatorInput + | Prisma.NotificationUpsertWithWhereUniqueWithoutCreatorInput[] + createMany?: Prisma.NotificationCreateManyCreatorInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: + | Prisma.NotificationUpdateWithWhereUniqueWithoutCreatorInput + | Prisma.NotificationUpdateWithWhereUniqueWithoutCreatorInput[] + updateMany?: + | Prisma.NotificationUpdateManyWithWhereWithoutCreatorInput + | Prisma.NotificationUpdateManyWithWhereWithoutCreatorInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationUncheckedUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutUserInput, + Prisma.NotificationUncheckedCreateWithoutUserInput + > + | Prisma.NotificationCreateWithoutUserInput[] + | Prisma.NotificationUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutUserInput + | Prisma.NotificationCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput + | Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.NotificationCreateManyUserInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: + | Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput + | Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.NotificationUpdateManyWithWhereWithoutUserInput + | Prisma.NotificationUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutTeamInput, + Prisma.NotificationUncheckedCreateWithoutTeamInput + > + | Prisma.NotificationCreateWithoutTeamInput[] + | Prisma.NotificationUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutTeamInput + | Prisma.NotificationCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.NotificationCreateManyTeamInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUncheckedCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutTeamInput, + Prisma.NotificationUncheckedCreateWithoutTeamInput + > + | Prisma.NotificationCreateWithoutTeamInput[] + | Prisma.NotificationUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutTeamInput + | Prisma.NotificationCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.NotificationCreateManyTeamInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutTeamInput, + Prisma.NotificationUncheckedCreateWithoutTeamInput + > + | Prisma.NotificationCreateWithoutTeamInput[] + | Prisma.NotificationUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutTeamInput + | Prisma.NotificationCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.NotificationUpsertWithWhereUniqueWithoutTeamInput + | Prisma.NotificationUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.NotificationCreateManyTeamInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: + | Prisma.NotificationUpdateWithWhereUniqueWithoutTeamInput + | Prisma.NotificationUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.NotificationUpdateManyWithWhereWithoutTeamInput + | Prisma.NotificationUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationUncheckedUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutTeamInput, + Prisma.NotificationUncheckedCreateWithoutTeamInput + > + | Prisma.NotificationCreateWithoutTeamInput[] + | Prisma.NotificationUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutTeamInput + | Prisma.NotificationCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.NotificationUpsertWithWhereUniqueWithoutTeamInput + | Prisma.NotificationUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.NotificationCreateManyTeamInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: + | Prisma.NotificationUpdateWithWhereUniqueWithoutTeamInput + | Prisma.NotificationUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.NotificationUpdateManyWithWhereWithoutTeamInput + | Prisma.NotificationUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationCreateNestedOneWithoutReadByMembersInput = { + create?: Prisma.XOR< + Prisma.NotificationCreateWithoutReadByMembersInput, + Prisma.NotificationUncheckedCreateWithoutReadByMembersInput + > + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutReadByMembersInput + connect?: Prisma.NotificationWhereUniqueInput +} + +export type NotificationUpdateOneWithoutReadByMembersNestedInput = { + create?: Prisma.XOR< + Prisma.NotificationCreateWithoutReadByMembersInput, + Prisma.NotificationUncheckedCreateWithoutReadByMembersInput + > + connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutReadByMembersInput + upsert?: Prisma.NotificationUpsertWithoutReadByMembersInput + disconnect?: Prisma.NotificationWhereInput | boolean + delete?: Prisma.NotificationWhereInput | boolean + connect?: Prisma.NotificationWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.NotificationUpdateToOneWithWhereWithoutReadByMembersInput, + Prisma.NotificationUpdateWithoutReadByMembersInput + >, + Prisma.NotificationUncheckedUpdateWithoutReadByMembersInput + > +} + +export type NotificationCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutProjectInput, + Prisma.NotificationUncheckedCreateWithoutProjectInput + > + | Prisma.NotificationCreateWithoutProjectInput[] + | Prisma.NotificationUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutProjectInput + | Prisma.NotificationCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.NotificationCreateManyProjectInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUncheckedCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutProjectInput, + Prisma.NotificationUncheckedCreateWithoutProjectInput + > + | Prisma.NotificationCreateWithoutProjectInput[] + | Prisma.NotificationUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutProjectInput + | Prisma.NotificationCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.NotificationCreateManyProjectInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutProjectInput, + Prisma.NotificationUncheckedCreateWithoutProjectInput + > + | Prisma.NotificationCreateWithoutProjectInput[] + | Prisma.NotificationUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutProjectInput + | Prisma.NotificationCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.NotificationUpsertWithWhereUniqueWithoutProjectInput + | Prisma.NotificationUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.NotificationCreateManyProjectInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: + | Prisma.NotificationUpdateWithWhereUniqueWithoutProjectInput + | Prisma.NotificationUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.NotificationUpdateManyWithWhereWithoutProjectInput + | Prisma.NotificationUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationUncheckedUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutProjectInput, + Prisma.NotificationUncheckedCreateWithoutProjectInput + > + | Prisma.NotificationCreateWithoutProjectInput[] + | Prisma.NotificationUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutProjectInput + | Prisma.NotificationCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.NotificationUpsertWithWhereUniqueWithoutProjectInput + | Prisma.NotificationUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.NotificationCreateManyProjectInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: + | Prisma.NotificationUpdateWithWhereUniqueWithoutProjectInput + | Prisma.NotificationUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.NotificationUpdateManyWithWhereWithoutProjectInput + | Prisma.NotificationUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationCreateNestedManyWithoutAssetInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutAssetInput, + Prisma.NotificationUncheckedCreateWithoutAssetInput + > + | Prisma.NotificationCreateWithoutAssetInput[] + | Prisma.NotificationUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutAssetInput + | Prisma.NotificationCreateOrConnectWithoutAssetInput[] + createMany?: Prisma.NotificationCreateManyAssetInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUncheckedCreateNestedManyWithoutAssetInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutAssetInput, + Prisma.NotificationUncheckedCreateWithoutAssetInput + > + | Prisma.NotificationCreateWithoutAssetInput[] + | Prisma.NotificationUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutAssetInput + | Prisma.NotificationCreateOrConnectWithoutAssetInput[] + createMany?: Prisma.NotificationCreateManyAssetInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUpdateManyWithoutAssetNestedInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutAssetInput, + Prisma.NotificationUncheckedCreateWithoutAssetInput + > + | Prisma.NotificationCreateWithoutAssetInput[] + | Prisma.NotificationUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutAssetInput + | Prisma.NotificationCreateOrConnectWithoutAssetInput[] + upsert?: + | Prisma.NotificationUpsertWithWhereUniqueWithoutAssetInput + | Prisma.NotificationUpsertWithWhereUniqueWithoutAssetInput[] + createMany?: Prisma.NotificationCreateManyAssetInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: + | Prisma.NotificationUpdateWithWhereUniqueWithoutAssetInput + | Prisma.NotificationUpdateWithWhereUniqueWithoutAssetInput[] + updateMany?: + | Prisma.NotificationUpdateManyWithWhereWithoutAssetInput + | Prisma.NotificationUpdateManyWithWhereWithoutAssetInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationUncheckedUpdateManyWithoutAssetNestedInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutAssetInput, + Prisma.NotificationUncheckedCreateWithoutAssetInput + > + | Prisma.NotificationCreateWithoutAssetInput[] + | Prisma.NotificationUncheckedCreateWithoutAssetInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutAssetInput + | Prisma.NotificationCreateOrConnectWithoutAssetInput[] + upsert?: + | Prisma.NotificationUpsertWithWhereUniqueWithoutAssetInput + | Prisma.NotificationUpsertWithWhereUniqueWithoutAssetInput[] + createMany?: Prisma.NotificationCreateManyAssetInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: + | Prisma.NotificationUpdateWithWhereUniqueWithoutAssetInput + | Prisma.NotificationUpdateWithWhereUniqueWithoutAssetInput[] + updateMany?: + | Prisma.NotificationUpdateManyWithWhereWithoutAssetInput + | Prisma.NotificationUpdateManyWithWhereWithoutAssetInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NullableEnumNotificationTypeFieldUpdateOperationsInput = { + set?: $Enums.NotificationType | null +} + +export type NotificationCreateNestedManyWithoutTaskInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutTaskInput, + Prisma.NotificationUncheckedCreateWithoutTaskInput + > + | Prisma.NotificationCreateWithoutTaskInput[] + | Prisma.NotificationUncheckedCreateWithoutTaskInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutTaskInput + | Prisma.NotificationCreateOrConnectWithoutTaskInput[] + createMany?: Prisma.NotificationCreateManyTaskInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUncheckedCreateNestedManyWithoutTaskInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutTaskInput, + Prisma.NotificationUncheckedCreateWithoutTaskInput + > + | Prisma.NotificationCreateWithoutTaskInput[] + | Prisma.NotificationUncheckedCreateWithoutTaskInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutTaskInput + | Prisma.NotificationCreateOrConnectWithoutTaskInput[] + createMany?: Prisma.NotificationCreateManyTaskInputEnvelope + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] +} + +export type NotificationUpdateManyWithoutTaskNestedInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutTaskInput, + Prisma.NotificationUncheckedCreateWithoutTaskInput + > + | Prisma.NotificationCreateWithoutTaskInput[] + | Prisma.NotificationUncheckedCreateWithoutTaskInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutTaskInput + | Prisma.NotificationCreateOrConnectWithoutTaskInput[] + upsert?: + | Prisma.NotificationUpsertWithWhereUniqueWithoutTaskInput + | Prisma.NotificationUpsertWithWhereUniqueWithoutTaskInput[] + createMany?: Prisma.NotificationCreateManyTaskInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: + | Prisma.NotificationUpdateWithWhereUniqueWithoutTaskInput + | Prisma.NotificationUpdateWithWhereUniqueWithoutTaskInput[] + updateMany?: + | Prisma.NotificationUpdateManyWithWhereWithoutTaskInput + | Prisma.NotificationUpdateManyWithWhereWithoutTaskInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationUncheckedUpdateManyWithoutTaskNestedInput = { + create?: + | Prisma.XOR< + Prisma.NotificationCreateWithoutTaskInput, + Prisma.NotificationUncheckedCreateWithoutTaskInput + > + | Prisma.NotificationCreateWithoutTaskInput[] + | Prisma.NotificationUncheckedCreateWithoutTaskInput[] + connectOrCreate?: + | Prisma.NotificationCreateOrConnectWithoutTaskInput + | Prisma.NotificationCreateOrConnectWithoutTaskInput[] + upsert?: + | Prisma.NotificationUpsertWithWhereUniqueWithoutTaskInput + | Prisma.NotificationUpsertWithWhereUniqueWithoutTaskInput[] + createMany?: Prisma.NotificationCreateManyTaskInputEnvelope + set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] + update?: + | Prisma.NotificationUpdateWithWhereUniqueWithoutTaskInput + | Prisma.NotificationUpdateWithWhereUniqueWithoutTaskInput[] + updateMany?: + | Prisma.NotificationUpdateManyWithWhereWithoutTaskInput + | Prisma.NotificationUpdateManyWithWhereWithoutTaskInput[] + deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] +} + +export type NotificationCreateWithoutCreatorInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutNotificationsInput + project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput + asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput + task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput + user?: Prisma.UserCreateNestedOneWithoutNotificationsInput + readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationUncheckedCreateWithoutCreatorInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null + assetId?: string | null + taskId?: string | null + userId?: string | null + readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationCreateOrConnectWithoutCreatorInput = { + where: Prisma.NotificationWhereUniqueInput + create: Prisma.XOR< + Prisma.NotificationCreateWithoutCreatorInput, + Prisma.NotificationUncheckedCreateWithoutCreatorInput + > +} + +export type NotificationCreateManyCreatorInputEnvelope = { + data: Prisma.NotificationCreateManyCreatorInput | Prisma.NotificationCreateManyCreatorInput[] + skipDuplicates?: boolean +} + +export type NotificationCreateWithoutUserInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutNotificationsInput + project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput + creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput + asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput + task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput + readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationUncheckedCreateWithoutUserInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null + creatorId?: string | null + assetId?: string | null + taskId?: string | null + readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationCreateOrConnectWithoutUserInput = { + where: Prisma.NotificationWhereUniqueInput + create: Prisma.XOR< + Prisma.NotificationCreateWithoutUserInput, + Prisma.NotificationUncheckedCreateWithoutUserInput + > +} + +export type NotificationCreateManyUserInputEnvelope = { + data: Prisma.NotificationCreateManyUserInput | Prisma.NotificationCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type NotificationUpsertWithWhereUniqueWithoutCreatorInput = { + where: Prisma.NotificationWhereUniqueInput + update: Prisma.XOR< + Prisma.NotificationUpdateWithoutCreatorInput, + Prisma.NotificationUncheckedUpdateWithoutCreatorInput + > + create: Prisma.XOR< + Prisma.NotificationCreateWithoutCreatorInput, + Prisma.NotificationUncheckedCreateWithoutCreatorInput + > +} + +export type NotificationUpdateWithWhereUniqueWithoutCreatorInput = { + where: Prisma.NotificationWhereUniqueInput + data: Prisma.XOR< + Prisma.NotificationUpdateWithoutCreatorInput, + Prisma.NotificationUncheckedUpdateWithoutCreatorInput + > +} + +export type NotificationUpdateManyWithWhereWithoutCreatorInput = { + where: Prisma.NotificationScalarWhereInput + data: Prisma.XOR< + Prisma.NotificationUpdateManyMutationInput, + Prisma.NotificationUncheckedUpdateManyWithoutCreatorInput + > +} + +export type NotificationScalarWhereInput = { + AND?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] + OR?: Prisma.NotificationScalarWhereInput[] + NOT?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] + id?: Prisma.StringFilter<'Notification'> | string + type?: Prisma.EnumNotificationTypeNullableFilter<'Notification'> | $Enums.NotificationType | null + createdAt?: Prisma.DateTimeFilter<'Notification'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Notification'> | Date | string + teamId?: Prisma.StringFilter<'Notification'> | string + projectId?: Prisma.StringNullableFilter<'Notification'> | string | null + creatorId?: Prisma.StringNullableFilter<'Notification'> | string | null + assetId?: Prisma.StringNullableFilter<'Notification'> | string | null + taskId?: Prisma.StringNullableFilter<'Notification'> | string | null + userId?: Prisma.StringNullableFilter<'Notification'> | string | null +} + +export type NotificationUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.NotificationWhereUniqueInput + update: Prisma.XOR< + Prisma.NotificationUpdateWithoutUserInput, + Prisma.NotificationUncheckedUpdateWithoutUserInput + > + create: Prisma.XOR< + Prisma.NotificationCreateWithoutUserInput, + Prisma.NotificationUncheckedCreateWithoutUserInput + > +} + +export type NotificationUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.NotificationWhereUniqueInput + data: Prisma.XOR< + Prisma.NotificationUpdateWithoutUserInput, + Prisma.NotificationUncheckedUpdateWithoutUserInput + > +} + +export type NotificationUpdateManyWithWhereWithoutUserInput = { + where: Prisma.NotificationScalarWhereInput + data: Prisma.XOR< + Prisma.NotificationUpdateManyMutationInput, + Prisma.NotificationUncheckedUpdateManyWithoutUserInput + > +} + +export type NotificationCreateWithoutTeamInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput + creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput + asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput + task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput + user?: Prisma.UserCreateNestedOneWithoutNotificationsInput + readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationUncheckedCreateWithoutTeamInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + projectId?: string | null + creatorId?: string | null + assetId?: string | null + taskId?: string | null + userId?: string | null + readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationCreateOrConnectWithoutTeamInput = { + where: Prisma.NotificationWhereUniqueInput + create: Prisma.XOR< + Prisma.NotificationCreateWithoutTeamInput, + Prisma.NotificationUncheckedCreateWithoutTeamInput + > +} + +export type NotificationCreateManyTeamInputEnvelope = { + data: Prisma.NotificationCreateManyTeamInput | Prisma.NotificationCreateManyTeamInput[] + skipDuplicates?: boolean +} + +export type NotificationUpsertWithWhereUniqueWithoutTeamInput = { + where: Prisma.NotificationWhereUniqueInput + update: Prisma.XOR< + Prisma.NotificationUpdateWithoutTeamInput, + Prisma.NotificationUncheckedUpdateWithoutTeamInput + > + create: Prisma.XOR< + Prisma.NotificationCreateWithoutTeamInput, + Prisma.NotificationUncheckedCreateWithoutTeamInput + > +} + +export type NotificationUpdateWithWhereUniqueWithoutTeamInput = { + where: Prisma.NotificationWhereUniqueInput + data: Prisma.XOR< + Prisma.NotificationUpdateWithoutTeamInput, + Prisma.NotificationUncheckedUpdateWithoutTeamInput + > +} + +export type NotificationUpdateManyWithWhereWithoutTeamInput = { + where: Prisma.NotificationScalarWhereInput + data: Prisma.XOR< + Prisma.NotificationUpdateManyMutationInput, + Prisma.NotificationUncheckedUpdateManyWithoutTeamInput + > +} + +export type NotificationCreateWithoutReadByMembersInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutNotificationsInput + project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput + creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput + asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput + task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput + user?: Prisma.UserCreateNestedOneWithoutNotificationsInput +} + +export type NotificationUncheckedCreateWithoutReadByMembersInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null + creatorId?: string | null + assetId?: string | null + taskId?: string | null + userId?: string | null +} + +export type NotificationCreateOrConnectWithoutReadByMembersInput = { + where: Prisma.NotificationWhereUniqueInput + create: Prisma.XOR< + Prisma.NotificationCreateWithoutReadByMembersInput, + Prisma.NotificationUncheckedCreateWithoutReadByMembersInput + > +} + +export type NotificationUpsertWithoutReadByMembersInput = { + update: Prisma.XOR< + Prisma.NotificationUpdateWithoutReadByMembersInput, + Prisma.NotificationUncheckedUpdateWithoutReadByMembersInput + > + create: Prisma.XOR< + Prisma.NotificationCreateWithoutReadByMembersInput, + Prisma.NotificationUncheckedCreateWithoutReadByMembersInput + > + where?: Prisma.NotificationWhereInput +} + +export type NotificationUpdateToOneWithWhereWithoutReadByMembersInput = { + where?: Prisma.NotificationWhereInput + data: Prisma.XOR< + Prisma.NotificationUpdateWithoutReadByMembersInput, + Prisma.NotificationUncheckedUpdateWithoutReadByMembersInput + > +} + +export type NotificationUpdateWithoutReadByMembersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput + project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput + creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput + asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput + task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput + user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput +} + +export type NotificationUncheckedUpdateWithoutReadByMembersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type NotificationCreateWithoutProjectInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutNotificationsInput + creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput + asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput + task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput + user?: Prisma.UserCreateNestedOneWithoutNotificationsInput + readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationUncheckedCreateWithoutProjectInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + creatorId?: string | null + assetId?: string | null + taskId?: string | null + userId?: string | null + readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationCreateOrConnectWithoutProjectInput = { + where: Prisma.NotificationWhereUniqueInput + create: Prisma.XOR< + Prisma.NotificationCreateWithoutProjectInput, + Prisma.NotificationUncheckedCreateWithoutProjectInput + > +} + +export type NotificationCreateManyProjectInputEnvelope = { + data: Prisma.NotificationCreateManyProjectInput | Prisma.NotificationCreateManyProjectInput[] + skipDuplicates?: boolean +} + +export type NotificationUpsertWithWhereUniqueWithoutProjectInput = { + where: Prisma.NotificationWhereUniqueInput + update: Prisma.XOR< + Prisma.NotificationUpdateWithoutProjectInput, + Prisma.NotificationUncheckedUpdateWithoutProjectInput + > + create: Prisma.XOR< + Prisma.NotificationCreateWithoutProjectInput, + Prisma.NotificationUncheckedCreateWithoutProjectInput + > +} + +export type NotificationUpdateWithWhereUniqueWithoutProjectInput = { + where: Prisma.NotificationWhereUniqueInput + data: Prisma.XOR< + Prisma.NotificationUpdateWithoutProjectInput, + Prisma.NotificationUncheckedUpdateWithoutProjectInput + > +} + +export type NotificationUpdateManyWithWhereWithoutProjectInput = { + where: Prisma.NotificationScalarWhereInput + data: Prisma.XOR< + Prisma.NotificationUpdateManyMutationInput, + Prisma.NotificationUncheckedUpdateManyWithoutProjectInput + > +} + +export type NotificationCreateWithoutAssetInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutNotificationsInput + project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput + creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput + task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput + user?: Prisma.UserCreateNestedOneWithoutNotificationsInput + readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationUncheckedCreateWithoutAssetInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null + creatorId?: string | null + taskId?: string | null + userId?: string | null + readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationCreateOrConnectWithoutAssetInput = { + where: Prisma.NotificationWhereUniqueInput + create: Prisma.XOR< + Prisma.NotificationCreateWithoutAssetInput, + Prisma.NotificationUncheckedCreateWithoutAssetInput + > +} + +export type NotificationCreateManyAssetInputEnvelope = { + data: Prisma.NotificationCreateManyAssetInput | Prisma.NotificationCreateManyAssetInput[] + skipDuplicates?: boolean +} + +export type NotificationUpsertWithWhereUniqueWithoutAssetInput = { + where: Prisma.NotificationWhereUniqueInput + update: Prisma.XOR< + Prisma.NotificationUpdateWithoutAssetInput, + Prisma.NotificationUncheckedUpdateWithoutAssetInput + > + create: Prisma.XOR< + Prisma.NotificationCreateWithoutAssetInput, + Prisma.NotificationUncheckedCreateWithoutAssetInput + > +} + +export type NotificationUpdateWithWhereUniqueWithoutAssetInput = { + where: Prisma.NotificationWhereUniqueInput + data: Prisma.XOR< + Prisma.NotificationUpdateWithoutAssetInput, + Prisma.NotificationUncheckedUpdateWithoutAssetInput + > +} + +export type NotificationUpdateManyWithWhereWithoutAssetInput = { + where: Prisma.NotificationScalarWhereInput + data: Prisma.XOR< + Prisma.NotificationUpdateManyMutationInput, + Prisma.NotificationUncheckedUpdateManyWithoutAssetInput + > +} + +export type NotificationCreateWithoutTaskInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutNotificationsInput + project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput + creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput + asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput + user?: Prisma.UserCreateNestedOneWithoutNotificationsInput + readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationUncheckedCreateWithoutTaskInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null + creatorId?: string | null + assetId?: string | null + userId?: string | null + readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput +} + +export type NotificationCreateOrConnectWithoutTaskInput = { + where: Prisma.NotificationWhereUniqueInput + create: Prisma.XOR< + Prisma.NotificationCreateWithoutTaskInput, + Prisma.NotificationUncheckedCreateWithoutTaskInput + > +} + +export type NotificationCreateManyTaskInputEnvelope = { + data: Prisma.NotificationCreateManyTaskInput | Prisma.NotificationCreateManyTaskInput[] + skipDuplicates?: boolean +} + +export type NotificationUpsertWithWhereUniqueWithoutTaskInput = { + where: Prisma.NotificationWhereUniqueInput + update: Prisma.XOR< + Prisma.NotificationUpdateWithoutTaskInput, + Prisma.NotificationUncheckedUpdateWithoutTaskInput + > + create: Prisma.XOR< + Prisma.NotificationCreateWithoutTaskInput, + Prisma.NotificationUncheckedCreateWithoutTaskInput + > +} + +export type NotificationUpdateWithWhereUniqueWithoutTaskInput = { + where: Prisma.NotificationWhereUniqueInput + data: Prisma.XOR< + Prisma.NotificationUpdateWithoutTaskInput, + Prisma.NotificationUncheckedUpdateWithoutTaskInput + > +} + +export type NotificationUpdateManyWithWhereWithoutTaskInput = { + where: Prisma.NotificationScalarWhereInput + data: Prisma.XOR< + Prisma.NotificationUpdateManyMutationInput, + Prisma.NotificationUncheckedUpdateManyWithoutTaskInput + > +} + +export type NotificationCreateManyCreatorInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null + assetId?: string | null + taskId?: string | null + userId?: string | null +} + +export type NotificationCreateManyUserInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null + creatorId?: string | null + assetId?: string | null + taskId?: string | null +} + +export type NotificationUpdateWithoutCreatorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput + project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput + asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput + task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput + user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput + readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationUncheckedUpdateWithoutCreatorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationUncheckedUpdateManyWithoutCreatorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type NotificationUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput + project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput + creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput + asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput + task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput + readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type NotificationCreateManyTeamInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + projectId?: string | null + creatorId?: string | null + assetId?: string | null + taskId?: string | null + userId?: string | null +} + +export type NotificationUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput + creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput + asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput + task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput + user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput + readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationUncheckedUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationUncheckedUpdateManyWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type NotificationCreateManyProjectInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + creatorId?: string | null + assetId?: string | null + taskId?: string | null + userId?: string | null +} + +export type NotificationUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput + creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput + asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput + task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput + user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput + readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationUncheckedUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationUncheckedUpdateManyWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type NotificationCreateManyAssetInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null + creatorId?: string | null + taskId?: string | null + userId?: string | null +} + +export type NotificationUpdateWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput + project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput + creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput + task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput + user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput + readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationUncheckedUpdateWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationUncheckedUpdateManyWithoutAssetInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type NotificationCreateManyTaskInput = { + id?: string + type?: $Enums.NotificationType | null + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + projectId?: string | null + creatorId?: string | null + assetId?: string | null + userId?: string | null +} + +export type NotificationUpdateWithoutTaskInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput + project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput + creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput + asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput + user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput + readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationUncheckedUpdateWithoutTaskInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput +} + +export type NotificationUncheckedUpdateManyWithoutTaskInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput + | $Enums.NotificationType + | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type NotificationSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + type?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + projectId?: boolean + creatorId?: boolean + assetId?: boolean + taskId?: boolean + userId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + project?: boolean | Prisma.Notification$projectArgs + creator?: boolean | Prisma.Notification$creatorArgs + asset?: boolean | Prisma.Notification$assetArgs + task?: boolean | Prisma.Notification$taskArgs + user?: boolean | Prisma.Notification$userArgs + readByMembers?: boolean | Prisma.Notification$readByMembersArgs + }, + ExtArgs['result']['notification'] +> + +export type NotificationSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + type?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + projectId?: boolean + creatorId?: boolean + assetId?: boolean + taskId?: boolean + userId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + project?: boolean | Prisma.Notification$projectArgs + creator?: boolean | Prisma.Notification$creatorArgs + asset?: boolean | Prisma.Notification$assetArgs + task?: boolean | Prisma.Notification$taskArgs + user?: boolean | Prisma.Notification$userArgs + }, + ExtArgs['result']['notification'] +> + +export type NotificationSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + type?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + projectId?: boolean + creatorId?: boolean + assetId?: boolean + taskId?: boolean + userId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + project?: boolean | Prisma.Notification$projectArgs + creator?: boolean | Prisma.Notification$creatorArgs + asset?: boolean | Prisma.Notification$assetArgs + task?: boolean | Prisma.Notification$taskArgs + user?: boolean | Prisma.Notification$userArgs + }, + ExtArgs['result']['notification'] +> + +export type NotificationSelectScalar = { + id?: boolean + type?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + projectId?: boolean + creatorId?: boolean + assetId?: boolean + taskId?: boolean + userId?: boolean +} + +export type NotificationOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'type' + | 'createdAt' + | 'updatedAt' + | 'teamId' + | 'projectId' + | 'creatorId' + | 'assetId' + | 'taskId' + | 'userId', + ExtArgs['result']['notification'] +> +export type NotificationInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + project?: boolean | Prisma.Notification$projectArgs + creator?: boolean | Prisma.Notification$creatorArgs + asset?: boolean | Prisma.Notification$assetArgs + task?: boolean | Prisma.Notification$taskArgs + user?: boolean | Prisma.Notification$userArgs + readByMembers?: boolean | Prisma.Notification$readByMembersArgs +} +export type NotificationIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + project?: boolean | Prisma.Notification$projectArgs + creator?: boolean | Prisma.Notification$creatorArgs + asset?: boolean | Prisma.Notification$assetArgs + task?: boolean | Prisma.Notification$taskArgs + user?: boolean | Prisma.Notification$userArgs +} +export type NotificationIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + project?: boolean | Prisma.Notification$projectArgs + creator?: boolean | Prisma.Notification$creatorArgs + asset?: boolean | Prisma.Notification$assetArgs + task?: boolean | Prisma.Notification$taskArgs + user?: boolean | Prisma.Notification$userArgs +} + +export type $NotificationPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Notification' + objects: { + team: Prisma.$TeamPayload + project: Prisma.$ProjectPayload | null + creator: Prisma.$UserPayload | null + asset: Prisma.$AssetPayload | null + task: Prisma.$TaskPayload | null + user: Prisma.$UserPayload | null + readByMembers: Prisma.$TeamMemberPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + type: $Enums.NotificationType | null + createdAt: Date + updatedAt: Date + teamId: string + projectId: string | null + creatorId: string | null + assetId: string | null + taskId: string | null + userId: string | null + }, + ExtArgs['result']['notification'] + > + composites: {} +} + +export type NotificationGetPayload = + runtime.Types.Result.GetResult + +export type NotificationCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: NotificationCountAggregateInputType | true +} + +export interface NotificationDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['Notification'] + meta: { name: 'Notification' } + } + /** + * Find zero or one Notification that matches the filter. + * @param {NotificationFindUniqueArgs} args - Arguments to find a Notification + * @example + * // Get one Notification + * const notification = await prisma.notification.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__NotificationClient< + runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Notification that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {NotificationFindUniqueOrThrowArgs} args - Arguments to find a Notification + * @example + * // Get one Notification + * const notification = await prisma.notification.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__NotificationClient< + runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Notification that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationFindFirstArgs} args - Arguments to find a Notification + * @example + * // Get one Notification + * const notification = await prisma.notification.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__NotificationClient< + runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Notification that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationFindFirstOrThrowArgs} args - Arguments to find a Notification + * @example + * // Get one Notification + * const notification = await prisma.notification.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__NotificationClient< + runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Notifications that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Notifications + * const notifications = await prisma.notification.findMany() + * + * // Get first 10 Notifications + * const notifications = await prisma.notification.findMany({ take: 10 }) + * + * // Only select the `id` + * const notificationWithIdOnly = await prisma.notification.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a Notification. + * @param {NotificationCreateArgs} args - Arguments to create a Notification. + * @example + * // Create one Notification + * const Notification = await prisma.notification.create({ + * data: { + * // ... data to create a Notification + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__NotificationClient< + runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Notifications. + * @param {NotificationCreateManyArgs} args - Arguments to create many Notifications. + * @example + * // Create many Notifications + * const notification = await prisma.notification.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Notifications and returns the data saved in the database. + * @param {NotificationCreateManyAndReturnArgs} args - Arguments to create many Notifications. + * @example + * // Create many Notifications + * const notification = await prisma.notification.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Notifications and only return the `id` + * const notificationWithIdOnly = await prisma.notification.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Notification. + * @param {NotificationDeleteArgs} args - Arguments to delete one Notification. + * @example + * // Delete one Notification + * const Notification = await prisma.notification.delete({ + * where: { + * // ... filter to delete one Notification + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__NotificationClient< + runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Notification. + * @param {NotificationUpdateArgs} args - Arguments to update one Notification. + * @example + * // Update one Notification + * const notification = await prisma.notification.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__NotificationClient< + runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Notifications. + * @param {NotificationDeleteManyArgs} args - Arguments to filter Notifications to delete. + * @example + * // Delete a few Notifications + * const { count } = await prisma.notification.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Notifications. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Notifications + * const notification = await prisma.notification.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Notifications and returns the data updated in the database. + * @param {NotificationUpdateManyAndReturnArgs} args - Arguments to update many Notifications. + * @example + * // Update many Notifications + * const notification = await prisma.notification.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Notifications and only return the `id` + * const notificationWithIdOnly = await prisma.notification.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Notification. + * @param {NotificationUpsertArgs} args - Arguments to update or create a Notification. + * @example + * // Update or create a Notification + * const notification = await prisma.notification.upsert({ + * create: { + * // ... data to create a Notification + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Notification we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__NotificationClient< + runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Notifications. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationCountArgs} args - Arguments to filter Notifications to count. + * @example + * // Count the number of Notifications + * const count = await prisma.notification.count({ + * where: { + * // ... the filter for the Notifications we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Notification. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Notification. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends NotificationGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: NotificationGroupByArgs['orderBy'] } + : { orderBy?: NotificationGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetNotificationGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Notification model + */ + readonly fields: NotificationFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Notification. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__NotificationClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + team = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TeamClient< + | runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + project = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + creator = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + asset = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + task = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TaskClient< + runtime.Types.Result.GetResult< + Prisma.$TaskPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + user = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + readByMembers = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TeamMemberClient< + runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Notification model + */ +export interface NotificationFieldRefs { + readonly id: Prisma.FieldRef<'Notification', 'String'> + readonly type: Prisma.FieldRef<'Notification', 'NotificationType'> + readonly createdAt: Prisma.FieldRef<'Notification', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Notification', 'DateTime'> + readonly teamId: Prisma.FieldRef<'Notification', 'String'> + readonly projectId: Prisma.FieldRef<'Notification', 'String'> + readonly creatorId: Prisma.FieldRef<'Notification', 'String'> + readonly assetId: Prisma.FieldRef<'Notification', 'String'> + readonly taskId: Prisma.FieldRef<'Notification', 'String'> + readonly userId: Prisma.FieldRef<'Notification', 'String'> +} + +// Custom InputTypes +/** + * Notification findUnique + */ +export type NotificationFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * Filter, which Notification to fetch. + */ + where: Prisma.NotificationWhereUniqueInput +} + +/** + * Notification findUniqueOrThrow + */ +export type NotificationFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * Filter, which Notification to fetch. + */ + where: Prisma.NotificationWhereUniqueInput +} + +/** + * Notification findFirst + */ +export type NotificationFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * Filter, which Notification to fetch. + */ + where?: Prisma.NotificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Notifications to fetch. + */ + orderBy?: + | Prisma.NotificationOrderByWithRelationInput + | Prisma.NotificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Notifications. + */ + cursor?: Prisma.NotificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Notifications from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Notifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Notifications. + */ + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * Notification findFirstOrThrow + */ +export type NotificationFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * Filter, which Notification to fetch. + */ + where?: Prisma.NotificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Notifications to fetch. + */ + orderBy?: + | Prisma.NotificationOrderByWithRelationInput + | Prisma.NotificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Notifications. + */ + cursor?: Prisma.NotificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Notifications from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Notifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Notifications. + */ + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * Notification findMany + */ +export type NotificationFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * Filter, which Notifications to fetch. + */ + where?: Prisma.NotificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Notifications to fetch. + */ + orderBy?: + | Prisma.NotificationOrderByWithRelationInput + | Prisma.NotificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Notifications. + */ + cursor?: Prisma.NotificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Notifications from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Notifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Notifications. + */ + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * Notification create + */ +export type NotificationCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * The data needed to create a Notification. + */ + data: Prisma.XOR +} + +/** + * Notification createMany + */ +export type NotificationCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Notifications. + */ + data: Prisma.NotificationCreateManyInput | Prisma.NotificationCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Notification createManyAndReturn + */ +export type NotificationCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * The data used to create many Notifications. + */ + data: Prisma.NotificationCreateManyInput | Prisma.NotificationCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationIncludeCreateManyAndReturn | null +} + +/** + * Notification update + */ +export type NotificationUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * The data needed to update a Notification. + */ + data: Prisma.XOR + /** + * Choose, which Notification to update. + */ + where: Prisma.NotificationWhereUniqueInput +} + +/** + * Notification updateMany + */ +export type NotificationUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Notifications. + */ + data: Prisma.XOR< + Prisma.NotificationUpdateManyMutationInput, + Prisma.NotificationUncheckedUpdateManyInput + > + /** + * Filter which Notifications to update + */ + where?: Prisma.NotificationWhereInput + /** + * Limit how many Notifications to update. + */ + limit?: number +} + +/** + * Notification updateManyAndReturn + */ +export type NotificationUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * The data used to update Notifications. + */ + data: Prisma.XOR< + Prisma.NotificationUpdateManyMutationInput, + Prisma.NotificationUncheckedUpdateManyInput + > + /** + * Filter which Notifications to update + */ + where?: Prisma.NotificationWhereInput + /** + * Limit how many Notifications to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationIncludeUpdateManyAndReturn | null +} + +/** + * Notification upsert + */ +export type NotificationUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * The filter to search for the Notification to update in case it exists. + */ + where: Prisma.NotificationWhereUniqueInput + /** + * In case the Notification found by the `where` argument doesn't exist, create a new Notification with this data. + */ + create: Prisma.XOR + /** + * In case the Notification was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Notification delete + */ +export type NotificationDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + /** + * Filter which Notification to delete. + */ + where: Prisma.NotificationWhereUniqueInput +} + +/** + * Notification deleteMany + */ +export type NotificationDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Notifications to delete + */ + where?: Prisma.NotificationWhereInput + /** + * Limit how many Notifications to delete. + */ + limit?: number +} + +/** + * Notification.project + */ +export type Notification$projectArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + where?: Prisma.ProjectWhereInput +} + +/** + * Notification.creator + */ +export type Notification$creatorArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + where?: Prisma.UserWhereInput +} + +/** + * Notification.asset + */ +export type Notification$assetArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + where?: Prisma.AssetWhereInput +} + +/** + * Notification.task + */ +export type Notification$taskArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelect | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskInclude | null + where?: Prisma.TaskWhereInput +} + +/** + * Notification.user + */ +export type Notification$userArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + where?: Prisma.UserWhereInput +} + +/** + * Notification.readByMembers + */ +export type Notification$readByMembersArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelect | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberInclude | null + where?: Prisma.TeamMemberWhereInput +} + +/** + * Notification without action + */ +export type NotificationDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null +} diff --git a/packages/db/src/generated/prisma/models/Project.ts b/packages/db/src/generated/prisma/models/Project.ts new file mode 100644 index 00000000..65b39540 --- /dev/null +++ b/packages/db/src/generated/prisma/models/Project.ts @@ -0,0 +1,3582 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Project` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Project + * + */ +export type ProjectModel = runtime.Types.Result.DefaultSelection + +export type AggregateProject = { + _count: ProjectCountAggregateOutputType | null + _min: ProjectMinAggregateOutputType | null + _max: ProjectMaxAggregateOutputType | null +} + +export type ProjectMinAggregateOutputType = { + id: string | null + name: string | null + coverImageKey: string | null + enableNotification: boolean | null + createdAt: Date | null + updatedAt: Date | null + teamId: string | null + rootFolderId: string | null + shareRootId: string | null +} + +export type ProjectMaxAggregateOutputType = { + id: string | null + name: string | null + coverImageKey: string | null + enableNotification: boolean | null + createdAt: Date | null + updatedAt: Date | null + teamId: string | null + rootFolderId: string | null + shareRootId: string | null +} + +export type ProjectCountAggregateOutputType = { + id: number + name: number + coverImageKey: number + metadataOverrides: PrismaJson.MetadataOverrides + enableNotification: number + createdAt: number + updatedAt: number + teamId: number + rootFolderId: number + shareRootId: number + _all: number +} + +export type ProjectMinAggregateInputType = { + id?: true + name?: true + coverImageKey?: true + enableNotification?: true + createdAt?: true + updatedAt?: true + teamId?: true + rootFolderId?: true + shareRootId?: true +} + +export type ProjectMaxAggregateInputType = { + id?: true + name?: true + coverImageKey?: true + enableNotification?: true + createdAt?: true + updatedAt?: true + teamId?: true + rootFolderId?: true + shareRootId?: true +} + +export type ProjectCountAggregateInputType = { + id?: true + name?: true + coverImageKey?: true + metadataOverrides?: true + enableNotification?: true + createdAt?: true + updatedAt?: true + teamId?: true + rootFolderId?: true + shareRootId?: true + _all?: true +} + +export type ProjectAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Project to aggregate. + */ + where?: Prisma.ProjectWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Projects to fetch. + */ + orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ProjectWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Projects from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Projects. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Projects + **/ + _count?: true | ProjectCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ProjectMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ProjectMaxAggregateInputType +} + +export type GetProjectAggregateType = { + [P in keyof T & keyof AggregateProject]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type ProjectGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.ProjectWhereInput + orderBy?: Prisma.ProjectOrderByWithAggregationInput | Prisma.ProjectOrderByWithAggregationInput[] + by: Prisma.ProjectScalarFieldEnum[] | Prisma.ProjectScalarFieldEnum + having?: Prisma.ProjectScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ProjectCountAggregateInputType | true + _min?: ProjectMinAggregateInputType + _max?: ProjectMaxAggregateInputType +} + +export type ProjectGroupByOutputType = { + id: string + name: string + coverImageKey: string | null + metadataOverrides: PrismaJson.MetadataOverrides | null + enableNotification: boolean + createdAt: Date + updatedAt: Date + teamId: string + rootFolderId: string | null + shareRootId: string | null + _count: ProjectCountAggregateOutputType | null + _min: ProjectMinAggregateOutputType | null + _max: ProjectMaxAggregateOutputType | null +} + +export type GetProjectGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof ProjectGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type ProjectWhereInput = { + AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] + OR?: Prisma.ProjectWhereInput[] + NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] + id?: Prisma.StringFilter<'Project'> | string + name?: Prisma.StringFilter<'Project'> | string + coverImageKey?: Prisma.StringNullableFilter<'Project'> | string | null + metadataOverrides?: Prisma.JsonNullableFilter<'Project'> + enableNotification?: Prisma.BoolFilter<'Project'> | boolean + createdAt?: Prisma.DateTimeFilter<'Project'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Project'> | Date | string + teamId?: Prisma.StringFilter<'Project'> | string + rootFolderId?: Prisma.StringNullableFilter<'Project'> | string | null + shareRootId?: Prisma.StringNullableFilter<'Project'> | string | null + team?: Prisma.XOR + rootFolder?: Prisma.XOR | null + shareRoot?: Prisma.XOR | null + members?: Prisma.ProjectMemberListRelationFilter + assets?: Prisma.AssetListRelationFilter + metadataFields?: Prisma.MetadataFieldListRelationFilter + invites?: Prisma.InviteListRelationFilter + notifications?: Prisma.NotificationListRelationFilter + shareLinks?: Prisma.ShareLinkListRelationFilter + collections?: Prisma.CollectionListRelationFilter +} + +export type ProjectOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + coverImageKey?: Prisma.SortOrderInput | Prisma.SortOrder + metadataOverrides?: Prisma.SortOrderInput | Prisma.SortOrder + enableNotification?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrderInput | Prisma.SortOrder + shareRootId?: Prisma.SortOrderInput | Prisma.SortOrder + team?: Prisma.TeamOrderByWithRelationInput + rootFolder?: Prisma.AssetOrderByWithRelationInput + shareRoot?: Prisma.AssetOrderByWithRelationInput + members?: Prisma.ProjectMemberOrderByRelationAggregateInput + assets?: Prisma.AssetOrderByRelationAggregateInput + metadataFields?: Prisma.MetadataFieldOrderByRelationAggregateInput + invites?: Prisma.InviteOrderByRelationAggregateInput + notifications?: Prisma.NotificationOrderByRelationAggregateInput + shareLinks?: Prisma.ShareLinkOrderByRelationAggregateInput + collections?: Prisma.CollectionOrderByRelationAggregateInput +} + +export type ProjectWhereUniqueInput = Prisma.AtLeast< + { + id?: string + rootFolderId?: string + shareRootId?: string + AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] + OR?: Prisma.ProjectWhereInput[] + NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] + name?: Prisma.StringFilter<'Project'> | string + coverImageKey?: Prisma.StringNullableFilter<'Project'> | string | null + metadataOverrides?: Prisma.JsonNullableFilter<'Project'> + enableNotification?: Prisma.BoolFilter<'Project'> | boolean + createdAt?: Prisma.DateTimeFilter<'Project'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Project'> | Date | string + teamId?: Prisma.StringFilter<'Project'> | string + team?: Prisma.XOR + rootFolder?: Prisma.XOR | null + shareRoot?: Prisma.XOR | null + members?: Prisma.ProjectMemberListRelationFilter + assets?: Prisma.AssetListRelationFilter + metadataFields?: Prisma.MetadataFieldListRelationFilter + invites?: Prisma.InviteListRelationFilter + notifications?: Prisma.NotificationListRelationFilter + shareLinks?: Prisma.ShareLinkListRelationFilter + collections?: Prisma.CollectionListRelationFilter + }, + 'id' | 'rootFolderId' | 'shareRootId' +> + +export type ProjectOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + coverImageKey?: Prisma.SortOrderInput | Prisma.SortOrder + metadataOverrides?: Prisma.SortOrderInput | Prisma.SortOrder + enableNotification?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrderInput | Prisma.SortOrder + shareRootId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.ProjectCountOrderByAggregateInput + _max?: Prisma.ProjectMaxOrderByAggregateInput + _min?: Prisma.ProjectMinOrderByAggregateInput +} + +export type ProjectScalarWhereWithAggregatesInput = { + AND?: + | Prisma.ProjectScalarWhereWithAggregatesInput + | Prisma.ProjectScalarWhereWithAggregatesInput[] + OR?: Prisma.ProjectScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.ProjectScalarWhereWithAggregatesInput + | Prisma.ProjectScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Project'> | string + name?: Prisma.StringWithAggregatesFilter<'Project'> | string + coverImageKey?: Prisma.StringNullableWithAggregatesFilter<'Project'> | string | null + metadataOverrides?: Prisma.JsonNullableWithAggregatesFilter<'Project'> + enableNotification?: Prisma.BoolWithAggregatesFilter<'Project'> | boolean + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Project'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Project'> | Date | string + teamId?: Prisma.StringWithAggregatesFilter<'Project'> | string + rootFolderId?: Prisma.StringNullableWithAggregatesFilter<'Project'> | string | null + shareRootId?: Prisma.StringNullableWithAggregatesFilter<'Project'> | string | null +} + +export type ProjectCreateInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutProjectsInput + rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput + shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput + members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + rootFolderId?: string | null + shareRootId?: string | null + members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput + rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput + shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput + members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectCreateManyInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + rootFolderId?: string | null + shareRootId?: string | null +} + +export type ProjectUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ProjectUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ProjectListRelationFilter = { + every?: Prisma.ProjectWhereInput + some?: Prisma.ProjectWhereInput + none?: Prisma.ProjectWhereInput +} + +export type ProjectOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ProjectCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + coverImageKey?: Prisma.SortOrder + metadataOverrides?: Prisma.SortOrder + enableNotification?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrder + shareRootId?: Prisma.SortOrder +} + +export type ProjectMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + coverImageKey?: Prisma.SortOrder + enableNotification?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrder + shareRootId?: Prisma.SortOrder +} + +export type ProjectMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + coverImageKey?: Prisma.SortOrder + enableNotification?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrder + shareRootId?: Prisma.SortOrder +} + +export type ProjectScalarRelationFilter = { + is?: Prisma.ProjectWhereInput + isNot?: Prisma.ProjectWhereInput +} + +export type ProjectNullableScalarRelationFilter = { + is?: Prisma.ProjectWhereInput | null + isNot?: Prisma.ProjectWhereInput | null +} + +export type ProjectCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR< + Prisma.ProjectCreateWithoutTeamInput, + Prisma.ProjectUncheckedCreateWithoutTeamInput + > + | Prisma.ProjectCreateWithoutTeamInput[] + | Prisma.ProjectUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.ProjectCreateOrConnectWithoutTeamInput + | Prisma.ProjectCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.ProjectCreateManyTeamInputEnvelope + connect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] +} + +export type ProjectUncheckedCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR< + Prisma.ProjectCreateWithoutTeamInput, + Prisma.ProjectUncheckedCreateWithoutTeamInput + > + | Prisma.ProjectCreateWithoutTeamInput[] + | Prisma.ProjectUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.ProjectCreateOrConnectWithoutTeamInput + | Prisma.ProjectCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.ProjectCreateManyTeamInputEnvelope + connect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] +} + +export type ProjectUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR< + Prisma.ProjectCreateWithoutTeamInput, + Prisma.ProjectUncheckedCreateWithoutTeamInput + > + | Prisma.ProjectCreateWithoutTeamInput[] + | Prisma.ProjectUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.ProjectCreateOrConnectWithoutTeamInput + | Prisma.ProjectCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.ProjectUpsertWithWhereUniqueWithoutTeamInput + | Prisma.ProjectUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.ProjectCreateManyTeamInputEnvelope + set?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] + disconnect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] + delete?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] + connect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] + update?: + | Prisma.ProjectUpdateWithWhereUniqueWithoutTeamInput + | Prisma.ProjectUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.ProjectUpdateManyWithWhereWithoutTeamInput + | Prisma.ProjectUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.ProjectScalarWhereInput | Prisma.ProjectScalarWhereInput[] +} + +export type ProjectUncheckedUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR< + Prisma.ProjectCreateWithoutTeamInput, + Prisma.ProjectUncheckedCreateWithoutTeamInput + > + | Prisma.ProjectCreateWithoutTeamInput[] + | Prisma.ProjectUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.ProjectCreateOrConnectWithoutTeamInput + | Prisma.ProjectCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.ProjectUpsertWithWhereUniqueWithoutTeamInput + | Prisma.ProjectUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.ProjectCreateManyTeamInputEnvelope + set?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] + disconnect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] + delete?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] + connect?: Prisma.ProjectWhereUniqueInput | Prisma.ProjectWhereUniqueInput[] + update?: + | Prisma.ProjectUpdateWithWhereUniqueWithoutTeamInput + | Prisma.ProjectUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.ProjectUpdateManyWithWhereWithoutTeamInput + | Prisma.ProjectUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.ProjectScalarWhereInput | Prisma.ProjectScalarWhereInput[] +} + +export type ProjectCreateNestedOneWithoutMembersInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutMembersInput, + Prisma.ProjectUncheckedCreateWithoutMembersInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMembersInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectUpdateOneRequiredWithoutMembersNestedInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutMembersInput, + Prisma.ProjectUncheckedCreateWithoutMembersInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMembersInput + upsert?: Prisma.ProjectUpsertWithoutMembersInput + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProjectUpdateToOneWithWhereWithoutMembersInput, + Prisma.ProjectUpdateWithoutMembersInput + >, + Prisma.ProjectUncheckedUpdateWithoutMembersInput + > +} + +export type ProjectCreateNestedOneWithoutShareLinksInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutShareLinksInput, + Prisma.ProjectUncheckedCreateWithoutShareLinksInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutShareLinksInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectUpdateOneRequiredWithoutShareLinksNestedInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutShareLinksInput, + Prisma.ProjectUncheckedCreateWithoutShareLinksInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutShareLinksInput + upsert?: Prisma.ProjectUpsertWithoutShareLinksInput + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProjectUpdateToOneWithWhereWithoutShareLinksInput, + Prisma.ProjectUpdateWithoutShareLinksInput + >, + Prisma.ProjectUncheckedUpdateWithoutShareLinksInput + > +} + +export type ProjectCreateNestedOneWithoutAssetsInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutAssetsInput, + Prisma.ProjectUncheckedCreateWithoutAssetsInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutAssetsInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectCreateNestedOneWithoutRootFolderInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutRootFolderInput, + Prisma.ProjectUncheckedCreateWithoutRootFolderInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutRootFolderInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectCreateNestedOneWithoutShareRootInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutShareRootInput, + Prisma.ProjectUncheckedCreateWithoutShareRootInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutShareRootInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectUncheckedCreateNestedOneWithoutRootFolderInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutRootFolderInput, + Prisma.ProjectUncheckedCreateWithoutRootFolderInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutRootFolderInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectUncheckedCreateNestedOneWithoutShareRootInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutShareRootInput, + Prisma.ProjectUncheckedCreateWithoutShareRootInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutShareRootInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectUpdateOneWithoutAssetsNestedInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutAssetsInput, + Prisma.ProjectUncheckedCreateWithoutAssetsInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutAssetsInput + upsert?: Prisma.ProjectUpsertWithoutAssetsInput + disconnect?: Prisma.ProjectWhereInput | boolean + delete?: Prisma.ProjectWhereInput | boolean + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProjectUpdateToOneWithWhereWithoutAssetsInput, + Prisma.ProjectUpdateWithoutAssetsInput + >, + Prisma.ProjectUncheckedUpdateWithoutAssetsInput + > +} + +export type ProjectUpdateOneWithoutRootFolderNestedInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutRootFolderInput, + Prisma.ProjectUncheckedCreateWithoutRootFolderInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutRootFolderInput + upsert?: Prisma.ProjectUpsertWithoutRootFolderInput + disconnect?: Prisma.ProjectWhereInput | boolean + delete?: Prisma.ProjectWhereInput | boolean + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProjectUpdateToOneWithWhereWithoutRootFolderInput, + Prisma.ProjectUpdateWithoutRootFolderInput + >, + Prisma.ProjectUncheckedUpdateWithoutRootFolderInput + > +} + +export type ProjectUpdateOneWithoutShareRootNestedInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutShareRootInput, + Prisma.ProjectUncheckedCreateWithoutShareRootInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutShareRootInput + upsert?: Prisma.ProjectUpsertWithoutShareRootInput + disconnect?: Prisma.ProjectWhereInput | boolean + delete?: Prisma.ProjectWhereInput | boolean + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProjectUpdateToOneWithWhereWithoutShareRootInput, + Prisma.ProjectUpdateWithoutShareRootInput + >, + Prisma.ProjectUncheckedUpdateWithoutShareRootInput + > +} + +export type ProjectUncheckedUpdateOneWithoutRootFolderNestedInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutRootFolderInput, + Prisma.ProjectUncheckedCreateWithoutRootFolderInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutRootFolderInput + upsert?: Prisma.ProjectUpsertWithoutRootFolderInput + disconnect?: Prisma.ProjectWhereInput | boolean + delete?: Prisma.ProjectWhereInput | boolean + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProjectUpdateToOneWithWhereWithoutRootFolderInput, + Prisma.ProjectUpdateWithoutRootFolderInput + >, + Prisma.ProjectUncheckedUpdateWithoutRootFolderInput + > +} + +export type ProjectUncheckedUpdateOneWithoutShareRootNestedInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutShareRootInput, + Prisma.ProjectUncheckedCreateWithoutShareRootInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutShareRootInput + upsert?: Prisma.ProjectUpsertWithoutShareRootInput + disconnect?: Prisma.ProjectWhereInput | boolean + delete?: Prisma.ProjectWhereInput | boolean + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProjectUpdateToOneWithWhereWithoutShareRootInput, + Prisma.ProjectUpdateWithoutShareRootInput + >, + Prisma.ProjectUncheckedUpdateWithoutShareRootInput + > +} + +export type ProjectCreateNestedOneWithoutInvitesInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutInvitesInput, + Prisma.ProjectUncheckedCreateWithoutInvitesInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutInvitesInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectUpdateOneWithoutInvitesNestedInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutInvitesInput, + Prisma.ProjectUncheckedCreateWithoutInvitesInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutInvitesInput + upsert?: Prisma.ProjectUpsertWithoutInvitesInput + disconnect?: Prisma.ProjectWhereInput | boolean + delete?: Prisma.ProjectWhereInput | boolean + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProjectUpdateToOneWithWhereWithoutInvitesInput, + Prisma.ProjectUpdateWithoutInvitesInput + >, + Prisma.ProjectUncheckedUpdateWithoutInvitesInput + > +} + +export type ProjectCreateNestedOneWithoutMetadataFieldsInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutMetadataFieldsInput, + Prisma.ProjectUncheckedCreateWithoutMetadataFieldsInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMetadataFieldsInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectUpdateOneWithoutMetadataFieldsNestedInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutMetadataFieldsInput, + Prisma.ProjectUncheckedCreateWithoutMetadataFieldsInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMetadataFieldsInput + upsert?: Prisma.ProjectUpsertWithoutMetadataFieldsInput + disconnect?: Prisma.ProjectWhereInput | boolean + delete?: Prisma.ProjectWhereInput | boolean + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProjectUpdateToOneWithWhereWithoutMetadataFieldsInput, + Prisma.ProjectUpdateWithoutMetadataFieldsInput + >, + Prisma.ProjectUncheckedUpdateWithoutMetadataFieldsInput + > +} + +export type ProjectCreateNestedOneWithoutNotificationsInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutNotificationsInput, + Prisma.ProjectUncheckedCreateWithoutNotificationsInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutNotificationsInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectUpdateOneWithoutNotificationsNestedInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutNotificationsInput, + Prisma.ProjectUncheckedCreateWithoutNotificationsInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutNotificationsInput + upsert?: Prisma.ProjectUpsertWithoutNotificationsInput + disconnect?: Prisma.ProjectWhereInput | boolean + delete?: Prisma.ProjectWhereInput | boolean + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProjectUpdateToOneWithWhereWithoutNotificationsInput, + Prisma.ProjectUpdateWithoutNotificationsInput + >, + Prisma.ProjectUncheckedUpdateWithoutNotificationsInput + > +} + +export type ProjectCreateNestedOneWithoutCollectionsInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutCollectionsInput, + Prisma.ProjectUncheckedCreateWithoutCollectionsInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutCollectionsInput + connect?: Prisma.ProjectWhereUniqueInput +} + +export type ProjectUpdateOneRequiredWithoutCollectionsNestedInput = { + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutCollectionsInput, + Prisma.ProjectUncheckedCreateWithoutCollectionsInput + > + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutCollectionsInput + upsert?: Prisma.ProjectUpsertWithoutCollectionsInput + connect?: Prisma.ProjectWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProjectUpdateToOneWithWhereWithoutCollectionsInput, + Prisma.ProjectUpdateWithoutCollectionsInput + >, + Prisma.ProjectUncheckedUpdateWithoutCollectionsInput + > +} + +export type ProjectCreateWithoutTeamInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput + shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput + members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutTeamInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null + shareRootId?: string | null + members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutTeamInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR< + Prisma.ProjectCreateWithoutTeamInput, + Prisma.ProjectUncheckedCreateWithoutTeamInput + > +} + +export type ProjectCreateManyTeamInputEnvelope = { + data: Prisma.ProjectCreateManyTeamInput | Prisma.ProjectCreateManyTeamInput[] + skipDuplicates?: boolean +} + +export type ProjectUpsertWithWhereUniqueWithoutTeamInput = { + where: Prisma.ProjectWhereUniqueInput + update: Prisma.XOR< + Prisma.ProjectUpdateWithoutTeamInput, + Prisma.ProjectUncheckedUpdateWithoutTeamInput + > + create: Prisma.XOR< + Prisma.ProjectCreateWithoutTeamInput, + Prisma.ProjectUncheckedCreateWithoutTeamInput + > +} + +export type ProjectUpdateWithWhereUniqueWithoutTeamInput = { + where: Prisma.ProjectWhereUniqueInput + data: Prisma.XOR< + Prisma.ProjectUpdateWithoutTeamInput, + Prisma.ProjectUncheckedUpdateWithoutTeamInput + > +} + +export type ProjectUpdateManyWithWhereWithoutTeamInput = { + where: Prisma.ProjectScalarWhereInput + data: Prisma.XOR< + Prisma.ProjectUpdateManyMutationInput, + Prisma.ProjectUncheckedUpdateManyWithoutTeamInput + > +} + +export type ProjectScalarWhereInput = { + AND?: Prisma.ProjectScalarWhereInput | Prisma.ProjectScalarWhereInput[] + OR?: Prisma.ProjectScalarWhereInput[] + NOT?: Prisma.ProjectScalarWhereInput | Prisma.ProjectScalarWhereInput[] + id?: Prisma.StringFilter<'Project'> | string + name?: Prisma.StringFilter<'Project'> | string + coverImageKey?: Prisma.StringNullableFilter<'Project'> | string | null + metadataOverrides?: Prisma.JsonNullableFilter<'Project'> + enableNotification?: Prisma.BoolFilter<'Project'> | boolean + createdAt?: Prisma.DateTimeFilter<'Project'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Project'> | Date | string + teamId?: Prisma.StringFilter<'Project'> | string + rootFolderId?: Prisma.StringNullableFilter<'Project'> | string | null + shareRootId?: Prisma.StringNullableFilter<'Project'> | string | null +} + +export type ProjectCreateWithoutMembersInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutProjectsInput + rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput + shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput + assets?: Prisma.AssetCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutMembersInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + rootFolderId?: string | null + shareRootId?: string | null + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutMembersInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR< + Prisma.ProjectCreateWithoutMembersInput, + Prisma.ProjectUncheckedCreateWithoutMembersInput + > +} + +export type ProjectUpsertWithoutMembersInput = { + update: Prisma.XOR< + Prisma.ProjectUpdateWithoutMembersInput, + Prisma.ProjectUncheckedUpdateWithoutMembersInput + > + create: Prisma.XOR< + Prisma.ProjectCreateWithoutMembersInput, + Prisma.ProjectUncheckedCreateWithoutMembersInput + > + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutMembersInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR< + Prisma.ProjectUpdateWithoutMembersInput, + Prisma.ProjectUncheckedUpdateWithoutMembersInput + > +} + +export type ProjectUpdateWithoutMembersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput + rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput + shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput + assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutMembersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectCreateWithoutShareLinksInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutProjectsInput + rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput + shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput + members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutShareLinksInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + rootFolderId?: string | null + shareRootId?: string | null + members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutShareLinksInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR< + Prisma.ProjectCreateWithoutShareLinksInput, + Prisma.ProjectUncheckedCreateWithoutShareLinksInput + > +} + +export type ProjectUpsertWithoutShareLinksInput = { + update: Prisma.XOR< + Prisma.ProjectUpdateWithoutShareLinksInput, + Prisma.ProjectUncheckedUpdateWithoutShareLinksInput + > + create: Prisma.XOR< + Prisma.ProjectCreateWithoutShareLinksInput, + Prisma.ProjectUncheckedCreateWithoutShareLinksInput + > + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutShareLinksInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR< + Prisma.ProjectUpdateWithoutShareLinksInput, + Prisma.ProjectUncheckedUpdateWithoutShareLinksInput + > +} + +export type ProjectUpdateWithoutShareLinksInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput + rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput + shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput + members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutShareLinksInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectCreateWithoutAssetsInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutProjectsInput + rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput + shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput + members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutAssetsInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + rootFolderId?: string | null + shareRootId?: string | null + members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutAssetsInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR< + Prisma.ProjectCreateWithoutAssetsInput, + Prisma.ProjectUncheckedCreateWithoutAssetsInput + > +} + +export type ProjectCreateWithoutRootFolderInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutProjectsInput + shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput + members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutRootFolderInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + shareRootId?: string | null + members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutRootFolderInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR< + Prisma.ProjectCreateWithoutRootFolderInput, + Prisma.ProjectUncheckedCreateWithoutRootFolderInput + > +} + +export type ProjectCreateWithoutShareRootInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutProjectsInput + rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput + members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutShareRootInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + rootFolderId?: string | null + members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutShareRootInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR< + Prisma.ProjectCreateWithoutShareRootInput, + Prisma.ProjectUncheckedCreateWithoutShareRootInput + > +} + +export type ProjectUpsertWithoutAssetsInput = { + update: Prisma.XOR< + Prisma.ProjectUpdateWithoutAssetsInput, + Prisma.ProjectUncheckedUpdateWithoutAssetsInput + > + create: Prisma.XOR< + Prisma.ProjectCreateWithoutAssetsInput, + Prisma.ProjectUncheckedCreateWithoutAssetsInput + > + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutAssetsInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR< + Prisma.ProjectUpdateWithoutAssetsInput, + Prisma.ProjectUncheckedUpdateWithoutAssetsInput + > +} + +export type ProjectUpdateWithoutAssetsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput + rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput + shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput + members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutAssetsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectUpsertWithoutRootFolderInput = { + update: Prisma.XOR< + Prisma.ProjectUpdateWithoutRootFolderInput, + Prisma.ProjectUncheckedUpdateWithoutRootFolderInput + > + create: Prisma.XOR< + Prisma.ProjectCreateWithoutRootFolderInput, + Prisma.ProjectUncheckedCreateWithoutRootFolderInput + > + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutRootFolderInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR< + Prisma.ProjectUpdateWithoutRootFolderInput, + Prisma.ProjectUncheckedUpdateWithoutRootFolderInput + > +} + +export type ProjectUpdateWithoutRootFolderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput + shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput + members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutRootFolderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectUpsertWithoutShareRootInput = { + update: Prisma.XOR< + Prisma.ProjectUpdateWithoutShareRootInput, + Prisma.ProjectUncheckedUpdateWithoutShareRootInput + > + create: Prisma.XOR< + Prisma.ProjectCreateWithoutShareRootInput, + Prisma.ProjectUncheckedCreateWithoutShareRootInput + > + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutShareRootInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR< + Prisma.ProjectUpdateWithoutShareRootInput, + Prisma.ProjectUncheckedUpdateWithoutShareRootInput + > +} + +export type ProjectUpdateWithoutShareRootInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput + rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput + members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutShareRootInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectCreateWithoutInvitesInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutProjectsInput + rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput + shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput + members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutInvitesInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + rootFolderId?: string | null + shareRootId?: string | null + members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutInvitesInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR< + Prisma.ProjectCreateWithoutInvitesInput, + Prisma.ProjectUncheckedCreateWithoutInvitesInput + > +} + +export type ProjectUpsertWithoutInvitesInput = { + update: Prisma.XOR< + Prisma.ProjectUpdateWithoutInvitesInput, + Prisma.ProjectUncheckedUpdateWithoutInvitesInput + > + create: Prisma.XOR< + Prisma.ProjectCreateWithoutInvitesInput, + Prisma.ProjectUncheckedCreateWithoutInvitesInput + > + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutInvitesInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR< + Prisma.ProjectUpdateWithoutInvitesInput, + Prisma.ProjectUncheckedUpdateWithoutInvitesInput + > +} + +export type ProjectUpdateWithoutInvitesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput + rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput + shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput + members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutInvitesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectCreateWithoutMetadataFieldsInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutProjectsInput + rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput + shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput + members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutMetadataFieldsInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + rootFolderId?: string | null + shareRootId?: string | null + members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutMetadataFieldsInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR< + Prisma.ProjectCreateWithoutMetadataFieldsInput, + Prisma.ProjectUncheckedCreateWithoutMetadataFieldsInput + > +} + +export type ProjectUpsertWithoutMetadataFieldsInput = { + update: Prisma.XOR< + Prisma.ProjectUpdateWithoutMetadataFieldsInput, + Prisma.ProjectUncheckedUpdateWithoutMetadataFieldsInput + > + create: Prisma.XOR< + Prisma.ProjectCreateWithoutMetadataFieldsInput, + Prisma.ProjectUncheckedCreateWithoutMetadataFieldsInput + > + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutMetadataFieldsInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR< + Prisma.ProjectUpdateWithoutMetadataFieldsInput, + Prisma.ProjectUncheckedUpdateWithoutMetadataFieldsInput + > +} + +export type ProjectUpdateWithoutMetadataFieldsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput + rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput + shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput + members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutMetadataFieldsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectCreateWithoutNotificationsInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutProjectsInput + rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput + shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput + members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutNotificationsInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + rootFolderId?: string | null + shareRootId?: string | null + members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput + collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutNotificationsInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR< + Prisma.ProjectCreateWithoutNotificationsInput, + Prisma.ProjectUncheckedCreateWithoutNotificationsInput + > +} + +export type ProjectUpsertWithoutNotificationsInput = { + update: Prisma.XOR< + Prisma.ProjectUpdateWithoutNotificationsInput, + Prisma.ProjectUncheckedUpdateWithoutNotificationsInput + > + create: Prisma.XOR< + Prisma.ProjectCreateWithoutNotificationsInput, + Prisma.ProjectUncheckedCreateWithoutNotificationsInput + > + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutNotificationsInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR< + Prisma.ProjectUpdateWithoutNotificationsInput, + Prisma.ProjectUncheckedUpdateWithoutNotificationsInput + > +} + +export type ProjectUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput + rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput + shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput + members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectCreateWithoutCollectionsInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutProjectsInput + rootFolder?: Prisma.AssetCreateNestedOneWithoutProjectRootFolderInput + shareRoot?: Prisma.AssetCreateNestedOneWithoutProjectShareRootInput + members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutProjectInput +} + +export type ProjectUncheckedCreateWithoutCollectionsInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + rootFolderId?: string | null + shareRootId?: string | null + members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutProjectInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutProjectInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutProjectInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutProjectInput + shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutCollectionsInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR< + Prisma.ProjectCreateWithoutCollectionsInput, + Prisma.ProjectUncheckedCreateWithoutCollectionsInput + > +} + +export type ProjectUpsertWithoutCollectionsInput = { + update: Prisma.XOR< + Prisma.ProjectUpdateWithoutCollectionsInput, + Prisma.ProjectUncheckedUpdateWithoutCollectionsInput + > + create: Prisma.XOR< + Prisma.ProjectCreateWithoutCollectionsInput, + Prisma.ProjectUncheckedCreateWithoutCollectionsInput + > + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutCollectionsInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR< + Prisma.ProjectUpdateWithoutCollectionsInput, + Prisma.ProjectUncheckedUpdateWithoutCollectionsInput + > +} + +export type ProjectUpdateWithoutCollectionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutProjectsNestedInput + rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput + shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput + members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutCollectionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectCreateManyTeamInput = { + id?: string + name: string + coverImageKey?: string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: boolean + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null + shareRootId?: string | null +} + +export type ProjectUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolder?: Prisma.AssetUpdateOneWithoutProjectRootFolderNestedInput + shareRoot?: Prisma.AssetUpdateOneWithoutProjectShareRootNestedInput + members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput + assets?: Prisma.AssetUncheckedUpdateManyWithoutProjectNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutProjectNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutProjectNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutProjectNestedInput + shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutProjectNestedInput + collections?: Prisma.CollectionUncheckedUpdateManyWithoutProjectNestedInput +} + +export type ProjectUncheckedUpdateManyWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + metadataOverrides?: PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput + enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + shareRootId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +/** + * Count Type ProjectCountOutputType + */ + +export type ProjectCountOutputType = { + members: number + assets: number + metadataFields: number + invites: number + notifications: number + shareLinks: number + collections: number +} + +export type ProjectCountOutputTypeSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + members?: boolean | ProjectCountOutputTypeCountMembersArgs + assets?: boolean | ProjectCountOutputTypeCountAssetsArgs + metadataFields?: boolean | ProjectCountOutputTypeCountMetadataFieldsArgs + invites?: boolean | ProjectCountOutputTypeCountInvitesArgs + notifications?: boolean | ProjectCountOutputTypeCountNotificationsArgs + shareLinks?: boolean | ProjectCountOutputTypeCountShareLinksArgs + collections?: boolean | ProjectCountOutputTypeCountCollectionsArgs +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectCountOutputType + */ + select?: Prisma.ProjectCountOutputTypeSelect | null +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeCountMembersArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.ProjectMemberWhereInput +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeCountAssetsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetWhereInput +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeCountMetadataFieldsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.MetadataFieldWhereInput +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeCountInvitesArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.InviteWhereInput +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeCountNotificationsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.NotificationWhereInput +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeCountShareLinksArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.ShareLinkWhereInput +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeCountCollectionsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.CollectionWhereInput +} + +export type ProjectSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + coverImageKey?: boolean + metadataOverrides?: boolean + enableNotification?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + rootFolderId?: boolean + shareRootId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + rootFolder?: boolean | Prisma.Project$rootFolderArgs + shareRoot?: boolean | Prisma.Project$shareRootArgs + members?: boolean | Prisma.Project$membersArgs + assets?: boolean | Prisma.Project$assetsArgs + metadataFields?: boolean | Prisma.Project$metadataFieldsArgs + invites?: boolean | Prisma.Project$invitesArgs + notifications?: boolean | Prisma.Project$notificationsArgs + shareLinks?: boolean | Prisma.Project$shareLinksArgs + collections?: boolean | Prisma.Project$collectionsArgs + _count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs + }, + ExtArgs['result']['project'] +> + +export type ProjectSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + coverImageKey?: boolean + metadataOverrides?: boolean + enableNotification?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + rootFolderId?: boolean + shareRootId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + rootFolder?: boolean | Prisma.Project$rootFolderArgs + shareRoot?: boolean | Prisma.Project$shareRootArgs + }, + ExtArgs['result']['project'] +> + +export type ProjectSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + coverImageKey?: boolean + metadataOverrides?: boolean + enableNotification?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + rootFolderId?: boolean + shareRootId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + rootFolder?: boolean | Prisma.Project$rootFolderArgs + shareRoot?: boolean | Prisma.Project$shareRootArgs + }, + ExtArgs['result']['project'] +> + +export type ProjectSelectScalar = { + id?: boolean + name?: boolean + coverImageKey?: boolean + metadataOverrides?: boolean + enableNotification?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + rootFolderId?: boolean + shareRootId?: boolean +} + +export type ProjectOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'name' + | 'coverImageKey' + | 'metadataOverrides' + | 'enableNotification' + | 'createdAt' + | 'updatedAt' + | 'teamId' + | 'rootFolderId' + | 'shareRootId', + ExtArgs['result']['project'] +> +export type ProjectInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + rootFolder?: boolean | Prisma.Project$rootFolderArgs + shareRoot?: boolean | Prisma.Project$shareRootArgs + members?: boolean | Prisma.Project$membersArgs + assets?: boolean | Prisma.Project$assetsArgs + metadataFields?: boolean | Prisma.Project$metadataFieldsArgs + invites?: boolean | Prisma.Project$invitesArgs + notifications?: boolean | Prisma.Project$notificationsArgs + shareLinks?: boolean | Prisma.Project$shareLinksArgs + collections?: boolean | Prisma.Project$collectionsArgs + _count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs +} +export type ProjectIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + rootFolder?: boolean | Prisma.Project$rootFolderArgs + shareRoot?: boolean | Prisma.Project$shareRootArgs +} +export type ProjectIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + rootFolder?: boolean | Prisma.Project$rootFolderArgs + shareRoot?: boolean | Prisma.Project$shareRootArgs +} + +export type $ProjectPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Project' + objects: { + team: Prisma.$TeamPayload + rootFolder: Prisma.$AssetPayload | null + shareRoot: Prisma.$AssetPayload | null + members: Prisma.$ProjectMemberPayload[] + assets: Prisma.$AssetPayload[] + metadataFields: Prisma.$MetadataFieldPayload[] + invites: Prisma.$InvitePayload[] + notifications: Prisma.$NotificationPayload[] + shareLinks: Prisma.$ShareLinkPayload[] + collections: Prisma.$CollectionPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + name: string + coverImageKey: string | null + /** + * [MetadataOverrides] + */ + metadataOverrides: PrismaJson.MetadataOverrides | null + enableNotification: boolean + createdAt: Date + updatedAt: Date + teamId: string + rootFolderId: string | null + shareRootId: string | null + }, + ExtArgs['result']['project'] + > + composites: {} +} + +export type ProjectGetPayload = + runtime.Types.Result.GetResult + +export type ProjectCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: ProjectCountAggregateInputType | true +} + +export interface ProjectDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['Project']; meta: { name: 'Project' } } + /** + * Find zero or one Project that matches the filter. + * @param {ProjectFindUniqueArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Project that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ProjectFindUniqueOrThrowArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Project that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectFindFirstArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Project that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectFindFirstOrThrowArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Projects that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Projects + * const projects = await prisma.project.findMany() + * + * // Get first 10 Projects + * const projects = await prisma.project.findMany({ take: 10 }) + * + * // Only select the `id` + * const projectWithIdOnly = await prisma.project.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a Project. + * @param {ProjectCreateArgs} args - Arguments to create a Project. + * @example + * // Create one Project + * const Project = await prisma.project.create({ + * data: { + * // ... data to create a Project + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult, T, 'create', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Projects. + * @param {ProjectCreateManyArgs} args - Arguments to create many Projects. + * @example + * // Create many Projects + * const project = await prisma.project.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Projects and returns the data saved in the database. + * @param {ProjectCreateManyAndReturnArgs} args - Arguments to create many Projects. + * @example + * // Create many Projects + * const project = await prisma.project.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Projects and only return the `id` + * const projectWithIdOnly = await prisma.project.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Project. + * @param {ProjectDeleteArgs} args - Arguments to delete one Project. + * @example + * // Delete one Project + * const Project = await prisma.project.delete({ + * where: { + * // ... filter to delete one Project + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult, T, 'delete', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Project. + * @param {ProjectUpdateArgs} args - Arguments to update one Project. + * @example + * // Update one Project + * const project = await prisma.project.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult, T, 'update', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Projects. + * @param {ProjectDeleteManyArgs} args - Arguments to filter Projects to delete. + * @example + * // Delete a few Projects + * const { count } = await prisma.project.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Projects. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Projects + * const project = await prisma.project.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Projects and returns the data updated in the database. + * @param {ProjectUpdateManyAndReturnArgs} args - Arguments to update many Projects. + * @example + * // Update many Projects + * const project = await prisma.project.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Projects and only return the `id` + * const projectWithIdOnly = await prisma.project.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Project. + * @param {ProjectUpsertArgs} args - Arguments to update or create a Project. + * @example + * // Update or create a Project + * const project = await prisma.project.upsert({ + * create: { + * // ... data to create a Project + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Project we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult, T, 'upsert', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Projects. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectCountArgs} args - Arguments to filter Projects to count. + * @example + * // Count the number of Projects + * const count = await prisma.project.count({ + * where: { + * // ... the filter for the Projects we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Project. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Project. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends ProjectGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ProjectGroupByArgs['orderBy'] } + : { orderBy?: ProjectGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetProjectGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Project model + */ + readonly fields: ProjectFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Project. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__ProjectClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + team = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TeamClient< + | runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + rootFolder = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + shareRoot = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + members = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$ProjectMemberPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + assets = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + metadataFields = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$MetadataFieldPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + invites = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$InvitePayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + notifications = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + shareLinks = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$ShareLinkPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + collections = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$CollectionPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Project model + */ +export interface ProjectFieldRefs { + readonly id: Prisma.FieldRef<'Project', 'String'> + readonly name: Prisma.FieldRef<'Project', 'String'> + readonly coverImageKey: Prisma.FieldRef<'Project', 'String'> + readonly metadataOverrides: Prisma.FieldRef<'Project', 'Json'> + readonly enableNotification: Prisma.FieldRef<'Project', 'Boolean'> + readonly createdAt: Prisma.FieldRef<'Project', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Project', 'DateTime'> + readonly teamId: Prisma.FieldRef<'Project', 'String'> + readonly rootFolderId: Prisma.FieldRef<'Project', 'String'> + readonly shareRootId: Prisma.FieldRef<'Project', 'String'> +} + +// Custom InputTypes +/** + * Project findUnique + */ +export type ProjectFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Project to fetch. + */ + where: Prisma.ProjectWhereUniqueInput +} + +/** + * Project findUniqueOrThrow + */ +export type ProjectFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Project to fetch. + */ + where: Prisma.ProjectWhereUniqueInput +} + +/** + * Project findFirst + */ +export type ProjectFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Project to fetch. + */ + where?: Prisma.ProjectWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Projects to fetch. + */ + orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Projects. + */ + cursor?: Prisma.ProjectWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Projects from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Projects. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Projects. + */ + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] +} + +/** + * Project findFirstOrThrow + */ +export type ProjectFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Project to fetch. + */ + where?: Prisma.ProjectWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Projects to fetch. + */ + orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Projects. + */ + cursor?: Prisma.ProjectWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Projects from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Projects. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Projects. + */ + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] +} + +/** + * Project findMany + */ +export type ProjectFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Projects to fetch. + */ + where?: Prisma.ProjectWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Projects to fetch. + */ + orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Projects. + */ + cursor?: Prisma.ProjectWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Projects from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Projects. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Projects. + */ + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] +} + +/** + * Project create + */ +export type ProjectCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * The data needed to create a Project. + */ + data: Prisma.XOR +} + +/** + * Project createMany + */ +export type ProjectCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Projects. + */ + data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Project createManyAndReturn + */ +export type ProjectCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * The data used to create many Projects. + */ + data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectIncludeCreateManyAndReturn | null +} + +/** + * Project update + */ +export type ProjectUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * The data needed to update a Project. + */ + data: Prisma.XOR + /** + * Choose, which Project to update. + */ + where: Prisma.ProjectWhereUniqueInput +} + +/** + * Project updateMany + */ +export type ProjectUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Projects. + */ + data: Prisma.XOR + /** + * Filter which Projects to update + */ + where?: Prisma.ProjectWhereInput + /** + * Limit how many Projects to update. + */ + limit?: number +} + +/** + * Project updateManyAndReturn + */ +export type ProjectUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * The data used to update Projects. + */ + data: Prisma.XOR + /** + * Filter which Projects to update + */ + where?: Prisma.ProjectWhereInput + /** + * Limit how many Projects to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectIncludeUpdateManyAndReturn | null +} + +/** + * Project upsert + */ +export type ProjectUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * The filter to search for the Project to update in case it exists. + */ + where: Prisma.ProjectWhereUniqueInput + /** + * In case the Project found by the `where` argument doesn't exist, create a new Project with this data. + */ + create: Prisma.XOR + /** + * In case the Project was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Project delete + */ +export type ProjectDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter which Project to delete. + */ + where: Prisma.ProjectWhereUniqueInput +} + +/** + * Project deleteMany + */ +export type ProjectDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Projects to delete + */ + where?: Prisma.ProjectWhereInput + /** + * Limit how many Projects to delete. + */ + limit?: number +} + +/** + * Project.rootFolder + */ +export type Project$rootFolderArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + where?: Prisma.AssetWhereInput +} + +/** + * Project.shareRoot + */ +export type Project$shareRootArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + where?: Prisma.AssetWhereInput +} + +/** + * Project.members + */ +export type Project$membersArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelect | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberInclude | null + where?: Prisma.ProjectMemberWhereInput + orderBy?: + | Prisma.ProjectMemberOrderByWithRelationInput + | Prisma.ProjectMemberOrderByWithRelationInput[] + cursor?: Prisma.ProjectMemberWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ProjectMemberScalarFieldEnum | Prisma.ProjectMemberScalarFieldEnum[] +} + +/** + * Project.assets + */ +export type Project$assetsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + where?: Prisma.AssetWhereInput + orderBy?: Prisma.AssetOrderByWithRelationInput | Prisma.AssetOrderByWithRelationInput[] + cursor?: Prisma.AssetWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AssetScalarFieldEnum | Prisma.AssetScalarFieldEnum[] +} + +/** + * Project.metadataFields + */ +export type Project$metadataFieldsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelect | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldInclude | null + where?: Prisma.MetadataFieldWhereInput + orderBy?: + | Prisma.MetadataFieldOrderByWithRelationInput + | Prisma.MetadataFieldOrderByWithRelationInput[] + cursor?: Prisma.MetadataFieldWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.MetadataFieldScalarFieldEnum | Prisma.MetadataFieldScalarFieldEnum[] +} + +/** + * Project.invites + */ +export type Project$invitesArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelect | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteInclude | null + where?: Prisma.InviteWhereInput + orderBy?: Prisma.InviteOrderByWithRelationInput | Prisma.InviteOrderByWithRelationInput[] + cursor?: Prisma.InviteWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.InviteScalarFieldEnum | Prisma.InviteScalarFieldEnum[] +} + +/** + * Project.notifications + */ +export type Project$notificationsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + where?: Prisma.NotificationWhereInput + orderBy?: + | Prisma.NotificationOrderByWithRelationInput + | Prisma.NotificationOrderByWithRelationInput[] + cursor?: Prisma.NotificationWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * Project.shareLinks + */ +export type Project$shareLinksArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelect | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkInclude | null + where?: Prisma.ShareLinkWhereInput + orderBy?: Prisma.ShareLinkOrderByWithRelationInput | Prisma.ShareLinkOrderByWithRelationInput[] + cursor?: Prisma.ShareLinkWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ShareLinkScalarFieldEnum | Prisma.ShareLinkScalarFieldEnum[] +} + +/** + * Project.collections + */ +export type Project$collectionsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Collection + */ + select?: Prisma.CollectionSelect | null + /** + * Omit specific fields from the Collection + */ + omit?: Prisma.CollectionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.CollectionInclude | null + where?: Prisma.CollectionWhereInput + orderBy?: Prisma.CollectionOrderByWithRelationInput | Prisma.CollectionOrderByWithRelationInput[] + cursor?: Prisma.CollectionWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.CollectionScalarFieldEnum | Prisma.CollectionScalarFieldEnum[] +} + +/** + * Project without action + */ +export type ProjectDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null +} diff --git a/packages/db/src/generated/prisma/models/ProjectMember.ts b/packages/db/src/generated/prisma/models/ProjectMember.ts new file mode 100644 index 00000000..e3678dfd --- /dev/null +++ b/packages/db/src/generated/prisma/models/ProjectMember.ts @@ -0,0 +1,1807 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ProjectMember` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model ProjectMember + * + */ +export type ProjectMemberModel = runtime.Types.Result.DefaultSelection + +export type AggregateProjectMember = { + _count: ProjectMemberCountAggregateOutputType | null + _min: ProjectMemberMinAggregateOutputType | null + _max: ProjectMemberMaxAggregateOutputType | null +} + +export type ProjectMemberMinAggregateOutputType = { + id: string | null + role: $Enums.ProjectMemberRole | null + projectId: string | null + teamMemberId: string | null +} + +export type ProjectMemberMaxAggregateOutputType = { + id: string | null + role: $Enums.ProjectMemberRole | null + projectId: string | null + teamMemberId: string | null +} + +export type ProjectMemberCountAggregateOutputType = { + id: number + role: number + projectId: number + teamMemberId: number + _all: number +} + +export type ProjectMemberMinAggregateInputType = { + id?: true + role?: true + projectId?: true + teamMemberId?: true +} + +export type ProjectMemberMaxAggregateInputType = { + id?: true + role?: true + projectId?: true + teamMemberId?: true +} + +export type ProjectMemberCountAggregateInputType = { + id?: true + role?: true + projectId?: true + teamMemberId?: true + _all?: true +} + +export type ProjectMemberAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which ProjectMember to aggregate. + */ + where?: Prisma.ProjectMemberWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ProjectMembers to fetch. + */ + orderBy?: + | Prisma.ProjectMemberOrderByWithRelationInput + | Prisma.ProjectMemberOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ProjectMemberWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ProjectMembers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` ProjectMembers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ProjectMembers + **/ + _count?: true | ProjectMemberCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ProjectMemberMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ProjectMemberMaxAggregateInputType +} + +export type GetProjectMemberAggregateType = { + [P in keyof T & keyof AggregateProjectMember]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type ProjectMemberGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.ProjectMemberWhereInput + orderBy?: + | Prisma.ProjectMemberOrderByWithAggregationInput + | Prisma.ProjectMemberOrderByWithAggregationInput[] + by: Prisma.ProjectMemberScalarFieldEnum[] | Prisma.ProjectMemberScalarFieldEnum + having?: Prisma.ProjectMemberScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ProjectMemberCountAggregateInputType | true + _min?: ProjectMemberMinAggregateInputType + _max?: ProjectMemberMaxAggregateInputType +} + +export type ProjectMemberGroupByOutputType = { + id: string + role: $Enums.ProjectMemberRole + projectId: string + teamMemberId: string + _count: ProjectMemberCountAggregateOutputType | null + _min: ProjectMemberMinAggregateOutputType | null + _max: ProjectMemberMaxAggregateOutputType | null +} + +export type GetProjectMemberGroupByPayload = + Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof ProjectMemberGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + +export type ProjectMemberWhereInput = { + AND?: Prisma.ProjectMemberWhereInput | Prisma.ProjectMemberWhereInput[] + OR?: Prisma.ProjectMemberWhereInput[] + NOT?: Prisma.ProjectMemberWhereInput | Prisma.ProjectMemberWhereInput[] + id?: Prisma.StringFilter<'ProjectMember'> | string + role?: Prisma.EnumProjectMemberRoleFilter<'ProjectMember'> | $Enums.ProjectMemberRole + projectId?: Prisma.StringFilter<'ProjectMember'> | string + teamMemberId?: Prisma.StringFilter<'ProjectMember'> | string + project?: Prisma.XOR + teamMember?: Prisma.XOR +} + +export type ProjectMemberOrderByWithRelationInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + projectId?: Prisma.SortOrder + teamMemberId?: Prisma.SortOrder + project?: Prisma.ProjectOrderByWithRelationInput + teamMember?: Prisma.TeamMemberOrderByWithRelationInput +} + +export type ProjectMemberWhereUniqueInput = Prisma.AtLeast< + { + id?: string + projectIdTeamMemberId?: Prisma.ProjectMemberProjectIdTeamMemberIdCompoundUniqueInput + AND?: Prisma.ProjectMemberWhereInput | Prisma.ProjectMemberWhereInput[] + OR?: Prisma.ProjectMemberWhereInput[] + NOT?: Prisma.ProjectMemberWhereInput | Prisma.ProjectMemberWhereInput[] + role?: Prisma.EnumProjectMemberRoleFilter<'ProjectMember'> | $Enums.ProjectMemberRole + projectId?: Prisma.StringFilter<'ProjectMember'> | string + teamMemberId?: Prisma.StringFilter<'ProjectMember'> | string + project?: Prisma.XOR + teamMember?: Prisma.XOR + }, + 'id' | 'projectIdTeamMemberId' +> + +export type ProjectMemberOrderByWithAggregationInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + projectId?: Prisma.SortOrder + teamMemberId?: Prisma.SortOrder + _count?: Prisma.ProjectMemberCountOrderByAggregateInput + _max?: Prisma.ProjectMemberMaxOrderByAggregateInput + _min?: Prisma.ProjectMemberMinOrderByAggregateInput +} + +export type ProjectMemberScalarWhereWithAggregatesInput = { + AND?: + | Prisma.ProjectMemberScalarWhereWithAggregatesInput + | Prisma.ProjectMemberScalarWhereWithAggregatesInput[] + OR?: Prisma.ProjectMemberScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.ProjectMemberScalarWhereWithAggregatesInput + | Prisma.ProjectMemberScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'ProjectMember'> | string + role?: + | Prisma.EnumProjectMemberRoleWithAggregatesFilter<'ProjectMember'> + | $Enums.ProjectMemberRole + projectId?: Prisma.StringWithAggregatesFilter<'ProjectMember'> | string + teamMemberId?: Prisma.StringWithAggregatesFilter<'ProjectMember'> | string +} + +export type ProjectMemberCreateInput = { + id?: string + role: $Enums.ProjectMemberRole + project: Prisma.ProjectCreateNestedOneWithoutMembersInput + teamMember: Prisma.TeamMemberCreateNestedOneWithoutProjectMembersInput +} + +export type ProjectMemberUncheckedCreateInput = { + id?: string + role: $Enums.ProjectMemberRole + projectId: string + teamMemberId: string +} + +export type ProjectMemberUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumProjectMemberRoleFieldUpdateOperationsInput | $Enums.ProjectMemberRole + project?: Prisma.ProjectUpdateOneRequiredWithoutMembersNestedInput + teamMember?: Prisma.TeamMemberUpdateOneRequiredWithoutProjectMembersNestedInput +} + +export type ProjectMemberUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumProjectMemberRoleFieldUpdateOperationsInput | $Enums.ProjectMemberRole + projectId?: Prisma.StringFieldUpdateOperationsInput | string + teamMemberId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ProjectMemberCreateManyInput = { + id?: string + role: $Enums.ProjectMemberRole + projectId: string + teamMemberId: string +} + +export type ProjectMemberUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumProjectMemberRoleFieldUpdateOperationsInput | $Enums.ProjectMemberRole +} + +export type ProjectMemberUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumProjectMemberRoleFieldUpdateOperationsInput | $Enums.ProjectMemberRole + projectId?: Prisma.StringFieldUpdateOperationsInput | string + teamMemberId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ProjectMemberListRelationFilter = { + every?: Prisma.ProjectMemberWhereInput + some?: Prisma.ProjectMemberWhereInput + none?: Prisma.ProjectMemberWhereInput +} + +export type ProjectMemberOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ProjectMemberProjectIdTeamMemberIdCompoundUniqueInput = { + projectId: string + teamMemberId: string +} + +export type ProjectMemberCountOrderByAggregateInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + projectId?: Prisma.SortOrder + teamMemberId?: Prisma.SortOrder +} + +export type ProjectMemberMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + projectId?: Prisma.SortOrder + teamMemberId?: Prisma.SortOrder +} + +export type ProjectMemberMinOrderByAggregateInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + projectId?: Prisma.SortOrder + teamMemberId?: Prisma.SortOrder +} + +export type ProjectMemberCreateNestedManyWithoutTeamMemberInput = { + create?: + | Prisma.XOR< + Prisma.ProjectMemberCreateWithoutTeamMemberInput, + Prisma.ProjectMemberUncheckedCreateWithoutTeamMemberInput + > + | Prisma.ProjectMemberCreateWithoutTeamMemberInput[] + | Prisma.ProjectMemberUncheckedCreateWithoutTeamMemberInput[] + connectOrCreate?: + | Prisma.ProjectMemberCreateOrConnectWithoutTeamMemberInput + | Prisma.ProjectMemberCreateOrConnectWithoutTeamMemberInput[] + createMany?: Prisma.ProjectMemberCreateManyTeamMemberInputEnvelope + connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] +} + +export type ProjectMemberUncheckedCreateNestedManyWithoutTeamMemberInput = { + create?: + | Prisma.XOR< + Prisma.ProjectMemberCreateWithoutTeamMemberInput, + Prisma.ProjectMemberUncheckedCreateWithoutTeamMemberInput + > + | Prisma.ProjectMemberCreateWithoutTeamMemberInput[] + | Prisma.ProjectMemberUncheckedCreateWithoutTeamMemberInput[] + connectOrCreate?: + | Prisma.ProjectMemberCreateOrConnectWithoutTeamMemberInput + | Prisma.ProjectMemberCreateOrConnectWithoutTeamMemberInput[] + createMany?: Prisma.ProjectMemberCreateManyTeamMemberInputEnvelope + connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] +} + +export type ProjectMemberUpdateManyWithoutTeamMemberNestedInput = { + create?: + | Prisma.XOR< + Prisma.ProjectMemberCreateWithoutTeamMemberInput, + Prisma.ProjectMemberUncheckedCreateWithoutTeamMemberInput + > + | Prisma.ProjectMemberCreateWithoutTeamMemberInput[] + | Prisma.ProjectMemberUncheckedCreateWithoutTeamMemberInput[] + connectOrCreate?: + | Prisma.ProjectMemberCreateOrConnectWithoutTeamMemberInput + | Prisma.ProjectMemberCreateOrConnectWithoutTeamMemberInput[] + upsert?: + | Prisma.ProjectMemberUpsertWithWhereUniqueWithoutTeamMemberInput + | Prisma.ProjectMemberUpsertWithWhereUniqueWithoutTeamMemberInput[] + createMany?: Prisma.ProjectMemberCreateManyTeamMemberInputEnvelope + set?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + disconnect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + delete?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + update?: + | Prisma.ProjectMemberUpdateWithWhereUniqueWithoutTeamMemberInput + | Prisma.ProjectMemberUpdateWithWhereUniqueWithoutTeamMemberInput[] + updateMany?: + | Prisma.ProjectMemberUpdateManyWithWhereWithoutTeamMemberInput + | Prisma.ProjectMemberUpdateManyWithWhereWithoutTeamMemberInput[] + deleteMany?: Prisma.ProjectMemberScalarWhereInput | Prisma.ProjectMemberScalarWhereInput[] +} + +export type ProjectMemberUncheckedUpdateManyWithoutTeamMemberNestedInput = { + create?: + | Prisma.XOR< + Prisma.ProjectMemberCreateWithoutTeamMemberInput, + Prisma.ProjectMemberUncheckedCreateWithoutTeamMemberInput + > + | Prisma.ProjectMemberCreateWithoutTeamMemberInput[] + | Prisma.ProjectMemberUncheckedCreateWithoutTeamMemberInput[] + connectOrCreate?: + | Prisma.ProjectMemberCreateOrConnectWithoutTeamMemberInput + | Prisma.ProjectMemberCreateOrConnectWithoutTeamMemberInput[] + upsert?: + | Prisma.ProjectMemberUpsertWithWhereUniqueWithoutTeamMemberInput + | Prisma.ProjectMemberUpsertWithWhereUniqueWithoutTeamMemberInput[] + createMany?: Prisma.ProjectMemberCreateManyTeamMemberInputEnvelope + set?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + disconnect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + delete?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + update?: + | Prisma.ProjectMemberUpdateWithWhereUniqueWithoutTeamMemberInput + | Prisma.ProjectMemberUpdateWithWhereUniqueWithoutTeamMemberInput[] + updateMany?: + | Prisma.ProjectMemberUpdateManyWithWhereWithoutTeamMemberInput + | Prisma.ProjectMemberUpdateManyWithWhereWithoutTeamMemberInput[] + deleteMany?: Prisma.ProjectMemberScalarWhereInput | Prisma.ProjectMemberScalarWhereInput[] +} + +export type ProjectMemberCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.ProjectMemberCreateWithoutProjectInput, + Prisma.ProjectMemberUncheckedCreateWithoutProjectInput + > + | Prisma.ProjectMemberCreateWithoutProjectInput[] + | Prisma.ProjectMemberUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.ProjectMemberCreateOrConnectWithoutProjectInput + | Prisma.ProjectMemberCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.ProjectMemberCreateManyProjectInputEnvelope + connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] +} + +export type ProjectMemberUncheckedCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.ProjectMemberCreateWithoutProjectInput, + Prisma.ProjectMemberUncheckedCreateWithoutProjectInput + > + | Prisma.ProjectMemberCreateWithoutProjectInput[] + | Prisma.ProjectMemberUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.ProjectMemberCreateOrConnectWithoutProjectInput + | Prisma.ProjectMemberCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.ProjectMemberCreateManyProjectInputEnvelope + connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] +} + +export type ProjectMemberUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.ProjectMemberCreateWithoutProjectInput, + Prisma.ProjectMemberUncheckedCreateWithoutProjectInput + > + | Prisma.ProjectMemberCreateWithoutProjectInput[] + | Prisma.ProjectMemberUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.ProjectMemberCreateOrConnectWithoutProjectInput + | Prisma.ProjectMemberCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.ProjectMemberUpsertWithWhereUniqueWithoutProjectInput + | Prisma.ProjectMemberUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.ProjectMemberCreateManyProjectInputEnvelope + set?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + disconnect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + delete?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + update?: + | Prisma.ProjectMemberUpdateWithWhereUniqueWithoutProjectInput + | Prisma.ProjectMemberUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.ProjectMemberUpdateManyWithWhereWithoutProjectInput + | Prisma.ProjectMemberUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.ProjectMemberScalarWhereInput | Prisma.ProjectMemberScalarWhereInput[] +} + +export type ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.ProjectMemberCreateWithoutProjectInput, + Prisma.ProjectMemberUncheckedCreateWithoutProjectInput + > + | Prisma.ProjectMemberCreateWithoutProjectInput[] + | Prisma.ProjectMemberUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.ProjectMemberCreateOrConnectWithoutProjectInput + | Prisma.ProjectMemberCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.ProjectMemberUpsertWithWhereUniqueWithoutProjectInput + | Prisma.ProjectMemberUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.ProjectMemberCreateManyProjectInputEnvelope + set?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + disconnect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + delete?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] + update?: + | Prisma.ProjectMemberUpdateWithWhereUniqueWithoutProjectInput + | Prisma.ProjectMemberUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.ProjectMemberUpdateManyWithWhereWithoutProjectInput + | Prisma.ProjectMemberUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.ProjectMemberScalarWhereInput | Prisma.ProjectMemberScalarWhereInput[] +} + +export type EnumProjectMemberRoleFieldUpdateOperationsInput = { + set?: $Enums.ProjectMemberRole +} + +export type ProjectMemberCreateWithoutTeamMemberInput = { + id?: string + role: $Enums.ProjectMemberRole + project: Prisma.ProjectCreateNestedOneWithoutMembersInput +} + +export type ProjectMemberUncheckedCreateWithoutTeamMemberInput = { + id?: string + role: $Enums.ProjectMemberRole + projectId: string +} + +export type ProjectMemberCreateOrConnectWithoutTeamMemberInput = { + where: Prisma.ProjectMemberWhereUniqueInput + create: Prisma.XOR< + Prisma.ProjectMemberCreateWithoutTeamMemberInput, + Prisma.ProjectMemberUncheckedCreateWithoutTeamMemberInput + > +} + +export type ProjectMemberCreateManyTeamMemberInputEnvelope = { + data: + | Prisma.ProjectMemberCreateManyTeamMemberInput + | Prisma.ProjectMemberCreateManyTeamMemberInput[] + skipDuplicates?: boolean +} + +export type ProjectMemberUpsertWithWhereUniqueWithoutTeamMemberInput = { + where: Prisma.ProjectMemberWhereUniqueInput + update: Prisma.XOR< + Prisma.ProjectMemberUpdateWithoutTeamMemberInput, + Prisma.ProjectMemberUncheckedUpdateWithoutTeamMemberInput + > + create: Prisma.XOR< + Prisma.ProjectMemberCreateWithoutTeamMemberInput, + Prisma.ProjectMemberUncheckedCreateWithoutTeamMemberInput + > +} + +export type ProjectMemberUpdateWithWhereUniqueWithoutTeamMemberInput = { + where: Prisma.ProjectMemberWhereUniqueInput + data: Prisma.XOR< + Prisma.ProjectMemberUpdateWithoutTeamMemberInput, + Prisma.ProjectMemberUncheckedUpdateWithoutTeamMemberInput + > +} + +export type ProjectMemberUpdateManyWithWhereWithoutTeamMemberInput = { + where: Prisma.ProjectMemberScalarWhereInput + data: Prisma.XOR< + Prisma.ProjectMemberUpdateManyMutationInput, + Prisma.ProjectMemberUncheckedUpdateManyWithoutTeamMemberInput + > +} + +export type ProjectMemberScalarWhereInput = { + AND?: Prisma.ProjectMemberScalarWhereInput | Prisma.ProjectMemberScalarWhereInput[] + OR?: Prisma.ProjectMemberScalarWhereInput[] + NOT?: Prisma.ProjectMemberScalarWhereInput | Prisma.ProjectMemberScalarWhereInput[] + id?: Prisma.StringFilter<'ProjectMember'> | string + role?: Prisma.EnumProjectMemberRoleFilter<'ProjectMember'> | $Enums.ProjectMemberRole + projectId?: Prisma.StringFilter<'ProjectMember'> | string + teamMemberId?: Prisma.StringFilter<'ProjectMember'> | string +} + +export type ProjectMemberCreateWithoutProjectInput = { + id?: string + role: $Enums.ProjectMemberRole + teamMember: Prisma.TeamMemberCreateNestedOneWithoutProjectMembersInput +} + +export type ProjectMemberUncheckedCreateWithoutProjectInput = { + id?: string + role: $Enums.ProjectMemberRole + teamMemberId: string +} + +export type ProjectMemberCreateOrConnectWithoutProjectInput = { + where: Prisma.ProjectMemberWhereUniqueInput + create: Prisma.XOR< + Prisma.ProjectMemberCreateWithoutProjectInput, + Prisma.ProjectMemberUncheckedCreateWithoutProjectInput + > +} + +export type ProjectMemberCreateManyProjectInputEnvelope = { + data: Prisma.ProjectMemberCreateManyProjectInput | Prisma.ProjectMemberCreateManyProjectInput[] + skipDuplicates?: boolean +} + +export type ProjectMemberUpsertWithWhereUniqueWithoutProjectInput = { + where: Prisma.ProjectMemberWhereUniqueInput + update: Prisma.XOR< + Prisma.ProjectMemberUpdateWithoutProjectInput, + Prisma.ProjectMemberUncheckedUpdateWithoutProjectInput + > + create: Prisma.XOR< + Prisma.ProjectMemberCreateWithoutProjectInput, + Prisma.ProjectMemberUncheckedCreateWithoutProjectInput + > +} + +export type ProjectMemberUpdateWithWhereUniqueWithoutProjectInput = { + where: Prisma.ProjectMemberWhereUniqueInput + data: Prisma.XOR< + Prisma.ProjectMemberUpdateWithoutProjectInput, + Prisma.ProjectMemberUncheckedUpdateWithoutProjectInput + > +} + +export type ProjectMemberUpdateManyWithWhereWithoutProjectInput = { + where: Prisma.ProjectMemberScalarWhereInput + data: Prisma.XOR< + Prisma.ProjectMemberUpdateManyMutationInput, + Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectInput + > +} + +export type ProjectMemberCreateManyTeamMemberInput = { + id?: string + role: $Enums.ProjectMemberRole + projectId: string +} + +export type ProjectMemberUpdateWithoutTeamMemberInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumProjectMemberRoleFieldUpdateOperationsInput | $Enums.ProjectMemberRole + project?: Prisma.ProjectUpdateOneRequiredWithoutMembersNestedInput +} + +export type ProjectMemberUncheckedUpdateWithoutTeamMemberInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumProjectMemberRoleFieldUpdateOperationsInput | $Enums.ProjectMemberRole + projectId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ProjectMemberUncheckedUpdateManyWithoutTeamMemberInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumProjectMemberRoleFieldUpdateOperationsInput | $Enums.ProjectMemberRole + projectId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ProjectMemberCreateManyProjectInput = { + id?: string + role: $Enums.ProjectMemberRole + teamMemberId: string +} + +export type ProjectMemberUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumProjectMemberRoleFieldUpdateOperationsInput | $Enums.ProjectMemberRole + teamMember?: Prisma.TeamMemberUpdateOneRequiredWithoutProjectMembersNestedInput +} + +export type ProjectMemberUncheckedUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumProjectMemberRoleFieldUpdateOperationsInput | $Enums.ProjectMemberRole + teamMemberId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ProjectMemberUncheckedUpdateManyWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumProjectMemberRoleFieldUpdateOperationsInput | $Enums.ProjectMemberRole + teamMemberId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ProjectMemberSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + role?: boolean + projectId?: boolean + teamMemberId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + teamMember?: boolean | Prisma.TeamMemberDefaultArgs + }, + ExtArgs['result']['projectMember'] +> + +export type ProjectMemberSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + role?: boolean + projectId?: boolean + teamMemberId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + teamMember?: boolean | Prisma.TeamMemberDefaultArgs + }, + ExtArgs['result']['projectMember'] +> + +export type ProjectMemberSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + role?: boolean + projectId?: boolean + teamMemberId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + teamMember?: boolean | Prisma.TeamMemberDefaultArgs + }, + ExtArgs['result']['projectMember'] +> + +export type ProjectMemberSelectScalar = { + id?: boolean + role?: boolean + projectId?: boolean + teamMemberId?: boolean +} + +export type ProjectMemberOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'role' | 'projectId' | 'teamMemberId', + ExtArgs['result']['projectMember'] +> +export type ProjectMemberInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + project?: boolean | Prisma.ProjectDefaultArgs + teamMember?: boolean | Prisma.TeamMemberDefaultArgs +} +export type ProjectMemberIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + project?: boolean | Prisma.ProjectDefaultArgs + teamMember?: boolean | Prisma.TeamMemberDefaultArgs +} +export type ProjectMemberIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + project?: boolean | Prisma.ProjectDefaultArgs + teamMember?: boolean | Prisma.TeamMemberDefaultArgs +} + +export type $ProjectMemberPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'ProjectMember' + objects: { + project: Prisma.$ProjectPayload + teamMember: Prisma.$TeamMemberPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + role: $Enums.ProjectMemberRole + projectId: string + teamMemberId: string + }, + ExtArgs['result']['projectMember'] + > + composites: {} +} + +export type ProjectMemberGetPayload< + S extends boolean | null | undefined | ProjectMemberDefaultArgs, +> = runtime.Types.Result.GetResult + +export type ProjectMemberCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: ProjectMemberCountAggregateInputType | true +} + +export interface ProjectMemberDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['ProjectMember'] + meta: { name: 'ProjectMember' } + } + /** + * Find zero or one ProjectMember that matches the filter. + * @param {ProjectMemberFindUniqueArgs} args - Arguments to find a ProjectMember + * @example + * // Get one ProjectMember + * const projectMember = await prisma.projectMember.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectMemberClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectMemberPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one ProjectMember that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ProjectMemberFindUniqueOrThrowArgs} args - Arguments to find a ProjectMember + * @example + * // Get one ProjectMember + * const projectMember = await prisma.projectMember.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectMemberClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectMemberPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first ProjectMember that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectMemberFindFirstArgs} args - Arguments to find a ProjectMember + * @example + * // Get one ProjectMember + * const projectMember = await prisma.projectMember.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectMemberClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectMemberPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first ProjectMember that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectMemberFindFirstOrThrowArgs} args - Arguments to find a ProjectMember + * @example + * // Get one ProjectMember + * const projectMember = await prisma.projectMember.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectMemberClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectMemberPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more ProjectMembers that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectMemberFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all ProjectMembers + * const projectMembers = await prisma.projectMember.findMany() + * + * // Get first 10 ProjectMembers + * const projectMembers = await prisma.projectMember.findMany({ take: 10 }) + * + * // Only select the `id` + * const projectMemberWithIdOnly = await prisma.projectMember.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ProjectMemberPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a ProjectMember. + * @param {ProjectMemberCreateArgs} args - Arguments to create a ProjectMember. + * @example + * // Create one ProjectMember + * const ProjectMember = await prisma.projectMember.create({ + * data: { + * // ... data to create a ProjectMember + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectMemberClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectMemberPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many ProjectMembers. + * @param {ProjectMemberCreateManyArgs} args - Arguments to create many ProjectMembers. + * @example + * // Create many ProjectMembers + * const projectMember = await prisma.projectMember.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many ProjectMembers and returns the data saved in the database. + * @param {ProjectMemberCreateManyAndReturnArgs} args - Arguments to create many ProjectMembers. + * @example + * // Create many ProjectMembers + * const projectMember = await prisma.projectMember.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many ProjectMembers and only return the `id` + * const projectMemberWithIdOnly = await prisma.projectMember.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ProjectMemberPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a ProjectMember. + * @param {ProjectMemberDeleteArgs} args - Arguments to delete one ProjectMember. + * @example + * // Delete one ProjectMember + * const ProjectMember = await prisma.projectMember.delete({ + * where: { + * // ... filter to delete one ProjectMember + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectMemberClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectMemberPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one ProjectMember. + * @param {ProjectMemberUpdateArgs} args - Arguments to update one ProjectMember. + * @example + * // Update one ProjectMember + * const projectMember = await prisma.projectMember.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectMemberClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectMemberPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more ProjectMembers. + * @param {ProjectMemberDeleteManyArgs} args - Arguments to filter ProjectMembers to delete. + * @example + * // Delete a few ProjectMembers + * const { count } = await prisma.projectMember.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more ProjectMembers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectMemberUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many ProjectMembers + * const projectMember = await prisma.projectMember.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more ProjectMembers and returns the data updated in the database. + * @param {ProjectMemberUpdateManyAndReturnArgs} args - Arguments to update many ProjectMembers. + * @example + * // Update many ProjectMembers + * const projectMember = await prisma.projectMember.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more ProjectMembers and only return the `id` + * const projectMemberWithIdOnly = await prisma.projectMember.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ProjectMemberPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one ProjectMember. + * @param {ProjectMemberUpsertArgs} args - Arguments to update or create a ProjectMember. + * @example + * // Update or create a ProjectMember + * const projectMember = await prisma.projectMember.upsert({ + * create: { + * // ... data to create a ProjectMember + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the ProjectMember we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectMemberClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectMemberPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of ProjectMembers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectMemberCountArgs} args - Arguments to filter ProjectMembers to count. + * @example + * // Count the number of ProjectMembers + * const count = await prisma.projectMember.count({ + * where: { + * // ... the filter for the ProjectMembers we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a ProjectMember. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectMemberAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by ProjectMember. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectMemberGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends ProjectMemberGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ProjectMemberGroupByArgs['orderBy'] } + : { orderBy?: ProjectMemberGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetProjectMemberGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the ProjectMember model + */ + readonly fields: ProjectMemberFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for ProjectMember. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__ProjectMemberClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + project = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ProjectClient< + | runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + teamMember = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TeamMemberClient< + | runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the ProjectMember model + */ +export interface ProjectMemberFieldRefs { + readonly id: Prisma.FieldRef<'ProjectMember', 'String'> + readonly role: Prisma.FieldRef<'ProjectMember', 'ProjectMemberRole'> + readonly projectId: Prisma.FieldRef<'ProjectMember', 'String'> + readonly teamMemberId: Prisma.FieldRef<'ProjectMember', 'String'> +} + +// Custom InputTypes +/** + * ProjectMember findUnique + */ +export type ProjectMemberFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelect | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberInclude | null + /** + * Filter, which ProjectMember to fetch. + */ + where: Prisma.ProjectMemberWhereUniqueInput +} + +/** + * ProjectMember findUniqueOrThrow + */ +export type ProjectMemberFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelect | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberInclude | null + /** + * Filter, which ProjectMember to fetch. + */ + where: Prisma.ProjectMemberWhereUniqueInput +} + +/** + * ProjectMember findFirst + */ +export type ProjectMemberFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelect | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberInclude | null + /** + * Filter, which ProjectMember to fetch. + */ + where?: Prisma.ProjectMemberWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ProjectMembers to fetch. + */ + orderBy?: + | Prisma.ProjectMemberOrderByWithRelationInput + | Prisma.ProjectMemberOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ProjectMembers. + */ + cursor?: Prisma.ProjectMemberWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ProjectMembers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` ProjectMembers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ProjectMembers. + */ + distinct?: Prisma.ProjectMemberScalarFieldEnum | Prisma.ProjectMemberScalarFieldEnum[] +} + +/** + * ProjectMember findFirstOrThrow + */ +export type ProjectMemberFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelect | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberInclude | null + /** + * Filter, which ProjectMember to fetch. + */ + where?: Prisma.ProjectMemberWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ProjectMembers to fetch. + */ + orderBy?: + | Prisma.ProjectMemberOrderByWithRelationInput + | Prisma.ProjectMemberOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ProjectMembers. + */ + cursor?: Prisma.ProjectMemberWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ProjectMembers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` ProjectMembers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ProjectMembers. + */ + distinct?: Prisma.ProjectMemberScalarFieldEnum | Prisma.ProjectMemberScalarFieldEnum[] +} + +/** + * ProjectMember findMany + */ +export type ProjectMemberFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelect | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberInclude | null + /** + * Filter, which ProjectMembers to fetch. + */ + where?: Prisma.ProjectMemberWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ProjectMembers to fetch. + */ + orderBy?: + | Prisma.ProjectMemberOrderByWithRelationInput + | Prisma.ProjectMemberOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ProjectMembers. + */ + cursor?: Prisma.ProjectMemberWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ProjectMembers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` ProjectMembers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ProjectMembers. + */ + distinct?: Prisma.ProjectMemberScalarFieldEnum | Prisma.ProjectMemberScalarFieldEnum[] +} + +/** + * ProjectMember create + */ +export type ProjectMemberCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelect | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberInclude | null + /** + * The data needed to create a ProjectMember. + */ + data: Prisma.XOR +} + +/** + * ProjectMember createMany + */ +export type ProjectMemberCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many ProjectMembers. + */ + data: Prisma.ProjectMemberCreateManyInput | Prisma.ProjectMemberCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ProjectMember createManyAndReturn + */ +export type ProjectMemberCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelectCreateManyAndReturn | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * The data used to create many ProjectMembers. + */ + data: Prisma.ProjectMemberCreateManyInput | Prisma.ProjectMemberCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberIncludeCreateManyAndReturn | null +} + +/** + * ProjectMember update + */ +export type ProjectMemberUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelect | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberInclude | null + /** + * The data needed to update a ProjectMember. + */ + data: Prisma.XOR + /** + * Choose, which ProjectMember to update. + */ + where: Prisma.ProjectMemberWhereUniqueInput +} + +/** + * ProjectMember updateMany + */ +export type ProjectMemberUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update ProjectMembers. + */ + data: Prisma.XOR< + Prisma.ProjectMemberUpdateManyMutationInput, + Prisma.ProjectMemberUncheckedUpdateManyInput + > + /** + * Filter which ProjectMembers to update + */ + where?: Prisma.ProjectMemberWhereInput + /** + * Limit how many ProjectMembers to update. + */ + limit?: number +} + +/** + * ProjectMember updateManyAndReturn + */ +export type ProjectMemberUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * The data used to update ProjectMembers. + */ + data: Prisma.XOR< + Prisma.ProjectMemberUpdateManyMutationInput, + Prisma.ProjectMemberUncheckedUpdateManyInput + > + /** + * Filter which ProjectMembers to update + */ + where?: Prisma.ProjectMemberWhereInput + /** + * Limit how many ProjectMembers to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberIncludeUpdateManyAndReturn | null +} + +/** + * ProjectMember upsert + */ +export type ProjectMemberUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelect | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberInclude | null + /** + * The filter to search for the ProjectMember to update in case it exists. + */ + where: Prisma.ProjectMemberWhereUniqueInput + /** + * In case the ProjectMember found by the `where` argument doesn't exist, create a new ProjectMember with this data. + */ + create: Prisma.XOR + /** + * In case the ProjectMember was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ProjectMember delete + */ +export type ProjectMemberDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelect | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberInclude | null + /** + * Filter which ProjectMember to delete. + */ + where: Prisma.ProjectMemberWhereUniqueInput +} + +/** + * ProjectMember deleteMany + */ +export type ProjectMemberDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which ProjectMembers to delete + */ + where?: Prisma.ProjectMemberWhereInput + /** + * Limit how many ProjectMembers to delete. + */ + limit?: number +} + +/** + * ProjectMember without action + */ +export type ProjectMemberDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelect | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberInclude | null +} diff --git a/packages/db/src/generated/prisma/models/Provider.ts b/packages/db/src/generated/prisma/models/Provider.ts new file mode 100644 index 00000000..2135b2a1 --- /dev/null +++ b/packages/db/src/generated/prisma/models/Provider.ts @@ -0,0 +1,2054 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Provider` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Provider + * + */ +export type ProviderModel = runtime.Types.Result.DefaultSelection + +export type AggregateProvider = { + _count: ProviderCountAggregateOutputType | null + _min: ProviderMinAggregateOutputType | null + _max: ProviderMaxAggregateOutputType | null +} + +export type ProviderMinAggregateOutputType = { + id: string | null + name: string | null + isBuiltin: boolean | null + createdAt: Date | null + updatedAt: Date | null + teamId: string | null +} + +export type ProviderMaxAggregateOutputType = { + id: string | null + name: string | null + isBuiltin: boolean | null + createdAt: Date | null + updatedAt: Date | null + teamId: string | null +} + +export type ProviderCountAggregateOutputType = { + id: number + name: number + isBuiltin: number + config: PrismaJson.ProviderConfig + createdAt: number + updatedAt: number + teamId: number + _all: number +} + +export type ProviderMinAggregateInputType = { + id?: true + name?: true + isBuiltin?: true + createdAt?: true + updatedAt?: true + teamId?: true +} + +export type ProviderMaxAggregateInputType = { + id?: true + name?: true + isBuiltin?: true + createdAt?: true + updatedAt?: true + teamId?: true +} + +export type ProviderCountAggregateInputType = { + id?: true + name?: true + isBuiltin?: true + config?: true + createdAt?: true + updatedAt?: true + teamId?: true + _all?: true +} + +export type ProviderAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Provider to aggregate. + */ + where?: Prisma.ProviderWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Providers to fetch. + */ + orderBy?: Prisma.ProviderOrderByWithRelationInput | Prisma.ProviderOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ProviderWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Providers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Providers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Providers + **/ + _count?: true | ProviderCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ProviderMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ProviderMaxAggregateInputType +} + +export type GetProviderAggregateType = { + [P in keyof T & keyof AggregateProvider]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type ProviderGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.ProviderWhereInput + orderBy?: + | Prisma.ProviderOrderByWithAggregationInput + | Prisma.ProviderOrderByWithAggregationInput[] + by: Prisma.ProviderScalarFieldEnum[] | Prisma.ProviderScalarFieldEnum + having?: Prisma.ProviderScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ProviderCountAggregateInputType | true + _min?: ProviderMinAggregateInputType + _max?: ProviderMaxAggregateInputType +} + +export type ProviderGroupByOutputType = { + id: string + name: string + isBuiltin: boolean + config: PrismaJson.ProviderConfig + createdAt: Date + updatedAt: Date + teamId: string + _count: ProviderCountAggregateOutputType | null + _min: ProviderMinAggregateOutputType | null + _max: ProviderMaxAggregateOutputType | null +} + +export type GetProviderGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof ProviderGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type ProviderWhereInput = { + AND?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[] + OR?: Prisma.ProviderWhereInput[] + NOT?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[] + id?: Prisma.StringFilter<'Provider'> | string + name?: Prisma.StringFilter<'Provider'> | string + isBuiltin?: Prisma.BoolFilter<'Provider'> | boolean + config?: Prisma.JsonFilter<'Provider'> + createdAt?: Prisma.DateTimeFilter<'Provider'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Provider'> | Date | string + teamId?: Prisma.StringFilter<'Provider'> | string + team?: Prisma.XOR + models?: Prisma.ModelListRelationFilter + agents?: Prisma.AgentListRelationFilter +} + +export type ProviderOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + isBuiltin?: Prisma.SortOrder + config?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + team?: Prisma.TeamOrderByWithRelationInput + models?: Prisma.ModelOrderByRelationAggregateInput + agents?: Prisma.AgentOrderByRelationAggregateInput +} + +export type ProviderWhereUniqueInput = Prisma.AtLeast< + { + id?: string + teamId_name?: Prisma.ProviderTeamIdNameCompoundUniqueInput + AND?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[] + OR?: Prisma.ProviderWhereInput[] + NOT?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[] + name?: Prisma.StringFilter<'Provider'> | string + isBuiltin?: Prisma.BoolFilter<'Provider'> | boolean + config?: Prisma.JsonFilter<'Provider'> + createdAt?: Prisma.DateTimeFilter<'Provider'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Provider'> | Date | string + teamId?: Prisma.StringFilter<'Provider'> | string + team?: Prisma.XOR + models?: Prisma.ModelListRelationFilter + agents?: Prisma.AgentListRelationFilter + }, + 'id' | 'teamId_name' +> + +export type ProviderOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + isBuiltin?: Prisma.SortOrder + config?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + _count?: Prisma.ProviderCountOrderByAggregateInput + _max?: Prisma.ProviderMaxOrderByAggregateInput + _min?: Prisma.ProviderMinOrderByAggregateInput +} + +export type ProviderScalarWhereWithAggregatesInput = { + AND?: + | Prisma.ProviderScalarWhereWithAggregatesInput + | Prisma.ProviderScalarWhereWithAggregatesInput[] + OR?: Prisma.ProviderScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.ProviderScalarWhereWithAggregatesInput + | Prisma.ProviderScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Provider'> | string + name?: Prisma.StringWithAggregatesFilter<'Provider'> | string + isBuiltin?: Prisma.BoolWithAggregatesFilter<'Provider'> | boolean + config?: Prisma.JsonWithAggregatesFilter<'Provider'> + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Provider'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Provider'> | Date | string + teamId?: Prisma.StringWithAggregatesFilter<'Provider'> | string +} + +export type ProviderCreateInput = { + id?: string + name: string + isBuiltin?: boolean + config: PrismaJson.ProviderConfig + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutProvidersInput + models?: Prisma.ModelCreateNestedManyWithoutProviderInput + agents?: Prisma.AgentCreateNestedManyWithoutProviderInput +} + +export type ProviderUncheckedCreateInput = { + id?: string + name: string + isBuiltin?: boolean + config: PrismaJson.ProviderConfig + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + models?: Prisma.ModelUncheckedCreateNestedManyWithoutProviderInput + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutProviderInput +} + +export type ProviderUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isBuiltin?: Prisma.BoolFieldUpdateOperationsInput | boolean + config?: PrismaJson.ProviderConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutProvidersNestedInput + models?: Prisma.ModelUpdateManyWithoutProviderNestedInput + agents?: Prisma.AgentUpdateManyWithoutProviderNestedInput +} + +export type ProviderUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isBuiltin?: Prisma.BoolFieldUpdateOperationsInput | boolean + config?: PrismaJson.ProviderConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + models?: Prisma.ModelUncheckedUpdateManyWithoutProviderNestedInput + agents?: Prisma.AgentUncheckedUpdateManyWithoutProviderNestedInput +} + +export type ProviderCreateManyInput = { + id?: string + name: string + isBuiltin?: boolean + config: PrismaJson.ProviderConfig + createdAt?: Date | string + updatedAt?: Date | string + teamId: string +} + +export type ProviderUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isBuiltin?: Prisma.BoolFieldUpdateOperationsInput | boolean + config?: PrismaJson.ProviderConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ProviderUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isBuiltin?: Prisma.BoolFieldUpdateOperationsInput | boolean + config?: PrismaJson.ProviderConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ProviderListRelationFilter = { + every?: Prisma.ProviderWhereInput + some?: Prisma.ProviderWhereInput + none?: Prisma.ProviderWhereInput +} + +export type ProviderOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ProviderNullableScalarRelationFilter = { + is?: Prisma.ProviderWhereInput | null + isNot?: Prisma.ProviderWhereInput | null +} + +export type ProviderScalarRelationFilter = { + is?: Prisma.ProviderWhereInput + isNot?: Prisma.ProviderWhereInput +} + +export type ProviderTeamIdNameCompoundUniqueInput = { + teamId: string + name: string +} + +export type ProviderCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + isBuiltin?: Prisma.SortOrder + config?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder +} + +export type ProviderMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + isBuiltin?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder +} + +export type ProviderMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + isBuiltin?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder +} + +export type ProviderCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR< + Prisma.ProviderCreateWithoutTeamInput, + Prisma.ProviderUncheckedCreateWithoutTeamInput + > + | Prisma.ProviderCreateWithoutTeamInput[] + | Prisma.ProviderUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.ProviderCreateOrConnectWithoutTeamInput + | Prisma.ProviderCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.ProviderCreateManyTeamInputEnvelope + connect?: Prisma.ProviderWhereUniqueInput | Prisma.ProviderWhereUniqueInput[] +} + +export type ProviderUncheckedCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR< + Prisma.ProviderCreateWithoutTeamInput, + Prisma.ProviderUncheckedCreateWithoutTeamInput + > + | Prisma.ProviderCreateWithoutTeamInput[] + | Prisma.ProviderUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.ProviderCreateOrConnectWithoutTeamInput + | Prisma.ProviderCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.ProviderCreateManyTeamInputEnvelope + connect?: Prisma.ProviderWhereUniqueInput | Prisma.ProviderWhereUniqueInput[] +} + +export type ProviderUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR< + Prisma.ProviderCreateWithoutTeamInput, + Prisma.ProviderUncheckedCreateWithoutTeamInput + > + | Prisma.ProviderCreateWithoutTeamInput[] + | Prisma.ProviderUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.ProviderCreateOrConnectWithoutTeamInput + | Prisma.ProviderCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.ProviderUpsertWithWhereUniqueWithoutTeamInput + | Prisma.ProviderUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.ProviderCreateManyTeamInputEnvelope + set?: Prisma.ProviderWhereUniqueInput | Prisma.ProviderWhereUniqueInput[] + disconnect?: Prisma.ProviderWhereUniqueInput | Prisma.ProviderWhereUniqueInput[] + delete?: Prisma.ProviderWhereUniqueInput | Prisma.ProviderWhereUniqueInput[] + connect?: Prisma.ProviderWhereUniqueInput | Prisma.ProviderWhereUniqueInput[] + update?: + | Prisma.ProviderUpdateWithWhereUniqueWithoutTeamInput + | Prisma.ProviderUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.ProviderUpdateManyWithWhereWithoutTeamInput + | Prisma.ProviderUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.ProviderScalarWhereInput | Prisma.ProviderScalarWhereInput[] +} + +export type ProviderUncheckedUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR< + Prisma.ProviderCreateWithoutTeamInput, + Prisma.ProviderUncheckedCreateWithoutTeamInput + > + | Prisma.ProviderCreateWithoutTeamInput[] + | Prisma.ProviderUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.ProviderCreateOrConnectWithoutTeamInput + | Prisma.ProviderCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.ProviderUpsertWithWhereUniqueWithoutTeamInput + | Prisma.ProviderUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.ProviderCreateManyTeamInputEnvelope + set?: Prisma.ProviderWhereUniqueInput | Prisma.ProviderWhereUniqueInput[] + disconnect?: Prisma.ProviderWhereUniqueInput | Prisma.ProviderWhereUniqueInput[] + delete?: Prisma.ProviderWhereUniqueInput | Prisma.ProviderWhereUniqueInput[] + connect?: Prisma.ProviderWhereUniqueInput | Prisma.ProviderWhereUniqueInput[] + update?: + | Prisma.ProviderUpdateWithWhereUniqueWithoutTeamInput + | Prisma.ProviderUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.ProviderUpdateManyWithWhereWithoutTeamInput + | Prisma.ProviderUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.ProviderScalarWhereInput | Prisma.ProviderScalarWhereInput[] +} + +export type ProviderCreateNestedOneWithoutAgentsInput = { + create?: Prisma.XOR< + Prisma.ProviderCreateWithoutAgentsInput, + Prisma.ProviderUncheckedCreateWithoutAgentsInput + > + connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutAgentsInput + connect?: Prisma.ProviderWhereUniqueInput +} + +export type ProviderUpdateOneWithoutAgentsNestedInput = { + create?: Prisma.XOR< + Prisma.ProviderCreateWithoutAgentsInput, + Prisma.ProviderUncheckedCreateWithoutAgentsInput + > + connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutAgentsInput + upsert?: Prisma.ProviderUpsertWithoutAgentsInput + disconnect?: Prisma.ProviderWhereInput | boolean + delete?: Prisma.ProviderWhereInput | boolean + connect?: Prisma.ProviderWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProviderUpdateToOneWithWhereWithoutAgentsInput, + Prisma.ProviderUpdateWithoutAgentsInput + >, + Prisma.ProviderUncheckedUpdateWithoutAgentsInput + > +} + +export type ProviderCreateNestedOneWithoutModelsInput = { + create?: Prisma.XOR< + Prisma.ProviderCreateWithoutModelsInput, + Prisma.ProviderUncheckedCreateWithoutModelsInput + > + connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutModelsInput + connect?: Prisma.ProviderWhereUniqueInput +} + +export type ProviderUpdateOneRequiredWithoutModelsNestedInput = { + create?: Prisma.XOR< + Prisma.ProviderCreateWithoutModelsInput, + Prisma.ProviderUncheckedCreateWithoutModelsInput + > + connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutModelsInput + upsert?: Prisma.ProviderUpsertWithoutModelsInput + connect?: Prisma.ProviderWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProviderUpdateToOneWithWhereWithoutModelsInput, + Prisma.ProviderUpdateWithoutModelsInput + >, + Prisma.ProviderUncheckedUpdateWithoutModelsInput + > +} + +export type ProviderCreateWithoutTeamInput = { + id?: string + name: string + isBuiltin?: boolean + config: PrismaJson.ProviderConfig + createdAt?: Date | string + updatedAt?: Date | string + models?: Prisma.ModelCreateNestedManyWithoutProviderInput + agents?: Prisma.AgentCreateNestedManyWithoutProviderInput +} + +export type ProviderUncheckedCreateWithoutTeamInput = { + id?: string + name: string + isBuiltin?: boolean + config: PrismaJson.ProviderConfig + createdAt?: Date | string + updatedAt?: Date | string + models?: Prisma.ModelUncheckedCreateNestedManyWithoutProviderInput + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutProviderInput +} + +export type ProviderCreateOrConnectWithoutTeamInput = { + where: Prisma.ProviderWhereUniqueInput + create: Prisma.XOR< + Prisma.ProviderCreateWithoutTeamInput, + Prisma.ProviderUncheckedCreateWithoutTeamInput + > +} + +export type ProviderCreateManyTeamInputEnvelope = { + data: Prisma.ProviderCreateManyTeamInput | Prisma.ProviderCreateManyTeamInput[] + skipDuplicates?: boolean +} + +export type ProviderUpsertWithWhereUniqueWithoutTeamInput = { + where: Prisma.ProviderWhereUniqueInput + update: Prisma.XOR< + Prisma.ProviderUpdateWithoutTeamInput, + Prisma.ProviderUncheckedUpdateWithoutTeamInput + > + create: Prisma.XOR< + Prisma.ProviderCreateWithoutTeamInput, + Prisma.ProviderUncheckedCreateWithoutTeamInput + > +} + +export type ProviderUpdateWithWhereUniqueWithoutTeamInput = { + where: Prisma.ProviderWhereUniqueInput + data: Prisma.XOR< + Prisma.ProviderUpdateWithoutTeamInput, + Prisma.ProviderUncheckedUpdateWithoutTeamInput + > +} + +export type ProviderUpdateManyWithWhereWithoutTeamInput = { + where: Prisma.ProviderScalarWhereInput + data: Prisma.XOR< + Prisma.ProviderUpdateManyMutationInput, + Prisma.ProviderUncheckedUpdateManyWithoutTeamInput + > +} + +export type ProviderScalarWhereInput = { + AND?: Prisma.ProviderScalarWhereInput | Prisma.ProviderScalarWhereInput[] + OR?: Prisma.ProviderScalarWhereInput[] + NOT?: Prisma.ProviderScalarWhereInput | Prisma.ProviderScalarWhereInput[] + id?: Prisma.StringFilter<'Provider'> | string + name?: Prisma.StringFilter<'Provider'> | string + isBuiltin?: Prisma.BoolFilter<'Provider'> | boolean + config?: Prisma.JsonFilter<'Provider'> + createdAt?: Prisma.DateTimeFilter<'Provider'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Provider'> | Date | string + teamId?: Prisma.StringFilter<'Provider'> | string +} + +export type ProviderCreateWithoutAgentsInput = { + id?: string + name: string + isBuiltin?: boolean + config: PrismaJson.ProviderConfig + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutProvidersInput + models?: Prisma.ModelCreateNestedManyWithoutProviderInput +} + +export type ProviderUncheckedCreateWithoutAgentsInput = { + id?: string + name: string + isBuiltin?: boolean + config: PrismaJson.ProviderConfig + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + models?: Prisma.ModelUncheckedCreateNestedManyWithoutProviderInput +} + +export type ProviderCreateOrConnectWithoutAgentsInput = { + where: Prisma.ProviderWhereUniqueInput + create: Prisma.XOR< + Prisma.ProviderCreateWithoutAgentsInput, + Prisma.ProviderUncheckedCreateWithoutAgentsInput + > +} + +export type ProviderUpsertWithoutAgentsInput = { + update: Prisma.XOR< + Prisma.ProviderUpdateWithoutAgentsInput, + Prisma.ProviderUncheckedUpdateWithoutAgentsInput + > + create: Prisma.XOR< + Prisma.ProviderCreateWithoutAgentsInput, + Prisma.ProviderUncheckedCreateWithoutAgentsInput + > + where?: Prisma.ProviderWhereInput +} + +export type ProviderUpdateToOneWithWhereWithoutAgentsInput = { + where?: Prisma.ProviderWhereInput + data: Prisma.XOR< + Prisma.ProviderUpdateWithoutAgentsInput, + Prisma.ProviderUncheckedUpdateWithoutAgentsInput + > +} + +export type ProviderUpdateWithoutAgentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isBuiltin?: Prisma.BoolFieldUpdateOperationsInput | boolean + config?: PrismaJson.ProviderConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutProvidersNestedInput + models?: Prisma.ModelUpdateManyWithoutProviderNestedInput +} + +export type ProviderUncheckedUpdateWithoutAgentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isBuiltin?: Prisma.BoolFieldUpdateOperationsInput | boolean + config?: PrismaJson.ProviderConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + models?: Prisma.ModelUncheckedUpdateManyWithoutProviderNestedInput +} + +export type ProviderCreateWithoutModelsInput = { + id?: string + name: string + isBuiltin?: boolean + config: PrismaJson.ProviderConfig + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutProvidersInput + agents?: Prisma.AgentCreateNestedManyWithoutProviderInput +} + +export type ProviderUncheckedCreateWithoutModelsInput = { + id?: string + name: string + isBuiltin?: boolean + config: PrismaJson.ProviderConfig + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutProviderInput +} + +export type ProviderCreateOrConnectWithoutModelsInput = { + where: Prisma.ProviderWhereUniqueInput + create: Prisma.XOR< + Prisma.ProviderCreateWithoutModelsInput, + Prisma.ProviderUncheckedCreateWithoutModelsInput + > +} + +export type ProviderUpsertWithoutModelsInput = { + update: Prisma.XOR< + Prisma.ProviderUpdateWithoutModelsInput, + Prisma.ProviderUncheckedUpdateWithoutModelsInput + > + create: Prisma.XOR< + Prisma.ProviderCreateWithoutModelsInput, + Prisma.ProviderUncheckedCreateWithoutModelsInput + > + where?: Prisma.ProviderWhereInput +} + +export type ProviderUpdateToOneWithWhereWithoutModelsInput = { + where?: Prisma.ProviderWhereInput + data: Prisma.XOR< + Prisma.ProviderUpdateWithoutModelsInput, + Prisma.ProviderUncheckedUpdateWithoutModelsInput + > +} + +export type ProviderUpdateWithoutModelsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isBuiltin?: Prisma.BoolFieldUpdateOperationsInput | boolean + config?: PrismaJson.ProviderConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutProvidersNestedInput + agents?: Prisma.AgentUpdateManyWithoutProviderNestedInput +} + +export type ProviderUncheckedUpdateWithoutModelsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isBuiltin?: Prisma.BoolFieldUpdateOperationsInput | boolean + config?: PrismaJson.ProviderConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + agents?: Prisma.AgentUncheckedUpdateManyWithoutProviderNestedInput +} + +export type ProviderCreateManyTeamInput = { + id?: string + name: string + isBuiltin?: boolean + config: PrismaJson.ProviderConfig + createdAt?: Date | string + updatedAt?: Date | string +} + +export type ProviderUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isBuiltin?: Prisma.BoolFieldUpdateOperationsInput | boolean + config?: PrismaJson.ProviderConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + models?: Prisma.ModelUpdateManyWithoutProviderNestedInput + agents?: Prisma.AgentUpdateManyWithoutProviderNestedInput +} + +export type ProviderUncheckedUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isBuiltin?: Prisma.BoolFieldUpdateOperationsInput | boolean + config?: PrismaJson.ProviderConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + models?: Prisma.ModelUncheckedUpdateManyWithoutProviderNestedInput + agents?: Prisma.AgentUncheckedUpdateManyWithoutProviderNestedInput +} + +export type ProviderUncheckedUpdateManyWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + isBuiltin?: Prisma.BoolFieldUpdateOperationsInput | boolean + config?: PrismaJson.ProviderConfig + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +/** + * Count Type ProviderCountOutputType + */ + +export type ProviderCountOutputType = { + models: number + agents: number +} + +export type ProviderCountOutputTypeSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + models?: boolean | ProviderCountOutputTypeCountModelsArgs + agents?: boolean | ProviderCountOutputTypeCountAgentsArgs +} + +/** + * ProviderCountOutputType without action + */ +export type ProviderCountOutputTypeDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProviderCountOutputType + */ + select?: Prisma.ProviderCountOutputTypeSelect | null +} + +/** + * ProviderCountOutputType without action + */ +export type ProviderCountOutputTypeCountModelsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.ModelWhereInput +} + +/** + * ProviderCountOutputType without action + */ +export type ProviderCountOutputTypeCountAgentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AgentWhereInput +} + +export type ProviderSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + isBuiltin?: boolean + config?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + models?: boolean | Prisma.Provider$modelsArgs + agents?: boolean | Prisma.Provider$agentsArgs + _count?: boolean | Prisma.ProviderCountOutputTypeDefaultArgs + }, + ExtArgs['result']['provider'] +> + +export type ProviderSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + isBuiltin?: boolean + config?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + }, + ExtArgs['result']['provider'] +> + +export type ProviderSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + isBuiltin?: boolean + config?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + }, + ExtArgs['result']['provider'] +> + +export type ProviderSelectScalar = { + id?: boolean + name?: boolean + isBuiltin?: boolean + config?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean +} + +export type ProviderOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'name' | 'isBuiltin' | 'config' | 'createdAt' | 'updatedAt' | 'teamId', + ExtArgs['result']['provider'] +> +export type ProviderInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + models?: boolean | Prisma.Provider$modelsArgs + agents?: boolean | Prisma.Provider$agentsArgs + _count?: boolean | Prisma.ProviderCountOutputTypeDefaultArgs +} +export type ProviderIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs +} +export type ProviderIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs +} + +export type $ProviderPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Provider' + objects: { + team: Prisma.$TeamPayload + models: Prisma.$ModelPayload[] + agents: Prisma.$AgentPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + name: string + isBuiltin: boolean + /** + * [ProviderConfig] + */ + config: PrismaJson.ProviderConfig + createdAt: Date + updatedAt: Date + teamId: string + }, + ExtArgs['result']['provider'] + > + composites: {} +} + +export type ProviderGetPayload = + runtime.Types.Result.GetResult + +export type ProviderCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: ProviderCountAggregateInputType | true +} + +export interface ProviderDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['Provider']; meta: { name: 'Provider' } } + /** + * Find zero or one Provider that matches the filter. + * @param {ProviderFindUniqueArgs} args - Arguments to find a Provider + * @example + * // Get one Provider + * const provider = await prisma.provider.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProviderClient< + runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Provider that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ProviderFindUniqueOrThrowArgs} args - Arguments to find a Provider + * @example + * // Get one Provider + * const provider = await prisma.provider.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProviderClient< + runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Provider that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProviderFindFirstArgs} args - Arguments to find a Provider + * @example + * // Get one Provider + * const provider = await prisma.provider.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__ProviderClient< + runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Provider that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProviderFindFirstOrThrowArgs} args - Arguments to find a Provider + * @example + * // Get one Provider + * const provider = await prisma.provider.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__ProviderClient< + runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Providers that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProviderFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Providers + * const providers = await prisma.provider.findMany() + * + * // Get first 10 Providers + * const providers = await prisma.provider.findMany({ take: 10 }) + * + * // Only select the `id` + * const providerWithIdOnly = await prisma.provider.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a Provider. + * @param {ProviderCreateArgs} args - Arguments to create a Provider. + * @example + * // Create one Provider + * const Provider = await prisma.provider.create({ + * data: { + * // ... data to create a Provider + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProviderClient< + runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Providers. + * @param {ProviderCreateManyArgs} args - Arguments to create many Providers. + * @example + * // Create many Providers + * const provider = await prisma.provider.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Providers and returns the data saved in the database. + * @param {ProviderCreateManyAndReturnArgs} args - Arguments to create many Providers. + * @example + * // Create many Providers + * const provider = await prisma.provider.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Providers and only return the `id` + * const providerWithIdOnly = await prisma.provider.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Provider. + * @param {ProviderDeleteArgs} args - Arguments to delete one Provider. + * @example + * // Delete one Provider + * const Provider = await prisma.provider.delete({ + * where: { + * // ... filter to delete one Provider + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProviderClient< + runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Provider. + * @param {ProviderUpdateArgs} args - Arguments to update one Provider. + * @example + * // Update one Provider + * const provider = await prisma.provider.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProviderClient< + runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Providers. + * @param {ProviderDeleteManyArgs} args - Arguments to filter Providers to delete. + * @example + * // Delete a few Providers + * const { count } = await prisma.provider.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Providers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProviderUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Providers + * const provider = await prisma.provider.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Providers and returns the data updated in the database. + * @param {ProviderUpdateManyAndReturnArgs} args - Arguments to update many Providers. + * @example + * // Update many Providers + * const provider = await prisma.provider.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Providers and only return the `id` + * const providerWithIdOnly = await prisma.provider.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Provider. + * @param {ProviderUpsertArgs} args - Arguments to update or create a Provider. + * @example + * // Update or create a Provider + * const provider = await prisma.provider.upsert({ + * create: { + * // ... data to create a Provider + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Provider we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProviderClient< + runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Providers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProviderCountArgs} args - Arguments to filter Providers to count. + * @example + * // Count the number of Providers + * const count = await prisma.provider.count({ + * where: { + * // ... the filter for the Providers we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Provider. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProviderAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Provider. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProviderGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends ProviderGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ProviderGroupByArgs['orderBy'] } + : { orderBy?: ProviderGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetProviderGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Provider model + */ + readonly fields: ProviderFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Provider. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__ProviderClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + team = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TeamClient< + | runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + models = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$ModelPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + agents = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AgentPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Provider model + */ +export interface ProviderFieldRefs { + readonly id: Prisma.FieldRef<'Provider', 'String'> + readonly name: Prisma.FieldRef<'Provider', 'String'> + readonly isBuiltin: Prisma.FieldRef<'Provider', 'Boolean'> + readonly config: Prisma.FieldRef<'Provider', 'Json'> + readonly createdAt: Prisma.FieldRef<'Provider', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Provider', 'DateTime'> + readonly teamId: Prisma.FieldRef<'Provider', 'String'> +} + +// Custom InputTypes +/** + * Provider findUnique + */ +export type ProviderFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelect | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderInclude | null + /** + * Filter, which Provider to fetch. + */ + where: Prisma.ProviderWhereUniqueInput +} + +/** + * Provider findUniqueOrThrow + */ +export type ProviderFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelect | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderInclude | null + /** + * Filter, which Provider to fetch. + */ + where: Prisma.ProviderWhereUniqueInput +} + +/** + * Provider findFirst + */ +export type ProviderFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelect | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderInclude | null + /** + * Filter, which Provider to fetch. + */ + where?: Prisma.ProviderWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Providers to fetch. + */ + orderBy?: Prisma.ProviderOrderByWithRelationInput | Prisma.ProviderOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Providers. + */ + cursor?: Prisma.ProviderWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Providers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Providers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Providers. + */ + distinct?: Prisma.ProviderScalarFieldEnum | Prisma.ProviderScalarFieldEnum[] +} + +/** + * Provider findFirstOrThrow + */ +export type ProviderFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelect | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderInclude | null + /** + * Filter, which Provider to fetch. + */ + where?: Prisma.ProviderWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Providers to fetch. + */ + orderBy?: Prisma.ProviderOrderByWithRelationInput | Prisma.ProviderOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Providers. + */ + cursor?: Prisma.ProviderWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Providers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Providers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Providers. + */ + distinct?: Prisma.ProviderScalarFieldEnum | Prisma.ProviderScalarFieldEnum[] +} + +/** + * Provider findMany + */ +export type ProviderFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelect | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderInclude | null + /** + * Filter, which Providers to fetch. + */ + where?: Prisma.ProviderWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Providers to fetch. + */ + orderBy?: Prisma.ProviderOrderByWithRelationInput | Prisma.ProviderOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Providers. + */ + cursor?: Prisma.ProviderWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Providers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Providers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Providers. + */ + distinct?: Prisma.ProviderScalarFieldEnum | Prisma.ProviderScalarFieldEnum[] +} + +/** + * Provider create + */ +export type ProviderCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelect | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderInclude | null + /** + * The data needed to create a Provider. + */ + data: Prisma.XOR +} + +/** + * Provider createMany + */ +export type ProviderCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Providers. + */ + data: Prisma.ProviderCreateManyInput | Prisma.ProviderCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Provider createManyAndReturn + */ +export type ProviderCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * The data used to create many Providers. + */ + data: Prisma.ProviderCreateManyInput | Prisma.ProviderCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderIncludeCreateManyAndReturn | null +} + +/** + * Provider update + */ +export type ProviderUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelect | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderInclude | null + /** + * The data needed to update a Provider. + */ + data: Prisma.XOR + /** + * Choose, which Provider to update. + */ + where: Prisma.ProviderWhereUniqueInput +} + +/** + * Provider updateMany + */ +export type ProviderUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Providers. + */ + data: Prisma.XOR + /** + * Filter which Providers to update + */ + where?: Prisma.ProviderWhereInput + /** + * Limit how many Providers to update. + */ + limit?: number +} + +/** + * Provider updateManyAndReturn + */ +export type ProviderUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * The data used to update Providers. + */ + data: Prisma.XOR + /** + * Filter which Providers to update + */ + where?: Prisma.ProviderWhereInput + /** + * Limit how many Providers to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderIncludeUpdateManyAndReturn | null +} + +/** + * Provider upsert + */ +export type ProviderUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelect | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderInclude | null + /** + * The filter to search for the Provider to update in case it exists. + */ + where: Prisma.ProviderWhereUniqueInput + /** + * In case the Provider found by the `where` argument doesn't exist, create a new Provider with this data. + */ + create: Prisma.XOR + /** + * In case the Provider was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Provider delete + */ +export type ProviderDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelect | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderInclude | null + /** + * Filter which Provider to delete. + */ + where: Prisma.ProviderWhereUniqueInput +} + +/** + * Provider deleteMany + */ +export type ProviderDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Providers to delete + */ + where?: Prisma.ProviderWhereInput + /** + * Limit how many Providers to delete. + */ + limit?: number +} + +/** + * Provider.models + */ +export type Provider$modelsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Model + */ + select?: Prisma.ModelSelect | null + /** + * Omit specific fields from the Model + */ + omit?: Prisma.ModelOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ModelInclude | null + where?: Prisma.ModelWhereInput + orderBy?: Prisma.ModelOrderByWithRelationInput | Prisma.ModelOrderByWithRelationInput[] + cursor?: Prisma.ModelWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ModelScalarFieldEnum | Prisma.ModelScalarFieldEnum[] +} + +/** + * Provider.agents + */ +export type Provider$agentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null + where?: Prisma.AgentWhereInput + orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[] + cursor?: Prisma.AgentWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[] +} + +/** + * Provider without action + */ +export type ProviderDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelect | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderInclude | null +} diff --git a/packages/db/src/generated/prisma/models/Sandbox.ts b/packages/db/src/generated/prisma/models/Sandbox.ts new file mode 100644 index 00000000..62dfacae --- /dev/null +++ b/packages/db/src/generated/prisma/models/Sandbox.ts @@ -0,0 +1,1539 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Sandbox` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Sandbox + * + */ +export type SandboxModel = runtime.Types.Result.DefaultSelection + +export type AggregateSandbox = { + _count: SandboxCountAggregateOutputType | null + _min: SandboxMinAggregateOutputType | null + _max: SandboxMaxAggregateOutputType | null +} + +export type SandboxMinAggregateOutputType = { + id: string | null + createdAt: Date | null + updatedAt: Date | null + teamId: string | null +} + +export type SandboxMaxAggregateOutputType = { + id: string | null + createdAt: Date | null + updatedAt: Date | null + teamId: string | null +} + +export type SandboxCountAggregateOutputType = { + id: number + allowedDomains: number + createdAt: number + updatedAt: number + teamId: number + _all: number +} + +export type SandboxMinAggregateInputType = { + id?: true + createdAt?: true + updatedAt?: true + teamId?: true +} + +export type SandboxMaxAggregateInputType = { + id?: true + createdAt?: true + updatedAt?: true + teamId?: true +} + +export type SandboxCountAggregateInputType = { + id?: true + allowedDomains?: true + createdAt?: true + updatedAt?: true + teamId?: true + _all?: true +} + +export type SandboxAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Sandbox to aggregate. + */ + where?: Prisma.SandboxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sandboxes to fetch. + */ + orderBy?: Prisma.SandboxOrderByWithRelationInput | Prisma.SandboxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.SandboxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sandboxes from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Sandboxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Sandboxes + **/ + _count?: true | SandboxCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: SandboxMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: SandboxMaxAggregateInputType +} + +export type GetSandboxAggregateType = { + [P in keyof T & keyof AggregateSandbox]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type SandboxGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.SandboxWhereInput + orderBy?: Prisma.SandboxOrderByWithAggregationInput | Prisma.SandboxOrderByWithAggregationInput[] + by: Prisma.SandboxScalarFieldEnum[] | Prisma.SandboxScalarFieldEnum + having?: Prisma.SandboxScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: SandboxCountAggregateInputType | true + _min?: SandboxMinAggregateInputType + _max?: SandboxMaxAggregateInputType +} + +export type SandboxGroupByOutputType = { + id: string + allowedDomains: string[] + createdAt: Date + updatedAt: Date + teamId: string + _count: SandboxCountAggregateOutputType | null + _min: SandboxMinAggregateOutputType | null + _max: SandboxMaxAggregateOutputType | null +} + +export type GetSandboxGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof SandboxGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type SandboxWhereInput = { + AND?: Prisma.SandboxWhereInput | Prisma.SandboxWhereInput[] + OR?: Prisma.SandboxWhereInput[] + NOT?: Prisma.SandboxWhereInput | Prisma.SandboxWhereInput[] + id?: Prisma.StringFilter<'Sandbox'> | string + allowedDomains?: Prisma.StringNullableListFilter<'Sandbox'> + createdAt?: Prisma.DateTimeFilter<'Sandbox'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Sandbox'> | Date | string + teamId?: Prisma.StringFilter<'Sandbox'> | string + team?: Prisma.XOR +} + +export type SandboxOrderByWithRelationInput = { + id?: Prisma.SortOrder + allowedDomains?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + team?: Prisma.TeamOrderByWithRelationInput +} + +export type SandboxWhereUniqueInput = Prisma.AtLeast< + { + id?: string + teamId?: string + AND?: Prisma.SandboxWhereInput | Prisma.SandboxWhereInput[] + OR?: Prisma.SandboxWhereInput[] + NOT?: Prisma.SandboxWhereInput | Prisma.SandboxWhereInput[] + allowedDomains?: Prisma.StringNullableListFilter<'Sandbox'> + createdAt?: Prisma.DateTimeFilter<'Sandbox'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Sandbox'> | Date | string + team?: Prisma.XOR + }, + 'id' | 'teamId' +> + +export type SandboxOrderByWithAggregationInput = { + id?: Prisma.SortOrder + allowedDomains?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + _count?: Prisma.SandboxCountOrderByAggregateInput + _max?: Prisma.SandboxMaxOrderByAggregateInput + _min?: Prisma.SandboxMinOrderByAggregateInput +} + +export type SandboxScalarWhereWithAggregatesInput = { + AND?: + | Prisma.SandboxScalarWhereWithAggregatesInput + | Prisma.SandboxScalarWhereWithAggregatesInput[] + OR?: Prisma.SandboxScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.SandboxScalarWhereWithAggregatesInput + | Prisma.SandboxScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Sandbox'> | string + allowedDomains?: Prisma.StringNullableListFilter<'Sandbox'> + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Sandbox'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Sandbox'> | Date | string + teamId?: Prisma.StringWithAggregatesFilter<'Sandbox'> | string +} + +export type SandboxCreateInput = { + id?: string + allowedDomains?: Prisma.SandboxCreateallowedDomainsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutSandboxInput +} + +export type SandboxUncheckedCreateInput = { + id?: string + allowedDomains?: Prisma.SandboxCreateallowedDomainsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string + teamId: string +} + +export type SandboxUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + allowedDomains?: Prisma.SandboxUpdateallowedDomainsInput | string[] + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutSandboxNestedInput +} + +export type SandboxUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + allowedDomains?: Prisma.SandboxUpdateallowedDomainsInput | string[] + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type SandboxCreateManyInput = { + id?: string + allowedDomains?: Prisma.SandboxCreateallowedDomainsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string + teamId: string +} + +export type SandboxUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + allowedDomains?: Prisma.SandboxUpdateallowedDomainsInput | string[] + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SandboxUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + allowedDomains?: Prisma.SandboxUpdateallowedDomainsInput | string[] + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type SandboxNullableScalarRelationFilter = { + is?: Prisma.SandboxWhereInput | null + isNot?: Prisma.SandboxWhereInput | null +} + +export type StringNullableListFilter<$PrismaModel = never> = { + equals?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + has?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + hasEvery?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + isEmpty?: boolean +} + +export type SandboxCountOrderByAggregateInput = { + id?: Prisma.SortOrder + allowedDomains?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder +} + +export type SandboxMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder +} + +export type SandboxMinOrderByAggregateInput = { + id?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder +} + +export type SandboxCreateNestedOneWithoutTeamInput = { + create?: Prisma.XOR< + Prisma.SandboxCreateWithoutTeamInput, + Prisma.SandboxUncheckedCreateWithoutTeamInput + > + connectOrCreate?: Prisma.SandboxCreateOrConnectWithoutTeamInput + connect?: Prisma.SandboxWhereUniqueInput +} + +export type SandboxUncheckedCreateNestedOneWithoutTeamInput = { + create?: Prisma.XOR< + Prisma.SandboxCreateWithoutTeamInput, + Prisma.SandboxUncheckedCreateWithoutTeamInput + > + connectOrCreate?: Prisma.SandboxCreateOrConnectWithoutTeamInput + connect?: Prisma.SandboxWhereUniqueInput +} + +export type SandboxUpdateOneWithoutTeamNestedInput = { + create?: Prisma.XOR< + Prisma.SandboxCreateWithoutTeamInput, + Prisma.SandboxUncheckedCreateWithoutTeamInput + > + connectOrCreate?: Prisma.SandboxCreateOrConnectWithoutTeamInput + upsert?: Prisma.SandboxUpsertWithoutTeamInput + disconnect?: Prisma.SandboxWhereInput | boolean + delete?: Prisma.SandboxWhereInput | boolean + connect?: Prisma.SandboxWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.SandboxUpdateToOneWithWhereWithoutTeamInput, + Prisma.SandboxUpdateWithoutTeamInput + >, + Prisma.SandboxUncheckedUpdateWithoutTeamInput + > +} + +export type SandboxUncheckedUpdateOneWithoutTeamNestedInput = { + create?: Prisma.XOR< + Prisma.SandboxCreateWithoutTeamInput, + Prisma.SandboxUncheckedCreateWithoutTeamInput + > + connectOrCreate?: Prisma.SandboxCreateOrConnectWithoutTeamInput + upsert?: Prisma.SandboxUpsertWithoutTeamInput + disconnect?: Prisma.SandboxWhereInput | boolean + delete?: Prisma.SandboxWhereInput | boolean + connect?: Prisma.SandboxWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.SandboxUpdateToOneWithWhereWithoutTeamInput, + Prisma.SandboxUpdateWithoutTeamInput + >, + Prisma.SandboxUncheckedUpdateWithoutTeamInput + > +} + +export type SandboxCreateallowedDomainsInput = { + set: string[] +} + +export type SandboxUpdateallowedDomainsInput = { + set?: string[] + push?: string | string[] +} + +export type SandboxCreateWithoutTeamInput = { + id?: string + allowedDomains?: Prisma.SandboxCreateallowedDomainsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string +} + +export type SandboxUncheckedCreateWithoutTeamInput = { + id?: string + allowedDomains?: Prisma.SandboxCreateallowedDomainsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string +} + +export type SandboxCreateOrConnectWithoutTeamInput = { + where: Prisma.SandboxWhereUniqueInput + create: Prisma.XOR< + Prisma.SandboxCreateWithoutTeamInput, + Prisma.SandboxUncheckedCreateWithoutTeamInput + > +} + +export type SandboxUpsertWithoutTeamInput = { + update: Prisma.XOR< + Prisma.SandboxUpdateWithoutTeamInput, + Prisma.SandboxUncheckedUpdateWithoutTeamInput + > + create: Prisma.XOR< + Prisma.SandboxCreateWithoutTeamInput, + Prisma.SandboxUncheckedCreateWithoutTeamInput + > + where?: Prisma.SandboxWhereInput +} + +export type SandboxUpdateToOneWithWhereWithoutTeamInput = { + where?: Prisma.SandboxWhereInput + data: Prisma.XOR< + Prisma.SandboxUpdateWithoutTeamInput, + Prisma.SandboxUncheckedUpdateWithoutTeamInput + > +} + +export type SandboxUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + allowedDomains?: Prisma.SandboxUpdateallowedDomainsInput | string[] + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SandboxUncheckedUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + allowedDomains?: Prisma.SandboxUpdateallowedDomainsInput | string[] + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SandboxSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + allowedDomains?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + }, + ExtArgs['result']['sandbox'] +> + +export type SandboxSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + allowedDomains?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + }, + ExtArgs['result']['sandbox'] +> + +export type SandboxSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + allowedDomains?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + }, + ExtArgs['result']['sandbox'] +> + +export type SandboxSelectScalar = { + id?: boolean + allowedDomains?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean +} + +export type SandboxOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'allowedDomains' | 'createdAt' | 'updatedAt' | 'teamId', + ExtArgs['result']['sandbox'] +> +export type SandboxInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs +} +export type SandboxIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs +} +export type SandboxIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs +} + +export type $SandboxPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Sandbox' + objects: { + team: Prisma.$TeamPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + allowedDomains: string[] + createdAt: Date + updatedAt: Date + teamId: string + }, + ExtArgs['result']['sandbox'] + > + composites: {} +} + +export type SandboxGetPayload = + runtime.Types.Result.GetResult + +export type SandboxCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: SandboxCountAggregateInputType | true +} + +export interface SandboxDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['Sandbox']; meta: { name: 'Sandbox' } } + /** + * Find zero or one Sandbox that matches the filter. + * @param {SandboxFindUniqueArgs} args - Arguments to find a Sandbox + * @example + * // Get one Sandbox + * const sandbox = await prisma.sandbox.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SandboxClient< + runtime.Types.Result.GetResult< + Prisma.$SandboxPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Sandbox that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {SandboxFindUniqueOrThrowArgs} args - Arguments to find a Sandbox + * @example + * // Get one Sandbox + * const sandbox = await prisma.sandbox.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SandboxClient< + runtime.Types.Result.GetResult< + Prisma.$SandboxPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Sandbox that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SandboxFindFirstArgs} args - Arguments to find a Sandbox + * @example + * // Get one Sandbox + * const sandbox = await prisma.sandbox.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__SandboxClient< + runtime.Types.Result.GetResult< + Prisma.$SandboxPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Sandbox that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SandboxFindFirstOrThrowArgs} args - Arguments to find a Sandbox + * @example + * // Get one Sandbox + * const sandbox = await prisma.sandbox.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__SandboxClient< + runtime.Types.Result.GetResult< + Prisma.$SandboxPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Sandboxes that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SandboxFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Sandboxes + * const sandboxes = await prisma.sandbox.findMany() + * + * // Get first 10 Sandboxes + * const sandboxes = await prisma.sandbox.findMany({ take: 10 }) + * + * // Only select the `id` + * const sandboxWithIdOnly = await prisma.sandbox.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$SandboxPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a Sandbox. + * @param {SandboxCreateArgs} args - Arguments to create a Sandbox. + * @example + * // Create one Sandbox + * const Sandbox = await prisma.sandbox.create({ + * data: { + * // ... data to create a Sandbox + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SandboxClient< + runtime.Types.Result.GetResult, T, 'create', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Sandboxes. + * @param {SandboxCreateManyArgs} args - Arguments to create many Sandboxes. + * @example + * // Create many Sandboxes + * const sandbox = await prisma.sandbox.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Sandboxes and returns the data saved in the database. + * @param {SandboxCreateManyAndReturnArgs} args - Arguments to create many Sandboxes. + * @example + * // Create many Sandboxes + * const sandbox = await prisma.sandbox.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Sandboxes and only return the `id` + * const sandboxWithIdOnly = await prisma.sandbox.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$SandboxPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Sandbox. + * @param {SandboxDeleteArgs} args - Arguments to delete one Sandbox. + * @example + * // Delete one Sandbox + * const Sandbox = await prisma.sandbox.delete({ + * where: { + * // ... filter to delete one Sandbox + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SandboxClient< + runtime.Types.Result.GetResult, T, 'delete', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Sandbox. + * @param {SandboxUpdateArgs} args - Arguments to update one Sandbox. + * @example + * // Update one Sandbox + * const sandbox = await prisma.sandbox.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SandboxClient< + runtime.Types.Result.GetResult, T, 'update', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Sandboxes. + * @param {SandboxDeleteManyArgs} args - Arguments to filter Sandboxes to delete. + * @example + * // Delete a few Sandboxes + * const { count } = await prisma.sandbox.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Sandboxes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SandboxUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Sandboxes + * const sandbox = await prisma.sandbox.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Sandboxes and returns the data updated in the database. + * @param {SandboxUpdateManyAndReturnArgs} args - Arguments to update many Sandboxes. + * @example + * // Update many Sandboxes + * const sandbox = await prisma.sandbox.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Sandboxes and only return the `id` + * const sandboxWithIdOnly = await prisma.sandbox.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$SandboxPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Sandbox. + * @param {SandboxUpsertArgs} args - Arguments to update or create a Sandbox. + * @example + * // Update or create a Sandbox + * const sandbox = await prisma.sandbox.upsert({ + * create: { + * // ... data to create a Sandbox + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Sandbox we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SandboxClient< + runtime.Types.Result.GetResult, T, 'upsert', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Sandboxes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SandboxCountArgs} args - Arguments to filter Sandboxes to count. + * @example + * // Count the number of Sandboxes + * const count = await prisma.sandbox.count({ + * where: { + * // ... the filter for the Sandboxes we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Sandbox. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SandboxAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Sandbox. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SandboxGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends SandboxGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: SandboxGroupByArgs['orderBy'] } + : { orderBy?: SandboxGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetSandboxGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Sandbox model + */ + readonly fields: SandboxFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Sandbox. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__SandboxClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + team = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TeamClient< + | runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Sandbox model + */ +export interface SandboxFieldRefs { + readonly id: Prisma.FieldRef<'Sandbox', 'String'> + readonly allowedDomains: Prisma.FieldRef<'Sandbox', 'String[]'> + readonly createdAt: Prisma.FieldRef<'Sandbox', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Sandbox', 'DateTime'> + readonly teamId: Prisma.FieldRef<'Sandbox', 'String'> +} + +// Custom InputTypes +/** + * Sandbox findUnique + */ +export type SandboxFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Sandbox + */ + select?: Prisma.SandboxSelect | null + /** + * Omit specific fields from the Sandbox + */ + omit?: Prisma.SandboxOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SandboxInclude | null + /** + * Filter, which Sandbox to fetch. + */ + where: Prisma.SandboxWhereUniqueInput +} + +/** + * Sandbox findUniqueOrThrow + */ +export type SandboxFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Sandbox + */ + select?: Prisma.SandboxSelect | null + /** + * Omit specific fields from the Sandbox + */ + omit?: Prisma.SandboxOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SandboxInclude | null + /** + * Filter, which Sandbox to fetch. + */ + where: Prisma.SandboxWhereUniqueInput +} + +/** + * Sandbox findFirst + */ +export type SandboxFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Sandbox + */ + select?: Prisma.SandboxSelect | null + /** + * Omit specific fields from the Sandbox + */ + omit?: Prisma.SandboxOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SandboxInclude | null + /** + * Filter, which Sandbox to fetch. + */ + where?: Prisma.SandboxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sandboxes to fetch. + */ + orderBy?: Prisma.SandboxOrderByWithRelationInput | Prisma.SandboxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Sandboxes. + */ + cursor?: Prisma.SandboxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sandboxes from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Sandboxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Sandboxes. + */ + distinct?: Prisma.SandboxScalarFieldEnum | Prisma.SandboxScalarFieldEnum[] +} + +/** + * Sandbox findFirstOrThrow + */ +export type SandboxFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Sandbox + */ + select?: Prisma.SandboxSelect | null + /** + * Omit specific fields from the Sandbox + */ + omit?: Prisma.SandboxOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SandboxInclude | null + /** + * Filter, which Sandbox to fetch. + */ + where?: Prisma.SandboxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sandboxes to fetch. + */ + orderBy?: Prisma.SandboxOrderByWithRelationInput | Prisma.SandboxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Sandboxes. + */ + cursor?: Prisma.SandboxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sandboxes from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Sandboxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Sandboxes. + */ + distinct?: Prisma.SandboxScalarFieldEnum | Prisma.SandboxScalarFieldEnum[] +} + +/** + * Sandbox findMany + */ +export type SandboxFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Sandbox + */ + select?: Prisma.SandboxSelect | null + /** + * Omit specific fields from the Sandbox + */ + omit?: Prisma.SandboxOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SandboxInclude | null + /** + * Filter, which Sandboxes to fetch. + */ + where?: Prisma.SandboxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sandboxes to fetch. + */ + orderBy?: Prisma.SandboxOrderByWithRelationInput | Prisma.SandboxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Sandboxes. + */ + cursor?: Prisma.SandboxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sandboxes from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Sandboxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Sandboxes. + */ + distinct?: Prisma.SandboxScalarFieldEnum | Prisma.SandboxScalarFieldEnum[] +} + +/** + * Sandbox create + */ +export type SandboxCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Sandbox + */ + select?: Prisma.SandboxSelect | null + /** + * Omit specific fields from the Sandbox + */ + omit?: Prisma.SandboxOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SandboxInclude | null + /** + * The data needed to create a Sandbox. + */ + data: Prisma.XOR +} + +/** + * Sandbox createMany + */ +export type SandboxCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Sandboxes. + */ + data: Prisma.SandboxCreateManyInput | Prisma.SandboxCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Sandbox createManyAndReturn + */ +export type SandboxCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Sandbox + */ + select?: Prisma.SandboxSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Sandbox + */ + omit?: Prisma.SandboxOmit | null + /** + * The data used to create many Sandboxes. + */ + data: Prisma.SandboxCreateManyInput | Prisma.SandboxCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SandboxIncludeCreateManyAndReturn | null +} + +/** + * Sandbox update + */ +export type SandboxUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Sandbox + */ + select?: Prisma.SandboxSelect | null + /** + * Omit specific fields from the Sandbox + */ + omit?: Prisma.SandboxOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SandboxInclude | null + /** + * The data needed to update a Sandbox. + */ + data: Prisma.XOR + /** + * Choose, which Sandbox to update. + */ + where: Prisma.SandboxWhereUniqueInput +} + +/** + * Sandbox updateMany + */ +export type SandboxUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Sandboxes. + */ + data: Prisma.XOR + /** + * Filter which Sandboxes to update + */ + where?: Prisma.SandboxWhereInput + /** + * Limit how many Sandboxes to update. + */ + limit?: number +} + +/** + * Sandbox updateManyAndReturn + */ +export type SandboxUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Sandbox + */ + select?: Prisma.SandboxSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Sandbox + */ + omit?: Prisma.SandboxOmit | null + /** + * The data used to update Sandboxes. + */ + data: Prisma.XOR + /** + * Filter which Sandboxes to update + */ + where?: Prisma.SandboxWhereInput + /** + * Limit how many Sandboxes to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SandboxIncludeUpdateManyAndReturn | null +} + +/** + * Sandbox upsert + */ +export type SandboxUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Sandbox + */ + select?: Prisma.SandboxSelect | null + /** + * Omit specific fields from the Sandbox + */ + omit?: Prisma.SandboxOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SandboxInclude | null + /** + * The filter to search for the Sandbox to update in case it exists. + */ + where: Prisma.SandboxWhereUniqueInput + /** + * In case the Sandbox found by the `where` argument doesn't exist, create a new Sandbox with this data. + */ + create: Prisma.XOR + /** + * In case the Sandbox was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Sandbox delete + */ +export type SandboxDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Sandbox + */ + select?: Prisma.SandboxSelect | null + /** + * Omit specific fields from the Sandbox + */ + omit?: Prisma.SandboxOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SandboxInclude | null + /** + * Filter which Sandbox to delete. + */ + where: Prisma.SandboxWhereUniqueInput +} + +/** + * Sandbox deleteMany + */ +export type SandboxDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Sandboxes to delete + */ + where?: Prisma.SandboxWhereInput + /** + * Limit how many Sandboxes to delete. + */ + limit?: number +} + +/** + * Sandbox without action + */ +export type SandboxDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Sandbox + */ + select?: Prisma.SandboxSelect | null + /** + * Omit specific fields from the Sandbox + */ + omit?: Prisma.SandboxOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SandboxInclude | null +} diff --git a/packages/db/src/generated/prisma/models/Session.ts b/packages/db/src/generated/prisma/models/Session.ts new file mode 100644 index 00000000..353840df --- /dev/null +++ b/packages/db/src/generated/prisma/models/Session.ts @@ -0,0 +1,1706 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Session` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Session + * + */ +export type SessionModel = runtime.Types.Result.DefaultSelection + +export type AggregateSession = { + _count: SessionCountAggregateOutputType | null + _min: SessionMinAggregateOutputType | null + _max: SessionMaxAggregateOutputType | null +} + +export type SessionMinAggregateOutputType = { + id: string | null + expiresAt: Date | null + token: string | null + createdAt: Date | null + updatedAt: Date | null + ipAddress: string | null + userAgent: string | null + userId: string | null +} + +export type SessionMaxAggregateOutputType = { + id: string | null + expiresAt: Date | null + token: string | null + createdAt: Date | null + updatedAt: Date | null + ipAddress: string | null + userAgent: string | null + userId: string | null +} + +export type SessionCountAggregateOutputType = { + id: number + expiresAt: number + token: number + createdAt: number + updatedAt: number + ipAddress: number + userAgent: number + userId: number + _all: number +} + +export type SessionMinAggregateInputType = { + id?: true + expiresAt?: true + token?: true + createdAt?: true + updatedAt?: true + ipAddress?: true + userAgent?: true + userId?: true +} + +export type SessionMaxAggregateInputType = { + id?: true + expiresAt?: true + token?: true + createdAt?: true + updatedAt?: true + ipAddress?: true + userAgent?: true + userId?: true +} + +export type SessionCountAggregateInputType = { + id?: true + expiresAt?: true + token?: true + createdAt?: true + updatedAt?: true + ipAddress?: true + userAgent?: true + userId?: true + _all?: true +} + +export type SessionAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Session to aggregate. + */ + where?: Prisma.SessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.SessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sessions from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Sessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Sessions + **/ + _count?: true | SessionCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: SessionMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: SessionMaxAggregateInputType +} + +export type GetSessionAggregateType = { + [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type SessionGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.SessionWhereInput + orderBy?: Prisma.SessionOrderByWithAggregationInput | Prisma.SessionOrderByWithAggregationInput[] + by: Prisma.SessionScalarFieldEnum[] | Prisma.SessionScalarFieldEnum + having?: Prisma.SessionScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: SessionCountAggregateInputType | true + _min?: SessionMinAggregateInputType + _max?: SessionMaxAggregateInputType +} + +export type SessionGroupByOutputType = { + id: string + expiresAt: Date + token: string + createdAt: Date + updatedAt: Date + ipAddress: string | null + userAgent: string | null + userId: string + _count: SessionCountAggregateOutputType | null + _min: SessionMinAggregateOutputType | null + _max: SessionMaxAggregateOutputType | null +} + +export type GetSessionGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof SessionGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type SessionWhereInput = { + AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] + OR?: Prisma.SessionWhereInput[] + NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] + id?: Prisma.StringFilter<'Session'> | string + expiresAt?: Prisma.DateTimeFilter<'Session'> | Date | string + token?: Prisma.StringFilter<'Session'> | string + createdAt?: Prisma.DateTimeFilter<'Session'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Session'> | Date | string + ipAddress?: Prisma.StringNullableFilter<'Session'> | string | null + userAgent?: Prisma.StringNullableFilter<'Session'> | string | null + userId?: Prisma.StringFilter<'Session'> | string + user?: Prisma.XOR +} + +export type SessionOrderByWithRelationInput = { + id?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder + userAgent?: Prisma.SortOrderInput | Prisma.SortOrder + userId?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput +} + +export type SessionWhereUniqueInput = Prisma.AtLeast< + { + id?: string + token?: string + AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] + OR?: Prisma.SessionWhereInput[] + NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] + expiresAt?: Prisma.DateTimeFilter<'Session'> | Date | string + createdAt?: Prisma.DateTimeFilter<'Session'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Session'> | Date | string + ipAddress?: Prisma.StringNullableFilter<'Session'> | string | null + userAgent?: Prisma.StringNullableFilter<'Session'> | string | null + userId?: Prisma.StringFilter<'Session'> | string + user?: Prisma.XOR + }, + 'id' | 'token' +> + +export type SessionOrderByWithAggregationInput = { + id?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder + userAgent?: Prisma.SortOrderInput | Prisma.SortOrder + userId?: Prisma.SortOrder + _count?: Prisma.SessionCountOrderByAggregateInput + _max?: Prisma.SessionMaxOrderByAggregateInput + _min?: Prisma.SessionMinOrderByAggregateInput +} + +export type SessionScalarWhereWithAggregatesInput = { + AND?: + | Prisma.SessionScalarWhereWithAggregatesInput + | Prisma.SessionScalarWhereWithAggregatesInput[] + OR?: Prisma.SessionScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.SessionScalarWhereWithAggregatesInput + | Prisma.SessionScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Session'> | string + expiresAt?: Prisma.DateTimeWithAggregatesFilter<'Session'> | Date | string + token?: Prisma.StringWithAggregatesFilter<'Session'> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Session'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Session'> | Date | string + ipAddress?: Prisma.StringNullableWithAggregatesFilter<'Session'> | string | null + userAgent?: Prisma.StringNullableWithAggregatesFilter<'Session'> | string | null + userId?: Prisma.StringWithAggregatesFilter<'Session'> | string +} + +export type SessionCreateInput = { + id?: string + expiresAt: Date | string + token: string + createdAt?: Date | string + updatedAt?: Date | string + ipAddress?: string | null + userAgent?: string | null + user: Prisma.UserCreateNestedOneWithoutSessionsInput +} + +export type SessionUncheckedCreateInput = { + id?: string + expiresAt: Date | string + token: string + createdAt?: Date | string + updatedAt?: Date | string + ipAddress?: string | null + userAgent?: string | null + userId: string +} + +export type SessionUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + user?: Prisma.UserUpdateOneRequiredWithoutSessionsNestedInput +} + +export type SessionUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type SessionCreateManyInput = { + id?: string + expiresAt: Date | string + token: string + createdAt?: Date | string + updatedAt?: Date | string + ipAddress?: string | null + userAgent?: string | null + userId: string +} + +export type SessionUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type SessionUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type SessionListRelationFilter = { + every?: Prisma.SessionWhereInput + some?: Prisma.SessionWhereInput + none?: Prisma.SessionWhereInput +} + +export type SessionOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type SessionCountOrderByAggregateInput = { + id?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + ipAddress?: Prisma.SortOrder + userAgent?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type SessionMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + ipAddress?: Prisma.SortOrder + userAgent?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type SessionMinOrderByAggregateInput = { + id?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + ipAddress?: Prisma.SortOrder + userAgent?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type SessionCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.SessionCreateWithoutUserInput, + Prisma.SessionUncheckedCreateWithoutUserInput + > + | Prisma.SessionCreateWithoutUserInput[] + | Prisma.SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.SessionCreateOrConnectWithoutUserInput + | Prisma.SessionCreateOrConnectWithoutUserInput[] + createMany?: Prisma.SessionCreateManyUserInputEnvelope + connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] +} + +export type SessionUncheckedCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.SessionCreateWithoutUserInput, + Prisma.SessionUncheckedCreateWithoutUserInput + > + | Prisma.SessionCreateWithoutUserInput[] + | Prisma.SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.SessionCreateOrConnectWithoutUserInput + | Prisma.SessionCreateOrConnectWithoutUserInput[] + createMany?: Prisma.SessionCreateManyUserInputEnvelope + connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] +} + +export type SessionUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.SessionCreateWithoutUserInput, + Prisma.SessionUncheckedCreateWithoutUserInput + > + | Prisma.SessionCreateWithoutUserInput[] + | Prisma.SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.SessionCreateOrConnectWithoutUserInput + | Prisma.SessionCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput + | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.SessionCreateManyUserInputEnvelope + set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + update?: + | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput + | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.SessionUpdateManyWithWhereWithoutUserInput + | Prisma.SessionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] +} + +export type SessionUncheckedUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.SessionCreateWithoutUserInput, + Prisma.SessionUncheckedCreateWithoutUserInput + > + | Prisma.SessionCreateWithoutUserInput[] + | Prisma.SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.SessionCreateOrConnectWithoutUserInput + | Prisma.SessionCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput + | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.SessionCreateManyUserInputEnvelope + set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + update?: + | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput + | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.SessionUpdateManyWithWhereWithoutUserInput + | Prisma.SessionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] +} + +export type SessionCreateWithoutUserInput = { + id?: string + expiresAt: Date | string + token: string + createdAt?: Date | string + updatedAt?: Date | string + ipAddress?: string | null + userAgent?: string | null +} + +export type SessionUncheckedCreateWithoutUserInput = { + id?: string + expiresAt: Date | string + token: string + createdAt?: Date | string + updatedAt?: Date | string + ipAddress?: string | null + userAgent?: string | null +} + +export type SessionCreateOrConnectWithoutUserInput = { + where: Prisma.SessionWhereUniqueInput + create: Prisma.XOR< + Prisma.SessionCreateWithoutUserInput, + Prisma.SessionUncheckedCreateWithoutUserInput + > +} + +export type SessionCreateManyUserInputEnvelope = { + data: Prisma.SessionCreateManyUserInput | Prisma.SessionCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type SessionUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.SessionWhereUniqueInput + update: Prisma.XOR< + Prisma.SessionUpdateWithoutUserInput, + Prisma.SessionUncheckedUpdateWithoutUserInput + > + create: Prisma.XOR< + Prisma.SessionCreateWithoutUserInput, + Prisma.SessionUncheckedCreateWithoutUserInput + > +} + +export type SessionUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.SessionWhereUniqueInput + data: Prisma.XOR< + Prisma.SessionUpdateWithoutUserInput, + Prisma.SessionUncheckedUpdateWithoutUserInput + > +} + +export type SessionUpdateManyWithWhereWithoutUserInput = { + where: Prisma.SessionScalarWhereInput + data: Prisma.XOR< + Prisma.SessionUpdateManyMutationInput, + Prisma.SessionUncheckedUpdateManyWithoutUserInput + > +} + +export type SessionScalarWhereInput = { + AND?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] + OR?: Prisma.SessionScalarWhereInput[] + NOT?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] + id?: Prisma.StringFilter<'Session'> | string + expiresAt?: Prisma.DateTimeFilter<'Session'> | Date | string + token?: Prisma.StringFilter<'Session'> | string + createdAt?: Prisma.DateTimeFilter<'Session'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Session'> | Date | string + ipAddress?: Prisma.StringNullableFilter<'Session'> | string | null + userAgent?: Prisma.StringNullableFilter<'Session'> | string | null + userId?: Prisma.StringFilter<'Session'> | string +} + +export type SessionCreateManyUserInput = { + id?: string + expiresAt: Date | string + token: string + createdAt?: Date | string + updatedAt?: Date | string + ipAddress?: string | null + userAgent?: string | null +} + +export type SessionUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type SessionUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type SessionUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type SessionSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + expiresAt?: boolean + token?: boolean + createdAt?: boolean + updatedAt?: boolean + ipAddress?: boolean + userAgent?: boolean + userId?: boolean + user?: boolean | Prisma.UserDefaultArgs + }, + ExtArgs['result']['session'] +> + +export type SessionSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + expiresAt?: boolean + token?: boolean + createdAt?: boolean + updatedAt?: boolean + ipAddress?: boolean + userAgent?: boolean + userId?: boolean + user?: boolean | Prisma.UserDefaultArgs + }, + ExtArgs['result']['session'] +> + +export type SessionSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + expiresAt?: boolean + token?: boolean + createdAt?: boolean + updatedAt?: boolean + ipAddress?: boolean + userAgent?: boolean + userId?: boolean + user?: boolean | Prisma.UserDefaultArgs + }, + ExtArgs['result']['session'] +> + +export type SessionSelectScalar = { + id?: boolean + expiresAt?: boolean + token?: boolean + createdAt?: boolean + updatedAt?: boolean + ipAddress?: boolean + userAgent?: boolean + userId?: boolean +} + +export type SessionOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'expiresAt' | 'token' | 'createdAt' | 'updatedAt' | 'ipAddress' | 'userAgent' | 'userId', + ExtArgs['result']['session'] +> +export type SessionInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs +} +export type SessionIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs +} +export type SessionIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs +} + +export type $SessionPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Session' + objects: { + user: Prisma.$UserPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + expiresAt: Date + token: string + createdAt: Date + updatedAt: Date + ipAddress: string | null + userAgent: string | null + userId: string + }, + ExtArgs['result']['session'] + > + composites: {} +} + +export type SessionGetPayload = + runtime.Types.Result.GetResult + +export type SessionCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: SessionCountAggregateInputType | true +} + +export interface SessionDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['Session']; meta: { name: 'Session' } } + /** + * Find zero or one Session that matches the filter. + * @param {SessionFindUniqueArgs} args - Arguments to find a Session + * @example + * // Get one Session + * const session = await prisma.session.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SessionClient< + runtime.Types.Result.GetResult< + Prisma.$SessionPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Session that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session + * @example + * // Get one Session + * const session = await prisma.session.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SessionClient< + runtime.Types.Result.GetResult< + Prisma.$SessionPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Session that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionFindFirstArgs} args - Arguments to find a Session + * @example + * // Get one Session + * const session = await prisma.session.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__SessionClient< + runtime.Types.Result.GetResult< + Prisma.$SessionPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Session that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session + * @example + * // Get one Session + * const session = await prisma.session.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__SessionClient< + runtime.Types.Result.GetResult< + Prisma.$SessionPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Sessions that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Sessions + * const sessions = await prisma.session.findMany() + * + * // Get first 10 Sessions + * const sessions = await prisma.session.findMany({ take: 10 }) + * + * // Only select the `id` + * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$SessionPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a Session. + * @param {SessionCreateArgs} args - Arguments to create a Session. + * @example + * // Create one Session + * const Session = await prisma.session.create({ + * data: { + * // ... data to create a Session + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SessionClient< + runtime.Types.Result.GetResult, T, 'create', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Sessions. + * @param {SessionCreateManyArgs} args - Arguments to create many Sessions. + * @example + * // Create many Sessions + * const session = await prisma.session.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Sessions and returns the data saved in the database. + * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions. + * @example + * // Create many Sessions + * const session = await prisma.session.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Sessions and only return the `id` + * const sessionWithIdOnly = await prisma.session.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$SessionPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Session. + * @param {SessionDeleteArgs} args - Arguments to delete one Session. + * @example + * // Delete one Session + * const Session = await prisma.session.delete({ + * where: { + * // ... filter to delete one Session + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SessionClient< + runtime.Types.Result.GetResult, T, 'delete', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Session. + * @param {SessionUpdateArgs} args - Arguments to update one Session. + * @example + * // Update one Session + * const session = await prisma.session.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SessionClient< + runtime.Types.Result.GetResult, T, 'update', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Sessions. + * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete. + * @example + * // Delete a few Sessions + * const { count } = await prisma.session.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Sessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Sessions + * const session = await prisma.session.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Sessions and returns the data updated in the database. + * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions. + * @example + * // Update many Sessions + * const session = await prisma.session.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Sessions and only return the `id` + * const sessionWithIdOnly = await prisma.session.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$SessionPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Session. + * @param {SessionUpsertArgs} args - Arguments to update or create a Session. + * @example + * // Update or create a Session + * const session = await prisma.session.upsert({ + * create: { + * // ... data to create a Session + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Session we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SessionClient< + runtime.Types.Result.GetResult, T, 'upsert', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Sessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionCountArgs} args - Arguments to filter Sessions to count. + * @example + * // Count the number of Sessions + * const count = await prisma.session.count({ + * where: { + * // ... the filter for the Sessions we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Session. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Session. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends SessionGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: SessionGroupByArgs['orderBy'] } + : { orderBy?: SessionGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetSessionGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Session model + */ + readonly fields: SessionFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Session. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__SessionClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + user = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__UserClient< + | runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Session model + */ +export interface SessionFieldRefs { + readonly id: Prisma.FieldRef<'Session', 'String'> + readonly expiresAt: Prisma.FieldRef<'Session', 'DateTime'> + readonly token: Prisma.FieldRef<'Session', 'String'> + readonly createdAt: Prisma.FieldRef<'Session', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Session', 'DateTime'> + readonly ipAddress: Prisma.FieldRef<'Session', 'String'> + readonly userAgent: Prisma.FieldRef<'Session', 'String'> + readonly userId: Prisma.FieldRef<'Session', 'String'> +} + +// Custom InputTypes +/** + * Session findUnique + */ +export type SessionFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Session to fetch. + */ + where: Prisma.SessionWhereUniqueInput +} + +/** + * Session findUniqueOrThrow + */ +export type SessionFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Session to fetch. + */ + where: Prisma.SessionWhereUniqueInput +} + +/** + * Session findFirst + */ +export type SessionFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Session to fetch. + */ + where?: Prisma.SessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Sessions. + */ + cursor?: Prisma.SessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sessions from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Sessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Sessions. + */ + distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] +} + +/** + * Session findFirstOrThrow + */ +export type SessionFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Session to fetch. + */ + where?: Prisma.SessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Sessions. + */ + cursor?: Prisma.SessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sessions from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Sessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Sessions. + */ + distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] +} + +/** + * Session findMany + */ +export type SessionFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Sessions to fetch. + */ + where?: Prisma.SessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Sessions. + */ + cursor?: Prisma.SessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sessions from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Sessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Sessions. + */ + distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] +} + +/** + * Session create + */ +export type SessionCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * The data needed to create a Session. + */ + data: Prisma.XOR +} + +/** + * Session createMany + */ +export type SessionCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Sessions. + */ + data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Session createManyAndReturn + */ +export type SessionCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * The data used to create many Sessions. + */ + data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionIncludeCreateManyAndReturn | null +} + +/** + * Session update + */ +export type SessionUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * The data needed to update a Session. + */ + data: Prisma.XOR + /** + * Choose, which Session to update. + */ + where: Prisma.SessionWhereUniqueInput +} + +/** + * Session updateMany + */ +export type SessionUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Sessions. + */ + data: Prisma.XOR + /** + * Filter which Sessions to update + */ + where?: Prisma.SessionWhereInput + /** + * Limit how many Sessions to update. + */ + limit?: number +} + +/** + * Session updateManyAndReturn + */ +export type SessionUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * The data used to update Sessions. + */ + data: Prisma.XOR + /** + * Filter which Sessions to update + */ + where?: Prisma.SessionWhereInput + /** + * Limit how many Sessions to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionIncludeUpdateManyAndReturn | null +} + +/** + * Session upsert + */ +export type SessionUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * The filter to search for the Session to update in case it exists. + */ + where: Prisma.SessionWhereUniqueInput + /** + * In case the Session found by the `where` argument doesn't exist, create a new Session with this data. + */ + create: Prisma.XOR + /** + * In case the Session was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Session delete + */ +export type SessionDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter which Session to delete. + */ + where: Prisma.SessionWhereUniqueInput +} + +/** + * Session deleteMany + */ +export type SessionDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Sessions to delete + */ + where?: Prisma.SessionWhereInput + /** + * Limit how many Sessions to delete. + */ + limit?: number +} + +/** + * Session without action + */ +export type SessionDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null +} diff --git a/packages/db/src/generated/prisma/models/ShareLink.ts b/packages/db/src/generated/prisma/models/ShareLink.ts new file mode 100644 index 00000000..eb6f88ff --- /dev/null +++ b/packages/db/src/generated/prisma/models/ShareLink.ts @@ -0,0 +1,2010 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ShareLink` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model ShareLink + * + */ +export type ShareLinkModel = runtime.Types.Result.DefaultSelection + +export type AggregateShareLink = { + _count: ShareLinkCountAggregateOutputType | null + _min: ShareLinkMinAggregateOutputType | null + _max: ShareLinkMaxAggregateOutputType | null +} + +export type ShareLinkMinAggregateOutputType = { + id: string | null + name: string | null + expireAt: Date | null + password: string | null + isDisabled: boolean | null + defaultSortOrder: string | null + createdAt: Date | null + updatedAt: Date | null + projectId: string | null + rootFolderId: string | null +} + +export type ShareLinkMaxAggregateOutputType = { + id: string | null + name: string | null + expireAt: Date | null + password: string | null + isDisabled: boolean | null + defaultSortOrder: string | null + createdAt: Date | null + updatedAt: Date | null + projectId: string | null + rootFolderId: string | null +} + +export type ShareLinkCountAggregateOutputType = { + id: number + name: number + expireAt: number + password: number + isDisabled: number + defaultSortOrder: number + fieldVisibility: PrismaJson.ShareLinkFieldVisibility + createdAt: number + updatedAt: number + projectId: number + rootFolderId: number + _all: number +} + +export type ShareLinkMinAggregateInputType = { + id?: true + name?: true + expireAt?: true + password?: true + isDisabled?: true + defaultSortOrder?: true + createdAt?: true + updatedAt?: true + projectId?: true + rootFolderId?: true +} + +export type ShareLinkMaxAggregateInputType = { + id?: true + name?: true + expireAt?: true + password?: true + isDisabled?: true + defaultSortOrder?: true + createdAt?: true + updatedAt?: true + projectId?: true + rootFolderId?: true +} + +export type ShareLinkCountAggregateInputType = { + id?: true + name?: true + expireAt?: true + password?: true + isDisabled?: true + defaultSortOrder?: true + fieldVisibility?: true + createdAt?: true + updatedAt?: true + projectId?: true + rootFolderId?: true + _all?: true +} + +export type ShareLinkAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which ShareLink to aggregate. + */ + where?: Prisma.ShareLinkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ShareLinks to fetch. + */ + orderBy?: Prisma.ShareLinkOrderByWithRelationInput | Prisma.ShareLinkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ShareLinkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ShareLinks from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` ShareLinks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ShareLinks + **/ + _count?: true | ShareLinkCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ShareLinkMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ShareLinkMaxAggregateInputType +} + +export type GetShareLinkAggregateType = { + [P in keyof T & keyof AggregateShareLink]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type ShareLinkGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.ShareLinkWhereInput + orderBy?: + | Prisma.ShareLinkOrderByWithAggregationInput + | Prisma.ShareLinkOrderByWithAggregationInput[] + by: Prisma.ShareLinkScalarFieldEnum[] | Prisma.ShareLinkScalarFieldEnum + having?: Prisma.ShareLinkScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ShareLinkCountAggregateInputType | true + _min?: ShareLinkMinAggregateInputType + _max?: ShareLinkMaxAggregateInputType +} + +export type ShareLinkGroupByOutputType = { + id: string + name: string + expireAt: Date | null + password: string | null + isDisabled: boolean + defaultSortOrder: string | null + fieldVisibility: PrismaJson.ShareLinkFieldVisibility | null + createdAt: Date + updatedAt: Date + projectId: string + rootFolderId: string + _count: ShareLinkCountAggregateOutputType | null + _min: ShareLinkMinAggregateOutputType | null + _max: ShareLinkMaxAggregateOutputType | null +} + +export type GetShareLinkGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof ShareLinkGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type ShareLinkWhereInput = { + AND?: Prisma.ShareLinkWhereInput | Prisma.ShareLinkWhereInput[] + OR?: Prisma.ShareLinkWhereInput[] + NOT?: Prisma.ShareLinkWhereInput | Prisma.ShareLinkWhereInput[] + id?: Prisma.StringFilter<'ShareLink'> | string + name?: Prisma.StringFilter<'ShareLink'> | string + expireAt?: Prisma.DateTimeNullableFilter<'ShareLink'> | Date | string | null + password?: Prisma.StringNullableFilter<'ShareLink'> | string | null + isDisabled?: Prisma.BoolFilter<'ShareLink'> | boolean + defaultSortOrder?: Prisma.StringNullableFilter<'ShareLink'> | string | null + fieldVisibility?: Prisma.JsonNullableFilter<'ShareLink'> + createdAt?: Prisma.DateTimeFilter<'ShareLink'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'ShareLink'> | Date | string + projectId?: Prisma.StringFilter<'ShareLink'> | string + rootFolderId?: Prisma.StringFilter<'ShareLink'> | string + project?: Prisma.XOR + rootFolder?: Prisma.XOR +} + +export type ShareLinkOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + expireAt?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + isDisabled?: Prisma.SortOrder + defaultSortOrder?: Prisma.SortOrderInput | Prisma.SortOrder + fieldVisibility?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrder + project?: Prisma.ProjectOrderByWithRelationInput + rootFolder?: Prisma.AssetOrderByWithRelationInput +} + +export type ShareLinkWhereUniqueInput = Prisma.AtLeast< + { + id?: string + rootFolderId?: string + AND?: Prisma.ShareLinkWhereInput | Prisma.ShareLinkWhereInput[] + OR?: Prisma.ShareLinkWhereInput[] + NOT?: Prisma.ShareLinkWhereInput | Prisma.ShareLinkWhereInput[] + name?: Prisma.StringFilter<'ShareLink'> | string + expireAt?: Prisma.DateTimeNullableFilter<'ShareLink'> | Date | string | null + password?: Prisma.StringNullableFilter<'ShareLink'> | string | null + isDisabled?: Prisma.BoolFilter<'ShareLink'> | boolean + defaultSortOrder?: Prisma.StringNullableFilter<'ShareLink'> | string | null + fieldVisibility?: Prisma.JsonNullableFilter<'ShareLink'> + createdAt?: Prisma.DateTimeFilter<'ShareLink'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'ShareLink'> | Date | string + projectId?: Prisma.StringFilter<'ShareLink'> | string + project?: Prisma.XOR + rootFolder?: Prisma.XOR + }, + 'id' | 'rootFolderId' +> + +export type ShareLinkOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + expireAt?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + isDisabled?: Prisma.SortOrder + defaultSortOrder?: Prisma.SortOrderInput | Prisma.SortOrder + fieldVisibility?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrder + _count?: Prisma.ShareLinkCountOrderByAggregateInput + _max?: Prisma.ShareLinkMaxOrderByAggregateInput + _min?: Prisma.ShareLinkMinOrderByAggregateInput +} + +export type ShareLinkScalarWhereWithAggregatesInput = { + AND?: + | Prisma.ShareLinkScalarWhereWithAggregatesInput + | Prisma.ShareLinkScalarWhereWithAggregatesInput[] + OR?: Prisma.ShareLinkScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.ShareLinkScalarWhereWithAggregatesInput + | Prisma.ShareLinkScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'ShareLink'> | string + name?: Prisma.StringWithAggregatesFilter<'ShareLink'> | string + expireAt?: Prisma.DateTimeNullableWithAggregatesFilter<'ShareLink'> | Date | string | null + password?: Prisma.StringNullableWithAggregatesFilter<'ShareLink'> | string | null + isDisabled?: Prisma.BoolWithAggregatesFilter<'ShareLink'> | boolean + defaultSortOrder?: Prisma.StringNullableWithAggregatesFilter<'ShareLink'> | string | null + fieldVisibility?: Prisma.JsonNullableWithAggregatesFilter<'ShareLink'> + createdAt?: Prisma.DateTimeWithAggregatesFilter<'ShareLink'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'ShareLink'> | Date | string + projectId?: Prisma.StringWithAggregatesFilter<'ShareLink'> | string + rootFolderId?: Prisma.StringWithAggregatesFilter<'ShareLink'> | string +} + +export type ShareLinkCreateInput = { + id?: string + name: string + expireAt?: Date | string | null + password?: string | null + isDisabled?: boolean + defaultSortOrder?: string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutShareLinksInput + rootFolder: Prisma.AssetCreateNestedOneWithoutShareLinkRootFolderInput +} + +export type ShareLinkUncheckedCreateInput = { + id?: string + name: string + expireAt?: Date | string | null + password?: string | null + isDisabled?: boolean + defaultSortOrder?: string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + rootFolderId: string +} + +export type ShareLinkUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutShareLinksNestedInput + rootFolder?: Prisma.AssetUpdateOneRequiredWithoutShareLinkRootFolderNestedInput +} + +export type ShareLinkUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ShareLinkCreateManyInput = { + id?: string + name: string + expireAt?: Date | string | null + password?: string | null + isDisabled?: boolean + defaultSortOrder?: string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + projectId: string + rootFolderId: string +} + +export type ShareLinkUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ShareLinkUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string + rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ShareLinkListRelationFilter = { + every?: Prisma.ShareLinkWhereInput + some?: Prisma.ShareLinkWhereInput + none?: Prisma.ShareLinkWhereInput +} + +export type ShareLinkOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ShareLinkCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + expireAt?: Prisma.SortOrder + password?: Prisma.SortOrder + isDisabled?: Prisma.SortOrder + defaultSortOrder?: Prisma.SortOrder + fieldVisibility?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrder +} + +export type ShareLinkMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + expireAt?: Prisma.SortOrder + password?: Prisma.SortOrder + isDisabled?: Prisma.SortOrder + defaultSortOrder?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrder +} + +export type ShareLinkMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + expireAt?: Prisma.SortOrder + password?: Prisma.SortOrder + isDisabled?: Prisma.SortOrder + defaultSortOrder?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + projectId?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrder +} + +export type ShareLinkNullableScalarRelationFilter = { + is?: Prisma.ShareLinkWhereInput | null + isNot?: Prisma.ShareLinkWhereInput | null +} + +export type ShareLinkCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.ShareLinkCreateWithoutProjectInput, + Prisma.ShareLinkUncheckedCreateWithoutProjectInput + > + | Prisma.ShareLinkCreateWithoutProjectInput[] + | Prisma.ShareLinkUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.ShareLinkCreateOrConnectWithoutProjectInput + | Prisma.ShareLinkCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.ShareLinkCreateManyProjectInputEnvelope + connect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[] +} + +export type ShareLinkUncheckedCreateNestedManyWithoutProjectInput = { + create?: + | Prisma.XOR< + Prisma.ShareLinkCreateWithoutProjectInput, + Prisma.ShareLinkUncheckedCreateWithoutProjectInput + > + | Prisma.ShareLinkCreateWithoutProjectInput[] + | Prisma.ShareLinkUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.ShareLinkCreateOrConnectWithoutProjectInput + | Prisma.ShareLinkCreateOrConnectWithoutProjectInput[] + createMany?: Prisma.ShareLinkCreateManyProjectInputEnvelope + connect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[] +} + +export type ShareLinkUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.ShareLinkCreateWithoutProjectInput, + Prisma.ShareLinkUncheckedCreateWithoutProjectInput + > + | Prisma.ShareLinkCreateWithoutProjectInput[] + | Prisma.ShareLinkUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.ShareLinkCreateOrConnectWithoutProjectInput + | Prisma.ShareLinkCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.ShareLinkUpsertWithWhereUniqueWithoutProjectInput + | Prisma.ShareLinkUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.ShareLinkCreateManyProjectInputEnvelope + set?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[] + disconnect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[] + delete?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[] + connect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[] + update?: + | Prisma.ShareLinkUpdateWithWhereUniqueWithoutProjectInput + | Prisma.ShareLinkUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.ShareLinkUpdateManyWithWhereWithoutProjectInput + | Prisma.ShareLinkUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.ShareLinkScalarWhereInput | Prisma.ShareLinkScalarWhereInput[] +} + +export type ShareLinkUncheckedUpdateManyWithoutProjectNestedInput = { + create?: + | Prisma.XOR< + Prisma.ShareLinkCreateWithoutProjectInput, + Prisma.ShareLinkUncheckedCreateWithoutProjectInput + > + | Prisma.ShareLinkCreateWithoutProjectInput[] + | Prisma.ShareLinkUncheckedCreateWithoutProjectInput[] + connectOrCreate?: + | Prisma.ShareLinkCreateOrConnectWithoutProjectInput + | Prisma.ShareLinkCreateOrConnectWithoutProjectInput[] + upsert?: + | Prisma.ShareLinkUpsertWithWhereUniqueWithoutProjectInput + | Prisma.ShareLinkUpsertWithWhereUniqueWithoutProjectInput[] + createMany?: Prisma.ShareLinkCreateManyProjectInputEnvelope + set?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[] + disconnect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[] + delete?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[] + connect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[] + update?: + | Prisma.ShareLinkUpdateWithWhereUniqueWithoutProjectInput + | Prisma.ShareLinkUpdateWithWhereUniqueWithoutProjectInput[] + updateMany?: + | Prisma.ShareLinkUpdateManyWithWhereWithoutProjectInput + | Prisma.ShareLinkUpdateManyWithWhereWithoutProjectInput[] + deleteMany?: Prisma.ShareLinkScalarWhereInput | Prisma.ShareLinkScalarWhereInput[] +} + +export type ShareLinkCreateNestedOneWithoutRootFolderInput = { + create?: Prisma.XOR< + Prisma.ShareLinkCreateWithoutRootFolderInput, + Prisma.ShareLinkUncheckedCreateWithoutRootFolderInput + > + connectOrCreate?: Prisma.ShareLinkCreateOrConnectWithoutRootFolderInput + connect?: Prisma.ShareLinkWhereUniqueInput +} + +export type ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput = { + create?: Prisma.XOR< + Prisma.ShareLinkCreateWithoutRootFolderInput, + Prisma.ShareLinkUncheckedCreateWithoutRootFolderInput + > + connectOrCreate?: Prisma.ShareLinkCreateOrConnectWithoutRootFolderInput + connect?: Prisma.ShareLinkWhereUniqueInput +} + +export type ShareLinkUpdateOneWithoutRootFolderNestedInput = { + create?: Prisma.XOR< + Prisma.ShareLinkCreateWithoutRootFolderInput, + Prisma.ShareLinkUncheckedCreateWithoutRootFolderInput + > + connectOrCreate?: Prisma.ShareLinkCreateOrConnectWithoutRootFolderInput + upsert?: Prisma.ShareLinkUpsertWithoutRootFolderInput + disconnect?: Prisma.ShareLinkWhereInput | boolean + delete?: Prisma.ShareLinkWhereInput | boolean + connect?: Prisma.ShareLinkWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ShareLinkUpdateToOneWithWhereWithoutRootFolderInput, + Prisma.ShareLinkUpdateWithoutRootFolderInput + >, + Prisma.ShareLinkUncheckedUpdateWithoutRootFolderInput + > +} + +export type ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput = { + create?: Prisma.XOR< + Prisma.ShareLinkCreateWithoutRootFolderInput, + Prisma.ShareLinkUncheckedCreateWithoutRootFolderInput + > + connectOrCreate?: Prisma.ShareLinkCreateOrConnectWithoutRootFolderInput + upsert?: Prisma.ShareLinkUpsertWithoutRootFolderInput + disconnect?: Prisma.ShareLinkWhereInput | boolean + delete?: Prisma.ShareLinkWhereInput | boolean + connect?: Prisma.ShareLinkWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ShareLinkUpdateToOneWithWhereWithoutRootFolderInput, + Prisma.ShareLinkUpdateWithoutRootFolderInput + >, + Prisma.ShareLinkUncheckedUpdateWithoutRootFolderInput + > +} + +export type ShareLinkCreateWithoutProjectInput = { + id?: string + name: string + expireAt?: Date | string | null + password?: string | null + isDisabled?: boolean + defaultSortOrder?: string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolder: Prisma.AssetCreateNestedOneWithoutShareLinkRootFolderInput +} + +export type ShareLinkUncheckedCreateWithoutProjectInput = { + id?: string + name: string + expireAt?: Date | string | null + password?: string | null + isDisabled?: boolean + defaultSortOrder?: string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId: string +} + +export type ShareLinkCreateOrConnectWithoutProjectInput = { + where: Prisma.ShareLinkWhereUniqueInput + create: Prisma.XOR< + Prisma.ShareLinkCreateWithoutProjectInput, + Prisma.ShareLinkUncheckedCreateWithoutProjectInput + > +} + +export type ShareLinkCreateManyProjectInputEnvelope = { + data: Prisma.ShareLinkCreateManyProjectInput | Prisma.ShareLinkCreateManyProjectInput[] + skipDuplicates?: boolean +} + +export type ShareLinkUpsertWithWhereUniqueWithoutProjectInput = { + where: Prisma.ShareLinkWhereUniqueInput + update: Prisma.XOR< + Prisma.ShareLinkUpdateWithoutProjectInput, + Prisma.ShareLinkUncheckedUpdateWithoutProjectInput + > + create: Prisma.XOR< + Prisma.ShareLinkCreateWithoutProjectInput, + Prisma.ShareLinkUncheckedCreateWithoutProjectInput + > +} + +export type ShareLinkUpdateWithWhereUniqueWithoutProjectInput = { + where: Prisma.ShareLinkWhereUniqueInput + data: Prisma.XOR< + Prisma.ShareLinkUpdateWithoutProjectInput, + Prisma.ShareLinkUncheckedUpdateWithoutProjectInput + > +} + +export type ShareLinkUpdateManyWithWhereWithoutProjectInput = { + where: Prisma.ShareLinkScalarWhereInput + data: Prisma.XOR< + Prisma.ShareLinkUpdateManyMutationInput, + Prisma.ShareLinkUncheckedUpdateManyWithoutProjectInput + > +} + +export type ShareLinkScalarWhereInput = { + AND?: Prisma.ShareLinkScalarWhereInput | Prisma.ShareLinkScalarWhereInput[] + OR?: Prisma.ShareLinkScalarWhereInput[] + NOT?: Prisma.ShareLinkScalarWhereInput | Prisma.ShareLinkScalarWhereInput[] + id?: Prisma.StringFilter<'ShareLink'> | string + name?: Prisma.StringFilter<'ShareLink'> | string + expireAt?: Prisma.DateTimeNullableFilter<'ShareLink'> | Date | string | null + password?: Prisma.StringNullableFilter<'ShareLink'> | string | null + isDisabled?: Prisma.BoolFilter<'ShareLink'> | boolean + defaultSortOrder?: Prisma.StringNullableFilter<'ShareLink'> | string | null + fieldVisibility?: Prisma.JsonNullableFilter<'ShareLink'> + createdAt?: Prisma.DateTimeFilter<'ShareLink'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'ShareLink'> | Date | string + projectId?: Prisma.StringFilter<'ShareLink'> | string + rootFolderId?: Prisma.StringFilter<'ShareLink'> | string +} + +export type ShareLinkCreateWithoutRootFolderInput = { + id?: string + name: string + expireAt?: Date | string | null + password?: string | null + isDisabled?: boolean + defaultSortOrder?: string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + project: Prisma.ProjectCreateNestedOneWithoutShareLinksInput +} + +export type ShareLinkUncheckedCreateWithoutRootFolderInput = { + id?: string + name: string + expireAt?: Date | string | null + password?: string | null + isDisabled?: boolean + defaultSortOrder?: string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + projectId: string +} + +export type ShareLinkCreateOrConnectWithoutRootFolderInput = { + where: Prisma.ShareLinkWhereUniqueInput + create: Prisma.XOR< + Prisma.ShareLinkCreateWithoutRootFolderInput, + Prisma.ShareLinkUncheckedCreateWithoutRootFolderInput + > +} + +export type ShareLinkUpsertWithoutRootFolderInput = { + update: Prisma.XOR< + Prisma.ShareLinkUpdateWithoutRootFolderInput, + Prisma.ShareLinkUncheckedUpdateWithoutRootFolderInput + > + create: Prisma.XOR< + Prisma.ShareLinkCreateWithoutRootFolderInput, + Prisma.ShareLinkUncheckedCreateWithoutRootFolderInput + > + where?: Prisma.ShareLinkWhereInput +} + +export type ShareLinkUpdateToOneWithWhereWithoutRootFolderInput = { + where?: Prisma.ShareLinkWhereInput + data: Prisma.XOR< + Prisma.ShareLinkUpdateWithoutRootFolderInput, + Prisma.ShareLinkUncheckedUpdateWithoutRootFolderInput + > +} + +export type ShareLinkUpdateWithoutRootFolderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + project?: Prisma.ProjectUpdateOneRequiredWithoutShareLinksNestedInput +} + +export type ShareLinkUncheckedUpdateWithoutRootFolderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + projectId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ShareLinkCreateManyProjectInput = { + id?: string + name: string + expireAt?: Date | string | null + password?: string | null + isDisabled?: boolean + defaultSortOrder?: string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId: string +} + +export type ShareLinkUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolder?: Prisma.AssetUpdateOneRequiredWithoutShareLinkRootFolderNestedInput +} + +export type ShareLinkUncheckedUpdateWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ShareLinkUncheckedUpdateManyWithoutProjectInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean + defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ShareLinkSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + expireAt?: boolean + password?: boolean + isDisabled?: boolean + defaultSortOrder?: boolean + fieldVisibility?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + rootFolderId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + rootFolder?: boolean | Prisma.AssetDefaultArgs + }, + ExtArgs['result']['shareLink'] +> + +export type ShareLinkSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + expireAt?: boolean + password?: boolean + isDisabled?: boolean + defaultSortOrder?: boolean + fieldVisibility?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + rootFolderId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + rootFolder?: boolean | Prisma.AssetDefaultArgs + }, + ExtArgs['result']['shareLink'] +> + +export type ShareLinkSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + expireAt?: boolean + password?: boolean + isDisabled?: boolean + defaultSortOrder?: boolean + fieldVisibility?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + rootFolderId?: boolean + project?: boolean | Prisma.ProjectDefaultArgs + rootFolder?: boolean | Prisma.AssetDefaultArgs + }, + ExtArgs['result']['shareLink'] +> + +export type ShareLinkSelectScalar = { + id?: boolean + name?: boolean + expireAt?: boolean + password?: boolean + isDisabled?: boolean + defaultSortOrder?: boolean + fieldVisibility?: boolean + createdAt?: boolean + updatedAt?: boolean + projectId?: boolean + rootFolderId?: boolean +} + +export type ShareLinkOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'name' + | 'expireAt' + | 'password' + | 'isDisabled' + | 'defaultSortOrder' + | 'fieldVisibility' + | 'createdAt' + | 'updatedAt' + | 'projectId' + | 'rootFolderId', + ExtArgs['result']['shareLink'] +> +export type ShareLinkInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + project?: boolean | Prisma.ProjectDefaultArgs + rootFolder?: boolean | Prisma.AssetDefaultArgs +} +export type ShareLinkIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + project?: boolean | Prisma.ProjectDefaultArgs + rootFolder?: boolean | Prisma.AssetDefaultArgs +} +export type ShareLinkIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + project?: boolean | Prisma.ProjectDefaultArgs + rootFolder?: boolean | Prisma.AssetDefaultArgs +} + +export type $ShareLinkPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'ShareLink' + objects: { + project: Prisma.$ProjectPayload + rootFolder: Prisma.$AssetPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + name: string + expireAt: Date | null + password: string | null + isDisabled: boolean + defaultSortOrder: string | null + /** + * [ShareLinkFieldVisibility] + */ + fieldVisibility: PrismaJson.ShareLinkFieldVisibility | null + createdAt: Date + updatedAt: Date + projectId: string + rootFolderId: string + }, + ExtArgs['result']['shareLink'] + > + composites: {} +} + +export type ShareLinkGetPayload = + runtime.Types.Result.GetResult + +export type ShareLinkCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: ShareLinkCountAggregateInputType | true +} + +export interface ShareLinkDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['ShareLink']; meta: { name: 'ShareLink' } } + /** + * Find zero or one ShareLink that matches the filter. + * @param {ShareLinkFindUniqueArgs} args - Arguments to find a ShareLink + * @example + * // Get one ShareLink + * const shareLink = await prisma.shareLink.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ShareLinkClient< + runtime.Types.Result.GetResult< + Prisma.$ShareLinkPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one ShareLink that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ShareLinkFindUniqueOrThrowArgs} args - Arguments to find a ShareLink + * @example + * // Get one ShareLink + * const shareLink = await prisma.shareLink.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ShareLinkClient< + runtime.Types.Result.GetResult< + Prisma.$ShareLinkPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first ShareLink that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShareLinkFindFirstArgs} args - Arguments to find a ShareLink + * @example + * // Get one ShareLink + * const shareLink = await prisma.shareLink.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__ShareLinkClient< + runtime.Types.Result.GetResult< + Prisma.$ShareLinkPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first ShareLink that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShareLinkFindFirstOrThrowArgs} args - Arguments to find a ShareLink + * @example + * // Get one ShareLink + * const shareLink = await prisma.shareLink.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__ShareLinkClient< + runtime.Types.Result.GetResult< + Prisma.$ShareLinkPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more ShareLinks that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShareLinkFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all ShareLinks + * const shareLinks = await prisma.shareLink.findMany() + * + * // Get first 10 ShareLinks + * const shareLinks = await prisma.shareLink.findMany({ take: 10 }) + * + * // Only select the `id` + * const shareLinkWithIdOnly = await prisma.shareLink.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ShareLinkPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a ShareLink. + * @param {ShareLinkCreateArgs} args - Arguments to create a ShareLink. + * @example + * // Create one ShareLink + * const ShareLink = await prisma.shareLink.create({ + * data: { + * // ... data to create a ShareLink + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ShareLinkClient< + runtime.Types.Result.GetResult< + Prisma.$ShareLinkPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many ShareLinks. + * @param {ShareLinkCreateManyArgs} args - Arguments to create many ShareLinks. + * @example + * // Create many ShareLinks + * const shareLink = await prisma.shareLink.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many ShareLinks and returns the data saved in the database. + * @param {ShareLinkCreateManyAndReturnArgs} args - Arguments to create many ShareLinks. + * @example + * // Create many ShareLinks + * const shareLink = await prisma.shareLink.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many ShareLinks and only return the `id` + * const shareLinkWithIdOnly = await prisma.shareLink.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ShareLinkPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a ShareLink. + * @param {ShareLinkDeleteArgs} args - Arguments to delete one ShareLink. + * @example + * // Delete one ShareLink + * const ShareLink = await prisma.shareLink.delete({ + * where: { + * // ... filter to delete one ShareLink + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ShareLinkClient< + runtime.Types.Result.GetResult< + Prisma.$ShareLinkPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one ShareLink. + * @param {ShareLinkUpdateArgs} args - Arguments to update one ShareLink. + * @example + * // Update one ShareLink + * const shareLink = await prisma.shareLink.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ShareLinkClient< + runtime.Types.Result.GetResult< + Prisma.$ShareLinkPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more ShareLinks. + * @param {ShareLinkDeleteManyArgs} args - Arguments to filter ShareLinks to delete. + * @example + * // Delete a few ShareLinks + * const { count } = await prisma.shareLink.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more ShareLinks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShareLinkUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many ShareLinks + * const shareLink = await prisma.shareLink.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more ShareLinks and returns the data updated in the database. + * @param {ShareLinkUpdateManyAndReturnArgs} args - Arguments to update many ShareLinks. + * @example + * // Update many ShareLinks + * const shareLink = await prisma.shareLink.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more ShareLinks and only return the `id` + * const shareLinkWithIdOnly = await prisma.shareLink.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ShareLinkPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one ShareLink. + * @param {ShareLinkUpsertArgs} args - Arguments to update or create a ShareLink. + * @example + * // Update or create a ShareLink + * const shareLink = await prisma.shareLink.upsert({ + * create: { + * // ... data to create a ShareLink + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the ShareLink we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ShareLinkClient< + runtime.Types.Result.GetResult< + Prisma.$ShareLinkPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of ShareLinks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShareLinkCountArgs} args - Arguments to filter ShareLinks to count. + * @example + * // Count the number of ShareLinks + * const count = await prisma.shareLink.count({ + * where: { + * // ... the filter for the ShareLinks we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a ShareLink. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShareLinkAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by ShareLink. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShareLinkGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends ShareLinkGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ShareLinkGroupByArgs['orderBy'] } + : { orderBy?: ShareLinkGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetShareLinkGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the ShareLink model + */ + readonly fields: ShareLinkFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for ShareLink. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__ShareLinkClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + project = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ProjectClient< + | runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + rootFolder = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AssetClient< + | runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the ShareLink model + */ +export interface ShareLinkFieldRefs { + readonly id: Prisma.FieldRef<'ShareLink', 'String'> + readonly name: Prisma.FieldRef<'ShareLink', 'String'> + readonly expireAt: Prisma.FieldRef<'ShareLink', 'DateTime'> + readonly password: Prisma.FieldRef<'ShareLink', 'String'> + readonly isDisabled: Prisma.FieldRef<'ShareLink', 'Boolean'> + readonly defaultSortOrder: Prisma.FieldRef<'ShareLink', 'String'> + readonly fieldVisibility: Prisma.FieldRef<'ShareLink', 'Json'> + readonly createdAt: Prisma.FieldRef<'ShareLink', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'ShareLink', 'DateTime'> + readonly projectId: Prisma.FieldRef<'ShareLink', 'String'> + readonly rootFolderId: Prisma.FieldRef<'ShareLink', 'String'> +} + +// Custom InputTypes +/** + * ShareLink findUnique + */ +export type ShareLinkFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelect | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkInclude | null + /** + * Filter, which ShareLink to fetch. + */ + where: Prisma.ShareLinkWhereUniqueInput +} + +/** + * ShareLink findUniqueOrThrow + */ +export type ShareLinkFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelect | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkInclude | null + /** + * Filter, which ShareLink to fetch. + */ + where: Prisma.ShareLinkWhereUniqueInput +} + +/** + * ShareLink findFirst + */ +export type ShareLinkFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelect | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkInclude | null + /** + * Filter, which ShareLink to fetch. + */ + where?: Prisma.ShareLinkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ShareLinks to fetch. + */ + orderBy?: Prisma.ShareLinkOrderByWithRelationInput | Prisma.ShareLinkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ShareLinks. + */ + cursor?: Prisma.ShareLinkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ShareLinks from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` ShareLinks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ShareLinks. + */ + distinct?: Prisma.ShareLinkScalarFieldEnum | Prisma.ShareLinkScalarFieldEnum[] +} + +/** + * ShareLink findFirstOrThrow + */ +export type ShareLinkFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelect | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkInclude | null + /** + * Filter, which ShareLink to fetch. + */ + where?: Prisma.ShareLinkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ShareLinks to fetch. + */ + orderBy?: Prisma.ShareLinkOrderByWithRelationInput | Prisma.ShareLinkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ShareLinks. + */ + cursor?: Prisma.ShareLinkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ShareLinks from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` ShareLinks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ShareLinks. + */ + distinct?: Prisma.ShareLinkScalarFieldEnum | Prisma.ShareLinkScalarFieldEnum[] +} + +/** + * ShareLink findMany + */ +export type ShareLinkFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelect | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkInclude | null + /** + * Filter, which ShareLinks to fetch. + */ + where?: Prisma.ShareLinkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ShareLinks to fetch. + */ + orderBy?: Prisma.ShareLinkOrderByWithRelationInput | Prisma.ShareLinkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ShareLinks. + */ + cursor?: Prisma.ShareLinkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ShareLinks from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` ShareLinks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ShareLinks. + */ + distinct?: Prisma.ShareLinkScalarFieldEnum | Prisma.ShareLinkScalarFieldEnum[] +} + +/** + * ShareLink create + */ +export type ShareLinkCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelect | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkInclude | null + /** + * The data needed to create a ShareLink. + */ + data: Prisma.XOR +} + +/** + * ShareLink createMany + */ +export type ShareLinkCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many ShareLinks. + */ + data: Prisma.ShareLinkCreateManyInput | Prisma.ShareLinkCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ShareLink createManyAndReturn + */ +export type ShareLinkCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelectCreateManyAndReturn | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * The data used to create many ShareLinks. + */ + data: Prisma.ShareLinkCreateManyInput | Prisma.ShareLinkCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkIncludeCreateManyAndReturn | null +} + +/** + * ShareLink update + */ +export type ShareLinkUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelect | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkInclude | null + /** + * The data needed to update a ShareLink. + */ + data: Prisma.XOR + /** + * Choose, which ShareLink to update. + */ + where: Prisma.ShareLinkWhereUniqueInput +} + +/** + * ShareLink updateMany + */ +export type ShareLinkUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update ShareLinks. + */ + data: Prisma.XOR< + Prisma.ShareLinkUpdateManyMutationInput, + Prisma.ShareLinkUncheckedUpdateManyInput + > + /** + * Filter which ShareLinks to update + */ + where?: Prisma.ShareLinkWhereInput + /** + * Limit how many ShareLinks to update. + */ + limit?: number +} + +/** + * ShareLink updateManyAndReturn + */ +export type ShareLinkUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * The data used to update ShareLinks. + */ + data: Prisma.XOR< + Prisma.ShareLinkUpdateManyMutationInput, + Prisma.ShareLinkUncheckedUpdateManyInput + > + /** + * Filter which ShareLinks to update + */ + where?: Prisma.ShareLinkWhereInput + /** + * Limit how many ShareLinks to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkIncludeUpdateManyAndReturn | null +} + +/** + * ShareLink upsert + */ +export type ShareLinkUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelect | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkInclude | null + /** + * The filter to search for the ShareLink to update in case it exists. + */ + where: Prisma.ShareLinkWhereUniqueInput + /** + * In case the ShareLink found by the `where` argument doesn't exist, create a new ShareLink with this data. + */ + create: Prisma.XOR + /** + * In case the ShareLink was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ShareLink delete + */ +export type ShareLinkDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelect | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkInclude | null + /** + * Filter which ShareLink to delete. + */ + where: Prisma.ShareLinkWhereUniqueInput +} + +/** + * ShareLink deleteMany + */ +export type ShareLinkDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which ShareLinks to delete + */ + where?: Prisma.ShareLinkWhereInput + /** + * Limit how many ShareLinks to delete. + */ + limit?: number +} + +/** + * ShareLink without action + */ +export type ShareLinkDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ShareLink + */ + select?: Prisma.ShareLinkSelect | null + /** + * Omit specific fields from the ShareLink + */ + omit?: Prisma.ShareLinkOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShareLinkInclude | null +} diff --git a/packages/db/src/generated/prisma/models/Skill.ts b/packages/db/src/generated/prisma/models/Skill.ts new file mode 100644 index 00000000..26bd6c06 --- /dev/null +++ b/packages/db/src/generated/prisma/models/Skill.ts @@ -0,0 +1,1923 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Skill` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Skill + * + */ +export type SkillModel = runtime.Types.Result.DefaultSelection + +export type AggregateSkill = { + _count: SkillCountAggregateOutputType | null + _min: SkillMinAggregateOutputType | null + _max: SkillMaxAggregateOutputType | null +} + +export type SkillMinAggregateOutputType = { + id: string | null + name: string | null + description: string | null + assetId: string | null + hash: string | null + createdAt: Date | null + updatedAt: Date | null + teamId: string | null +} + +export type SkillMaxAggregateOutputType = { + id: string | null + name: string | null + description: string | null + assetId: string | null + hash: string | null + createdAt: Date | null + updatedAt: Date | null + teamId: string | null +} + +export type SkillCountAggregateOutputType = { + id: number + name: number + description: number + config: PrismaJson.SkillConfig + assetId: number + hash: number + createdAt: number + updatedAt: number + teamId: number + _all: number +} + +export type SkillMinAggregateInputType = { + id?: true + name?: true + description?: true + assetId?: true + hash?: true + createdAt?: true + updatedAt?: true + teamId?: true +} + +export type SkillMaxAggregateInputType = { + id?: true + name?: true + description?: true + assetId?: true + hash?: true + createdAt?: true + updatedAt?: true + teamId?: true +} + +export type SkillCountAggregateInputType = { + id?: true + name?: true + description?: true + config?: true + assetId?: true + hash?: true + createdAt?: true + updatedAt?: true + teamId?: true + _all?: true +} + +export type SkillAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Skill to aggregate. + */ + where?: Prisma.SkillWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Skills to fetch. + */ + orderBy?: Prisma.SkillOrderByWithRelationInput | Prisma.SkillOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.SkillWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Skills from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Skills. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Skills + **/ + _count?: true | SkillCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: SkillMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: SkillMaxAggregateInputType +} + +export type GetSkillAggregateType = { + [P in keyof T & keyof AggregateSkill]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type SkillGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.SkillWhereInput + orderBy?: Prisma.SkillOrderByWithAggregationInput | Prisma.SkillOrderByWithAggregationInput[] + by: Prisma.SkillScalarFieldEnum[] | Prisma.SkillScalarFieldEnum + having?: Prisma.SkillScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: SkillCountAggregateInputType | true + _min?: SkillMinAggregateInputType + _max?: SkillMaxAggregateInputType +} + +export type SkillGroupByOutputType = { + id: string + name: string + description: string | null + config: PrismaJson.SkillConfig | null + assetId: string + hash: string + createdAt: Date + updatedAt: Date + teamId: string + _count: SkillCountAggregateOutputType | null + _min: SkillMinAggregateOutputType | null + _max: SkillMaxAggregateOutputType | null +} + +export type GetSkillGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof SkillGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type SkillWhereInput = { + AND?: Prisma.SkillWhereInput | Prisma.SkillWhereInput[] + OR?: Prisma.SkillWhereInput[] + NOT?: Prisma.SkillWhereInput | Prisma.SkillWhereInput[] + id?: Prisma.StringFilter<'Skill'> | string + name?: Prisma.StringFilter<'Skill'> | string + description?: Prisma.StringNullableFilter<'Skill'> | string | null + config?: Prisma.JsonNullableFilter<'Skill'> + assetId?: Prisma.StringFilter<'Skill'> | string + hash?: Prisma.StringFilter<'Skill'> | string + createdAt?: Prisma.DateTimeFilter<'Skill'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Skill'> | Date | string + teamId?: Prisma.StringFilter<'Skill'> | string + team?: Prisma.XOR + agentSkills?: Prisma.AgentSkillListRelationFilter +} + +export type SkillOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + config?: Prisma.SortOrderInput | Prisma.SortOrder + assetId?: Prisma.SortOrder + hash?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + team?: Prisma.TeamOrderByWithRelationInput + agentSkills?: Prisma.AgentSkillOrderByRelationAggregateInput +} + +export type SkillWhereUniqueInput = Prisma.AtLeast< + { + id?: string + teamId_name?: Prisma.SkillTeamIdNameCompoundUniqueInput + AND?: Prisma.SkillWhereInput | Prisma.SkillWhereInput[] + OR?: Prisma.SkillWhereInput[] + NOT?: Prisma.SkillWhereInput | Prisma.SkillWhereInput[] + name?: Prisma.StringFilter<'Skill'> | string + description?: Prisma.StringNullableFilter<'Skill'> | string | null + config?: Prisma.JsonNullableFilter<'Skill'> + assetId?: Prisma.StringFilter<'Skill'> | string + hash?: Prisma.StringFilter<'Skill'> | string + createdAt?: Prisma.DateTimeFilter<'Skill'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Skill'> | Date | string + teamId?: Prisma.StringFilter<'Skill'> | string + team?: Prisma.XOR + agentSkills?: Prisma.AgentSkillListRelationFilter + }, + 'id' | 'teamId_name' +> + +export type SkillOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + config?: Prisma.SortOrderInput | Prisma.SortOrder + assetId?: Prisma.SortOrder + hash?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder + _count?: Prisma.SkillCountOrderByAggregateInput + _max?: Prisma.SkillMaxOrderByAggregateInput + _min?: Prisma.SkillMinOrderByAggregateInput +} + +export type SkillScalarWhereWithAggregatesInput = { + AND?: Prisma.SkillScalarWhereWithAggregatesInput | Prisma.SkillScalarWhereWithAggregatesInput[] + OR?: Prisma.SkillScalarWhereWithAggregatesInput[] + NOT?: Prisma.SkillScalarWhereWithAggregatesInput | Prisma.SkillScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Skill'> | string + name?: Prisma.StringWithAggregatesFilter<'Skill'> | string + description?: Prisma.StringNullableWithAggregatesFilter<'Skill'> | string | null + config?: Prisma.JsonNullableWithAggregatesFilter<'Skill'> + assetId?: Prisma.StringWithAggregatesFilter<'Skill'> | string + hash?: Prisma.StringWithAggregatesFilter<'Skill'> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Skill'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Skill'> | Date | string + teamId?: Prisma.StringWithAggregatesFilter<'Skill'> | string +} + +export type SkillCreateInput = { + id?: string + name: string + description?: string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId: string + hash: string + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutSkillsInput + agentSkills?: Prisma.AgentSkillCreateNestedManyWithoutSkillInput +} + +export type SkillUncheckedCreateInput = { + id?: string + name: string + description?: string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId: string + hash: string + createdAt?: Date | string + updatedAt?: Date | string + teamId: string + agentSkills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutSkillInput +} + +export type SkillUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId?: Prisma.StringFieldUpdateOperationsInput | string + hash?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutSkillsNestedInput + agentSkills?: Prisma.AgentSkillUpdateManyWithoutSkillNestedInput +} + +export type SkillUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId?: Prisma.StringFieldUpdateOperationsInput | string + hash?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string + agentSkills?: Prisma.AgentSkillUncheckedUpdateManyWithoutSkillNestedInput +} + +export type SkillCreateManyInput = { + id?: string + name: string + description?: string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId: string + hash: string + createdAt?: Date | string + updatedAt?: Date | string + teamId: string +} + +export type SkillUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId?: Prisma.StringFieldUpdateOperationsInput | string + hash?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SkillUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId?: Prisma.StringFieldUpdateOperationsInput | string + hash?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type SkillListRelationFilter = { + every?: Prisma.SkillWhereInput + some?: Prisma.SkillWhereInput + none?: Prisma.SkillWhereInput +} + +export type SkillOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type SkillTeamIdNameCompoundUniqueInput = { + teamId: string + name: string +} + +export type SkillCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + config?: Prisma.SortOrder + assetId?: Prisma.SortOrder + hash?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder +} + +export type SkillMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + assetId?: Prisma.SortOrder + hash?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder +} + +export type SkillMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + assetId?: Prisma.SortOrder + hash?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + teamId?: Prisma.SortOrder +} + +export type SkillScalarRelationFilter = { + is?: Prisma.SkillWhereInput + isNot?: Prisma.SkillWhereInput +} + +export type SkillCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR + | Prisma.SkillCreateWithoutTeamInput[] + | Prisma.SkillUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.SkillCreateOrConnectWithoutTeamInput + | Prisma.SkillCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.SkillCreateManyTeamInputEnvelope + connect?: Prisma.SkillWhereUniqueInput | Prisma.SkillWhereUniqueInput[] +} + +export type SkillUncheckedCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR + | Prisma.SkillCreateWithoutTeamInput[] + | Prisma.SkillUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.SkillCreateOrConnectWithoutTeamInput + | Prisma.SkillCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.SkillCreateManyTeamInputEnvelope + connect?: Prisma.SkillWhereUniqueInput | Prisma.SkillWhereUniqueInput[] +} + +export type SkillUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR + | Prisma.SkillCreateWithoutTeamInput[] + | Prisma.SkillUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.SkillCreateOrConnectWithoutTeamInput + | Prisma.SkillCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.SkillUpsertWithWhereUniqueWithoutTeamInput + | Prisma.SkillUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.SkillCreateManyTeamInputEnvelope + set?: Prisma.SkillWhereUniqueInput | Prisma.SkillWhereUniqueInput[] + disconnect?: Prisma.SkillWhereUniqueInput | Prisma.SkillWhereUniqueInput[] + delete?: Prisma.SkillWhereUniqueInput | Prisma.SkillWhereUniqueInput[] + connect?: Prisma.SkillWhereUniqueInput | Prisma.SkillWhereUniqueInput[] + update?: + | Prisma.SkillUpdateWithWhereUniqueWithoutTeamInput + | Prisma.SkillUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.SkillUpdateManyWithWhereWithoutTeamInput + | Prisma.SkillUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.SkillScalarWhereInput | Prisma.SkillScalarWhereInput[] +} + +export type SkillUncheckedUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR + | Prisma.SkillCreateWithoutTeamInput[] + | Prisma.SkillUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.SkillCreateOrConnectWithoutTeamInput + | Prisma.SkillCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.SkillUpsertWithWhereUniqueWithoutTeamInput + | Prisma.SkillUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.SkillCreateManyTeamInputEnvelope + set?: Prisma.SkillWhereUniqueInput | Prisma.SkillWhereUniqueInput[] + disconnect?: Prisma.SkillWhereUniqueInput | Prisma.SkillWhereUniqueInput[] + delete?: Prisma.SkillWhereUniqueInput | Prisma.SkillWhereUniqueInput[] + connect?: Prisma.SkillWhereUniqueInput | Prisma.SkillWhereUniqueInput[] + update?: + | Prisma.SkillUpdateWithWhereUniqueWithoutTeamInput + | Prisma.SkillUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.SkillUpdateManyWithWhereWithoutTeamInput + | Prisma.SkillUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.SkillScalarWhereInput | Prisma.SkillScalarWhereInput[] +} + +export type SkillCreateNestedOneWithoutAgentSkillsInput = { + create?: Prisma.XOR< + Prisma.SkillCreateWithoutAgentSkillsInput, + Prisma.SkillUncheckedCreateWithoutAgentSkillsInput + > + connectOrCreate?: Prisma.SkillCreateOrConnectWithoutAgentSkillsInput + connect?: Prisma.SkillWhereUniqueInput +} + +export type SkillUpdateOneRequiredWithoutAgentSkillsNestedInput = { + create?: Prisma.XOR< + Prisma.SkillCreateWithoutAgentSkillsInput, + Prisma.SkillUncheckedCreateWithoutAgentSkillsInput + > + connectOrCreate?: Prisma.SkillCreateOrConnectWithoutAgentSkillsInput + upsert?: Prisma.SkillUpsertWithoutAgentSkillsInput + connect?: Prisma.SkillWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.SkillUpdateToOneWithWhereWithoutAgentSkillsInput, + Prisma.SkillUpdateWithoutAgentSkillsInput + >, + Prisma.SkillUncheckedUpdateWithoutAgentSkillsInput + > +} + +export type SkillCreateWithoutTeamInput = { + id?: string + name: string + description?: string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId: string + hash: string + createdAt?: Date | string + updatedAt?: Date | string + agentSkills?: Prisma.AgentSkillCreateNestedManyWithoutSkillInput +} + +export type SkillUncheckedCreateWithoutTeamInput = { + id?: string + name: string + description?: string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId: string + hash: string + createdAt?: Date | string + updatedAt?: Date | string + agentSkills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutSkillInput +} + +export type SkillCreateOrConnectWithoutTeamInput = { + where: Prisma.SkillWhereUniqueInput + create: Prisma.XOR< + Prisma.SkillCreateWithoutTeamInput, + Prisma.SkillUncheckedCreateWithoutTeamInput + > +} + +export type SkillCreateManyTeamInputEnvelope = { + data: Prisma.SkillCreateManyTeamInput | Prisma.SkillCreateManyTeamInput[] + skipDuplicates?: boolean +} + +export type SkillUpsertWithWhereUniqueWithoutTeamInput = { + where: Prisma.SkillWhereUniqueInput + update: Prisma.XOR< + Prisma.SkillUpdateWithoutTeamInput, + Prisma.SkillUncheckedUpdateWithoutTeamInput + > + create: Prisma.XOR< + Prisma.SkillCreateWithoutTeamInput, + Prisma.SkillUncheckedCreateWithoutTeamInput + > +} + +export type SkillUpdateWithWhereUniqueWithoutTeamInput = { + where: Prisma.SkillWhereUniqueInput + data: Prisma.XOR +} + +export type SkillUpdateManyWithWhereWithoutTeamInput = { + where: Prisma.SkillScalarWhereInput + data: Prisma.XOR< + Prisma.SkillUpdateManyMutationInput, + Prisma.SkillUncheckedUpdateManyWithoutTeamInput + > +} + +export type SkillScalarWhereInput = { + AND?: Prisma.SkillScalarWhereInput | Prisma.SkillScalarWhereInput[] + OR?: Prisma.SkillScalarWhereInput[] + NOT?: Prisma.SkillScalarWhereInput | Prisma.SkillScalarWhereInput[] + id?: Prisma.StringFilter<'Skill'> | string + name?: Prisma.StringFilter<'Skill'> | string + description?: Prisma.StringNullableFilter<'Skill'> | string | null + config?: Prisma.JsonNullableFilter<'Skill'> + assetId?: Prisma.StringFilter<'Skill'> | string + hash?: Prisma.StringFilter<'Skill'> | string + createdAt?: Prisma.DateTimeFilter<'Skill'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Skill'> | Date | string + teamId?: Prisma.StringFilter<'Skill'> | string +} + +export type SkillCreateWithoutAgentSkillsInput = { + id?: string + name: string + description?: string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId: string + hash: string + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutSkillsInput +} + +export type SkillUncheckedCreateWithoutAgentSkillsInput = { + id?: string + name: string + description?: string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId: string + hash: string + createdAt?: Date | string + updatedAt?: Date | string + teamId: string +} + +export type SkillCreateOrConnectWithoutAgentSkillsInput = { + where: Prisma.SkillWhereUniqueInput + create: Prisma.XOR< + Prisma.SkillCreateWithoutAgentSkillsInput, + Prisma.SkillUncheckedCreateWithoutAgentSkillsInput + > +} + +export type SkillUpsertWithoutAgentSkillsInput = { + update: Prisma.XOR< + Prisma.SkillUpdateWithoutAgentSkillsInput, + Prisma.SkillUncheckedUpdateWithoutAgentSkillsInput + > + create: Prisma.XOR< + Prisma.SkillCreateWithoutAgentSkillsInput, + Prisma.SkillUncheckedCreateWithoutAgentSkillsInput + > + where?: Prisma.SkillWhereInput +} + +export type SkillUpdateToOneWithWhereWithoutAgentSkillsInput = { + where?: Prisma.SkillWhereInput + data: Prisma.XOR< + Prisma.SkillUpdateWithoutAgentSkillsInput, + Prisma.SkillUncheckedUpdateWithoutAgentSkillsInput + > +} + +export type SkillUpdateWithoutAgentSkillsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId?: Prisma.StringFieldUpdateOperationsInput | string + hash?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutSkillsNestedInput +} + +export type SkillUncheckedUpdateWithoutAgentSkillsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId?: Prisma.StringFieldUpdateOperationsInput | string + hash?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type SkillCreateManyTeamInput = { + id?: string + name: string + description?: string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId: string + hash: string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type SkillUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId?: Prisma.StringFieldUpdateOperationsInput | string + hash?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agentSkills?: Prisma.AgentSkillUpdateManyWithoutSkillNestedInput +} + +export type SkillUncheckedUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId?: Prisma.StringFieldUpdateOperationsInput | string + hash?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + agentSkills?: Prisma.AgentSkillUncheckedUpdateManyWithoutSkillNestedInput +} + +export type SkillUncheckedUpdateManyWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + config?: PrismaJson.SkillConfig | Prisma.NullableJsonNullValueInput + assetId?: Prisma.StringFieldUpdateOperationsInput | string + hash?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +/** + * Count Type SkillCountOutputType + */ + +export type SkillCountOutputType = { + agentSkills: number +} + +export type SkillCountOutputTypeSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + agentSkills?: boolean | SkillCountOutputTypeCountAgentSkillsArgs +} + +/** + * SkillCountOutputType without action + */ +export type SkillCountOutputTypeDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the SkillCountOutputType + */ + select?: Prisma.SkillCountOutputTypeSelect | null +} + +/** + * SkillCountOutputType without action + */ +export type SkillCountOutputTypeCountAgentSkillsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AgentSkillWhereInput +} + +export type SkillSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + description?: boolean + config?: boolean + assetId?: boolean + hash?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + agentSkills?: boolean | Prisma.Skill$agentSkillsArgs + _count?: boolean | Prisma.SkillCountOutputTypeDefaultArgs + }, + ExtArgs['result']['skill'] +> + +export type SkillSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + description?: boolean + config?: boolean + assetId?: boolean + hash?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + }, + ExtArgs['result']['skill'] +> + +export type SkillSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + description?: boolean + config?: boolean + assetId?: boolean + hash?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + }, + ExtArgs['result']['skill'] +> + +export type SkillSelectScalar = { + id?: boolean + name?: boolean + description?: boolean + config?: boolean + assetId?: boolean + hash?: boolean + createdAt?: boolean + updatedAt?: boolean + teamId?: boolean +} + +export type SkillOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'name' + | 'description' + | 'config' + | 'assetId' + | 'hash' + | 'createdAt' + | 'updatedAt' + | 'teamId', + ExtArgs['result']['skill'] +> +export type SkillInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + agentSkills?: boolean | Prisma.Skill$agentSkillsArgs + _count?: boolean | Prisma.SkillCountOutputTypeDefaultArgs +} +export type SkillIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs +} +export type SkillIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs +} + +export type $SkillPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Skill' + objects: { + team: Prisma.$TeamPayload + agentSkills: Prisma.$AgentSkillPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + name: string + description: string | null + /** + * [SkillConfig] + */ + config: PrismaJson.SkillConfig | null + assetId: string + hash: string + createdAt: Date + updatedAt: Date + teamId: string + }, + ExtArgs['result']['skill'] + > + composites: {} +} + +export type SkillGetPayload = + runtime.Types.Result.GetResult + +export type SkillCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: SkillCountAggregateInputType | true +} + +export interface SkillDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['Skill']; meta: { name: 'Skill' } } + /** + * Find zero or one Skill that matches the filter. + * @param {SkillFindUniqueArgs} args - Arguments to find a Skill + * @example + * // Get one Skill + * const skill = await prisma.skill.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SkillClient< + runtime.Types.Result.GetResult< + Prisma.$SkillPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Skill that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {SkillFindUniqueOrThrowArgs} args - Arguments to find a Skill + * @example + * // Get one Skill + * const skill = await prisma.skill.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SkillClient< + runtime.Types.Result.GetResult< + Prisma.$SkillPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Skill that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SkillFindFirstArgs} args - Arguments to find a Skill + * @example + * // Get one Skill + * const skill = await prisma.skill.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__SkillClient< + runtime.Types.Result.GetResult< + Prisma.$SkillPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Skill that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SkillFindFirstOrThrowArgs} args - Arguments to find a Skill + * @example + * // Get one Skill + * const skill = await prisma.skill.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__SkillClient< + runtime.Types.Result.GetResult< + Prisma.$SkillPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Skills that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SkillFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Skills + * const skills = await prisma.skill.findMany() + * + * // Get first 10 Skills + * const skills = await prisma.skill.findMany({ take: 10 }) + * + * // Only select the `id` + * const skillWithIdOnly = await prisma.skill.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult, T, 'findMany', GlobalOmitOptions> + > + + /** + * Create a Skill. + * @param {SkillCreateArgs} args - Arguments to create a Skill. + * @example + * // Create one Skill + * const Skill = await prisma.skill.create({ + * data: { + * // ... data to create a Skill + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SkillClient< + runtime.Types.Result.GetResult, T, 'create', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Skills. + * @param {SkillCreateManyArgs} args - Arguments to create many Skills. + * @example + * // Create many Skills + * const skill = await prisma.skill.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Skills and returns the data saved in the database. + * @param {SkillCreateManyAndReturnArgs} args - Arguments to create many Skills. + * @example + * // Create many Skills + * const skill = await prisma.skill.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Skills and only return the `id` + * const skillWithIdOnly = await prisma.skill.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$SkillPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Skill. + * @param {SkillDeleteArgs} args - Arguments to delete one Skill. + * @example + * // Delete one Skill + * const Skill = await prisma.skill.delete({ + * where: { + * // ... filter to delete one Skill + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SkillClient< + runtime.Types.Result.GetResult, T, 'delete', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Skill. + * @param {SkillUpdateArgs} args - Arguments to update one Skill. + * @example + * // Update one Skill + * const skill = await prisma.skill.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SkillClient< + runtime.Types.Result.GetResult, T, 'update', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Skills. + * @param {SkillDeleteManyArgs} args - Arguments to filter Skills to delete. + * @example + * // Delete a few Skills + * const { count } = await prisma.skill.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Skills. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SkillUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Skills + * const skill = await prisma.skill.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Skills and returns the data updated in the database. + * @param {SkillUpdateManyAndReturnArgs} args - Arguments to update many Skills. + * @example + * // Update many Skills + * const skill = await prisma.skill.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Skills and only return the `id` + * const skillWithIdOnly = await prisma.skill.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$SkillPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Skill. + * @param {SkillUpsertArgs} args - Arguments to update or create a Skill. + * @example + * // Update or create a Skill + * const skill = await prisma.skill.upsert({ + * create: { + * // ... data to create a Skill + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Skill we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SkillClient< + runtime.Types.Result.GetResult, T, 'upsert', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Skills. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SkillCountArgs} args - Arguments to filter Skills to count. + * @example + * // Count the number of Skills + * const count = await prisma.skill.count({ + * where: { + * // ... the filter for the Skills we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Skill. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SkillAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Skill. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SkillGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends SkillGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: SkillGroupByArgs['orderBy'] } + : { orderBy?: SkillGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetSkillGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Skill model + */ + readonly fields: SkillFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Skill. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__SkillClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + team = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TeamClient< + | runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + agentSkills = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AgentSkillPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Skill model + */ +export interface SkillFieldRefs { + readonly id: Prisma.FieldRef<'Skill', 'String'> + readonly name: Prisma.FieldRef<'Skill', 'String'> + readonly description: Prisma.FieldRef<'Skill', 'String'> + readonly config: Prisma.FieldRef<'Skill', 'Json'> + readonly assetId: Prisma.FieldRef<'Skill', 'String'> + readonly hash: Prisma.FieldRef<'Skill', 'String'> + readonly createdAt: Prisma.FieldRef<'Skill', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Skill', 'DateTime'> + readonly teamId: Prisma.FieldRef<'Skill', 'String'> +} + +// Custom InputTypes +/** + * Skill findUnique + */ +export type SkillFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Skill + */ + select?: Prisma.SkillSelect | null + /** + * Omit specific fields from the Skill + */ + omit?: Prisma.SkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SkillInclude | null + /** + * Filter, which Skill to fetch. + */ + where: Prisma.SkillWhereUniqueInput +} + +/** + * Skill findUniqueOrThrow + */ +export type SkillFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Skill + */ + select?: Prisma.SkillSelect | null + /** + * Omit specific fields from the Skill + */ + omit?: Prisma.SkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SkillInclude | null + /** + * Filter, which Skill to fetch. + */ + where: Prisma.SkillWhereUniqueInput +} + +/** + * Skill findFirst + */ +export type SkillFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Skill + */ + select?: Prisma.SkillSelect | null + /** + * Omit specific fields from the Skill + */ + omit?: Prisma.SkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SkillInclude | null + /** + * Filter, which Skill to fetch. + */ + where?: Prisma.SkillWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Skills to fetch. + */ + orderBy?: Prisma.SkillOrderByWithRelationInput | Prisma.SkillOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Skills. + */ + cursor?: Prisma.SkillWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Skills from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Skills. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Skills. + */ + distinct?: Prisma.SkillScalarFieldEnum | Prisma.SkillScalarFieldEnum[] +} + +/** + * Skill findFirstOrThrow + */ +export type SkillFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Skill + */ + select?: Prisma.SkillSelect | null + /** + * Omit specific fields from the Skill + */ + omit?: Prisma.SkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SkillInclude | null + /** + * Filter, which Skill to fetch. + */ + where?: Prisma.SkillWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Skills to fetch. + */ + orderBy?: Prisma.SkillOrderByWithRelationInput | Prisma.SkillOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Skills. + */ + cursor?: Prisma.SkillWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Skills from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Skills. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Skills. + */ + distinct?: Prisma.SkillScalarFieldEnum | Prisma.SkillScalarFieldEnum[] +} + +/** + * Skill findMany + */ +export type SkillFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Skill + */ + select?: Prisma.SkillSelect | null + /** + * Omit specific fields from the Skill + */ + omit?: Prisma.SkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SkillInclude | null + /** + * Filter, which Skills to fetch. + */ + where?: Prisma.SkillWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Skills to fetch. + */ + orderBy?: Prisma.SkillOrderByWithRelationInput | Prisma.SkillOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Skills. + */ + cursor?: Prisma.SkillWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Skills from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Skills. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Skills. + */ + distinct?: Prisma.SkillScalarFieldEnum | Prisma.SkillScalarFieldEnum[] +} + +/** + * Skill create + */ +export type SkillCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Skill + */ + select?: Prisma.SkillSelect | null + /** + * Omit specific fields from the Skill + */ + omit?: Prisma.SkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SkillInclude | null + /** + * The data needed to create a Skill. + */ + data: Prisma.XOR +} + +/** + * Skill createMany + */ +export type SkillCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Skills. + */ + data: Prisma.SkillCreateManyInput | Prisma.SkillCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Skill createManyAndReturn + */ +export type SkillCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Skill + */ + select?: Prisma.SkillSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Skill + */ + omit?: Prisma.SkillOmit | null + /** + * The data used to create many Skills. + */ + data: Prisma.SkillCreateManyInput | Prisma.SkillCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SkillIncludeCreateManyAndReturn | null +} + +/** + * Skill update + */ +export type SkillUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Skill + */ + select?: Prisma.SkillSelect | null + /** + * Omit specific fields from the Skill + */ + omit?: Prisma.SkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SkillInclude | null + /** + * The data needed to update a Skill. + */ + data: Prisma.XOR + /** + * Choose, which Skill to update. + */ + where: Prisma.SkillWhereUniqueInput +} + +/** + * Skill updateMany + */ +export type SkillUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Skills. + */ + data: Prisma.XOR + /** + * Filter which Skills to update + */ + where?: Prisma.SkillWhereInput + /** + * Limit how many Skills to update. + */ + limit?: number +} + +/** + * Skill updateManyAndReturn + */ +export type SkillUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Skill + */ + select?: Prisma.SkillSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Skill + */ + omit?: Prisma.SkillOmit | null + /** + * The data used to update Skills. + */ + data: Prisma.XOR + /** + * Filter which Skills to update + */ + where?: Prisma.SkillWhereInput + /** + * Limit how many Skills to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SkillIncludeUpdateManyAndReturn | null +} + +/** + * Skill upsert + */ +export type SkillUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Skill + */ + select?: Prisma.SkillSelect | null + /** + * Omit specific fields from the Skill + */ + omit?: Prisma.SkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SkillInclude | null + /** + * The filter to search for the Skill to update in case it exists. + */ + where: Prisma.SkillWhereUniqueInput + /** + * In case the Skill found by the `where` argument doesn't exist, create a new Skill with this data. + */ + create: Prisma.XOR + /** + * In case the Skill was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Skill delete + */ +export type SkillDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Skill + */ + select?: Prisma.SkillSelect | null + /** + * Omit specific fields from the Skill + */ + omit?: Prisma.SkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SkillInclude | null + /** + * Filter which Skill to delete. + */ + where: Prisma.SkillWhereUniqueInput +} + +/** + * Skill deleteMany + */ +export type SkillDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Skills to delete + */ + where?: Prisma.SkillWhereInput + /** + * Limit how many Skills to delete. + */ + limit?: number +} + +/** + * Skill.agentSkills + */ +export type Skill$agentSkillsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSkill + */ + select?: Prisma.AgentSkillSelect | null + /** + * Omit specific fields from the AgentSkill + */ + omit?: Prisma.AgentSkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSkillInclude | null + where?: Prisma.AgentSkillWhereInput + orderBy?: Prisma.AgentSkillOrderByWithRelationInput | Prisma.AgentSkillOrderByWithRelationInput[] + cursor?: Prisma.AgentSkillWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AgentSkillScalarFieldEnum | Prisma.AgentSkillScalarFieldEnum[] +} + +/** + * Skill without action + */ +export type SkillDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Skill + */ + select?: Prisma.SkillSelect | null + /** + * Omit specific fields from the Skill + */ + omit?: Prisma.SkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SkillInclude | null +} diff --git a/packages/db/src/generated/prisma/models/StorageKey.ts b/packages/db/src/generated/prisma/models/StorageKey.ts new file mode 100644 index 00000000..e2fdb25a --- /dev/null +++ b/packages/db/src/generated/prisma/models/StorageKey.ts @@ -0,0 +1,1590 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `StorageKey` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model StorageKey + * + */ +export type StorageKeyModel = runtime.Types.Result.DefaultSelection + +export type AggregateStorageKey = { + _count: StorageKeyCountAggregateOutputType | null + _min: StorageKeyMinAggregateOutputType | null + _max: StorageKeyMaxAggregateOutputType | null +} + +export type StorageKeyMinAggregateOutputType = { + id: string | null + key: string | null + status: $Enums.StorageKeyStatus | null + createdAt: Date | null + updatedAt: Date | null +} + +export type StorageKeyMaxAggregateOutputType = { + id: string | null + key: string | null + status: $Enums.StorageKeyStatus | null + createdAt: Date | null + updatedAt: Date | null +} + +export type StorageKeyCountAggregateOutputType = { + id: number + key: number + status: number + createdAt: number + updatedAt: number + _all: number +} + +export type StorageKeyMinAggregateInputType = { + id?: true + key?: true + status?: true + createdAt?: true + updatedAt?: true +} + +export type StorageKeyMaxAggregateInputType = { + id?: true + key?: true + status?: true + createdAt?: true + updatedAt?: true +} + +export type StorageKeyCountAggregateInputType = { + id?: true + key?: true + status?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type StorageKeyAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which StorageKey to aggregate. + */ + where?: Prisma.StorageKeyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of StorageKeys to fetch. + */ + orderBy?: Prisma.StorageKeyOrderByWithRelationInput | Prisma.StorageKeyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.StorageKeyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` StorageKeys from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` StorageKeys. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned StorageKeys + **/ + _count?: true | StorageKeyCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: StorageKeyMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: StorageKeyMaxAggregateInputType +} + +export type GetStorageKeyAggregateType = { + [P in keyof T & keyof AggregateStorageKey]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type StorageKeyGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.StorageKeyWhereInput + orderBy?: + | Prisma.StorageKeyOrderByWithAggregationInput + | Prisma.StorageKeyOrderByWithAggregationInput[] + by: Prisma.StorageKeyScalarFieldEnum[] | Prisma.StorageKeyScalarFieldEnum + having?: Prisma.StorageKeyScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: StorageKeyCountAggregateInputType | true + _min?: StorageKeyMinAggregateInputType + _max?: StorageKeyMaxAggregateInputType +} + +export type StorageKeyGroupByOutputType = { + id: string + key: string + status: $Enums.StorageKeyStatus + createdAt: Date + updatedAt: Date + _count: StorageKeyCountAggregateOutputType | null + _min: StorageKeyMinAggregateOutputType | null + _max: StorageKeyMaxAggregateOutputType | null +} + +export type GetStorageKeyGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof StorageKeyGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type StorageKeyWhereInput = { + AND?: Prisma.StorageKeyWhereInput | Prisma.StorageKeyWhereInput[] + OR?: Prisma.StorageKeyWhereInput[] + NOT?: Prisma.StorageKeyWhereInput | Prisma.StorageKeyWhereInput[] + id?: Prisma.StringFilter<'StorageKey'> | string + key?: Prisma.StringFilter<'StorageKey'> | string + status?: Prisma.EnumStorageKeyStatusFilter<'StorageKey'> | $Enums.StorageKeyStatus + createdAt?: Prisma.DateTimeFilter<'StorageKey'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'StorageKey'> | Date | string + assets?: Prisma.AssetListRelationFilter +} + +export type StorageKeyOrderByWithRelationInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + status?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + assets?: Prisma.AssetOrderByRelationAggregateInput +} + +export type StorageKeyWhereUniqueInput = Prisma.AtLeast< + { + id?: string + key?: string + AND?: Prisma.StorageKeyWhereInput | Prisma.StorageKeyWhereInput[] + OR?: Prisma.StorageKeyWhereInput[] + NOT?: Prisma.StorageKeyWhereInput | Prisma.StorageKeyWhereInput[] + status?: Prisma.EnumStorageKeyStatusFilter<'StorageKey'> | $Enums.StorageKeyStatus + createdAt?: Prisma.DateTimeFilter<'StorageKey'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'StorageKey'> | Date | string + assets?: Prisma.AssetListRelationFilter + }, + 'id' | 'key' +> + +export type StorageKeyOrderByWithAggregationInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + status?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.StorageKeyCountOrderByAggregateInput + _max?: Prisma.StorageKeyMaxOrderByAggregateInput + _min?: Prisma.StorageKeyMinOrderByAggregateInput +} + +export type StorageKeyScalarWhereWithAggregatesInput = { + AND?: + | Prisma.StorageKeyScalarWhereWithAggregatesInput + | Prisma.StorageKeyScalarWhereWithAggregatesInput[] + OR?: Prisma.StorageKeyScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.StorageKeyScalarWhereWithAggregatesInput + | Prisma.StorageKeyScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'StorageKey'> | string + key?: Prisma.StringWithAggregatesFilter<'StorageKey'> | string + status?: Prisma.EnumStorageKeyStatusWithAggregatesFilter<'StorageKey'> | $Enums.StorageKeyStatus + createdAt?: Prisma.DateTimeWithAggregatesFilter<'StorageKey'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'StorageKey'> | Date | string +} + +export type StorageKeyCreateInput = { + id?: string + key: string + status?: $Enums.StorageKeyStatus + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutStorageKeyInput +} + +export type StorageKeyUncheckedCreateInput = { + id?: string + key: string + status?: $Enums.StorageKeyStatus + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutStorageKeyInput +} + +export type StorageKeyUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumStorageKeyStatusFieldUpdateOperationsInput | $Enums.StorageKeyStatus + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutStorageKeyNestedInput +} + +export type StorageKeyUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumStorageKeyStatusFieldUpdateOperationsInput | $Enums.StorageKeyStatus + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutStorageKeyNestedInput +} + +export type StorageKeyCreateManyInput = { + id?: string + key: string + status?: $Enums.StorageKeyStatus + createdAt?: Date | string + updatedAt?: Date | string +} + +export type StorageKeyUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumStorageKeyStatusFieldUpdateOperationsInput | $Enums.StorageKeyStatus + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type StorageKeyUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumStorageKeyStatusFieldUpdateOperationsInput | $Enums.StorageKeyStatus + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type StorageKeyNullableScalarRelationFilter = { + is?: Prisma.StorageKeyWhereInput | null + isNot?: Prisma.StorageKeyWhereInput | null +} + +export type StorageKeyCountOrderByAggregateInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + status?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type StorageKeyMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + status?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type StorageKeyMinOrderByAggregateInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + status?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type StorageKeyCreateNestedOneWithoutAssetsInput = { + create?: Prisma.XOR< + Prisma.StorageKeyCreateWithoutAssetsInput, + Prisma.StorageKeyUncheckedCreateWithoutAssetsInput + > + connectOrCreate?: Prisma.StorageKeyCreateOrConnectWithoutAssetsInput + connect?: Prisma.StorageKeyWhereUniqueInput +} + +export type StorageKeyUpdateOneWithoutAssetsNestedInput = { + create?: Prisma.XOR< + Prisma.StorageKeyCreateWithoutAssetsInput, + Prisma.StorageKeyUncheckedCreateWithoutAssetsInput + > + connectOrCreate?: Prisma.StorageKeyCreateOrConnectWithoutAssetsInput + upsert?: Prisma.StorageKeyUpsertWithoutAssetsInput + disconnect?: Prisma.StorageKeyWhereInput | boolean + delete?: Prisma.StorageKeyWhereInput | boolean + connect?: Prisma.StorageKeyWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.StorageKeyUpdateToOneWithWhereWithoutAssetsInput, + Prisma.StorageKeyUpdateWithoutAssetsInput + >, + Prisma.StorageKeyUncheckedUpdateWithoutAssetsInput + > +} + +export type EnumStorageKeyStatusFieldUpdateOperationsInput = { + set?: $Enums.StorageKeyStatus +} + +export type StorageKeyCreateWithoutAssetsInput = { + id?: string + key: string + status?: $Enums.StorageKeyStatus + createdAt?: Date | string + updatedAt?: Date | string +} + +export type StorageKeyUncheckedCreateWithoutAssetsInput = { + id?: string + key: string + status?: $Enums.StorageKeyStatus + createdAt?: Date | string + updatedAt?: Date | string +} + +export type StorageKeyCreateOrConnectWithoutAssetsInput = { + where: Prisma.StorageKeyWhereUniqueInput + create: Prisma.XOR< + Prisma.StorageKeyCreateWithoutAssetsInput, + Prisma.StorageKeyUncheckedCreateWithoutAssetsInput + > +} + +export type StorageKeyUpsertWithoutAssetsInput = { + update: Prisma.XOR< + Prisma.StorageKeyUpdateWithoutAssetsInput, + Prisma.StorageKeyUncheckedUpdateWithoutAssetsInput + > + create: Prisma.XOR< + Prisma.StorageKeyCreateWithoutAssetsInput, + Prisma.StorageKeyUncheckedCreateWithoutAssetsInput + > + where?: Prisma.StorageKeyWhereInput +} + +export type StorageKeyUpdateToOneWithWhereWithoutAssetsInput = { + where?: Prisma.StorageKeyWhereInput + data: Prisma.XOR< + Prisma.StorageKeyUpdateWithoutAssetsInput, + Prisma.StorageKeyUncheckedUpdateWithoutAssetsInput + > +} + +export type StorageKeyUpdateWithoutAssetsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumStorageKeyStatusFieldUpdateOperationsInput | $Enums.StorageKeyStatus + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type StorageKeyUncheckedUpdateWithoutAssetsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumStorageKeyStatusFieldUpdateOperationsInput | $Enums.StorageKeyStatus + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +/** + * Count Type StorageKeyCountOutputType + */ + +export type StorageKeyCountOutputType = { + assets: number +} + +export type StorageKeyCountOutputTypeSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + assets?: boolean | StorageKeyCountOutputTypeCountAssetsArgs +} + +/** + * StorageKeyCountOutputType without action + */ +export type StorageKeyCountOutputTypeDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKeyCountOutputType + */ + select?: Prisma.StorageKeyCountOutputTypeSelect | null +} + +/** + * StorageKeyCountOutputType without action + */ +export type StorageKeyCountOutputTypeCountAssetsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetWhereInput +} + +export type StorageKeySelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + key?: boolean + status?: boolean + createdAt?: boolean + updatedAt?: boolean + assets?: boolean | Prisma.StorageKey$assetsArgs + _count?: boolean | Prisma.StorageKeyCountOutputTypeDefaultArgs + }, + ExtArgs['result']['storageKey'] +> + +export type StorageKeySelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + key?: boolean + status?: boolean + createdAt?: boolean + updatedAt?: boolean + }, + ExtArgs['result']['storageKey'] +> + +export type StorageKeySelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + key?: boolean + status?: boolean + createdAt?: boolean + updatedAt?: boolean + }, + ExtArgs['result']['storageKey'] +> + +export type StorageKeySelectScalar = { + id?: boolean + key?: boolean + status?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type StorageKeyOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'key' | 'status' | 'createdAt' | 'updatedAt', + ExtArgs['result']['storageKey'] +> +export type StorageKeyInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + assets?: boolean | Prisma.StorageKey$assetsArgs + _count?: boolean | Prisma.StorageKeyCountOutputTypeDefaultArgs +} +export type StorageKeyIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = {} +export type StorageKeyIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = {} + +export type $StorageKeyPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'StorageKey' + objects: { + assets: Prisma.$AssetPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + key: string + status: $Enums.StorageKeyStatus + createdAt: Date + updatedAt: Date + }, + ExtArgs['result']['storageKey'] + > + composites: {} +} + +export type StorageKeyGetPayload = + runtime.Types.Result.GetResult + +export type StorageKeyCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: StorageKeyCountAggregateInputType | true +} + +export interface StorageKeyDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['StorageKey'] + meta: { name: 'StorageKey' } + } + /** + * Find zero or one StorageKey that matches the filter. + * @param {StorageKeyFindUniqueArgs} args - Arguments to find a StorageKey + * @example + * // Get one StorageKey + * const storageKey = await prisma.storageKey.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__StorageKeyClient< + runtime.Types.Result.GetResult< + Prisma.$StorageKeyPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one StorageKey that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {StorageKeyFindUniqueOrThrowArgs} args - Arguments to find a StorageKey + * @example + * // Get one StorageKey + * const storageKey = await prisma.storageKey.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__StorageKeyClient< + runtime.Types.Result.GetResult< + Prisma.$StorageKeyPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first StorageKey that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StorageKeyFindFirstArgs} args - Arguments to find a StorageKey + * @example + * // Get one StorageKey + * const storageKey = await prisma.storageKey.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__StorageKeyClient< + runtime.Types.Result.GetResult< + Prisma.$StorageKeyPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first StorageKey that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StorageKeyFindFirstOrThrowArgs} args - Arguments to find a StorageKey + * @example + * // Get one StorageKey + * const storageKey = await prisma.storageKey.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__StorageKeyClient< + runtime.Types.Result.GetResult< + Prisma.$StorageKeyPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more StorageKeys that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StorageKeyFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all StorageKeys + * const storageKeys = await prisma.storageKey.findMany() + * + * // Get first 10 StorageKeys + * const storageKeys = await prisma.storageKey.findMany({ take: 10 }) + * + * // Only select the `id` + * const storageKeyWithIdOnly = await prisma.storageKey.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$StorageKeyPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a StorageKey. + * @param {StorageKeyCreateArgs} args - Arguments to create a StorageKey. + * @example + * // Create one StorageKey + * const StorageKey = await prisma.storageKey.create({ + * data: { + * // ... data to create a StorageKey + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__StorageKeyClient< + runtime.Types.Result.GetResult< + Prisma.$StorageKeyPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many StorageKeys. + * @param {StorageKeyCreateManyArgs} args - Arguments to create many StorageKeys. + * @example + * // Create many StorageKeys + * const storageKey = await prisma.storageKey.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many StorageKeys and returns the data saved in the database. + * @param {StorageKeyCreateManyAndReturnArgs} args - Arguments to create many StorageKeys. + * @example + * // Create many StorageKeys + * const storageKey = await prisma.storageKey.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many StorageKeys and only return the `id` + * const storageKeyWithIdOnly = await prisma.storageKey.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$StorageKeyPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a StorageKey. + * @param {StorageKeyDeleteArgs} args - Arguments to delete one StorageKey. + * @example + * // Delete one StorageKey + * const StorageKey = await prisma.storageKey.delete({ + * where: { + * // ... filter to delete one StorageKey + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__StorageKeyClient< + runtime.Types.Result.GetResult< + Prisma.$StorageKeyPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one StorageKey. + * @param {StorageKeyUpdateArgs} args - Arguments to update one StorageKey. + * @example + * // Update one StorageKey + * const storageKey = await prisma.storageKey.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__StorageKeyClient< + runtime.Types.Result.GetResult< + Prisma.$StorageKeyPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more StorageKeys. + * @param {StorageKeyDeleteManyArgs} args - Arguments to filter StorageKeys to delete. + * @example + * // Delete a few StorageKeys + * const { count } = await prisma.storageKey.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more StorageKeys. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StorageKeyUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many StorageKeys + * const storageKey = await prisma.storageKey.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more StorageKeys and returns the data updated in the database. + * @param {StorageKeyUpdateManyAndReturnArgs} args - Arguments to update many StorageKeys. + * @example + * // Update many StorageKeys + * const storageKey = await prisma.storageKey.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more StorageKeys and only return the `id` + * const storageKeyWithIdOnly = await prisma.storageKey.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$StorageKeyPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one StorageKey. + * @param {StorageKeyUpsertArgs} args - Arguments to update or create a StorageKey. + * @example + * // Update or create a StorageKey + * const storageKey = await prisma.storageKey.upsert({ + * create: { + * // ... data to create a StorageKey + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the StorageKey we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__StorageKeyClient< + runtime.Types.Result.GetResult< + Prisma.$StorageKeyPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of StorageKeys. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StorageKeyCountArgs} args - Arguments to filter StorageKeys to count. + * @example + * // Count the number of StorageKeys + * const count = await prisma.storageKey.count({ + * where: { + * // ... the filter for the StorageKeys we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a StorageKey. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StorageKeyAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by StorageKey. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StorageKeyGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends StorageKeyGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: StorageKeyGroupByArgs['orderBy'] } + : { orderBy?: StorageKeyGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetStorageKeyGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the StorageKey model + */ + readonly fields: StorageKeyFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for StorageKey. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__StorageKeyClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + assets = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the StorageKey model + */ +export interface StorageKeyFieldRefs { + readonly id: Prisma.FieldRef<'StorageKey', 'String'> + readonly key: Prisma.FieldRef<'StorageKey', 'String'> + readonly status: Prisma.FieldRef<'StorageKey', 'StorageKeyStatus'> + readonly createdAt: Prisma.FieldRef<'StorageKey', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'StorageKey', 'DateTime'> +} + +// Custom InputTypes +/** + * StorageKey findUnique + */ +export type StorageKeyFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKey + */ + select?: Prisma.StorageKeySelect | null + /** + * Omit specific fields from the StorageKey + */ + omit?: Prisma.StorageKeyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StorageKeyInclude | null + /** + * Filter, which StorageKey to fetch. + */ + where: Prisma.StorageKeyWhereUniqueInput +} + +/** + * StorageKey findUniqueOrThrow + */ +export type StorageKeyFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKey + */ + select?: Prisma.StorageKeySelect | null + /** + * Omit specific fields from the StorageKey + */ + omit?: Prisma.StorageKeyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StorageKeyInclude | null + /** + * Filter, which StorageKey to fetch. + */ + where: Prisma.StorageKeyWhereUniqueInput +} + +/** + * StorageKey findFirst + */ +export type StorageKeyFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKey + */ + select?: Prisma.StorageKeySelect | null + /** + * Omit specific fields from the StorageKey + */ + omit?: Prisma.StorageKeyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StorageKeyInclude | null + /** + * Filter, which StorageKey to fetch. + */ + where?: Prisma.StorageKeyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of StorageKeys to fetch. + */ + orderBy?: Prisma.StorageKeyOrderByWithRelationInput | Prisma.StorageKeyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for StorageKeys. + */ + cursor?: Prisma.StorageKeyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` StorageKeys from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` StorageKeys. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of StorageKeys. + */ + distinct?: Prisma.StorageKeyScalarFieldEnum | Prisma.StorageKeyScalarFieldEnum[] +} + +/** + * StorageKey findFirstOrThrow + */ +export type StorageKeyFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKey + */ + select?: Prisma.StorageKeySelect | null + /** + * Omit specific fields from the StorageKey + */ + omit?: Prisma.StorageKeyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StorageKeyInclude | null + /** + * Filter, which StorageKey to fetch. + */ + where?: Prisma.StorageKeyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of StorageKeys to fetch. + */ + orderBy?: Prisma.StorageKeyOrderByWithRelationInput | Prisma.StorageKeyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for StorageKeys. + */ + cursor?: Prisma.StorageKeyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` StorageKeys from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` StorageKeys. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of StorageKeys. + */ + distinct?: Prisma.StorageKeyScalarFieldEnum | Prisma.StorageKeyScalarFieldEnum[] +} + +/** + * StorageKey findMany + */ +export type StorageKeyFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKey + */ + select?: Prisma.StorageKeySelect | null + /** + * Omit specific fields from the StorageKey + */ + omit?: Prisma.StorageKeyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StorageKeyInclude | null + /** + * Filter, which StorageKeys to fetch. + */ + where?: Prisma.StorageKeyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of StorageKeys to fetch. + */ + orderBy?: Prisma.StorageKeyOrderByWithRelationInput | Prisma.StorageKeyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing StorageKeys. + */ + cursor?: Prisma.StorageKeyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` StorageKeys from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` StorageKeys. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of StorageKeys. + */ + distinct?: Prisma.StorageKeyScalarFieldEnum | Prisma.StorageKeyScalarFieldEnum[] +} + +/** + * StorageKey create + */ +export type StorageKeyCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKey + */ + select?: Prisma.StorageKeySelect | null + /** + * Omit specific fields from the StorageKey + */ + omit?: Prisma.StorageKeyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StorageKeyInclude | null + /** + * The data needed to create a StorageKey. + */ + data: Prisma.XOR +} + +/** + * StorageKey createMany + */ +export type StorageKeyCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many StorageKeys. + */ + data: Prisma.StorageKeyCreateManyInput | Prisma.StorageKeyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * StorageKey createManyAndReturn + */ +export type StorageKeyCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKey + */ + select?: Prisma.StorageKeySelectCreateManyAndReturn | null + /** + * Omit specific fields from the StorageKey + */ + omit?: Prisma.StorageKeyOmit | null + /** + * The data used to create many StorageKeys. + */ + data: Prisma.StorageKeyCreateManyInput | Prisma.StorageKeyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * StorageKey update + */ +export type StorageKeyUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKey + */ + select?: Prisma.StorageKeySelect | null + /** + * Omit specific fields from the StorageKey + */ + omit?: Prisma.StorageKeyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StorageKeyInclude | null + /** + * The data needed to update a StorageKey. + */ + data: Prisma.XOR + /** + * Choose, which StorageKey to update. + */ + where: Prisma.StorageKeyWhereUniqueInput +} + +/** + * StorageKey updateMany + */ +export type StorageKeyUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update StorageKeys. + */ + data: Prisma.XOR< + Prisma.StorageKeyUpdateManyMutationInput, + Prisma.StorageKeyUncheckedUpdateManyInput + > + /** + * Filter which StorageKeys to update + */ + where?: Prisma.StorageKeyWhereInput + /** + * Limit how many StorageKeys to update. + */ + limit?: number +} + +/** + * StorageKey updateManyAndReturn + */ +export type StorageKeyUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKey + */ + select?: Prisma.StorageKeySelectUpdateManyAndReturn | null + /** + * Omit specific fields from the StorageKey + */ + omit?: Prisma.StorageKeyOmit | null + /** + * The data used to update StorageKeys. + */ + data: Prisma.XOR< + Prisma.StorageKeyUpdateManyMutationInput, + Prisma.StorageKeyUncheckedUpdateManyInput + > + /** + * Filter which StorageKeys to update + */ + where?: Prisma.StorageKeyWhereInput + /** + * Limit how many StorageKeys to update. + */ + limit?: number +} + +/** + * StorageKey upsert + */ +export type StorageKeyUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKey + */ + select?: Prisma.StorageKeySelect | null + /** + * Omit specific fields from the StorageKey + */ + omit?: Prisma.StorageKeyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StorageKeyInclude | null + /** + * The filter to search for the StorageKey to update in case it exists. + */ + where: Prisma.StorageKeyWhereUniqueInput + /** + * In case the StorageKey found by the `where` argument doesn't exist, create a new StorageKey with this data. + */ + create: Prisma.XOR + /** + * In case the StorageKey was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * StorageKey delete + */ +export type StorageKeyDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKey + */ + select?: Prisma.StorageKeySelect | null + /** + * Omit specific fields from the StorageKey + */ + omit?: Prisma.StorageKeyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StorageKeyInclude | null + /** + * Filter which StorageKey to delete. + */ + where: Prisma.StorageKeyWhereUniqueInput +} + +/** + * StorageKey deleteMany + */ +export type StorageKeyDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which StorageKeys to delete + */ + where?: Prisma.StorageKeyWhereInput + /** + * Limit how many StorageKeys to delete. + */ + limit?: number +} + +/** + * StorageKey.assets + */ +export type StorageKey$assetsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + where?: Prisma.AssetWhereInput + orderBy?: Prisma.AssetOrderByWithRelationInput | Prisma.AssetOrderByWithRelationInput[] + cursor?: Prisma.AssetWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AssetScalarFieldEnum | Prisma.AssetScalarFieldEnum[] +} + +/** + * StorageKey without action + */ +export type StorageKeyDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the StorageKey + */ + select?: Prisma.StorageKeySelect | null + /** + * Omit specific fields from the StorageKey + */ + omit?: Prisma.StorageKeyOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StorageKeyInclude | null +} diff --git a/packages/db/src/generated/prisma/models/SystemSettings.ts b/packages/db/src/generated/prisma/models/SystemSettings.ts new file mode 100644 index 00000000..fa741f69 --- /dev/null +++ b/packages/db/src/generated/prisma/models/SystemSettings.ts @@ -0,0 +1,1366 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `SystemSettings` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model SystemSettings + * + */ +export type SystemSettingsModel = + runtime.Types.Result.DefaultSelection + +export type AggregateSystemSettings = { + _count: SystemSettingsCountAggregateOutputType | null + _min: SystemSettingsMinAggregateOutputType | null + _max: SystemSettingsMaxAggregateOutputType | null +} + +export type SystemSettingsMinAggregateOutputType = { + id: string | null + key: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type SystemSettingsMaxAggregateOutputType = { + id: string | null + key: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type SystemSettingsCountAggregateOutputType = { + id: number + key: number + value: PrismaJson.SystemSettingsValue + createdAt: number + updatedAt: number + _all: number +} + +export type SystemSettingsMinAggregateInputType = { + id?: true + key?: true + createdAt?: true + updatedAt?: true +} + +export type SystemSettingsMaxAggregateInputType = { + id?: true + key?: true + createdAt?: true + updatedAt?: true +} + +export type SystemSettingsCountAggregateInputType = { + id?: true + key?: true + value?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type SystemSettingsAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which SystemSettings to aggregate. + */ + where?: Prisma.SystemSettingsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SystemSettings to fetch. + */ + orderBy?: + | Prisma.SystemSettingsOrderByWithRelationInput + | Prisma.SystemSettingsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.SystemSettingsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` SystemSettings from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` SystemSettings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned SystemSettings + **/ + _count?: true | SystemSettingsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: SystemSettingsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: SystemSettingsMaxAggregateInputType +} + +export type GetSystemSettingsAggregateType = { + [P in keyof T & keyof AggregateSystemSettings]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type SystemSettingsGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.SystemSettingsWhereInput + orderBy?: + | Prisma.SystemSettingsOrderByWithAggregationInput + | Prisma.SystemSettingsOrderByWithAggregationInput[] + by: Prisma.SystemSettingsScalarFieldEnum[] | Prisma.SystemSettingsScalarFieldEnum + having?: Prisma.SystemSettingsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: SystemSettingsCountAggregateInputType | true + _min?: SystemSettingsMinAggregateInputType + _max?: SystemSettingsMaxAggregateInputType +} + +export type SystemSettingsGroupByOutputType = { + id: string + key: string + value: PrismaJson.SystemSettingsValue | null + createdAt: Date + updatedAt: Date + _count: SystemSettingsCountAggregateOutputType | null + _min: SystemSettingsMinAggregateOutputType | null + _max: SystemSettingsMaxAggregateOutputType | null +} + +export type GetSystemSettingsGroupByPayload = + Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof SystemSettingsGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + +export type SystemSettingsWhereInput = { + AND?: Prisma.SystemSettingsWhereInput | Prisma.SystemSettingsWhereInput[] + OR?: Prisma.SystemSettingsWhereInput[] + NOT?: Prisma.SystemSettingsWhereInput | Prisma.SystemSettingsWhereInput[] + id?: Prisma.StringFilter<'SystemSettings'> | string + key?: Prisma.StringFilter<'SystemSettings'> | string + value?: Prisma.JsonNullableFilter<'SystemSettings'> + createdAt?: Prisma.DateTimeFilter<'SystemSettings'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'SystemSettings'> | Date | string +} + +export type SystemSettingsOrderByWithRelationInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + value?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type SystemSettingsWhereUniqueInput = Prisma.AtLeast< + { + id?: string + key?: string + AND?: Prisma.SystemSettingsWhereInput | Prisma.SystemSettingsWhereInput[] + OR?: Prisma.SystemSettingsWhereInput[] + NOT?: Prisma.SystemSettingsWhereInput | Prisma.SystemSettingsWhereInput[] + value?: Prisma.JsonNullableFilter<'SystemSettings'> + createdAt?: Prisma.DateTimeFilter<'SystemSettings'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'SystemSettings'> | Date | string + }, + 'id' | 'key' +> + +export type SystemSettingsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + value?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.SystemSettingsCountOrderByAggregateInput + _max?: Prisma.SystemSettingsMaxOrderByAggregateInput + _min?: Prisma.SystemSettingsMinOrderByAggregateInput +} + +export type SystemSettingsScalarWhereWithAggregatesInput = { + AND?: + | Prisma.SystemSettingsScalarWhereWithAggregatesInput + | Prisma.SystemSettingsScalarWhereWithAggregatesInput[] + OR?: Prisma.SystemSettingsScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.SystemSettingsScalarWhereWithAggregatesInput + | Prisma.SystemSettingsScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'SystemSettings'> | string + key?: Prisma.StringWithAggregatesFilter<'SystemSettings'> | string + value?: Prisma.JsonNullableWithAggregatesFilter<'SystemSettings'> + createdAt?: Prisma.DateTimeWithAggregatesFilter<'SystemSettings'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'SystemSettings'> | Date | string +} + +export type SystemSettingsCreateInput = { + id?: string + key: string + value?: PrismaJson.SystemSettingsValue | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string +} + +export type SystemSettingsUncheckedCreateInput = { + id?: string + key: string + value?: PrismaJson.SystemSettingsValue | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string +} + +export type SystemSettingsUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.SystemSettingsValue | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SystemSettingsUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.SystemSettingsValue | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SystemSettingsCreateManyInput = { + id?: string + key: string + value?: PrismaJson.SystemSettingsValue | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string +} + +export type SystemSettingsUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.SystemSettingsValue | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SystemSettingsUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.SystemSettingsValue | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SystemSettingsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + value?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type SystemSettingsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type SystemSettingsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type SystemSettingsSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + key?: boolean + value?: boolean + createdAt?: boolean + updatedAt?: boolean + }, + ExtArgs['result']['systemSettings'] +> + +export type SystemSettingsSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + key?: boolean + value?: boolean + createdAt?: boolean + updatedAt?: boolean + }, + ExtArgs['result']['systemSettings'] +> + +export type SystemSettingsSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + key?: boolean + value?: boolean + createdAt?: boolean + updatedAt?: boolean + }, + ExtArgs['result']['systemSettings'] +> + +export type SystemSettingsSelectScalar = { + id?: boolean + key?: boolean + value?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type SystemSettingsOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'key' | 'value' | 'createdAt' | 'updatedAt', + ExtArgs['result']['systemSettings'] +> + +export type $SystemSettingsPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'SystemSettings' + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + key: string + /** + * [SystemSettingsValue] + */ + value: PrismaJson.SystemSettingsValue | null + createdAt: Date + updatedAt: Date + }, + ExtArgs['result']['systemSettings'] + > + composites: {} +} + +export type SystemSettingsGetPayload< + S extends boolean | null | undefined | SystemSettingsDefaultArgs, +> = runtime.Types.Result.GetResult + +export type SystemSettingsCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: SystemSettingsCountAggregateInputType | true +} + +export interface SystemSettingsDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['SystemSettings'] + meta: { name: 'SystemSettings' } + } + /** + * Find zero or one SystemSettings that matches the filter. + * @param {SystemSettingsFindUniqueArgs} args - Arguments to find a SystemSettings + * @example + * // Get one SystemSettings + * const systemSettings = await prisma.systemSettings.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SystemSettingsClient< + runtime.Types.Result.GetResult< + Prisma.$SystemSettingsPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one SystemSettings that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {SystemSettingsFindUniqueOrThrowArgs} args - Arguments to find a SystemSettings + * @example + * // Get one SystemSettings + * const systemSettings = await prisma.systemSettings.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SystemSettingsClient< + runtime.Types.Result.GetResult< + Prisma.$SystemSettingsPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first SystemSettings that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SystemSettingsFindFirstArgs} args - Arguments to find a SystemSettings + * @example + * // Get one SystemSettings + * const systemSettings = await prisma.systemSettings.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__SystemSettingsClient< + runtime.Types.Result.GetResult< + Prisma.$SystemSettingsPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first SystemSettings that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SystemSettingsFindFirstOrThrowArgs} args - Arguments to find a SystemSettings + * @example + * // Get one SystemSettings + * const systemSettings = await prisma.systemSettings.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__SystemSettingsClient< + runtime.Types.Result.GetResult< + Prisma.$SystemSettingsPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more SystemSettings that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SystemSettingsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all SystemSettings + * const systemSettings = await prisma.systemSettings.findMany() + * + * // Get first 10 SystemSettings + * const systemSettings = await prisma.systemSettings.findMany({ take: 10 }) + * + * // Only select the `id` + * const systemSettingsWithIdOnly = await prisma.systemSettings.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$SystemSettingsPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a SystemSettings. + * @param {SystemSettingsCreateArgs} args - Arguments to create a SystemSettings. + * @example + * // Create one SystemSettings + * const SystemSettings = await prisma.systemSettings.create({ + * data: { + * // ... data to create a SystemSettings + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SystemSettingsClient< + runtime.Types.Result.GetResult< + Prisma.$SystemSettingsPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many SystemSettings. + * @param {SystemSettingsCreateManyArgs} args - Arguments to create many SystemSettings. + * @example + * // Create many SystemSettings + * const systemSettings = await prisma.systemSettings.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many SystemSettings and returns the data saved in the database. + * @param {SystemSettingsCreateManyAndReturnArgs} args - Arguments to create many SystemSettings. + * @example + * // Create many SystemSettings + * const systemSettings = await prisma.systemSettings.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many SystemSettings and only return the `id` + * const systemSettingsWithIdOnly = await prisma.systemSettings.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$SystemSettingsPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a SystemSettings. + * @param {SystemSettingsDeleteArgs} args - Arguments to delete one SystemSettings. + * @example + * // Delete one SystemSettings + * const SystemSettings = await prisma.systemSettings.delete({ + * where: { + * // ... filter to delete one SystemSettings + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SystemSettingsClient< + runtime.Types.Result.GetResult< + Prisma.$SystemSettingsPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one SystemSettings. + * @param {SystemSettingsUpdateArgs} args - Arguments to update one SystemSettings. + * @example + * // Update one SystemSettings + * const systemSettings = await prisma.systemSettings.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SystemSettingsClient< + runtime.Types.Result.GetResult< + Prisma.$SystemSettingsPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more SystemSettings. + * @param {SystemSettingsDeleteManyArgs} args - Arguments to filter SystemSettings to delete. + * @example + * // Delete a few SystemSettings + * const { count } = await prisma.systemSettings.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more SystemSettings. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SystemSettingsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many SystemSettings + * const systemSettings = await prisma.systemSettings.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more SystemSettings and returns the data updated in the database. + * @param {SystemSettingsUpdateManyAndReturnArgs} args - Arguments to update many SystemSettings. + * @example + * // Update many SystemSettings + * const systemSettings = await prisma.systemSettings.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more SystemSettings and only return the `id` + * const systemSettingsWithIdOnly = await prisma.systemSettings.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$SystemSettingsPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one SystemSettings. + * @param {SystemSettingsUpsertArgs} args - Arguments to update or create a SystemSettings. + * @example + * // Update or create a SystemSettings + * const systemSettings = await prisma.systemSettings.upsert({ + * create: { + * // ... data to create a SystemSettings + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the SystemSettings we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__SystemSettingsClient< + runtime.Types.Result.GetResult< + Prisma.$SystemSettingsPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of SystemSettings. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SystemSettingsCountArgs} args - Arguments to filter SystemSettings to count. + * @example + * // Count the number of SystemSettings + * const count = await prisma.systemSettings.count({ + * where: { + * // ... the filter for the SystemSettings we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a SystemSettings. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SystemSettingsAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by SystemSettings. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SystemSettingsGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends SystemSettingsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: SystemSettingsGroupByArgs['orderBy'] } + : { orderBy?: SystemSettingsGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetSystemSettingsGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the SystemSettings model + */ + readonly fields: SystemSettingsFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for SystemSettings. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__SystemSettingsClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the SystemSettings model + */ +export interface SystemSettingsFieldRefs { + readonly id: Prisma.FieldRef<'SystemSettings', 'String'> + readonly key: Prisma.FieldRef<'SystemSettings', 'String'> + readonly value: Prisma.FieldRef<'SystemSettings', 'Json'> + readonly createdAt: Prisma.FieldRef<'SystemSettings', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'SystemSettings', 'DateTime'> +} + +// Custom InputTypes +/** + * SystemSettings findUnique + */ +export type SystemSettingsFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the SystemSettings + */ + select?: Prisma.SystemSettingsSelect | null + /** + * Omit specific fields from the SystemSettings + */ + omit?: Prisma.SystemSettingsOmit | null + /** + * Filter, which SystemSettings to fetch. + */ + where: Prisma.SystemSettingsWhereUniqueInput +} + +/** + * SystemSettings findUniqueOrThrow + */ +export type SystemSettingsFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the SystemSettings + */ + select?: Prisma.SystemSettingsSelect | null + /** + * Omit specific fields from the SystemSettings + */ + omit?: Prisma.SystemSettingsOmit | null + /** + * Filter, which SystemSettings to fetch. + */ + where: Prisma.SystemSettingsWhereUniqueInput +} + +/** + * SystemSettings findFirst + */ +export type SystemSettingsFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the SystemSettings + */ + select?: Prisma.SystemSettingsSelect | null + /** + * Omit specific fields from the SystemSettings + */ + omit?: Prisma.SystemSettingsOmit | null + /** + * Filter, which SystemSettings to fetch. + */ + where?: Prisma.SystemSettingsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SystemSettings to fetch. + */ + orderBy?: + | Prisma.SystemSettingsOrderByWithRelationInput + | Prisma.SystemSettingsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for SystemSettings. + */ + cursor?: Prisma.SystemSettingsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` SystemSettings from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` SystemSettings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of SystemSettings. + */ + distinct?: Prisma.SystemSettingsScalarFieldEnum | Prisma.SystemSettingsScalarFieldEnum[] +} + +/** + * SystemSettings findFirstOrThrow + */ +export type SystemSettingsFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the SystemSettings + */ + select?: Prisma.SystemSettingsSelect | null + /** + * Omit specific fields from the SystemSettings + */ + omit?: Prisma.SystemSettingsOmit | null + /** + * Filter, which SystemSettings to fetch. + */ + where?: Prisma.SystemSettingsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SystemSettings to fetch. + */ + orderBy?: + | Prisma.SystemSettingsOrderByWithRelationInput + | Prisma.SystemSettingsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for SystemSettings. + */ + cursor?: Prisma.SystemSettingsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` SystemSettings from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` SystemSettings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of SystemSettings. + */ + distinct?: Prisma.SystemSettingsScalarFieldEnum | Prisma.SystemSettingsScalarFieldEnum[] +} + +/** + * SystemSettings findMany + */ +export type SystemSettingsFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the SystemSettings + */ + select?: Prisma.SystemSettingsSelect | null + /** + * Omit specific fields from the SystemSettings + */ + omit?: Prisma.SystemSettingsOmit | null + /** + * Filter, which SystemSettings to fetch. + */ + where?: Prisma.SystemSettingsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SystemSettings to fetch. + */ + orderBy?: + | Prisma.SystemSettingsOrderByWithRelationInput + | Prisma.SystemSettingsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing SystemSettings. + */ + cursor?: Prisma.SystemSettingsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` SystemSettings from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` SystemSettings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of SystemSettings. + */ + distinct?: Prisma.SystemSettingsScalarFieldEnum | Prisma.SystemSettingsScalarFieldEnum[] +} + +/** + * SystemSettings create + */ +export type SystemSettingsCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the SystemSettings + */ + select?: Prisma.SystemSettingsSelect | null + /** + * Omit specific fields from the SystemSettings + */ + omit?: Prisma.SystemSettingsOmit | null + /** + * The data needed to create a SystemSettings. + */ + data: Prisma.XOR +} + +/** + * SystemSettings createMany + */ +export type SystemSettingsCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many SystemSettings. + */ + data: Prisma.SystemSettingsCreateManyInput | Prisma.SystemSettingsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * SystemSettings createManyAndReturn + */ +export type SystemSettingsCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the SystemSettings + */ + select?: Prisma.SystemSettingsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the SystemSettings + */ + omit?: Prisma.SystemSettingsOmit | null + /** + * The data used to create many SystemSettings. + */ + data: Prisma.SystemSettingsCreateManyInput | Prisma.SystemSettingsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * SystemSettings update + */ +export type SystemSettingsUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the SystemSettings + */ + select?: Prisma.SystemSettingsSelect | null + /** + * Omit specific fields from the SystemSettings + */ + omit?: Prisma.SystemSettingsOmit | null + /** + * The data needed to update a SystemSettings. + */ + data: Prisma.XOR + /** + * Choose, which SystemSettings to update. + */ + where: Prisma.SystemSettingsWhereUniqueInput +} + +/** + * SystemSettings updateMany + */ +export type SystemSettingsUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update SystemSettings. + */ + data: Prisma.XOR< + Prisma.SystemSettingsUpdateManyMutationInput, + Prisma.SystemSettingsUncheckedUpdateManyInput + > + /** + * Filter which SystemSettings to update + */ + where?: Prisma.SystemSettingsWhereInput + /** + * Limit how many SystemSettings to update. + */ + limit?: number +} + +/** + * SystemSettings updateManyAndReturn + */ +export type SystemSettingsUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the SystemSettings + */ + select?: Prisma.SystemSettingsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the SystemSettings + */ + omit?: Prisma.SystemSettingsOmit | null + /** + * The data used to update SystemSettings. + */ + data: Prisma.XOR< + Prisma.SystemSettingsUpdateManyMutationInput, + Prisma.SystemSettingsUncheckedUpdateManyInput + > + /** + * Filter which SystemSettings to update + */ + where?: Prisma.SystemSettingsWhereInput + /** + * Limit how many SystemSettings to update. + */ + limit?: number +} + +/** + * SystemSettings upsert + */ +export type SystemSettingsUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the SystemSettings + */ + select?: Prisma.SystemSettingsSelect | null + /** + * Omit specific fields from the SystemSettings + */ + omit?: Prisma.SystemSettingsOmit | null + /** + * The filter to search for the SystemSettings to update in case it exists. + */ + where: Prisma.SystemSettingsWhereUniqueInput + /** + * In case the SystemSettings found by the `where` argument doesn't exist, create a new SystemSettings with this data. + */ + create: Prisma.XOR + /** + * In case the SystemSettings was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * SystemSettings delete + */ +export type SystemSettingsDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the SystemSettings + */ + select?: Prisma.SystemSettingsSelect | null + /** + * Omit specific fields from the SystemSettings + */ + omit?: Prisma.SystemSettingsOmit | null + /** + * Filter which SystemSettings to delete. + */ + where: Prisma.SystemSettingsWhereUniqueInput +} + +/** + * SystemSettings deleteMany + */ +export type SystemSettingsDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which SystemSettings to delete + */ + where?: Prisma.SystemSettingsWhereInput + /** + * Limit how many SystemSettings to delete. + */ + limit?: number +} + +/** + * SystemSettings without action + */ +export type SystemSettingsDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the SystemSettings + */ + select?: Prisma.SystemSettingsSelect | null + /** + * Omit specific fields from the SystemSettings + */ + omit?: Prisma.SystemSettingsOmit | null +} diff --git a/packages/db/src/generated/prisma/models/Task.ts b/packages/db/src/generated/prisma/models/Task.ts new file mode 100644 index 00000000..542ee5a3 --- /dev/null +++ b/packages/db/src/generated/prisma/models/Task.ts @@ -0,0 +1,2199 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Task` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Task + * + */ +export type TaskModel = runtime.Types.Result.DefaultSelection + +export type AggregateTask = { + _count: TaskCountAggregateOutputType | null + _avg: TaskAvgAggregateOutputType | null + _sum: TaskSumAggregateOutputType | null + _min: TaskMinAggregateOutputType | null + _max: TaskMaxAggregateOutputType | null +} + +export type TaskAvgAggregateOutputType = { + total: number | null + uploaded: number | null +} + +export type TaskSumAggregateOutputType = { + total: number | null + uploaded: number | null +} + +export type TaskMinAggregateOutputType = { + id: string | null + type: $Enums.TaskType | null + status: $Enums.TaskStatus | null + name: string | null + total: number | null + uploaded: number | null + createdAt: Date | null + updatedAt: Date | null + creatorId: string | null +} + +export type TaskMaxAggregateOutputType = { + id: string | null + type: $Enums.TaskType | null + status: $Enums.TaskStatus | null + name: string | null + total: number | null + uploaded: number | null + createdAt: Date | null + updatedAt: Date | null + creatorId: string | null +} + +export type TaskCountAggregateOutputType = { + id: number + type: number + status: number + name: number + total: number + uploaded: number + createdAt: number + updatedAt: number + creatorId: number + _all: number +} + +export type TaskAvgAggregateInputType = { + total?: true + uploaded?: true +} + +export type TaskSumAggregateInputType = { + total?: true + uploaded?: true +} + +export type TaskMinAggregateInputType = { + id?: true + type?: true + status?: true + name?: true + total?: true + uploaded?: true + createdAt?: true + updatedAt?: true + creatorId?: true +} + +export type TaskMaxAggregateInputType = { + id?: true + type?: true + status?: true + name?: true + total?: true + uploaded?: true + createdAt?: true + updatedAt?: true + creatorId?: true +} + +export type TaskCountAggregateInputType = { + id?: true + type?: true + status?: true + name?: true + total?: true + uploaded?: true + createdAt?: true + updatedAt?: true + creatorId?: true + _all?: true +} + +export type TaskAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Task to aggregate. + */ + where?: Prisma.TaskWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Tasks to fetch. + */ + orderBy?: Prisma.TaskOrderByWithRelationInput | Prisma.TaskOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.TaskWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Tasks from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Tasks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Tasks + **/ + _count?: true | TaskCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: TaskAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: TaskSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: TaskMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: TaskMaxAggregateInputType +} + +export type GetTaskAggregateType = { + [P in keyof T & keyof AggregateTask]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type TaskGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.TaskWhereInput + orderBy?: Prisma.TaskOrderByWithAggregationInput | Prisma.TaskOrderByWithAggregationInput[] + by: Prisma.TaskScalarFieldEnum[] | Prisma.TaskScalarFieldEnum + having?: Prisma.TaskScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: TaskCountAggregateInputType | true + _avg?: TaskAvgAggregateInputType + _sum?: TaskSumAggregateInputType + _min?: TaskMinAggregateInputType + _max?: TaskMaxAggregateInputType +} + +export type TaskGroupByOutputType = { + id: string + type: $Enums.TaskType | null + status: $Enums.TaskStatus + name: string | null + total: number | null + uploaded: number + createdAt: Date + updatedAt: Date + creatorId: string | null + _count: TaskCountAggregateOutputType | null + _avg: TaskAvgAggregateOutputType | null + _sum: TaskSumAggregateOutputType | null + _min: TaskMinAggregateOutputType | null + _max: TaskMaxAggregateOutputType | null +} + +export type GetTaskGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof TaskGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type TaskWhereInput = { + AND?: Prisma.TaskWhereInput | Prisma.TaskWhereInput[] + OR?: Prisma.TaskWhereInput[] + NOT?: Prisma.TaskWhereInput | Prisma.TaskWhereInput[] + id?: Prisma.StringFilter<'Task'> | string + type?: Prisma.EnumTaskTypeNullableFilter<'Task'> | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFilter<'Task'> | $Enums.TaskStatus + name?: Prisma.StringNullableFilter<'Task'> | string | null + total?: Prisma.IntNullableFilter<'Task'> | number | null + uploaded?: Prisma.IntFilter<'Task'> | number + createdAt?: Prisma.DateTimeFilter<'Task'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Task'> | Date | string + creatorId?: Prisma.StringNullableFilter<'Task'> | string | null + creator?: Prisma.XOR | null + assets?: Prisma.AssetListRelationFilter + notifications?: Prisma.NotificationListRelationFilter +} + +export type TaskOrderByWithRelationInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + total?: Prisma.SortOrderInput | Prisma.SortOrder + uploaded?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + creatorId?: Prisma.SortOrderInput | Prisma.SortOrder + creator?: Prisma.UserOrderByWithRelationInput + assets?: Prisma.AssetOrderByRelationAggregateInput + notifications?: Prisma.NotificationOrderByRelationAggregateInput +} + +export type TaskWhereUniqueInput = Prisma.AtLeast< + { + id?: string + AND?: Prisma.TaskWhereInput | Prisma.TaskWhereInput[] + OR?: Prisma.TaskWhereInput[] + NOT?: Prisma.TaskWhereInput | Prisma.TaskWhereInput[] + type?: Prisma.EnumTaskTypeNullableFilter<'Task'> | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFilter<'Task'> | $Enums.TaskStatus + name?: Prisma.StringNullableFilter<'Task'> | string | null + total?: Prisma.IntNullableFilter<'Task'> | number | null + uploaded?: Prisma.IntFilter<'Task'> | number + createdAt?: Prisma.DateTimeFilter<'Task'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Task'> | Date | string + creatorId?: Prisma.StringNullableFilter<'Task'> | string | null + creator?: Prisma.XOR | null + assets?: Prisma.AssetListRelationFilter + notifications?: Prisma.NotificationListRelationFilter + }, + 'id' +> + +export type TaskOrderByWithAggregationInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + total?: Prisma.SortOrderInput | Prisma.SortOrder + uploaded?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + creatorId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.TaskCountOrderByAggregateInput + _avg?: Prisma.TaskAvgOrderByAggregateInput + _max?: Prisma.TaskMaxOrderByAggregateInput + _min?: Prisma.TaskMinOrderByAggregateInput + _sum?: Prisma.TaskSumOrderByAggregateInput +} + +export type TaskScalarWhereWithAggregatesInput = { + AND?: Prisma.TaskScalarWhereWithAggregatesInput | Prisma.TaskScalarWhereWithAggregatesInput[] + OR?: Prisma.TaskScalarWhereWithAggregatesInput[] + NOT?: Prisma.TaskScalarWhereWithAggregatesInput | Prisma.TaskScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Task'> | string + type?: Prisma.EnumTaskTypeNullableWithAggregatesFilter<'Task'> | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusWithAggregatesFilter<'Task'> | $Enums.TaskStatus + name?: Prisma.StringNullableWithAggregatesFilter<'Task'> | string | null + total?: Prisma.IntNullableWithAggregatesFilter<'Task'> | number | null + uploaded?: Prisma.IntWithAggregatesFilter<'Task'> | number + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Task'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Task'> | Date | string + creatorId?: Prisma.StringNullableWithAggregatesFilter<'Task'> | string | null +} + +export type TaskCreateInput = { + id?: string + type?: $Enums.TaskType | null + status?: $Enums.TaskStatus + name?: string | null + total?: number | null + uploaded?: number + createdAt?: Date | string + updatedAt?: Date | string + creator?: Prisma.UserCreateNestedOneWithoutTasksInput + assets?: Prisma.AssetCreateNestedManyWithoutTaskInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTaskInput +} + +export type TaskUncheckedCreateInput = { + id?: string + type?: $Enums.TaskType | null + status?: $Enums.TaskStatus + name?: string | null + total?: number | null + uploaded?: number + createdAt?: Date | string + updatedAt?: Date | string + creatorId?: string | null + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutTaskInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTaskInput +} + +export type TaskUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.NullableEnumTaskTypeFieldUpdateOperationsInput | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + total?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uploaded?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + creator?: Prisma.UserUpdateOneWithoutTasksNestedInput + assets?: Prisma.AssetUpdateManyWithoutTaskNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTaskNestedInput +} + +export type TaskUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.NullableEnumTaskTypeFieldUpdateOperationsInput | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + total?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uploaded?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assets?: Prisma.AssetUncheckedUpdateManyWithoutTaskNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTaskNestedInput +} + +export type TaskCreateManyInput = { + id?: string + type?: $Enums.TaskType | null + status?: $Enums.TaskStatus + name?: string | null + total?: number | null + uploaded?: number + createdAt?: Date | string + updatedAt?: Date | string + creatorId?: string | null +} + +export type TaskUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.NullableEnumTaskTypeFieldUpdateOperationsInput | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + total?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uploaded?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type TaskUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.NullableEnumTaskTypeFieldUpdateOperationsInput | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + total?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uploaded?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type TaskListRelationFilter = { + every?: Prisma.TaskWhereInput + some?: Prisma.TaskWhereInput + none?: Prisma.TaskWhereInput +} + +export type TaskOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type TaskNullableScalarRelationFilter = { + is?: Prisma.TaskWhereInput | null + isNot?: Prisma.TaskWhereInput | null +} + +export type TaskCountOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + status?: Prisma.SortOrder + name?: Prisma.SortOrder + total?: Prisma.SortOrder + uploaded?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + creatorId?: Prisma.SortOrder +} + +export type TaskAvgOrderByAggregateInput = { + total?: Prisma.SortOrder + uploaded?: Prisma.SortOrder +} + +export type TaskMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + status?: Prisma.SortOrder + name?: Prisma.SortOrder + total?: Prisma.SortOrder + uploaded?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + creatorId?: Prisma.SortOrder +} + +export type TaskMinOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + status?: Prisma.SortOrder + name?: Prisma.SortOrder + total?: Prisma.SortOrder + uploaded?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + creatorId?: Prisma.SortOrder +} + +export type TaskSumOrderByAggregateInput = { + total?: Prisma.SortOrder + uploaded?: Prisma.SortOrder +} + +export type TaskCreateNestedManyWithoutCreatorInput = { + create?: + | Prisma.XOR< + Prisma.TaskCreateWithoutCreatorInput, + Prisma.TaskUncheckedCreateWithoutCreatorInput + > + | Prisma.TaskCreateWithoutCreatorInput[] + | Prisma.TaskUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.TaskCreateOrConnectWithoutCreatorInput + | Prisma.TaskCreateOrConnectWithoutCreatorInput[] + createMany?: Prisma.TaskCreateManyCreatorInputEnvelope + connect?: Prisma.TaskWhereUniqueInput | Prisma.TaskWhereUniqueInput[] +} + +export type TaskUncheckedCreateNestedManyWithoutCreatorInput = { + create?: + | Prisma.XOR< + Prisma.TaskCreateWithoutCreatorInput, + Prisma.TaskUncheckedCreateWithoutCreatorInput + > + | Prisma.TaskCreateWithoutCreatorInput[] + | Prisma.TaskUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.TaskCreateOrConnectWithoutCreatorInput + | Prisma.TaskCreateOrConnectWithoutCreatorInput[] + createMany?: Prisma.TaskCreateManyCreatorInputEnvelope + connect?: Prisma.TaskWhereUniqueInput | Prisma.TaskWhereUniqueInput[] +} + +export type TaskUpdateManyWithoutCreatorNestedInput = { + create?: + | Prisma.XOR< + Prisma.TaskCreateWithoutCreatorInput, + Prisma.TaskUncheckedCreateWithoutCreatorInput + > + | Prisma.TaskCreateWithoutCreatorInput[] + | Prisma.TaskUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.TaskCreateOrConnectWithoutCreatorInput + | Prisma.TaskCreateOrConnectWithoutCreatorInput[] + upsert?: + | Prisma.TaskUpsertWithWhereUniqueWithoutCreatorInput + | Prisma.TaskUpsertWithWhereUniqueWithoutCreatorInput[] + createMany?: Prisma.TaskCreateManyCreatorInputEnvelope + set?: Prisma.TaskWhereUniqueInput | Prisma.TaskWhereUniqueInput[] + disconnect?: Prisma.TaskWhereUniqueInput | Prisma.TaskWhereUniqueInput[] + delete?: Prisma.TaskWhereUniqueInput | Prisma.TaskWhereUniqueInput[] + connect?: Prisma.TaskWhereUniqueInput | Prisma.TaskWhereUniqueInput[] + update?: + | Prisma.TaskUpdateWithWhereUniqueWithoutCreatorInput + | Prisma.TaskUpdateWithWhereUniqueWithoutCreatorInput[] + updateMany?: + | Prisma.TaskUpdateManyWithWhereWithoutCreatorInput + | Prisma.TaskUpdateManyWithWhereWithoutCreatorInput[] + deleteMany?: Prisma.TaskScalarWhereInput | Prisma.TaskScalarWhereInput[] +} + +export type TaskUncheckedUpdateManyWithoutCreatorNestedInput = { + create?: + | Prisma.XOR< + Prisma.TaskCreateWithoutCreatorInput, + Prisma.TaskUncheckedCreateWithoutCreatorInput + > + | Prisma.TaskCreateWithoutCreatorInput[] + | Prisma.TaskUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: + | Prisma.TaskCreateOrConnectWithoutCreatorInput + | Prisma.TaskCreateOrConnectWithoutCreatorInput[] + upsert?: + | Prisma.TaskUpsertWithWhereUniqueWithoutCreatorInput + | Prisma.TaskUpsertWithWhereUniqueWithoutCreatorInput[] + createMany?: Prisma.TaskCreateManyCreatorInputEnvelope + set?: Prisma.TaskWhereUniqueInput | Prisma.TaskWhereUniqueInput[] + disconnect?: Prisma.TaskWhereUniqueInput | Prisma.TaskWhereUniqueInput[] + delete?: Prisma.TaskWhereUniqueInput | Prisma.TaskWhereUniqueInput[] + connect?: Prisma.TaskWhereUniqueInput | Prisma.TaskWhereUniqueInput[] + update?: + | Prisma.TaskUpdateWithWhereUniqueWithoutCreatorInput + | Prisma.TaskUpdateWithWhereUniqueWithoutCreatorInput[] + updateMany?: + | Prisma.TaskUpdateManyWithWhereWithoutCreatorInput + | Prisma.TaskUpdateManyWithWhereWithoutCreatorInput[] + deleteMany?: Prisma.TaskScalarWhereInput | Prisma.TaskScalarWhereInput[] +} + +export type TaskCreateNestedOneWithoutAssetsInput = { + create?: Prisma.XOR< + Prisma.TaskCreateWithoutAssetsInput, + Prisma.TaskUncheckedCreateWithoutAssetsInput + > + connectOrCreate?: Prisma.TaskCreateOrConnectWithoutAssetsInput + connect?: Prisma.TaskWhereUniqueInput +} + +export type TaskUpdateOneWithoutAssetsNestedInput = { + create?: Prisma.XOR< + Prisma.TaskCreateWithoutAssetsInput, + Prisma.TaskUncheckedCreateWithoutAssetsInput + > + connectOrCreate?: Prisma.TaskCreateOrConnectWithoutAssetsInput + upsert?: Prisma.TaskUpsertWithoutAssetsInput + disconnect?: Prisma.TaskWhereInput | boolean + delete?: Prisma.TaskWhereInput | boolean + connect?: Prisma.TaskWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TaskUpdateToOneWithWhereWithoutAssetsInput, + Prisma.TaskUpdateWithoutAssetsInput + >, + Prisma.TaskUncheckedUpdateWithoutAssetsInput + > +} + +export type TaskCreateNestedOneWithoutNotificationsInput = { + create?: Prisma.XOR< + Prisma.TaskCreateWithoutNotificationsInput, + Prisma.TaskUncheckedCreateWithoutNotificationsInput + > + connectOrCreate?: Prisma.TaskCreateOrConnectWithoutNotificationsInput + connect?: Prisma.TaskWhereUniqueInput +} + +export type TaskUpdateOneWithoutNotificationsNestedInput = { + create?: Prisma.XOR< + Prisma.TaskCreateWithoutNotificationsInput, + Prisma.TaskUncheckedCreateWithoutNotificationsInput + > + connectOrCreate?: Prisma.TaskCreateOrConnectWithoutNotificationsInput + upsert?: Prisma.TaskUpsertWithoutNotificationsInput + disconnect?: Prisma.TaskWhereInput | boolean + delete?: Prisma.TaskWhereInput | boolean + connect?: Prisma.TaskWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TaskUpdateToOneWithWhereWithoutNotificationsInput, + Prisma.TaskUpdateWithoutNotificationsInput + >, + Prisma.TaskUncheckedUpdateWithoutNotificationsInput + > +} + +export type NullableEnumTaskTypeFieldUpdateOperationsInput = { + set?: $Enums.TaskType | null +} + +export type EnumTaskStatusFieldUpdateOperationsInput = { + set?: $Enums.TaskStatus +} + +export type NullableIntFieldUpdateOperationsInput = { + set?: number | null + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type TaskCreateWithoutCreatorInput = { + id?: string + type?: $Enums.TaskType | null + status?: $Enums.TaskStatus + name?: string | null + total?: number | null + uploaded?: number + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutTaskInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTaskInput +} + +export type TaskUncheckedCreateWithoutCreatorInput = { + id?: string + type?: $Enums.TaskType | null + status?: $Enums.TaskStatus + name?: string | null + total?: number | null + uploaded?: number + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutTaskInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTaskInput +} + +export type TaskCreateOrConnectWithoutCreatorInput = { + where: Prisma.TaskWhereUniqueInput + create: Prisma.XOR< + Prisma.TaskCreateWithoutCreatorInput, + Prisma.TaskUncheckedCreateWithoutCreatorInput + > +} + +export type TaskCreateManyCreatorInputEnvelope = { + data: Prisma.TaskCreateManyCreatorInput | Prisma.TaskCreateManyCreatorInput[] + skipDuplicates?: boolean +} + +export type TaskUpsertWithWhereUniqueWithoutCreatorInput = { + where: Prisma.TaskWhereUniqueInput + update: Prisma.XOR< + Prisma.TaskUpdateWithoutCreatorInput, + Prisma.TaskUncheckedUpdateWithoutCreatorInput + > + create: Prisma.XOR< + Prisma.TaskCreateWithoutCreatorInput, + Prisma.TaskUncheckedCreateWithoutCreatorInput + > +} + +export type TaskUpdateWithWhereUniqueWithoutCreatorInput = { + where: Prisma.TaskWhereUniqueInput + data: Prisma.XOR< + Prisma.TaskUpdateWithoutCreatorInput, + Prisma.TaskUncheckedUpdateWithoutCreatorInput + > +} + +export type TaskUpdateManyWithWhereWithoutCreatorInput = { + where: Prisma.TaskScalarWhereInput + data: Prisma.XOR< + Prisma.TaskUpdateManyMutationInput, + Prisma.TaskUncheckedUpdateManyWithoutCreatorInput + > +} + +export type TaskScalarWhereInput = { + AND?: Prisma.TaskScalarWhereInput | Prisma.TaskScalarWhereInput[] + OR?: Prisma.TaskScalarWhereInput[] + NOT?: Prisma.TaskScalarWhereInput | Prisma.TaskScalarWhereInput[] + id?: Prisma.StringFilter<'Task'> | string + type?: Prisma.EnumTaskTypeNullableFilter<'Task'> | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFilter<'Task'> | $Enums.TaskStatus + name?: Prisma.StringNullableFilter<'Task'> | string | null + total?: Prisma.IntNullableFilter<'Task'> | number | null + uploaded?: Prisma.IntFilter<'Task'> | number + createdAt?: Prisma.DateTimeFilter<'Task'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Task'> | Date | string + creatorId?: Prisma.StringNullableFilter<'Task'> | string | null +} + +export type TaskCreateWithoutAssetsInput = { + id?: string + type?: $Enums.TaskType | null + status?: $Enums.TaskStatus + name?: string | null + total?: number | null + uploaded?: number + createdAt?: Date | string + updatedAt?: Date | string + creator?: Prisma.UserCreateNestedOneWithoutTasksInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTaskInput +} + +export type TaskUncheckedCreateWithoutAssetsInput = { + id?: string + type?: $Enums.TaskType | null + status?: $Enums.TaskStatus + name?: string | null + total?: number | null + uploaded?: number + createdAt?: Date | string + updatedAt?: Date | string + creatorId?: string | null + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTaskInput +} + +export type TaskCreateOrConnectWithoutAssetsInput = { + where: Prisma.TaskWhereUniqueInput + create: Prisma.XOR< + Prisma.TaskCreateWithoutAssetsInput, + Prisma.TaskUncheckedCreateWithoutAssetsInput + > +} + +export type TaskUpsertWithoutAssetsInput = { + update: Prisma.XOR< + Prisma.TaskUpdateWithoutAssetsInput, + Prisma.TaskUncheckedUpdateWithoutAssetsInput + > + create: Prisma.XOR< + Prisma.TaskCreateWithoutAssetsInput, + Prisma.TaskUncheckedCreateWithoutAssetsInput + > + where?: Prisma.TaskWhereInput +} + +export type TaskUpdateToOneWithWhereWithoutAssetsInput = { + where?: Prisma.TaskWhereInput + data: Prisma.XOR< + Prisma.TaskUpdateWithoutAssetsInput, + Prisma.TaskUncheckedUpdateWithoutAssetsInput + > +} + +export type TaskUpdateWithoutAssetsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.NullableEnumTaskTypeFieldUpdateOperationsInput | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + total?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uploaded?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + creator?: Prisma.UserUpdateOneWithoutTasksNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTaskNestedInput +} + +export type TaskUncheckedUpdateWithoutAssetsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.NullableEnumTaskTypeFieldUpdateOperationsInput | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + total?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uploaded?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTaskNestedInput +} + +export type TaskCreateWithoutNotificationsInput = { + id?: string + type?: $Enums.TaskType | null + status?: $Enums.TaskStatus + name?: string | null + total?: number | null + uploaded?: number + createdAt?: Date | string + updatedAt?: Date | string + creator?: Prisma.UserCreateNestedOneWithoutTasksInput + assets?: Prisma.AssetCreateNestedManyWithoutTaskInput +} + +export type TaskUncheckedCreateWithoutNotificationsInput = { + id?: string + type?: $Enums.TaskType | null + status?: $Enums.TaskStatus + name?: string | null + total?: number | null + uploaded?: number + createdAt?: Date | string + updatedAt?: Date | string + creatorId?: string | null + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutTaskInput +} + +export type TaskCreateOrConnectWithoutNotificationsInput = { + where: Prisma.TaskWhereUniqueInput + create: Prisma.XOR< + Prisma.TaskCreateWithoutNotificationsInput, + Prisma.TaskUncheckedCreateWithoutNotificationsInput + > +} + +export type TaskUpsertWithoutNotificationsInput = { + update: Prisma.XOR< + Prisma.TaskUpdateWithoutNotificationsInput, + Prisma.TaskUncheckedUpdateWithoutNotificationsInput + > + create: Prisma.XOR< + Prisma.TaskCreateWithoutNotificationsInput, + Prisma.TaskUncheckedCreateWithoutNotificationsInput + > + where?: Prisma.TaskWhereInput +} + +export type TaskUpdateToOneWithWhereWithoutNotificationsInput = { + where?: Prisma.TaskWhereInput + data: Prisma.XOR< + Prisma.TaskUpdateWithoutNotificationsInput, + Prisma.TaskUncheckedUpdateWithoutNotificationsInput + > +} + +export type TaskUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.NullableEnumTaskTypeFieldUpdateOperationsInput | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + total?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uploaded?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + creator?: Prisma.UserUpdateOneWithoutTasksNestedInput + assets?: Prisma.AssetUpdateManyWithoutTaskNestedInput +} + +export type TaskUncheckedUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.NullableEnumTaskTypeFieldUpdateOperationsInput | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + total?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uploaded?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assets?: Prisma.AssetUncheckedUpdateManyWithoutTaskNestedInput +} + +export type TaskCreateManyCreatorInput = { + id?: string + type?: $Enums.TaskType | null + status?: $Enums.TaskStatus + name?: string | null + total?: number | null + uploaded?: number + createdAt?: Date | string + updatedAt?: Date | string +} + +export type TaskUpdateWithoutCreatorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.NullableEnumTaskTypeFieldUpdateOperationsInput | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + total?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uploaded?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutTaskNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTaskNestedInput +} + +export type TaskUncheckedUpdateWithoutCreatorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.NullableEnumTaskTypeFieldUpdateOperationsInput | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + total?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uploaded?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutTaskNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTaskNestedInput +} + +export type TaskUncheckedUpdateManyWithoutCreatorInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.NullableEnumTaskTypeFieldUpdateOperationsInput | $Enums.TaskType | null + status?: Prisma.EnumTaskStatusFieldUpdateOperationsInput | $Enums.TaskStatus + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + total?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uploaded?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +/** + * Count Type TaskCountOutputType + */ + +export type TaskCountOutputType = { + assets: number + notifications: number +} + +export type TaskCountOutputTypeSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + assets?: boolean | TaskCountOutputTypeCountAssetsArgs + notifications?: boolean | TaskCountOutputTypeCountNotificationsArgs +} + +/** + * TaskCountOutputType without action + */ +export type TaskCountOutputTypeDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TaskCountOutputType + */ + select?: Prisma.TaskCountOutputTypeSelect | null +} + +/** + * TaskCountOutputType without action + */ +export type TaskCountOutputTypeCountAssetsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetWhereInput +} + +/** + * TaskCountOutputType without action + */ +export type TaskCountOutputTypeCountNotificationsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.NotificationWhereInput +} + +export type TaskSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + type?: boolean + status?: boolean + name?: boolean + total?: boolean + uploaded?: boolean + createdAt?: boolean + updatedAt?: boolean + creatorId?: boolean + creator?: boolean | Prisma.Task$creatorArgs + assets?: boolean | Prisma.Task$assetsArgs + notifications?: boolean | Prisma.Task$notificationsArgs + _count?: boolean | Prisma.TaskCountOutputTypeDefaultArgs + }, + ExtArgs['result']['task'] +> + +export type TaskSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + type?: boolean + status?: boolean + name?: boolean + total?: boolean + uploaded?: boolean + createdAt?: boolean + updatedAt?: boolean + creatorId?: boolean + creator?: boolean | Prisma.Task$creatorArgs + }, + ExtArgs['result']['task'] +> + +export type TaskSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + type?: boolean + status?: boolean + name?: boolean + total?: boolean + uploaded?: boolean + createdAt?: boolean + updatedAt?: boolean + creatorId?: boolean + creator?: boolean | Prisma.Task$creatorArgs + }, + ExtArgs['result']['task'] +> + +export type TaskSelectScalar = { + id?: boolean + type?: boolean + status?: boolean + name?: boolean + total?: boolean + uploaded?: boolean + createdAt?: boolean + updatedAt?: boolean + creatorId?: boolean +} + +export type TaskOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'type' + | 'status' + | 'name' + | 'total' + | 'uploaded' + | 'createdAt' + | 'updatedAt' + | 'creatorId', + ExtArgs['result']['task'] +> +export type TaskInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + creator?: boolean | Prisma.Task$creatorArgs + assets?: boolean | Prisma.Task$assetsArgs + notifications?: boolean | Prisma.Task$notificationsArgs + _count?: boolean | Prisma.TaskCountOutputTypeDefaultArgs +} +export type TaskIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + creator?: boolean | Prisma.Task$creatorArgs +} +export type TaskIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + creator?: boolean | Prisma.Task$creatorArgs +} + +export type $TaskPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Task' + objects: { + creator: Prisma.$UserPayload | null + assets: Prisma.$AssetPayload[] + notifications: Prisma.$NotificationPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + type: $Enums.TaskType | null + status: $Enums.TaskStatus + name: string | null + total: number | null + uploaded: number + createdAt: Date + updatedAt: Date + creatorId: string | null + }, + ExtArgs['result']['task'] + > + composites: {} +} + +export type TaskGetPayload = + runtime.Types.Result.GetResult + +export type TaskCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: TaskCountAggregateInputType | true +} + +export interface TaskDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['Task']; meta: { name: 'Task' } } + /** + * Find zero or one Task that matches the filter. + * @param {TaskFindUniqueArgs} args - Arguments to find a Task + * @example + * // Get one Task + * const task = await prisma.task.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TaskClient< + runtime.Types.Result.GetResult< + Prisma.$TaskPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Task that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {TaskFindUniqueOrThrowArgs} args - Arguments to find a Task + * @example + * // Get one Task + * const task = await prisma.task.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TaskClient< + runtime.Types.Result.GetResult< + Prisma.$TaskPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Task that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TaskFindFirstArgs} args - Arguments to find a Task + * @example + * // Get one Task + * const task = await prisma.task.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__TaskClient< + runtime.Types.Result.GetResult< + Prisma.$TaskPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Task that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TaskFindFirstOrThrowArgs} args - Arguments to find a Task + * @example + * // Get one Task + * const task = await prisma.task.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__TaskClient< + runtime.Types.Result.GetResult< + Prisma.$TaskPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Tasks that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TaskFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tasks + * const tasks = await prisma.task.findMany() + * + * // Get first 10 Tasks + * const tasks = await prisma.task.findMany({ take: 10 }) + * + * // Only select the `id` + * const taskWithIdOnly = await prisma.task.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult, T, 'findMany', GlobalOmitOptions> + > + + /** + * Create a Task. + * @param {TaskCreateArgs} args - Arguments to create a Task. + * @example + * // Create one Task + * const Task = await prisma.task.create({ + * data: { + * // ... data to create a Task + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TaskClient< + runtime.Types.Result.GetResult, T, 'create', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Tasks. + * @param {TaskCreateManyArgs} args - Arguments to create many Tasks. + * @example + * // Create many Tasks + * const task = await prisma.task.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Tasks and returns the data saved in the database. + * @param {TaskCreateManyAndReturnArgs} args - Arguments to create many Tasks. + * @example + * // Create many Tasks + * const task = await prisma.task.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Tasks and only return the `id` + * const taskWithIdOnly = await prisma.task.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$TaskPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Task. + * @param {TaskDeleteArgs} args - Arguments to delete one Task. + * @example + * // Delete one Task + * const Task = await prisma.task.delete({ + * where: { + * // ... filter to delete one Task + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TaskClient< + runtime.Types.Result.GetResult, T, 'delete', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Task. + * @param {TaskUpdateArgs} args - Arguments to update one Task. + * @example + * // Update one Task + * const task = await prisma.task.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TaskClient< + runtime.Types.Result.GetResult, T, 'update', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Tasks. + * @param {TaskDeleteManyArgs} args - Arguments to filter Tasks to delete. + * @example + * // Delete a few Tasks + * const { count } = await prisma.task.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Tasks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TaskUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tasks + * const task = await prisma.task.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Tasks and returns the data updated in the database. + * @param {TaskUpdateManyAndReturnArgs} args - Arguments to update many Tasks. + * @example + * // Update many Tasks + * const task = await prisma.task.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Tasks and only return the `id` + * const taskWithIdOnly = await prisma.task.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$TaskPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Task. + * @param {TaskUpsertArgs} args - Arguments to update or create a Task. + * @example + * // Update or create a Task + * const task = await prisma.task.upsert({ + * create: { + * // ... data to create a Task + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Task we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TaskClient< + runtime.Types.Result.GetResult, T, 'upsert', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Tasks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TaskCountArgs} args - Arguments to filter Tasks to count. + * @example + * // Count the number of Tasks + * const count = await prisma.task.count({ + * where: { + * // ... the filter for the Tasks we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Task. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TaskAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Task. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TaskGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends TaskGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: TaskGroupByArgs['orderBy'] } + : { orderBy?: TaskGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetTaskGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Task model + */ + readonly fields: TaskFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Task. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__TaskClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + creator = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + assets = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + notifications = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Task model + */ +export interface TaskFieldRefs { + readonly id: Prisma.FieldRef<'Task', 'String'> + readonly type: Prisma.FieldRef<'Task', 'TaskType'> + readonly status: Prisma.FieldRef<'Task', 'TaskStatus'> + readonly name: Prisma.FieldRef<'Task', 'String'> + readonly total: Prisma.FieldRef<'Task', 'Int'> + readonly uploaded: Prisma.FieldRef<'Task', 'Int'> + readonly createdAt: Prisma.FieldRef<'Task', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Task', 'DateTime'> + readonly creatorId: Prisma.FieldRef<'Task', 'String'> +} + +// Custom InputTypes +/** + * Task findUnique + */ +export type TaskFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelect | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskInclude | null + /** + * Filter, which Task to fetch. + */ + where: Prisma.TaskWhereUniqueInput +} + +/** + * Task findUniqueOrThrow + */ +export type TaskFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelect | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskInclude | null + /** + * Filter, which Task to fetch. + */ + where: Prisma.TaskWhereUniqueInput +} + +/** + * Task findFirst + */ +export type TaskFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelect | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskInclude | null + /** + * Filter, which Task to fetch. + */ + where?: Prisma.TaskWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Tasks to fetch. + */ + orderBy?: Prisma.TaskOrderByWithRelationInput | Prisma.TaskOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Tasks. + */ + cursor?: Prisma.TaskWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Tasks from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Tasks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Tasks. + */ + distinct?: Prisma.TaskScalarFieldEnum | Prisma.TaskScalarFieldEnum[] +} + +/** + * Task findFirstOrThrow + */ +export type TaskFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelect | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskInclude | null + /** + * Filter, which Task to fetch. + */ + where?: Prisma.TaskWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Tasks to fetch. + */ + orderBy?: Prisma.TaskOrderByWithRelationInput | Prisma.TaskOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Tasks. + */ + cursor?: Prisma.TaskWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Tasks from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Tasks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Tasks. + */ + distinct?: Prisma.TaskScalarFieldEnum | Prisma.TaskScalarFieldEnum[] +} + +/** + * Task findMany + */ +export type TaskFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelect | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskInclude | null + /** + * Filter, which Tasks to fetch. + */ + where?: Prisma.TaskWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Tasks to fetch. + */ + orderBy?: Prisma.TaskOrderByWithRelationInput | Prisma.TaskOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Tasks. + */ + cursor?: Prisma.TaskWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Tasks from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Tasks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Tasks. + */ + distinct?: Prisma.TaskScalarFieldEnum | Prisma.TaskScalarFieldEnum[] +} + +/** + * Task create + */ +export type TaskCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelect | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskInclude | null + /** + * The data needed to create a Task. + */ + data: Prisma.XOR +} + +/** + * Task createMany + */ +export type TaskCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Tasks. + */ + data: Prisma.TaskCreateManyInput | Prisma.TaskCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Task createManyAndReturn + */ +export type TaskCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * The data used to create many Tasks. + */ + data: Prisma.TaskCreateManyInput | Prisma.TaskCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskIncludeCreateManyAndReturn | null +} + +/** + * Task update + */ +export type TaskUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelect | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskInclude | null + /** + * The data needed to update a Task. + */ + data: Prisma.XOR + /** + * Choose, which Task to update. + */ + where: Prisma.TaskWhereUniqueInput +} + +/** + * Task updateMany + */ +export type TaskUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Tasks. + */ + data: Prisma.XOR + /** + * Filter which Tasks to update + */ + where?: Prisma.TaskWhereInput + /** + * Limit how many Tasks to update. + */ + limit?: number +} + +/** + * Task updateManyAndReturn + */ +export type TaskUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * The data used to update Tasks. + */ + data: Prisma.XOR + /** + * Filter which Tasks to update + */ + where?: Prisma.TaskWhereInput + /** + * Limit how many Tasks to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskIncludeUpdateManyAndReturn | null +} + +/** + * Task upsert + */ +export type TaskUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelect | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskInclude | null + /** + * The filter to search for the Task to update in case it exists. + */ + where: Prisma.TaskWhereUniqueInput + /** + * In case the Task found by the `where` argument doesn't exist, create a new Task with this data. + */ + create: Prisma.XOR + /** + * In case the Task was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Task delete + */ +export type TaskDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelect | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskInclude | null + /** + * Filter which Task to delete. + */ + where: Prisma.TaskWhereUniqueInput +} + +/** + * Task deleteMany + */ +export type TaskDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Tasks to delete + */ + where?: Prisma.TaskWhereInput + /** + * Limit how many Tasks to delete. + */ + limit?: number +} + +/** + * Task.creator + */ +export type Task$creatorArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + where?: Prisma.UserWhereInput +} + +/** + * Task.assets + */ +export type Task$assetsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + where?: Prisma.AssetWhereInput + orderBy?: Prisma.AssetOrderByWithRelationInput | Prisma.AssetOrderByWithRelationInput[] + cursor?: Prisma.AssetWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AssetScalarFieldEnum | Prisma.AssetScalarFieldEnum[] +} + +/** + * Task.notifications + */ +export type Task$notificationsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + where?: Prisma.NotificationWhereInput + orderBy?: + | Prisma.NotificationOrderByWithRelationInput + | Prisma.NotificationOrderByWithRelationInput[] + cursor?: Prisma.NotificationWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * Task without action + */ +export type TaskDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelect | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskInclude | null +} diff --git a/packages/db/src/generated/prisma/models/Team.ts b/packages/db/src/generated/prisma/models/Team.ts new file mode 100644 index 00000000..1d36dab3 --- /dev/null +++ b/packages/db/src/generated/prisma/models/Team.ts @@ -0,0 +1,3476 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Team` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Team + * + */ +export type TeamModel = runtime.Types.Result.DefaultSelection + +export type AggregateTeam = { + _count: TeamCountAggregateOutputType | null + _min: TeamMinAggregateOutputType | null + _max: TeamMaxAggregateOutputType | null +} + +export type TeamMinAggregateOutputType = { + id: string | null + name: string | null + createdAt: Date | null + updatedAt: Date | null + rootFolderId: string | null +} + +export type TeamMaxAggregateOutputType = { + id: string | null + name: string | null + createdAt: Date | null + updatedAt: Date | null + rootFolderId: string | null +} + +export type TeamCountAggregateOutputType = { + id: number + name: number + settings: PrismaJson.Settings + createdAt: number + updatedAt: number + rootFolderId: number + _all: number +} + +export type TeamMinAggregateInputType = { + id?: true + name?: true + createdAt?: true + updatedAt?: true + rootFolderId?: true +} + +export type TeamMaxAggregateInputType = { + id?: true + name?: true + createdAt?: true + updatedAt?: true + rootFolderId?: true +} + +export type TeamCountAggregateInputType = { + id?: true + name?: true + settings?: true + createdAt?: true + updatedAt?: true + rootFolderId?: true + _all?: true +} + +export type TeamAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Team to aggregate. + */ + where?: Prisma.TeamWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Teams to fetch. + */ + orderBy?: Prisma.TeamOrderByWithRelationInput | Prisma.TeamOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.TeamWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Teams from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Teams. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Teams + **/ + _count?: true | TeamCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: TeamMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: TeamMaxAggregateInputType +} + +export type GetTeamAggregateType = { + [P in keyof T & keyof AggregateTeam]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type TeamGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.TeamWhereInput + orderBy?: Prisma.TeamOrderByWithAggregationInput | Prisma.TeamOrderByWithAggregationInput[] + by: Prisma.TeamScalarFieldEnum[] | Prisma.TeamScalarFieldEnum + having?: Prisma.TeamScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: TeamCountAggregateInputType | true + _min?: TeamMinAggregateInputType + _max?: TeamMaxAggregateInputType +} + +export type TeamGroupByOutputType = { + id: string + name: string + settings: PrismaJson.Settings | null + createdAt: Date + updatedAt: Date + rootFolderId: string | null + _count: TeamCountAggregateOutputType | null + _min: TeamMinAggregateOutputType | null + _max: TeamMaxAggregateOutputType | null +} + +export type GetTeamGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof TeamGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type TeamWhereInput = { + AND?: Prisma.TeamWhereInput | Prisma.TeamWhereInput[] + OR?: Prisma.TeamWhereInput[] + NOT?: Prisma.TeamWhereInput | Prisma.TeamWhereInput[] + id?: Prisma.StringFilter<'Team'> | string + name?: Prisma.StringFilter<'Team'> | string + settings?: Prisma.JsonNullableFilter<'Team'> + createdAt?: Prisma.DateTimeFilter<'Team'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Team'> | Date | string + rootFolderId?: Prisma.StringNullableFilter<'Team'> | string | null + rootFolder?: Prisma.XOR | null + members?: Prisma.TeamMemberListRelationFilter + projects?: Prisma.ProjectListRelationFilter + metadataFields?: Prisma.MetadataFieldListRelationFilter + invites?: Prisma.InviteListRelationFilter + notifications?: Prisma.NotificationListRelationFilter + userMetadata?: Prisma.UserMetadataListRelationFilter + providers?: Prisma.ProviderListRelationFilter + skills?: Prisma.SkillListRelationFilter + sandbox?: Prisma.XOR | null + agents?: Prisma.AgentListRelationFilter +} + +export type TeamOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + settings?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrderInput | Prisma.SortOrder + rootFolder?: Prisma.AssetOrderByWithRelationInput + members?: Prisma.TeamMemberOrderByRelationAggregateInput + projects?: Prisma.ProjectOrderByRelationAggregateInput + metadataFields?: Prisma.MetadataFieldOrderByRelationAggregateInput + invites?: Prisma.InviteOrderByRelationAggregateInput + notifications?: Prisma.NotificationOrderByRelationAggregateInput + userMetadata?: Prisma.UserMetadataOrderByRelationAggregateInput + providers?: Prisma.ProviderOrderByRelationAggregateInput + skills?: Prisma.SkillOrderByRelationAggregateInput + sandbox?: Prisma.SandboxOrderByWithRelationInput + agents?: Prisma.AgentOrderByRelationAggregateInput +} + +export type TeamWhereUniqueInput = Prisma.AtLeast< + { + id?: string + rootFolderId?: string + AND?: Prisma.TeamWhereInput | Prisma.TeamWhereInput[] + OR?: Prisma.TeamWhereInput[] + NOT?: Prisma.TeamWhereInput | Prisma.TeamWhereInput[] + name?: Prisma.StringFilter<'Team'> | string + settings?: Prisma.JsonNullableFilter<'Team'> + createdAt?: Prisma.DateTimeFilter<'Team'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'Team'> | Date | string + rootFolder?: Prisma.XOR | null + members?: Prisma.TeamMemberListRelationFilter + projects?: Prisma.ProjectListRelationFilter + metadataFields?: Prisma.MetadataFieldListRelationFilter + invites?: Prisma.InviteListRelationFilter + notifications?: Prisma.NotificationListRelationFilter + userMetadata?: Prisma.UserMetadataListRelationFilter + providers?: Prisma.ProviderListRelationFilter + skills?: Prisma.SkillListRelationFilter + sandbox?: Prisma.XOR< + Prisma.SandboxNullableScalarRelationFilter, + Prisma.SandboxWhereInput + > | null + agents?: Prisma.AgentListRelationFilter + }, + 'id' | 'rootFolderId' +> + +export type TeamOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + settings?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.TeamCountOrderByAggregateInput + _max?: Prisma.TeamMaxOrderByAggregateInput + _min?: Prisma.TeamMinOrderByAggregateInput +} + +export type TeamScalarWhereWithAggregatesInput = { + AND?: Prisma.TeamScalarWhereWithAggregatesInput | Prisma.TeamScalarWhereWithAggregatesInput[] + OR?: Prisma.TeamScalarWhereWithAggregatesInput[] + NOT?: Prisma.TeamScalarWhereWithAggregatesInput | Prisma.TeamScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Team'> | string + name?: Prisma.StringWithAggregatesFilter<'Team'> | string + settings?: Prisma.JsonNullableWithAggregatesFilter<'Team'> + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Team'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Team'> | Date | string + rootFolderId?: Prisma.StringNullableWithAggregatesFilter<'Team'> | string | null +} + +export type TeamCreateInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolder?: Prisma.AssetCreateNestedOneWithoutTeamRootFolderInput + members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentCreateNestedManyWithoutTeamInput +} + +export type TeamUncheckedCreateInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null + members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderUncheckedCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillUncheckedCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxUncheckedCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutTeamInput +} + +export type TeamUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolder?: Prisma.AssetUpdateOneWithoutTeamRootFolderNestedInput + members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUpdateManyWithoutTeamNestedInput +} + +export type TeamUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUncheckedUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUncheckedUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUncheckedUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUncheckedUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUncheckedUpdateManyWithoutTeamNestedInput +} + +export type TeamCreateManyInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null +} + +export type TeamUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type TeamUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type TeamCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + settings?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrder +} + +export type TeamMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrder +} + +export type TeamMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + rootFolderId?: Prisma.SortOrder +} + +export type TeamScalarRelationFilter = { + is?: Prisma.TeamWhereInput + isNot?: Prisma.TeamWhereInput +} + +export type TeamNullableScalarRelationFilter = { + is?: Prisma.TeamWhereInput | null + isNot?: Prisma.TeamWhereInput | null +} + +export type TeamCreateNestedOneWithoutSandboxInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutSandboxInput, + Prisma.TeamUncheckedCreateWithoutSandboxInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutSandboxInput + connect?: Prisma.TeamWhereUniqueInput +} + +export type TeamUpdateOneRequiredWithoutSandboxNestedInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutSandboxInput, + Prisma.TeamUncheckedCreateWithoutSandboxInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutSandboxInput + upsert?: Prisma.TeamUpsertWithoutSandboxInput + connect?: Prisma.TeamWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamUpdateToOneWithWhereWithoutSandboxInput, + Prisma.TeamUpdateWithoutSandboxInput + >, + Prisma.TeamUncheckedUpdateWithoutSandboxInput + > +} + +export type TeamCreateNestedOneWithoutSkillsInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutSkillsInput, + Prisma.TeamUncheckedCreateWithoutSkillsInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutSkillsInput + connect?: Prisma.TeamWhereUniqueInput +} + +export type TeamUpdateOneRequiredWithoutSkillsNestedInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutSkillsInput, + Prisma.TeamUncheckedCreateWithoutSkillsInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutSkillsInput + upsert?: Prisma.TeamUpsertWithoutSkillsInput + connect?: Prisma.TeamWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamUpdateToOneWithWhereWithoutSkillsInput, + Prisma.TeamUpdateWithoutSkillsInput + >, + Prisma.TeamUncheckedUpdateWithoutSkillsInput + > +} + +export type TeamCreateNestedOneWithoutMembersInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutMembersInput, + Prisma.TeamUncheckedCreateWithoutMembersInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutMembersInput + connect?: Prisma.TeamWhereUniqueInput +} + +export type TeamUpdateOneRequiredWithoutMembersNestedInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutMembersInput, + Prisma.TeamUncheckedCreateWithoutMembersInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutMembersInput + upsert?: Prisma.TeamUpsertWithoutMembersInput + connect?: Prisma.TeamWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamUpdateToOneWithWhereWithoutMembersInput, + Prisma.TeamUpdateWithoutMembersInput + >, + Prisma.TeamUncheckedUpdateWithoutMembersInput + > +} + +export type TeamCreateNestedOneWithoutProjectsInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutProjectsInput, + Prisma.TeamUncheckedCreateWithoutProjectsInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutProjectsInput + connect?: Prisma.TeamWhereUniqueInput +} + +export type TeamUpdateOneRequiredWithoutProjectsNestedInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutProjectsInput, + Prisma.TeamUncheckedCreateWithoutProjectsInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutProjectsInput + upsert?: Prisma.TeamUpsertWithoutProjectsInput + connect?: Prisma.TeamWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamUpdateToOneWithWhereWithoutProjectsInput, + Prisma.TeamUpdateWithoutProjectsInput + >, + Prisma.TeamUncheckedUpdateWithoutProjectsInput + > +} + +export type TeamCreateNestedOneWithoutRootFolderInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutRootFolderInput, + Prisma.TeamUncheckedCreateWithoutRootFolderInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutRootFolderInput + connect?: Prisma.TeamWhereUniqueInput +} + +export type TeamUncheckedCreateNestedOneWithoutRootFolderInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutRootFolderInput, + Prisma.TeamUncheckedCreateWithoutRootFolderInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutRootFolderInput + connect?: Prisma.TeamWhereUniqueInput +} + +export type TeamUpdateOneWithoutRootFolderNestedInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutRootFolderInput, + Prisma.TeamUncheckedCreateWithoutRootFolderInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutRootFolderInput + upsert?: Prisma.TeamUpsertWithoutRootFolderInput + disconnect?: Prisma.TeamWhereInput | boolean + delete?: Prisma.TeamWhereInput | boolean + connect?: Prisma.TeamWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamUpdateToOneWithWhereWithoutRootFolderInput, + Prisma.TeamUpdateWithoutRootFolderInput + >, + Prisma.TeamUncheckedUpdateWithoutRootFolderInput + > +} + +export type TeamUncheckedUpdateOneWithoutRootFolderNestedInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutRootFolderInput, + Prisma.TeamUncheckedCreateWithoutRootFolderInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutRootFolderInput + upsert?: Prisma.TeamUpsertWithoutRootFolderInput + disconnect?: Prisma.TeamWhereInput | boolean + delete?: Prisma.TeamWhereInput | boolean + connect?: Prisma.TeamWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamUpdateToOneWithWhereWithoutRootFolderInput, + Prisma.TeamUpdateWithoutRootFolderInput + >, + Prisma.TeamUncheckedUpdateWithoutRootFolderInput + > +} + +export type TeamCreateNestedOneWithoutInvitesInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutInvitesInput, + Prisma.TeamUncheckedCreateWithoutInvitesInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutInvitesInput + connect?: Prisma.TeamWhereUniqueInput +} + +export type TeamUpdateOneRequiredWithoutInvitesNestedInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutInvitesInput, + Prisma.TeamUncheckedCreateWithoutInvitesInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutInvitesInput + upsert?: Prisma.TeamUpsertWithoutInvitesInput + connect?: Prisma.TeamWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamUpdateToOneWithWhereWithoutInvitesInput, + Prisma.TeamUpdateWithoutInvitesInput + >, + Prisma.TeamUncheckedUpdateWithoutInvitesInput + > +} + +export type TeamCreateNestedOneWithoutMetadataFieldsInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutMetadataFieldsInput, + Prisma.TeamUncheckedCreateWithoutMetadataFieldsInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutMetadataFieldsInput + connect?: Prisma.TeamWhereUniqueInput +} + +export type TeamUpdateOneWithoutMetadataFieldsNestedInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutMetadataFieldsInput, + Prisma.TeamUncheckedCreateWithoutMetadataFieldsInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutMetadataFieldsInput + upsert?: Prisma.TeamUpsertWithoutMetadataFieldsInput + disconnect?: Prisma.TeamWhereInput | boolean + delete?: Prisma.TeamWhereInput | boolean + connect?: Prisma.TeamWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamUpdateToOneWithWhereWithoutMetadataFieldsInput, + Prisma.TeamUpdateWithoutMetadataFieldsInput + >, + Prisma.TeamUncheckedUpdateWithoutMetadataFieldsInput + > +} + +export type TeamCreateNestedOneWithoutNotificationsInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutNotificationsInput, + Prisma.TeamUncheckedCreateWithoutNotificationsInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutNotificationsInput + connect?: Prisma.TeamWhereUniqueInput +} + +export type TeamUpdateOneRequiredWithoutNotificationsNestedInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutNotificationsInput, + Prisma.TeamUncheckedCreateWithoutNotificationsInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutNotificationsInput + upsert?: Prisma.TeamUpsertWithoutNotificationsInput + connect?: Prisma.TeamWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamUpdateToOneWithWhereWithoutNotificationsInput, + Prisma.TeamUpdateWithoutNotificationsInput + >, + Prisma.TeamUncheckedUpdateWithoutNotificationsInput + > +} + +export type TeamCreateNestedOneWithoutAgentsInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutAgentsInput, + Prisma.TeamUncheckedCreateWithoutAgentsInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutAgentsInput + connect?: Prisma.TeamWhereUniqueInput +} + +export type TeamUpdateOneRequiredWithoutAgentsNestedInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutAgentsInput, + Prisma.TeamUncheckedCreateWithoutAgentsInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutAgentsInput + upsert?: Prisma.TeamUpsertWithoutAgentsInput + connect?: Prisma.TeamWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamUpdateToOneWithWhereWithoutAgentsInput, + Prisma.TeamUpdateWithoutAgentsInput + >, + Prisma.TeamUncheckedUpdateWithoutAgentsInput + > +} + +export type TeamCreateNestedOneWithoutUserMetadataInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutUserMetadataInput, + Prisma.TeamUncheckedCreateWithoutUserMetadataInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutUserMetadataInput + connect?: Prisma.TeamWhereUniqueInput +} + +export type TeamUpdateOneRequiredWithoutUserMetadataNestedInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutUserMetadataInput, + Prisma.TeamUncheckedCreateWithoutUserMetadataInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutUserMetadataInput + upsert?: Prisma.TeamUpsertWithoutUserMetadataInput + connect?: Prisma.TeamWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamUpdateToOneWithWhereWithoutUserMetadataInput, + Prisma.TeamUpdateWithoutUserMetadataInput + >, + Prisma.TeamUncheckedUpdateWithoutUserMetadataInput + > +} + +export type TeamCreateNestedOneWithoutProvidersInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutProvidersInput, + Prisma.TeamUncheckedCreateWithoutProvidersInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutProvidersInput + connect?: Prisma.TeamWhereUniqueInput +} + +export type TeamUpdateOneRequiredWithoutProvidersNestedInput = { + create?: Prisma.XOR< + Prisma.TeamCreateWithoutProvidersInput, + Prisma.TeamUncheckedCreateWithoutProvidersInput + > + connectOrCreate?: Prisma.TeamCreateOrConnectWithoutProvidersInput + upsert?: Prisma.TeamUpsertWithoutProvidersInput + connect?: Prisma.TeamWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamUpdateToOneWithWhereWithoutProvidersInput, + Prisma.TeamUpdateWithoutProvidersInput + >, + Prisma.TeamUncheckedUpdateWithoutProvidersInput + > +} + +export type TeamCreateWithoutSandboxInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolder?: Prisma.AssetCreateNestedOneWithoutTeamRootFolderInput + members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillCreateNestedManyWithoutTeamInput + agents?: Prisma.AgentCreateNestedManyWithoutTeamInput +} + +export type TeamUncheckedCreateWithoutSandboxInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null + members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderUncheckedCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillUncheckedCreateNestedManyWithoutTeamInput + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutTeamInput +} + +export type TeamCreateOrConnectWithoutSandboxInput = { + where: Prisma.TeamWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamCreateWithoutSandboxInput, + Prisma.TeamUncheckedCreateWithoutSandboxInput + > +} + +export type TeamUpsertWithoutSandboxInput = { + update: Prisma.XOR< + Prisma.TeamUpdateWithoutSandboxInput, + Prisma.TeamUncheckedUpdateWithoutSandboxInput + > + create: Prisma.XOR< + Prisma.TeamCreateWithoutSandboxInput, + Prisma.TeamUncheckedCreateWithoutSandboxInput + > + where?: Prisma.TeamWhereInput +} + +export type TeamUpdateToOneWithWhereWithoutSandboxInput = { + where?: Prisma.TeamWhereInput + data: Prisma.XOR< + Prisma.TeamUpdateWithoutSandboxInput, + Prisma.TeamUncheckedUpdateWithoutSandboxInput + > +} + +export type TeamUpdateWithoutSandboxInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolder?: Prisma.AssetUpdateOneWithoutTeamRootFolderNestedInput + members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUpdateManyWithoutTeamNestedInput + agents?: Prisma.AgentUpdateManyWithoutTeamNestedInput +} + +export type TeamUncheckedUpdateWithoutSandboxInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUncheckedUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUncheckedUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUncheckedUpdateManyWithoutTeamNestedInput + agents?: Prisma.AgentUncheckedUpdateManyWithoutTeamNestedInput +} + +export type TeamCreateWithoutSkillsInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolder?: Prisma.AssetCreateNestedOneWithoutTeamRootFolderInput + members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentCreateNestedManyWithoutTeamInput +} + +export type TeamUncheckedCreateWithoutSkillsInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null + members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderUncheckedCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxUncheckedCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutTeamInput +} + +export type TeamCreateOrConnectWithoutSkillsInput = { + where: Prisma.TeamWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamCreateWithoutSkillsInput, + Prisma.TeamUncheckedCreateWithoutSkillsInput + > +} + +export type TeamUpsertWithoutSkillsInput = { + update: Prisma.XOR< + Prisma.TeamUpdateWithoutSkillsInput, + Prisma.TeamUncheckedUpdateWithoutSkillsInput + > + create: Prisma.XOR< + Prisma.TeamCreateWithoutSkillsInput, + Prisma.TeamUncheckedCreateWithoutSkillsInput + > + where?: Prisma.TeamWhereInput +} + +export type TeamUpdateToOneWithWhereWithoutSkillsInput = { + where?: Prisma.TeamWhereInput + data: Prisma.XOR< + Prisma.TeamUpdateWithoutSkillsInput, + Prisma.TeamUncheckedUpdateWithoutSkillsInput + > +} + +export type TeamUpdateWithoutSkillsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolder?: Prisma.AssetUpdateOneWithoutTeamRootFolderNestedInput + members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUpdateManyWithoutTeamNestedInput +} + +export type TeamUncheckedUpdateWithoutSkillsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUncheckedUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUncheckedUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUncheckedUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUncheckedUpdateManyWithoutTeamNestedInput +} + +export type TeamCreateWithoutMembersInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolder?: Prisma.AssetCreateNestedOneWithoutTeamRootFolderInput + projects?: Prisma.ProjectCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentCreateNestedManyWithoutTeamInput +} + +export type TeamUncheckedCreateWithoutMembersInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null + projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderUncheckedCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillUncheckedCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxUncheckedCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutTeamInput +} + +export type TeamCreateOrConnectWithoutMembersInput = { + where: Prisma.TeamWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamCreateWithoutMembersInput, + Prisma.TeamUncheckedCreateWithoutMembersInput + > +} + +export type TeamUpsertWithoutMembersInput = { + update: Prisma.XOR< + Prisma.TeamUpdateWithoutMembersInput, + Prisma.TeamUncheckedUpdateWithoutMembersInput + > + create: Prisma.XOR< + Prisma.TeamCreateWithoutMembersInput, + Prisma.TeamUncheckedCreateWithoutMembersInput + > + where?: Prisma.TeamWhereInput +} + +export type TeamUpdateToOneWithWhereWithoutMembersInput = { + where?: Prisma.TeamWhereInput + data: Prisma.XOR< + Prisma.TeamUpdateWithoutMembersInput, + Prisma.TeamUncheckedUpdateWithoutMembersInput + > +} + +export type TeamUpdateWithoutMembersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolder?: Prisma.AssetUpdateOneWithoutTeamRootFolderNestedInput + projects?: Prisma.ProjectUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUpdateManyWithoutTeamNestedInput +} + +export type TeamUncheckedUpdateWithoutMembersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projects?: Prisma.ProjectUncheckedUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUncheckedUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUncheckedUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUncheckedUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUncheckedUpdateManyWithoutTeamNestedInput +} + +export type TeamCreateWithoutProjectsInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolder?: Prisma.AssetCreateNestedOneWithoutTeamRootFolderInput + members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentCreateNestedManyWithoutTeamInput +} + +export type TeamUncheckedCreateWithoutProjectsInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null + members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderUncheckedCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillUncheckedCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxUncheckedCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutTeamInput +} + +export type TeamCreateOrConnectWithoutProjectsInput = { + where: Prisma.TeamWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamCreateWithoutProjectsInput, + Prisma.TeamUncheckedCreateWithoutProjectsInput + > +} + +export type TeamUpsertWithoutProjectsInput = { + update: Prisma.XOR< + Prisma.TeamUpdateWithoutProjectsInput, + Prisma.TeamUncheckedUpdateWithoutProjectsInput + > + create: Prisma.XOR< + Prisma.TeamCreateWithoutProjectsInput, + Prisma.TeamUncheckedCreateWithoutProjectsInput + > + where?: Prisma.TeamWhereInput +} + +export type TeamUpdateToOneWithWhereWithoutProjectsInput = { + where?: Prisma.TeamWhereInput + data: Prisma.XOR< + Prisma.TeamUpdateWithoutProjectsInput, + Prisma.TeamUncheckedUpdateWithoutProjectsInput + > +} + +export type TeamUpdateWithoutProjectsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolder?: Prisma.AssetUpdateOneWithoutTeamRootFolderNestedInput + members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUpdateManyWithoutTeamNestedInput +} + +export type TeamUncheckedUpdateWithoutProjectsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUncheckedUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUncheckedUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUncheckedUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUncheckedUpdateManyWithoutTeamNestedInput +} + +export type TeamCreateWithoutRootFolderInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentCreateNestedManyWithoutTeamInput +} + +export type TeamUncheckedCreateWithoutRootFolderInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderUncheckedCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillUncheckedCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxUncheckedCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutTeamInput +} + +export type TeamCreateOrConnectWithoutRootFolderInput = { + where: Prisma.TeamWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamCreateWithoutRootFolderInput, + Prisma.TeamUncheckedCreateWithoutRootFolderInput + > +} + +export type TeamUpsertWithoutRootFolderInput = { + update: Prisma.XOR< + Prisma.TeamUpdateWithoutRootFolderInput, + Prisma.TeamUncheckedUpdateWithoutRootFolderInput + > + create: Prisma.XOR< + Prisma.TeamCreateWithoutRootFolderInput, + Prisma.TeamUncheckedCreateWithoutRootFolderInput + > + where?: Prisma.TeamWhereInput +} + +export type TeamUpdateToOneWithWhereWithoutRootFolderInput = { + where?: Prisma.TeamWhereInput + data: Prisma.XOR< + Prisma.TeamUpdateWithoutRootFolderInput, + Prisma.TeamUncheckedUpdateWithoutRootFolderInput + > +} + +export type TeamUpdateWithoutRootFolderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUpdateManyWithoutTeamNestedInput +} + +export type TeamUncheckedUpdateWithoutRootFolderInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUncheckedUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUncheckedUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUncheckedUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUncheckedUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUncheckedUpdateManyWithoutTeamNestedInput +} + +export type TeamCreateWithoutInvitesInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolder?: Prisma.AssetCreateNestedOneWithoutTeamRootFolderInput + members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentCreateNestedManyWithoutTeamInput +} + +export type TeamUncheckedCreateWithoutInvitesInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null + members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderUncheckedCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillUncheckedCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxUncheckedCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutTeamInput +} + +export type TeamCreateOrConnectWithoutInvitesInput = { + where: Prisma.TeamWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamCreateWithoutInvitesInput, + Prisma.TeamUncheckedCreateWithoutInvitesInput + > +} + +export type TeamUpsertWithoutInvitesInput = { + update: Prisma.XOR< + Prisma.TeamUpdateWithoutInvitesInput, + Prisma.TeamUncheckedUpdateWithoutInvitesInput + > + create: Prisma.XOR< + Prisma.TeamCreateWithoutInvitesInput, + Prisma.TeamUncheckedCreateWithoutInvitesInput + > + where?: Prisma.TeamWhereInput +} + +export type TeamUpdateToOneWithWhereWithoutInvitesInput = { + where?: Prisma.TeamWhereInput + data: Prisma.XOR< + Prisma.TeamUpdateWithoutInvitesInput, + Prisma.TeamUncheckedUpdateWithoutInvitesInput + > +} + +export type TeamUpdateWithoutInvitesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolder?: Prisma.AssetUpdateOneWithoutTeamRootFolderNestedInput + members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUpdateManyWithoutTeamNestedInput +} + +export type TeamUncheckedUpdateWithoutInvitesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUncheckedUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUncheckedUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUncheckedUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUncheckedUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUncheckedUpdateManyWithoutTeamNestedInput +} + +export type TeamCreateWithoutMetadataFieldsInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolder?: Prisma.AssetCreateNestedOneWithoutTeamRootFolderInput + members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentCreateNestedManyWithoutTeamInput +} + +export type TeamUncheckedCreateWithoutMetadataFieldsInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null + members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderUncheckedCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillUncheckedCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxUncheckedCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutTeamInput +} + +export type TeamCreateOrConnectWithoutMetadataFieldsInput = { + where: Prisma.TeamWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamCreateWithoutMetadataFieldsInput, + Prisma.TeamUncheckedCreateWithoutMetadataFieldsInput + > +} + +export type TeamUpsertWithoutMetadataFieldsInput = { + update: Prisma.XOR< + Prisma.TeamUpdateWithoutMetadataFieldsInput, + Prisma.TeamUncheckedUpdateWithoutMetadataFieldsInput + > + create: Prisma.XOR< + Prisma.TeamCreateWithoutMetadataFieldsInput, + Prisma.TeamUncheckedCreateWithoutMetadataFieldsInput + > + where?: Prisma.TeamWhereInput +} + +export type TeamUpdateToOneWithWhereWithoutMetadataFieldsInput = { + where?: Prisma.TeamWhereInput + data: Prisma.XOR< + Prisma.TeamUpdateWithoutMetadataFieldsInput, + Prisma.TeamUncheckedUpdateWithoutMetadataFieldsInput + > +} + +export type TeamUpdateWithoutMetadataFieldsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolder?: Prisma.AssetUpdateOneWithoutTeamRootFolderNestedInput + members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUpdateManyWithoutTeamNestedInput +} + +export type TeamUncheckedUpdateWithoutMetadataFieldsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUncheckedUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUncheckedUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUncheckedUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUncheckedUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUncheckedUpdateManyWithoutTeamNestedInput +} + +export type TeamCreateWithoutNotificationsInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolder?: Prisma.AssetCreateNestedOneWithoutTeamRootFolderInput + members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentCreateNestedManyWithoutTeamInput +} + +export type TeamUncheckedCreateWithoutNotificationsInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null + members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderUncheckedCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillUncheckedCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxUncheckedCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutTeamInput +} + +export type TeamCreateOrConnectWithoutNotificationsInput = { + where: Prisma.TeamWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamCreateWithoutNotificationsInput, + Prisma.TeamUncheckedCreateWithoutNotificationsInput + > +} + +export type TeamUpsertWithoutNotificationsInput = { + update: Prisma.XOR< + Prisma.TeamUpdateWithoutNotificationsInput, + Prisma.TeamUncheckedUpdateWithoutNotificationsInput + > + create: Prisma.XOR< + Prisma.TeamCreateWithoutNotificationsInput, + Prisma.TeamUncheckedCreateWithoutNotificationsInput + > + where?: Prisma.TeamWhereInput +} + +export type TeamUpdateToOneWithWhereWithoutNotificationsInput = { + where?: Prisma.TeamWhereInput + data: Prisma.XOR< + Prisma.TeamUpdateWithoutNotificationsInput, + Prisma.TeamUncheckedUpdateWithoutNotificationsInput + > +} + +export type TeamUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolder?: Prisma.AssetUpdateOneWithoutTeamRootFolderNestedInput + members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUpdateManyWithoutTeamNestedInput +} + +export type TeamUncheckedUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUncheckedUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUncheckedUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUncheckedUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUncheckedUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUncheckedUpdateManyWithoutTeamNestedInput +} + +export type TeamCreateWithoutAgentsInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolder?: Prisma.AssetCreateNestedOneWithoutTeamRootFolderInput + members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxCreateNestedOneWithoutTeamInput +} + +export type TeamUncheckedCreateWithoutAgentsInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null + members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderUncheckedCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillUncheckedCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxUncheckedCreateNestedOneWithoutTeamInput +} + +export type TeamCreateOrConnectWithoutAgentsInput = { + where: Prisma.TeamWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamCreateWithoutAgentsInput, + Prisma.TeamUncheckedCreateWithoutAgentsInput + > +} + +export type TeamUpsertWithoutAgentsInput = { + update: Prisma.XOR< + Prisma.TeamUpdateWithoutAgentsInput, + Prisma.TeamUncheckedUpdateWithoutAgentsInput + > + create: Prisma.XOR< + Prisma.TeamCreateWithoutAgentsInput, + Prisma.TeamUncheckedCreateWithoutAgentsInput + > + where?: Prisma.TeamWhereInput +} + +export type TeamUpdateToOneWithWhereWithoutAgentsInput = { + where?: Prisma.TeamWhereInput + data: Prisma.XOR< + Prisma.TeamUpdateWithoutAgentsInput, + Prisma.TeamUncheckedUpdateWithoutAgentsInput + > +} + +export type TeamUpdateWithoutAgentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolder?: Prisma.AssetUpdateOneWithoutTeamRootFolderNestedInput + members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUpdateOneWithoutTeamNestedInput +} + +export type TeamUncheckedUpdateWithoutAgentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUncheckedUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUncheckedUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUncheckedUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUncheckedUpdateOneWithoutTeamNestedInput +} + +export type TeamCreateWithoutUserMetadataInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolder?: Prisma.AssetCreateNestedOneWithoutTeamRootFolderInput + members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentCreateNestedManyWithoutTeamInput +} + +export type TeamUncheckedCreateWithoutUserMetadataInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null + members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTeamInput + providers?: Prisma.ProviderUncheckedCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillUncheckedCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxUncheckedCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutTeamInput +} + +export type TeamCreateOrConnectWithoutUserMetadataInput = { + where: Prisma.TeamWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamCreateWithoutUserMetadataInput, + Prisma.TeamUncheckedCreateWithoutUserMetadataInput + > +} + +export type TeamUpsertWithoutUserMetadataInput = { + update: Prisma.XOR< + Prisma.TeamUpdateWithoutUserMetadataInput, + Prisma.TeamUncheckedUpdateWithoutUserMetadataInput + > + create: Prisma.XOR< + Prisma.TeamCreateWithoutUserMetadataInput, + Prisma.TeamUncheckedCreateWithoutUserMetadataInput + > + where?: Prisma.TeamWhereInput +} + +export type TeamUpdateToOneWithWhereWithoutUserMetadataInput = { + where?: Prisma.TeamWhereInput + data: Prisma.XOR< + Prisma.TeamUpdateWithoutUserMetadataInput, + Prisma.TeamUncheckedUpdateWithoutUserMetadataInput + > +} + +export type TeamUpdateWithoutUserMetadataInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolder?: Prisma.AssetUpdateOneWithoutTeamRootFolderNestedInput + members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUpdateManyWithoutTeamNestedInput +} + +export type TeamUncheckedUpdateWithoutUserMetadataInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUncheckedUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTeamNestedInput + providers?: Prisma.ProviderUncheckedUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUncheckedUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUncheckedUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUncheckedUpdateManyWithoutTeamNestedInput +} + +export type TeamCreateWithoutProvidersInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolder?: Prisma.AssetCreateNestedOneWithoutTeamRootFolderInput + members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentCreateNestedManyWithoutTeamInput +} + +export type TeamUncheckedCreateWithoutProvidersInput = { + id?: string + name: string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Date | string + updatedAt?: Date | string + rootFolderId?: string | null + members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput + projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutTeamInput + metadataFields?: Prisma.MetadataFieldUncheckedCreateNestedManyWithoutTeamInput + invites?: Prisma.InviteUncheckedCreateNestedManyWithoutTeamInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutTeamInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutTeamInput + skills?: Prisma.SkillUncheckedCreateNestedManyWithoutTeamInput + sandbox?: Prisma.SandboxUncheckedCreateNestedOneWithoutTeamInput + agents?: Prisma.AgentUncheckedCreateNestedManyWithoutTeamInput +} + +export type TeamCreateOrConnectWithoutProvidersInput = { + where: Prisma.TeamWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamCreateWithoutProvidersInput, + Prisma.TeamUncheckedCreateWithoutProvidersInput + > +} + +export type TeamUpsertWithoutProvidersInput = { + update: Prisma.XOR< + Prisma.TeamUpdateWithoutProvidersInput, + Prisma.TeamUncheckedUpdateWithoutProvidersInput + > + create: Prisma.XOR< + Prisma.TeamCreateWithoutProvidersInput, + Prisma.TeamUncheckedCreateWithoutProvidersInput + > + where?: Prisma.TeamWhereInput +} + +export type TeamUpdateToOneWithWhereWithoutProvidersInput = { + where?: Prisma.TeamWhereInput + data: Prisma.XOR< + Prisma.TeamUpdateWithoutProvidersInput, + Prisma.TeamUncheckedUpdateWithoutProvidersInput + > +} + +export type TeamUpdateWithoutProvidersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolder?: Prisma.AssetUpdateOneWithoutTeamRootFolderNestedInput + members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUpdateManyWithoutTeamNestedInput +} + +export type TeamUncheckedUpdateWithoutProvidersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + settings?: PrismaJson.Settings | Prisma.NullableJsonNullValueInput + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + rootFolderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput + projects?: Prisma.ProjectUncheckedUpdateManyWithoutTeamNestedInput + metadataFields?: Prisma.MetadataFieldUncheckedUpdateManyWithoutTeamNestedInput + invites?: Prisma.InviteUncheckedUpdateManyWithoutTeamNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutTeamNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutTeamNestedInput + skills?: Prisma.SkillUncheckedUpdateManyWithoutTeamNestedInput + sandbox?: Prisma.SandboxUncheckedUpdateOneWithoutTeamNestedInput + agents?: Prisma.AgentUncheckedUpdateManyWithoutTeamNestedInput +} + +/** + * Count Type TeamCountOutputType + */ + +export type TeamCountOutputType = { + members: number + projects: number + metadataFields: number + invites: number + notifications: number + userMetadata: number + providers: number + skills: number + agents: number +} + +export type TeamCountOutputTypeSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + members?: boolean | TeamCountOutputTypeCountMembersArgs + projects?: boolean | TeamCountOutputTypeCountProjectsArgs + metadataFields?: boolean | TeamCountOutputTypeCountMetadataFieldsArgs + invites?: boolean | TeamCountOutputTypeCountInvitesArgs + notifications?: boolean | TeamCountOutputTypeCountNotificationsArgs + userMetadata?: boolean | TeamCountOutputTypeCountUserMetadataArgs + providers?: boolean | TeamCountOutputTypeCountProvidersArgs + skills?: boolean | TeamCountOutputTypeCountSkillsArgs + agents?: boolean | TeamCountOutputTypeCountAgentsArgs +} + +/** + * TeamCountOutputType without action + */ +export type TeamCountOutputTypeDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamCountOutputType + */ + select?: Prisma.TeamCountOutputTypeSelect | null +} + +/** + * TeamCountOutputType without action + */ +export type TeamCountOutputTypeCountMembersArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.TeamMemberWhereInput +} + +/** + * TeamCountOutputType without action + */ +export type TeamCountOutputTypeCountProjectsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.ProjectWhereInput +} + +/** + * TeamCountOutputType without action + */ +export type TeamCountOutputTypeCountMetadataFieldsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.MetadataFieldWhereInput +} + +/** + * TeamCountOutputType without action + */ +export type TeamCountOutputTypeCountInvitesArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.InviteWhereInput +} + +/** + * TeamCountOutputType without action + */ +export type TeamCountOutputTypeCountNotificationsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.NotificationWhereInput +} + +/** + * TeamCountOutputType without action + */ +export type TeamCountOutputTypeCountUserMetadataArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.UserMetadataWhereInput +} + +/** + * TeamCountOutputType without action + */ +export type TeamCountOutputTypeCountProvidersArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.ProviderWhereInput +} + +/** + * TeamCountOutputType without action + */ +export type TeamCountOutputTypeCountSkillsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.SkillWhereInput +} + +/** + * TeamCountOutputType without action + */ +export type TeamCountOutputTypeCountAgentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AgentWhereInput +} + +export type TeamSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + settings?: boolean + createdAt?: boolean + updatedAt?: boolean + rootFolderId?: boolean + rootFolder?: boolean | Prisma.Team$rootFolderArgs + members?: boolean | Prisma.Team$membersArgs + projects?: boolean | Prisma.Team$projectsArgs + metadataFields?: boolean | Prisma.Team$metadataFieldsArgs + invites?: boolean | Prisma.Team$invitesArgs + notifications?: boolean | Prisma.Team$notificationsArgs + userMetadata?: boolean | Prisma.Team$userMetadataArgs + providers?: boolean | Prisma.Team$providersArgs + skills?: boolean | Prisma.Team$skillsArgs + sandbox?: boolean | Prisma.Team$sandboxArgs + agents?: boolean | Prisma.Team$agentsArgs + _count?: boolean | Prisma.TeamCountOutputTypeDefaultArgs + }, + ExtArgs['result']['team'] +> + +export type TeamSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + settings?: boolean + createdAt?: boolean + updatedAt?: boolean + rootFolderId?: boolean + rootFolder?: boolean | Prisma.Team$rootFolderArgs + }, + ExtArgs['result']['team'] +> + +export type TeamSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + name?: boolean + settings?: boolean + createdAt?: boolean + updatedAt?: boolean + rootFolderId?: boolean + rootFolder?: boolean | Prisma.Team$rootFolderArgs + }, + ExtArgs['result']['team'] +> + +export type TeamSelectScalar = { + id?: boolean + name?: boolean + settings?: boolean + createdAt?: boolean + updatedAt?: boolean + rootFolderId?: boolean +} + +export type TeamOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'name' | 'settings' | 'createdAt' | 'updatedAt' | 'rootFolderId', + ExtArgs['result']['team'] +> +export type TeamInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + rootFolder?: boolean | Prisma.Team$rootFolderArgs + members?: boolean | Prisma.Team$membersArgs + projects?: boolean | Prisma.Team$projectsArgs + metadataFields?: boolean | Prisma.Team$metadataFieldsArgs + invites?: boolean | Prisma.Team$invitesArgs + notifications?: boolean | Prisma.Team$notificationsArgs + userMetadata?: boolean | Prisma.Team$userMetadataArgs + providers?: boolean | Prisma.Team$providersArgs + skills?: boolean | Prisma.Team$skillsArgs + sandbox?: boolean | Prisma.Team$sandboxArgs + agents?: boolean | Prisma.Team$agentsArgs + _count?: boolean | Prisma.TeamCountOutputTypeDefaultArgs +} +export type TeamIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + rootFolder?: boolean | Prisma.Team$rootFolderArgs +} +export type TeamIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + rootFolder?: boolean | Prisma.Team$rootFolderArgs +} + +export type $TeamPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Team' + objects: { + rootFolder: Prisma.$AssetPayload | null + members: Prisma.$TeamMemberPayload[] + projects: Prisma.$ProjectPayload[] + metadataFields: Prisma.$MetadataFieldPayload[] + invites: Prisma.$InvitePayload[] + notifications: Prisma.$NotificationPayload[] + userMetadata: Prisma.$UserMetadataPayload[] + providers: Prisma.$ProviderPayload[] + skills: Prisma.$SkillPayload[] + sandbox: Prisma.$SandboxPayload | null + agents: Prisma.$AgentPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + name: string + /** + * [Settings] + */ + settings: PrismaJson.Settings | null + createdAt: Date + updatedAt: Date + rootFolderId: string | null + }, + ExtArgs['result']['team'] + > + composites: {} +} + +export type TeamGetPayload = + runtime.Types.Result.GetResult + +export type TeamCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: TeamCountAggregateInputType | true +} + +export interface TeamDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['Team']; meta: { name: 'Team' } } + /** + * Find zero or one Team that matches the filter. + * @param {TeamFindUniqueArgs} args - Arguments to find a Team + * @example + * // Get one Team + * const team = await prisma.team.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamClient< + runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Team that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {TeamFindUniqueOrThrowArgs} args - Arguments to find a Team + * @example + * // Get one Team + * const team = await prisma.team.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamClient< + runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Team that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamFindFirstArgs} args - Arguments to find a Team + * @example + * // Get one Team + * const team = await prisma.team.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamClient< + runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Team that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamFindFirstOrThrowArgs} args - Arguments to find a Team + * @example + * // Get one Team + * const team = await prisma.team.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamClient< + runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Teams that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Teams + * const teams = await prisma.team.findMany() + * + * // Get first 10 Teams + * const teams = await prisma.team.findMany({ take: 10 }) + * + * // Only select the `id` + * const teamWithIdOnly = await prisma.team.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult, T, 'findMany', GlobalOmitOptions> + > + + /** + * Create a Team. + * @param {TeamCreateArgs} args - Arguments to create a Team. + * @example + * // Create one Team + * const Team = await prisma.team.create({ + * data: { + * // ... data to create a Team + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamClient< + runtime.Types.Result.GetResult, T, 'create', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Teams. + * @param {TeamCreateManyArgs} args - Arguments to create many Teams. + * @example + * // Create many Teams + * const team = await prisma.team.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Teams and returns the data saved in the database. + * @param {TeamCreateManyAndReturnArgs} args - Arguments to create many Teams. + * @example + * // Create many Teams + * const team = await prisma.team.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Teams and only return the `id` + * const teamWithIdOnly = await prisma.team.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Team. + * @param {TeamDeleteArgs} args - Arguments to delete one Team. + * @example + * // Delete one Team + * const Team = await prisma.team.delete({ + * where: { + * // ... filter to delete one Team + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamClient< + runtime.Types.Result.GetResult, T, 'delete', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Team. + * @param {TeamUpdateArgs} args - Arguments to update one Team. + * @example + * // Update one Team + * const team = await prisma.team.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamClient< + runtime.Types.Result.GetResult, T, 'update', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Teams. + * @param {TeamDeleteManyArgs} args - Arguments to filter Teams to delete. + * @example + * // Delete a few Teams + * const { count } = await prisma.team.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Teams. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Teams + * const team = await prisma.team.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Teams and returns the data updated in the database. + * @param {TeamUpdateManyAndReturnArgs} args - Arguments to update many Teams. + * @example + * // Update many Teams + * const team = await prisma.team.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Teams and only return the `id` + * const teamWithIdOnly = await prisma.team.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Team. + * @param {TeamUpsertArgs} args - Arguments to update or create a Team. + * @example + * // Update or create a Team + * const team = await prisma.team.upsert({ + * create: { + * // ... data to create a Team + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Team we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamClient< + runtime.Types.Result.GetResult, T, 'upsert', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Teams. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamCountArgs} args - Arguments to filter Teams to count. + * @example + * // Count the number of Teams + * const count = await prisma.team.count({ + * where: { + * // ... the filter for the Teams we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Team. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Team. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends TeamGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: TeamGroupByArgs['orderBy'] } + : { orderBy?: TeamGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetTeamGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Team model + */ + readonly fields: TeamFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Team. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__TeamClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + rootFolder = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AssetClient< + runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + members = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + projects = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + metadataFields = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$MetadataFieldPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + invites = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$InvitePayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + notifications = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + userMetadata = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$UserMetadataPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + providers = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$ProviderPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + skills = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$SkillPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + sandbox = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__SandboxClient< + runtime.Types.Result.GetResult< + Prisma.$SandboxPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + agents = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AgentPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Team model + */ +export interface TeamFieldRefs { + readonly id: Prisma.FieldRef<'Team', 'String'> + readonly name: Prisma.FieldRef<'Team', 'String'> + readonly settings: Prisma.FieldRef<'Team', 'Json'> + readonly createdAt: Prisma.FieldRef<'Team', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Team', 'DateTime'> + readonly rootFolderId: Prisma.FieldRef<'Team', 'String'> +} + +// Custom InputTypes +/** + * Team findUnique + */ +export type TeamFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelect | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamInclude | null + /** + * Filter, which Team to fetch. + */ + where: Prisma.TeamWhereUniqueInput +} + +/** + * Team findUniqueOrThrow + */ +export type TeamFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelect | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamInclude | null + /** + * Filter, which Team to fetch. + */ + where: Prisma.TeamWhereUniqueInput +} + +/** + * Team findFirst + */ +export type TeamFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelect | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamInclude | null + /** + * Filter, which Team to fetch. + */ + where?: Prisma.TeamWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Teams to fetch. + */ + orderBy?: Prisma.TeamOrderByWithRelationInput | Prisma.TeamOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Teams. + */ + cursor?: Prisma.TeamWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Teams from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Teams. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Teams. + */ + distinct?: Prisma.TeamScalarFieldEnum | Prisma.TeamScalarFieldEnum[] +} + +/** + * Team findFirstOrThrow + */ +export type TeamFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelect | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamInclude | null + /** + * Filter, which Team to fetch. + */ + where?: Prisma.TeamWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Teams to fetch. + */ + orderBy?: Prisma.TeamOrderByWithRelationInput | Prisma.TeamOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Teams. + */ + cursor?: Prisma.TeamWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Teams from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Teams. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Teams. + */ + distinct?: Prisma.TeamScalarFieldEnum | Prisma.TeamScalarFieldEnum[] +} + +/** + * Team findMany + */ +export type TeamFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelect | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamInclude | null + /** + * Filter, which Teams to fetch. + */ + where?: Prisma.TeamWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Teams to fetch. + */ + orderBy?: Prisma.TeamOrderByWithRelationInput | Prisma.TeamOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Teams. + */ + cursor?: Prisma.TeamWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Teams from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Teams. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Teams. + */ + distinct?: Prisma.TeamScalarFieldEnum | Prisma.TeamScalarFieldEnum[] +} + +/** + * Team create + */ +export type TeamCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelect | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamInclude | null + /** + * The data needed to create a Team. + */ + data: Prisma.XOR +} + +/** + * Team createMany + */ +export type TeamCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Teams. + */ + data: Prisma.TeamCreateManyInput | Prisma.TeamCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Team createManyAndReturn + */ +export type TeamCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * The data used to create many Teams. + */ + data: Prisma.TeamCreateManyInput | Prisma.TeamCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamIncludeCreateManyAndReturn | null +} + +/** + * Team update + */ +export type TeamUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelect | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamInclude | null + /** + * The data needed to update a Team. + */ + data: Prisma.XOR + /** + * Choose, which Team to update. + */ + where: Prisma.TeamWhereUniqueInput +} + +/** + * Team updateMany + */ +export type TeamUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Teams. + */ + data: Prisma.XOR + /** + * Filter which Teams to update + */ + where?: Prisma.TeamWhereInput + /** + * Limit how many Teams to update. + */ + limit?: number +} + +/** + * Team updateManyAndReturn + */ +export type TeamUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * The data used to update Teams. + */ + data: Prisma.XOR + /** + * Filter which Teams to update + */ + where?: Prisma.TeamWhereInput + /** + * Limit how many Teams to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamIncludeUpdateManyAndReturn | null +} + +/** + * Team upsert + */ +export type TeamUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelect | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamInclude | null + /** + * The filter to search for the Team to update in case it exists. + */ + where: Prisma.TeamWhereUniqueInput + /** + * In case the Team found by the `where` argument doesn't exist, create a new Team with this data. + */ + create: Prisma.XOR + /** + * In case the Team was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Team delete + */ +export type TeamDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelect | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamInclude | null + /** + * Filter which Team to delete. + */ + where: Prisma.TeamWhereUniqueInput +} + +/** + * Team deleteMany + */ +export type TeamDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Teams to delete + */ + where?: Prisma.TeamWhereInput + /** + * Limit how many Teams to delete. + */ + limit?: number +} + +/** + * Team.rootFolder + */ +export type Team$rootFolderArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + where?: Prisma.AssetWhereInput +} + +/** + * Team.members + */ +export type Team$membersArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelect | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberInclude | null + where?: Prisma.TeamMemberWhereInput + orderBy?: Prisma.TeamMemberOrderByWithRelationInput | Prisma.TeamMemberOrderByWithRelationInput[] + cursor?: Prisma.TeamMemberWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.TeamMemberScalarFieldEnum | Prisma.TeamMemberScalarFieldEnum[] +} + +/** + * Team.projects + */ +export type Team$projectsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + where?: Prisma.ProjectWhereInput + orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] + cursor?: Prisma.ProjectWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] +} + +/** + * Team.metadataFields + */ +export type Team$metadataFieldsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the MetadataField + */ + select?: Prisma.MetadataFieldSelect | null + /** + * Omit specific fields from the MetadataField + */ + omit?: Prisma.MetadataFieldOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MetadataFieldInclude | null + where?: Prisma.MetadataFieldWhereInput + orderBy?: + | Prisma.MetadataFieldOrderByWithRelationInput + | Prisma.MetadataFieldOrderByWithRelationInput[] + cursor?: Prisma.MetadataFieldWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.MetadataFieldScalarFieldEnum | Prisma.MetadataFieldScalarFieldEnum[] +} + +/** + * Team.invites + */ +export type Team$invitesArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelect | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteInclude | null + where?: Prisma.InviteWhereInput + orderBy?: Prisma.InviteOrderByWithRelationInput | Prisma.InviteOrderByWithRelationInput[] + cursor?: Prisma.InviteWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.InviteScalarFieldEnum | Prisma.InviteScalarFieldEnum[] +} + +/** + * Team.notifications + */ +export type Team$notificationsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + where?: Prisma.NotificationWhereInput + orderBy?: + | Prisma.NotificationOrderByWithRelationInput + | Prisma.NotificationOrderByWithRelationInput[] + cursor?: Prisma.NotificationWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * Team.userMetadata + */ +export type Team$userMetadataArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelect | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataInclude | null + where?: Prisma.UserMetadataWhereInput + orderBy?: + | Prisma.UserMetadataOrderByWithRelationInput + | Prisma.UserMetadataOrderByWithRelationInput[] + cursor?: Prisma.UserMetadataWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserMetadataScalarFieldEnum | Prisma.UserMetadataScalarFieldEnum[] +} + +/** + * Team.providers + */ +export type Team$providersArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Provider + */ + select?: Prisma.ProviderSelect | null + /** + * Omit specific fields from the Provider + */ + omit?: Prisma.ProviderOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProviderInclude | null + where?: Prisma.ProviderWhereInput + orderBy?: Prisma.ProviderOrderByWithRelationInput | Prisma.ProviderOrderByWithRelationInput[] + cursor?: Prisma.ProviderWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ProviderScalarFieldEnum | Prisma.ProviderScalarFieldEnum[] +} + +/** + * Team.skills + */ +export type Team$skillsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Skill + */ + select?: Prisma.SkillSelect | null + /** + * Omit specific fields from the Skill + */ + omit?: Prisma.SkillOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SkillInclude | null + where?: Prisma.SkillWhereInput + orderBy?: Prisma.SkillOrderByWithRelationInput | Prisma.SkillOrderByWithRelationInput[] + cursor?: Prisma.SkillWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.SkillScalarFieldEnum | Prisma.SkillScalarFieldEnum[] +} + +/** + * Team.sandbox + */ +export type Team$sandboxArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Sandbox + */ + select?: Prisma.SandboxSelect | null + /** + * Omit specific fields from the Sandbox + */ + omit?: Prisma.SandboxOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SandboxInclude | null + where?: Prisma.SandboxWhereInput +} + +/** + * Team.agents + */ +export type Team$agentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null + where?: Prisma.AgentWhereInput + orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[] + cursor?: Prisma.AgentWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[] +} + +/** + * Team without action + */ +export type TeamDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Team + */ + select?: Prisma.TeamSelect | null + /** + * Omit specific fields from the Team + */ + omit?: Prisma.TeamOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamInclude | null +} diff --git a/packages/db/src/generated/prisma/models/TeamMember.ts b/packages/db/src/generated/prisma/models/TeamMember.ts new file mode 100644 index 00000000..f2eb12e4 --- /dev/null +++ b/packages/db/src/generated/prisma/models/TeamMember.ts @@ -0,0 +1,2242 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `TeamMember` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model TeamMember + * + */ +export type TeamMemberModel = runtime.Types.Result.DefaultSelection + +export type AggregateTeamMember = { + _count: TeamMemberCountAggregateOutputType | null + _min: TeamMemberMinAggregateOutputType | null + _max: TeamMemberMaxAggregateOutputType | null +} + +export type TeamMemberMinAggregateOutputType = { + id: string | null + role: $Enums.TeamMemberRole | null + scope: $Enums.TeamMemberScope | null + teamId: string | null + userId: string | null + lastReadNotificationId: string | null +} + +export type TeamMemberMaxAggregateOutputType = { + id: string | null + role: $Enums.TeamMemberRole | null + scope: $Enums.TeamMemberScope | null + teamId: string | null + userId: string | null + lastReadNotificationId: string | null +} + +export type TeamMemberCountAggregateOutputType = { + id: number + role: number + scope: number + teamId: number + userId: number + lastReadNotificationId: number + _all: number +} + +export type TeamMemberMinAggregateInputType = { + id?: true + role?: true + scope?: true + teamId?: true + userId?: true + lastReadNotificationId?: true +} + +export type TeamMemberMaxAggregateInputType = { + id?: true + role?: true + scope?: true + teamId?: true + userId?: true + lastReadNotificationId?: true +} + +export type TeamMemberCountAggregateInputType = { + id?: true + role?: true + scope?: true + teamId?: true + userId?: true + lastReadNotificationId?: true + _all?: true +} + +export type TeamMemberAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which TeamMember to aggregate. + */ + where?: Prisma.TeamMemberWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of TeamMembers to fetch. + */ + orderBy?: Prisma.TeamMemberOrderByWithRelationInput | Prisma.TeamMemberOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.TeamMemberWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` TeamMembers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` TeamMembers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned TeamMembers + **/ + _count?: true | TeamMemberCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: TeamMemberMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: TeamMemberMaxAggregateInputType +} + +export type GetTeamMemberAggregateType = { + [P in keyof T & keyof AggregateTeamMember]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type TeamMemberGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.TeamMemberWhereInput + orderBy?: + | Prisma.TeamMemberOrderByWithAggregationInput + | Prisma.TeamMemberOrderByWithAggregationInput[] + by: Prisma.TeamMemberScalarFieldEnum[] | Prisma.TeamMemberScalarFieldEnum + having?: Prisma.TeamMemberScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: TeamMemberCountAggregateInputType | true + _min?: TeamMemberMinAggregateInputType + _max?: TeamMemberMaxAggregateInputType +} + +export type TeamMemberGroupByOutputType = { + id: string + role: $Enums.TeamMemberRole + scope: $Enums.TeamMemberScope + teamId: string + userId: string + lastReadNotificationId: string | null + _count: TeamMemberCountAggregateOutputType | null + _min: TeamMemberMinAggregateOutputType | null + _max: TeamMemberMaxAggregateOutputType | null +} + +export type GetTeamMemberGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof TeamMemberGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type TeamMemberWhereInput = { + AND?: Prisma.TeamMemberWhereInput | Prisma.TeamMemberWhereInput[] + OR?: Prisma.TeamMemberWhereInput[] + NOT?: Prisma.TeamMemberWhereInput | Prisma.TeamMemberWhereInput[] + id?: Prisma.StringFilter<'TeamMember'> | string + role?: Prisma.EnumTeamMemberRoleFilter<'TeamMember'> | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFilter<'TeamMember'> | $Enums.TeamMemberScope + teamId?: Prisma.StringFilter<'TeamMember'> | string + userId?: Prisma.StringFilter<'TeamMember'> | string + lastReadNotificationId?: Prisma.StringNullableFilter<'TeamMember'> | string | null + team?: Prisma.XOR + user?: Prisma.XOR + projectMembers?: Prisma.ProjectMemberListRelationFilter + lastReadNotification?: Prisma.XOR< + Prisma.NotificationNullableScalarRelationFilter, + Prisma.NotificationWhereInput + > | null +} + +export type TeamMemberOrderByWithRelationInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + scope?: Prisma.SortOrder + teamId?: Prisma.SortOrder + userId?: Prisma.SortOrder + lastReadNotificationId?: Prisma.SortOrderInput | Prisma.SortOrder + team?: Prisma.TeamOrderByWithRelationInput + user?: Prisma.UserOrderByWithRelationInput + projectMembers?: Prisma.ProjectMemberOrderByRelationAggregateInput + lastReadNotification?: Prisma.NotificationOrderByWithRelationInput +} + +export type TeamMemberWhereUniqueInput = Prisma.AtLeast< + { + id?: string + lastReadNotificationId?: string + teamIdUserId?: Prisma.TeamMemberTeamIdUserIdCompoundUniqueInput + AND?: Prisma.TeamMemberWhereInput | Prisma.TeamMemberWhereInput[] + OR?: Prisma.TeamMemberWhereInput[] + NOT?: Prisma.TeamMemberWhereInput | Prisma.TeamMemberWhereInput[] + role?: Prisma.EnumTeamMemberRoleFilter<'TeamMember'> | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFilter<'TeamMember'> | $Enums.TeamMemberScope + teamId?: Prisma.StringFilter<'TeamMember'> | string + userId?: Prisma.StringFilter<'TeamMember'> | string + team?: Prisma.XOR + user?: Prisma.XOR + projectMembers?: Prisma.ProjectMemberListRelationFilter + lastReadNotification?: Prisma.XOR< + Prisma.NotificationNullableScalarRelationFilter, + Prisma.NotificationWhereInput + > | null + }, + 'id' | 'lastReadNotificationId' | 'teamIdUserId' +> + +export type TeamMemberOrderByWithAggregationInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + scope?: Prisma.SortOrder + teamId?: Prisma.SortOrder + userId?: Prisma.SortOrder + lastReadNotificationId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.TeamMemberCountOrderByAggregateInput + _max?: Prisma.TeamMemberMaxOrderByAggregateInput + _min?: Prisma.TeamMemberMinOrderByAggregateInput +} + +export type TeamMemberScalarWhereWithAggregatesInput = { + AND?: + | Prisma.TeamMemberScalarWhereWithAggregatesInput + | Prisma.TeamMemberScalarWhereWithAggregatesInput[] + OR?: Prisma.TeamMemberScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.TeamMemberScalarWhereWithAggregatesInput + | Prisma.TeamMemberScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'TeamMember'> | string + role?: Prisma.EnumTeamMemberRoleWithAggregatesFilter<'TeamMember'> | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeWithAggregatesFilter<'TeamMember'> | $Enums.TeamMemberScope + teamId?: Prisma.StringWithAggregatesFilter<'TeamMember'> | string + userId?: Prisma.StringWithAggregatesFilter<'TeamMember'> | string + lastReadNotificationId?: Prisma.StringNullableWithAggregatesFilter<'TeamMember'> | string | null +} + +export type TeamMemberCreateInput = { + id?: string + role: $Enums.TeamMemberRole + scope?: $Enums.TeamMemberScope + team: Prisma.TeamCreateNestedOneWithoutMembersInput + user: Prisma.UserCreateNestedOneWithoutTeamMembersInput + projectMembers?: Prisma.ProjectMemberCreateNestedManyWithoutTeamMemberInput + lastReadNotification?: Prisma.NotificationCreateNestedOneWithoutReadByMembersInput +} + +export type TeamMemberUncheckedCreateInput = { + id?: string + role: $Enums.TeamMemberRole + scope?: $Enums.TeamMemberScope + teamId: string + userId: string + lastReadNotificationId?: string | null + projectMembers?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutTeamMemberInput +} + +export type TeamMemberUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope + team?: Prisma.TeamUpdateOneRequiredWithoutMembersNestedInput + user?: Prisma.UserUpdateOneRequiredWithoutTeamMembersNestedInput + projectMembers?: Prisma.ProjectMemberUpdateManyWithoutTeamMemberNestedInput + lastReadNotification?: Prisma.NotificationUpdateOneWithoutReadByMembersNestedInput +} + +export type TeamMemberUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope + teamId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + lastReadNotificationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectMembers?: Prisma.ProjectMemberUncheckedUpdateManyWithoutTeamMemberNestedInput +} + +export type TeamMemberCreateManyInput = { + id?: string + role: $Enums.TeamMemberRole + scope?: $Enums.TeamMemberScope + teamId: string + userId: string + lastReadNotificationId?: string | null +} + +export type TeamMemberUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope +} + +export type TeamMemberUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope + teamId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + lastReadNotificationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type TeamMemberListRelationFilter = { + every?: Prisma.TeamMemberWhereInput + some?: Prisma.TeamMemberWhereInput + none?: Prisma.TeamMemberWhereInput +} + +export type TeamMemberOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type TeamMemberTeamIdUserIdCompoundUniqueInput = { + teamId: string + userId: string +} + +export type TeamMemberCountOrderByAggregateInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + scope?: Prisma.SortOrder + teamId?: Prisma.SortOrder + userId?: Prisma.SortOrder + lastReadNotificationId?: Prisma.SortOrder +} + +export type TeamMemberMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + scope?: Prisma.SortOrder + teamId?: Prisma.SortOrder + userId?: Prisma.SortOrder + lastReadNotificationId?: Prisma.SortOrder +} + +export type TeamMemberMinOrderByAggregateInput = { + id?: Prisma.SortOrder + role?: Prisma.SortOrder + scope?: Prisma.SortOrder + teamId?: Prisma.SortOrder + userId?: Prisma.SortOrder + lastReadNotificationId?: Prisma.SortOrder +} + +export type TeamMemberScalarRelationFilter = { + is?: Prisma.TeamMemberWhereInput + isNot?: Prisma.TeamMemberWhereInput +} + +export type TeamMemberNullableScalarRelationFilter = { + is?: Prisma.TeamMemberWhereInput | null + isNot?: Prisma.TeamMemberWhereInput | null +} + +export type TeamMemberCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.TeamMemberCreateWithoutUserInput, + Prisma.TeamMemberUncheckedCreateWithoutUserInput + > + | Prisma.TeamMemberCreateWithoutUserInput[] + | Prisma.TeamMemberUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.TeamMemberCreateOrConnectWithoutUserInput + | Prisma.TeamMemberCreateOrConnectWithoutUserInput[] + createMany?: Prisma.TeamMemberCreateManyUserInputEnvelope + connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] +} + +export type TeamMemberUncheckedCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.TeamMemberCreateWithoutUserInput, + Prisma.TeamMemberUncheckedCreateWithoutUserInput + > + | Prisma.TeamMemberCreateWithoutUserInput[] + | Prisma.TeamMemberUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.TeamMemberCreateOrConnectWithoutUserInput + | Prisma.TeamMemberCreateOrConnectWithoutUserInput[] + createMany?: Prisma.TeamMemberCreateManyUserInputEnvelope + connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] +} + +export type TeamMemberUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.TeamMemberCreateWithoutUserInput, + Prisma.TeamMemberUncheckedCreateWithoutUserInput + > + | Prisma.TeamMemberCreateWithoutUserInput[] + | Prisma.TeamMemberUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.TeamMemberCreateOrConnectWithoutUserInput + | Prisma.TeamMemberCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.TeamMemberUpsertWithWhereUniqueWithoutUserInput + | Prisma.TeamMemberUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.TeamMemberCreateManyUserInputEnvelope + set?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + disconnect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + delete?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + update?: + | Prisma.TeamMemberUpdateWithWhereUniqueWithoutUserInput + | Prisma.TeamMemberUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.TeamMemberUpdateManyWithWhereWithoutUserInput + | Prisma.TeamMemberUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.TeamMemberScalarWhereInput | Prisma.TeamMemberScalarWhereInput[] +} + +export type TeamMemberUncheckedUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.TeamMemberCreateWithoutUserInput, + Prisma.TeamMemberUncheckedCreateWithoutUserInput + > + | Prisma.TeamMemberCreateWithoutUserInput[] + | Prisma.TeamMemberUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.TeamMemberCreateOrConnectWithoutUserInput + | Prisma.TeamMemberCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.TeamMemberUpsertWithWhereUniqueWithoutUserInput + | Prisma.TeamMemberUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.TeamMemberCreateManyUserInputEnvelope + set?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + disconnect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + delete?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + update?: + | Prisma.TeamMemberUpdateWithWhereUniqueWithoutUserInput + | Prisma.TeamMemberUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.TeamMemberUpdateManyWithWhereWithoutUserInput + | Prisma.TeamMemberUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.TeamMemberScalarWhereInput | Prisma.TeamMemberScalarWhereInput[] +} + +export type TeamMemberCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR< + Prisma.TeamMemberCreateWithoutTeamInput, + Prisma.TeamMemberUncheckedCreateWithoutTeamInput + > + | Prisma.TeamMemberCreateWithoutTeamInput[] + | Prisma.TeamMemberUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.TeamMemberCreateOrConnectWithoutTeamInput + | Prisma.TeamMemberCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.TeamMemberCreateManyTeamInputEnvelope + connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] +} + +export type TeamMemberUncheckedCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR< + Prisma.TeamMemberCreateWithoutTeamInput, + Prisma.TeamMemberUncheckedCreateWithoutTeamInput + > + | Prisma.TeamMemberCreateWithoutTeamInput[] + | Prisma.TeamMemberUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.TeamMemberCreateOrConnectWithoutTeamInput + | Prisma.TeamMemberCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.TeamMemberCreateManyTeamInputEnvelope + connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] +} + +export type TeamMemberUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR< + Prisma.TeamMemberCreateWithoutTeamInput, + Prisma.TeamMemberUncheckedCreateWithoutTeamInput + > + | Prisma.TeamMemberCreateWithoutTeamInput[] + | Prisma.TeamMemberUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.TeamMemberCreateOrConnectWithoutTeamInput + | Prisma.TeamMemberCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.TeamMemberUpsertWithWhereUniqueWithoutTeamInput + | Prisma.TeamMemberUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.TeamMemberCreateManyTeamInputEnvelope + set?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + disconnect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + delete?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + update?: + | Prisma.TeamMemberUpdateWithWhereUniqueWithoutTeamInput + | Prisma.TeamMemberUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.TeamMemberUpdateManyWithWhereWithoutTeamInput + | Prisma.TeamMemberUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.TeamMemberScalarWhereInput | Prisma.TeamMemberScalarWhereInput[] +} + +export type TeamMemberUncheckedUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR< + Prisma.TeamMemberCreateWithoutTeamInput, + Prisma.TeamMemberUncheckedCreateWithoutTeamInput + > + | Prisma.TeamMemberCreateWithoutTeamInput[] + | Prisma.TeamMemberUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.TeamMemberCreateOrConnectWithoutTeamInput + | Prisma.TeamMemberCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.TeamMemberUpsertWithWhereUniqueWithoutTeamInput + | Prisma.TeamMemberUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.TeamMemberCreateManyTeamInputEnvelope + set?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + disconnect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + delete?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] + update?: + | Prisma.TeamMemberUpdateWithWhereUniqueWithoutTeamInput + | Prisma.TeamMemberUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.TeamMemberUpdateManyWithWhereWithoutTeamInput + | Prisma.TeamMemberUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.TeamMemberScalarWhereInput | Prisma.TeamMemberScalarWhereInput[] +} + +export type EnumTeamMemberRoleFieldUpdateOperationsInput = { + set?: $Enums.TeamMemberRole +} + +export type EnumTeamMemberScopeFieldUpdateOperationsInput = { + set?: $Enums.TeamMemberScope +} + +export type TeamMemberCreateNestedOneWithoutProjectMembersInput = { + create?: Prisma.XOR< + Prisma.TeamMemberCreateWithoutProjectMembersInput, + Prisma.TeamMemberUncheckedCreateWithoutProjectMembersInput + > + connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutProjectMembersInput + connect?: Prisma.TeamMemberWhereUniqueInput +} + +export type TeamMemberUpdateOneRequiredWithoutProjectMembersNestedInput = { + create?: Prisma.XOR< + Prisma.TeamMemberCreateWithoutProjectMembersInput, + Prisma.TeamMemberUncheckedCreateWithoutProjectMembersInput + > + connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutProjectMembersInput + upsert?: Prisma.TeamMemberUpsertWithoutProjectMembersInput + connect?: Prisma.TeamMemberWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamMemberUpdateToOneWithWhereWithoutProjectMembersInput, + Prisma.TeamMemberUpdateWithoutProjectMembersInput + >, + Prisma.TeamMemberUncheckedUpdateWithoutProjectMembersInput + > +} + +export type TeamMemberCreateNestedOneWithoutLastReadNotificationInput = { + create?: Prisma.XOR< + Prisma.TeamMemberCreateWithoutLastReadNotificationInput, + Prisma.TeamMemberUncheckedCreateWithoutLastReadNotificationInput + > + connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutLastReadNotificationInput + connect?: Prisma.TeamMemberWhereUniqueInput +} + +export type TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput = { + create?: Prisma.XOR< + Prisma.TeamMemberCreateWithoutLastReadNotificationInput, + Prisma.TeamMemberUncheckedCreateWithoutLastReadNotificationInput + > + connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutLastReadNotificationInput + connect?: Prisma.TeamMemberWhereUniqueInput +} + +export type TeamMemberUpdateOneWithoutLastReadNotificationNestedInput = { + create?: Prisma.XOR< + Prisma.TeamMemberCreateWithoutLastReadNotificationInput, + Prisma.TeamMemberUncheckedCreateWithoutLastReadNotificationInput + > + connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutLastReadNotificationInput + upsert?: Prisma.TeamMemberUpsertWithoutLastReadNotificationInput + disconnect?: Prisma.TeamMemberWhereInput | boolean + delete?: Prisma.TeamMemberWhereInput | boolean + connect?: Prisma.TeamMemberWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamMemberUpdateToOneWithWhereWithoutLastReadNotificationInput, + Prisma.TeamMemberUpdateWithoutLastReadNotificationInput + >, + Prisma.TeamMemberUncheckedUpdateWithoutLastReadNotificationInput + > +} + +export type TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput = { + create?: Prisma.XOR< + Prisma.TeamMemberCreateWithoutLastReadNotificationInput, + Prisma.TeamMemberUncheckedCreateWithoutLastReadNotificationInput + > + connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutLastReadNotificationInput + upsert?: Prisma.TeamMemberUpsertWithoutLastReadNotificationInput + disconnect?: Prisma.TeamMemberWhereInput | boolean + delete?: Prisma.TeamMemberWhereInput | boolean + connect?: Prisma.TeamMemberWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.TeamMemberUpdateToOneWithWhereWithoutLastReadNotificationInput, + Prisma.TeamMemberUpdateWithoutLastReadNotificationInput + >, + Prisma.TeamMemberUncheckedUpdateWithoutLastReadNotificationInput + > +} + +export type TeamMemberCreateWithoutUserInput = { + id?: string + role: $Enums.TeamMemberRole + scope?: $Enums.TeamMemberScope + team: Prisma.TeamCreateNestedOneWithoutMembersInput + projectMembers?: Prisma.ProjectMemberCreateNestedManyWithoutTeamMemberInput + lastReadNotification?: Prisma.NotificationCreateNestedOneWithoutReadByMembersInput +} + +export type TeamMemberUncheckedCreateWithoutUserInput = { + id?: string + role: $Enums.TeamMemberRole + scope?: $Enums.TeamMemberScope + teamId: string + lastReadNotificationId?: string | null + projectMembers?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutTeamMemberInput +} + +export type TeamMemberCreateOrConnectWithoutUserInput = { + where: Prisma.TeamMemberWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamMemberCreateWithoutUserInput, + Prisma.TeamMemberUncheckedCreateWithoutUserInput + > +} + +export type TeamMemberCreateManyUserInputEnvelope = { + data: Prisma.TeamMemberCreateManyUserInput | Prisma.TeamMemberCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type TeamMemberUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.TeamMemberWhereUniqueInput + update: Prisma.XOR< + Prisma.TeamMemberUpdateWithoutUserInput, + Prisma.TeamMemberUncheckedUpdateWithoutUserInput + > + create: Prisma.XOR< + Prisma.TeamMemberCreateWithoutUserInput, + Prisma.TeamMemberUncheckedCreateWithoutUserInput + > +} + +export type TeamMemberUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.TeamMemberWhereUniqueInput + data: Prisma.XOR< + Prisma.TeamMemberUpdateWithoutUserInput, + Prisma.TeamMemberUncheckedUpdateWithoutUserInput + > +} + +export type TeamMemberUpdateManyWithWhereWithoutUserInput = { + where: Prisma.TeamMemberScalarWhereInput + data: Prisma.XOR< + Prisma.TeamMemberUpdateManyMutationInput, + Prisma.TeamMemberUncheckedUpdateManyWithoutUserInput + > +} + +export type TeamMemberScalarWhereInput = { + AND?: Prisma.TeamMemberScalarWhereInput | Prisma.TeamMemberScalarWhereInput[] + OR?: Prisma.TeamMemberScalarWhereInput[] + NOT?: Prisma.TeamMemberScalarWhereInput | Prisma.TeamMemberScalarWhereInput[] + id?: Prisma.StringFilter<'TeamMember'> | string + role?: Prisma.EnumTeamMemberRoleFilter<'TeamMember'> | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFilter<'TeamMember'> | $Enums.TeamMemberScope + teamId?: Prisma.StringFilter<'TeamMember'> | string + userId?: Prisma.StringFilter<'TeamMember'> | string + lastReadNotificationId?: Prisma.StringNullableFilter<'TeamMember'> | string | null +} + +export type TeamMemberCreateWithoutTeamInput = { + id?: string + role: $Enums.TeamMemberRole + scope?: $Enums.TeamMemberScope + user: Prisma.UserCreateNestedOneWithoutTeamMembersInput + projectMembers?: Prisma.ProjectMemberCreateNestedManyWithoutTeamMemberInput + lastReadNotification?: Prisma.NotificationCreateNestedOneWithoutReadByMembersInput +} + +export type TeamMemberUncheckedCreateWithoutTeamInput = { + id?: string + role: $Enums.TeamMemberRole + scope?: $Enums.TeamMemberScope + userId: string + lastReadNotificationId?: string | null + projectMembers?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutTeamMemberInput +} + +export type TeamMemberCreateOrConnectWithoutTeamInput = { + where: Prisma.TeamMemberWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamMemberCreateWithoutTeamInput, + Prisma.TeamMemberUncheckedCreateWithoutTeamInput + > +} + +export type TeamMemberCreateManyTeamInputEnvelope = { + data: Prisma.TeamMemberCreateManyTeamInput | Prisma.TeamMemberCreateManyTeamInput[] + skipDuplicates?: boolean +} + +export type TeamMemberUpsertWithWhereUniqueWithoutTeamInput = { + where: Prisma.TeamMemberWhereUniqueInput + update: Prisma.XOR< + Prisma.TeamMemberUpdateWithoutTeamInput, + Prisma.TeamMemberUncheckedUpdateWithoutTeamInput + > + create: Prisma.XOR< + Prisma.TeamMemberCreateWithoutTeamInput, + Prisma.TeamMemberUncheckedCreateWithoutTeamInput + > +} + +export type TeamMemberUpdateWithWhereUniqueWithoutTeamInput = { + where: Prisma.TeamMemberWhereUniqueInput + data: Prisma.XOR< + Prisma.TeamMemberUpdateWithoutTeamInput, + Prisma.TeamMemberUncheckedUpdateWithoutTeamInput + > +} + +export type TeamMemberUpdateManyWithWhereWithoutTeamInput = { + where: Prisma.TeamMemberScalarWhereInput + data: Prisma.XOR< + Prisma.TeamMemberUpdateManyMutationInput, + Prisma.TeamMemberUncheckedUpdateManyWithoutTeamInput + > +} + +export type TeamMemberCreateWithoutProjectMembersInput = { + id?: string + role: $Enums.TeamMemberRole + scope?: $Enums.TeamMemberScope + team: Prisma.TeamCreateNestedOneWithoutMembersInput + user: Prisma.UserCreateNestedOneWithoutTeamMembersInput + lastReadNotification?: Prisma.NotificationCreateNestedOneWithoutReadByMembersInput +} + +export type TeamMemberUncheckedCreateWithoutProjectMembersInput = { + id?: string + role: $Enums.TeamMemberRole + scope?: $Enums.TeamMemberScope + teamId: string + userId: string + lastReadNotificationId?: string | null +} + +export type TeamMemberCreateOrConnectWithoutProjectMembersInput = { + where: Prisma.TeamMemberWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamMemberCreateWithoutProjectMembersInput, + Prisma.TeamMemberUncheckedCreateWithoutProjectMembersInput + > +} + +export type TeamMemberUpsertWithoutProjectMembersInput = { + update: Prisma.XOR< + Prisma.TeamMemberUpdateWithoutProjectMembersInput, + Prisma.TeamMemberUncheckedUpdateWithoutProjectMembersInput + > + create: Prisma.XOR< + Prisma.TeamMemberCreateWithoutProjectMembersInput, + Prisma.TeamMemberUncheckedCreateWithoutProjectMembersInput + > + where?: Prisma.TeamMemberWhereInput +} + +export type TeamMemberUpdateToOneWithWhereWithoutProjectMembersInput = { + where?: Prisma.TeamMemberWhereInput + data: Prisma.XOR< + Prisma.TeamMemberUpdateWithoutProjectMembersInput, + Prisma.TeamMemberUncheckedUpdateWithoutProjectMembersInput + > +} + +export type TeamMemberUpdateWithoutProjectMembersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope + team?: Prisma.TeamUpdateOneRequiredWithoutMembersNestedInput + user?: Prisma.UserUpdateOneRequiredWithoutTeamMembersNestedInput + lastReadNotification?: Prisma.NotificationUpdateOneWithoutReadByMembersNestedInput +} + +export type TeamMemberUncheckedUpdateWithoutProjectMembersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope + teamId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + lastReadNotificationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type TeamMemberCreateWithoutLastReadNotificationInput = { + id?: string + role: $Enums.TeamMemberRole + scope?: $Enums.TeamMemberScope + team: Prisma.TeamCreateNestedOneWithoutMembersInput + user: Prisma.UserCreateNestedOneWithoutTeamMembersInput + projectMembers?: Prisma.ProjectMemberCreateNestedManyWithoutTeamMemberInput +} + +export type TeamMemberUncheckedCreateWithoutLastReadNotificationInput = { + id?: string + role: $Enums.TeamMemberRole + scope?: $Enums.TeamMemberScope + teamId: string + userId: string + projectMembers?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutTeamMemberInput +} + +export type TeamMemberCreateOrConnectWithoutLastReadNotificationInput = { + where: Prisma.TeamMemberWhereUniqueInput + create: Prisma.XOR< + Prisma.TeamMemberCreateWithoutLastReadNotificationInput, + Prisma.TeamMemberUncheckedCreateWithoutLastReadNotificationInput + > +} + +export type TeamMemberUpsertWithoutLastReadNotificationInput = { + update: Prisma.XOR< + Prisma.TeamMemberUpdateWithoutLastReadNotificationInput, + Prisma.TeamMemberUncheckedUpdateWithoutLastReadNotificationInput + > + create: Prisma.XOR< + Prisma.TeamMemberCreateWithoutLastReadNotificationInput, + Prisma.TeamMemberUncheckedCreateWithoutLastReadNotificationInput + > + where?: Prisma.TeamMemberWhereInput +} + +export type TeamMemberUpdateToOneWithWhereWithoutLastReadNotificationInput = { + where?: Prisma.TeamMemberWhereInput + data: Prisma.XOR< + Prisma.TeamMemberUpdateWithoutLastReadNotificationInput, + Prisma.TeamMemberUncheckedUpdateWithoutLastReadNotificationInput + > +} + +export type TeamMemberUpdateWithoutLastReadNotificationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope + team?: Prisma.TeamUpdateOneRequiredWithoutMembersNestedInput + user?: Prisma.UserUpdateOneRequiredWithoutTeamMembersNestedInput + projectMembers?: Prisma.ProjectMemberUpdateManyWithoutTeamMemberNestedInput +} + +export type TeamMemberUncheckedUpdateWithoutLastReadNotificationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope + teamId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + projectMembers?: Prisma.ProjectMemberUncheckedUpdateManyWithoutTeamMemberNestedInput +} + +export type TeamMemberCreateManyUserInput = { + id?: string + role: $Enums.TeamMemberRole + scope?: $Enums.TeamMemberScope + teamId: string + lastReadNotificationId?: string | null +} + +export type TeamMemberUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope + team?: Prisma.TeamUpdateOneRequiredWithoutMembersNestedInput + projectMembers?: Prisma.ProjectMemberUpdateManyWithoutTeamMemberNestedInput + lastReadNotification?: Prisma.NotificationUpdateOneWithoutReadByMembersNestedInput +} + +export type TeamMemberUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope + teamId?: Prisma.StringFieldUpdateOperationsInput | string + lastReadNotificationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectMembers?: Prisma.ProjectMemberUncheckedUpdateManyWithoutTeamMemberNestedInput +} + +export type TeamMemberUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope + teamId?: Prisma.StringFieldUpdateOperationsInput | string + lastReadNotificationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type TeamMemberCreateManyTeamInput = { + id?: string + role: $Enums.TeamMemberRole + scope?: $Enums.TeamMemberScope + userId: string + lastReadNotificationId?: string | null +} + +export type TeamMemberUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope + user?: Prisma.UserUpdateOneRequiredWithoutTeamMembersNestedInput + projectMembers?: Prisma.ProjectMemberUpdateManyWithoutTeamMemberNestedInput + lastReadNotification?: Prisma.NotificationUpdateOneWithoutReadByMembersNestedInput +} + +export type TeamMemberUncheckedUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope + userId?: Prisma.StringFieldUpdateOperationsInput | string + lastReadNotificationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectMembers?: Prisma.ProjectMemberUncheckedUpdateManyWithoutTeamMemberNestedInput +} + +export type TeamMemberUncheckedUpdateManyWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole + scope?: Prisma.EnumTeamMemberScopeFieldUpdateOperationsInput | $Enums.TeamMemberScope + userId?: Prisma.StringFieldUpdateOperationsInput | string + lastReadNotificationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +/** + * Count Type TeamMemberCountOutputType + */ + +export type TeamMemberCountOutputType = { + projectMembers: number +} + +export type TeamMemberCountOutputTypeSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + projectMembers?: boolean | TeamMemberCountOutputTypeCountProjectMembersArgs +} + +/** + * TeamMemberCountOutputType without action + */ +export type TeamMemberCountOutputTypeDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMemberCountOutputType + */ + select?: Prisma.TeamMemberCountOutputTypeSelect | null +} + +/** + * TeamMemberCountOutputType without action + */ +export type TeamMemberCountOutputTypeCountProjectMembersArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.ProjectMemberWhereInput +} + +export type TeamMemberSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + role?: boolean + scope?: boolean + teamId?: boolean + userId?: boolean + lastReadNotificationId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + user?: boolean | Prisma.UserDefaultArgs + projectMembers?: boolean | Prisma.TeamMember$projectMembersArgs + lastReadNotification?: boolean | Prisma.TeamMember$lastReadNotificationArgs + _count?: boolean | Prisma.TeamMemberCountOutputTypeDefaultArgs + }, + ExtArgs['result']['teamMember'] +> + +export type TeamMemberSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + role?: boolean + scope?: boolean + teamId?: boolean + userId?: boolean + lastReadNotificationId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + user?: boolean | Prisma.UserDefaultArgs + lastReadNotification?: boolean | Prisma.TeamMember$lastReadNotificationArgs + }, + ExtArgs['result']['teamMember'] +> + +export type TeamMemberSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + role?: boolean + scope?: boolean + teamId?: boolean + userId?: boolean + lastReadNotificationId?: boolean + team?: boolean | Prisma.TeamDefaultArgs + user?: boolean | Prisma.UserDefaultArgs + lastReadNotification?: boolean | Prisma.TeamMember$lastReadNotificationArgs + }, + ExtArgs['result']['teamMember'] +> + +export type TeamMemberSelectScalar = { + id?: boolean + role?: boolean + scope?: boolean + teamId?: boolean + userId?: boolean + lastReadNotificationId?: boolean +} + +export type TeamMemberOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'role' | 'scope' | 'teamId' | 'userId' | 'lastReadNotificationId', + ExtArgs['result']['teamMember'] +> +export type TeamMemberInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + user?: boolean | Prisma.UserDefaultArgs + projectMembers?: boolean | Prisma.TeamMember$projectMembersArgs + lastReadNotification?: boolean | Prisma.TeamMember$lastReadNotificationArgs + _count?: boolean | Prisma.TeamMemberCountOutputTypeDefaultArgs +} +export type TeamMemberIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + user?: boolean | Prisma.UserDefaultArgs + lastReadNotification?: boolean | Prisma.TeamMember$lastReadNotificationArgs +} +export type TeamMemberIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + team?: boolean | Prisma.TeamDefaultArgs + user?: boolean | Prisma.UserDefaultArgs + lastReadNotification?: boolean | Prisma.TeamMember$lastReadNotificationArgs +} + +export type $TeamMemberPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'TeamMember' + objects: { + team: Prisma.$TeamPayload + user: Prisma.$UserPayload + projectMembers: Prisma.$ProjectMemberPayload[] + lastReadNotification: Prisma.$NotificationPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + role: $Enums.TeamMemberRole + scope: $Enums.TeamMemberScope + teamId: string + userId: string + lastReadNotificationId: string | null + }, + ExtArgs['result']['teamMember'] + > + composites: {} +} + +export type TeamMemberGetPayload = + runtime.Types.Result.GetResult + +export type TeamMemberCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: TeamMemberCountAggregateInputType | true +} + +export interface TeamMemberDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['TeamMember'] + meta: { name: 'TeamMember' } + } + /** + * Find zero or one TeamMember that matches the filter. + * @param {TeamMemberFindUniqueArgs} args - Arguments to find a TeamMember + * @example + * // Get one TeamMember + * const teamMember = await prisma.teamMember.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamMemberClient< + runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one TeamMember that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {TeamMemberFindUniqueOrThrowArgs} args - Arguments to find a TeamMember + * @example + * // Get one TeamMember + * const teamMember = await prisma.teamMember.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamMemberClient< + runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first TeamMember that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamMemberFindFirstArgs} args - Arguments to find a TeamMember + * @example + * // Get one TeamMember + * const teamMember = await prisma.teamMember.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamMemberClient< + runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first TeamMember that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamMemberFindFirstOrThrowArgs} args - Arguments to find a TeamMember + * @example + * // Get one TeamMember + * const teamMember = await prisma.teamMember.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamMemberClient< + runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more TeamMembers that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamMemberFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all TeamMembers + * const teamMembers = await prisma.teamMember.findMany() + * + * // Get first 10 TeamMembers + * const teamMembers = await prisma.teamMember.findMany({ take: 10 }) + * + * // Only select the `id` + * const teamMemberWithIdOnly = await prisma.teamMember.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a TeamMember. + * @param {TeamMemberCreateArgs} args - Arguments to create a TeamMember. + * @example + * // Create one TeamMember + * const TeamMember = await prisma.teamMember.create({ + * data: { + * // ... data to create a TeamMember + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamMemberClient< + runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many TeamMembers. + * @param {TeamMemberCreateManyArgs} args - Arguments to create many TeamMembers. + * @example + * // Create many TeamMembers + * const teamMember = await prisma.teamMember.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many TeamMembers and returns the data saved in the database. + * @param {TeamMemberCreateManyAndReturnArgs} args - Arguments to create many TeamMembers. + * @example + * // Create many TeamMembers + * const teamMember = await prisma.teamMember.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many TeamMembers and only return the `id` + * const teamMemberWithIdOnly = await prisma.teamMember.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a TeamMember. + * @param {TeamMemberDeleteArgs} args - Arguments to delete one TeamMember. + * @example + * // Delete one TeamMember + * const TeamMember = await prisma.teamMember.delete({ + * where: { + * // ... filter to delete one TeamMember + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamMemberClient< + runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one TeamMember. + * @param {TeamMemberUpdateArgs} args - Arguments to update one TeamMember. + * @example + * // Update one TeamMember + * const teamMember = await prisma.teamMember.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamMemberClient< + runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more TeamMembers. + * @param {TeamMemberDeleteManyArgs} args - Arguments to filter TeamMembers to delete. + * @example + * // Delete a few TeamMembers + * const { count } = await prisma.teamMember.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more TeamMembers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamMemberUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many TeamMembers + * const teamMember = await prisma.teamMember.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more TeamMembers and returns the data updated in the database. + * @param {TeamMemberUpdateManyAndReturnArgs} args - Arguments to update many TeamMembers. + * @example + * // Update many TeamMembers + * const teamMember = await prisma.teamMember.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more TeamMembers and only return the `id` + * const teamMemberWithIdOnly = await prisma.teamMember.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one TeamMember. + * @param {TeamMemberUpsertArgs} args - Arguments to update or create a TeamMember. + * @example + * // Update or create a TeamMember + * const teamMember = await prisma.teamMember.upsert({ + * create: { + * // ... data to create a TeamMember + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the TeamMember we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__TeamMemberClient< + runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of TeamMembers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamMemberCountArgs} args - Arguments to filter TeamMembers to count. + * @example + * // Count the number of TeamMembers + * const count = await prisma.teamMember.count({ + * where: { + * // ... the filter for the TeamMembers we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a TeamMember. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamMemberAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by TeamMember. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TeamMemberGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends TeamMemberGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: TeamMemberGroupByArgs['orderBy'] } + : { orderBy?: TeamMemberGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetTeamMemberGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the TeamMember model + */ + readonly fields: TeamMemberFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for TeamMember. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__TeamMemberClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + team = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TeamClient< + | runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + user = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__UserClient< + | runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + projectMembers = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$ProjectMemberPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + lastReadNotification = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__NotificationClient< + runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the TeamMember model + */ +export interface TeamMemberFieldRefs { + readonly id: Prisma.FieldRef<'TeamMember', 'String'> + readonly role: Prisma.FieldRef<'TeamMember', 'TeamMemberRole'> + readonly scope: Prisma.FieldRef<'TeamMember', 'TeamMemberScope'> + readonly teamId: Prisma.FieldRef<'TeamMember', 'String'> + readonly userId: Prisma.FieldRef<'TeamMember', 'String'> + readonly lastReadNotificationId: Prisma.FieldRef<'TeamMember', 'String'> +} + +// Custom InputTypes +/** + * TeamMember findUnique + */ +export type TeamMemberFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelect | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberInclude | null + /** + * Filter, which TeamMember to fetch. + */ + where: Prisma.TeamMemberWhereUniqueInput +} + +/** + * TeamMember findUniqueOrThrow + */ +export type TeamMemberFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelect | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberInclude | null + /** + * Filter, which TeamMember to fetch. + */ + where: Prisma.TeamMemberWhereUniqueInput +} + +/** + * TeamMember findFirst + */ +export type TeamMemberFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelect | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberInclude | null + /** + * Filter, which TeamMember to fetch. + */ + where?: Prisma.TeamMemberWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of TeamMembers to fetch. + */ + orderBy?: Prisma.TeamMemberOrderByWithRelationInput | Prisma.TeamMemberOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for TeamMembers. + */ + cursor?: Prisma.TeamMemberWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` TeamMembers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` TeamMembers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of TeamMembers. + */ + distinct?: Prisma.TeamMemberScalarFieldEnum | Prisma.TeamMemberScalarFieldEnum[] +} + +/** + * TeamMember findFirstOrThrow + */ +export type TeamMemberFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelect | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberInclude | null + /** + * Filter, which TeamMember to fetch. + */ + where?: Prisma.TeamMemberWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of TeamMembers to fetch. + */ + orderBy?: Prisma.TeamMemberOrderByWithRelationInput | Prisma.TeamMemberOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for TeamMembers. + */ + cursor?: Prisma.TeamMemberWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` TeamMembers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` TeamMembers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of TeamMembers. + */ + distinct?: Prisma.TeamMemberScalarFieldEnum | Prisma.TeamMemberScalarFieldEnum[] +} + +/** + * TeamMember findMany + */ +export type TeamMemberFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelect | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberInclude | null + /** + * Filter, which TeamMembers to fetch. + */ + where?: Prisma.TeamMemberWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of TeamMembers to fetch. + */ + orderBy?: Prisma.TeamMemberOrderByWithRelationInput | Prisma.TeamMemberOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing TeamMembers. + */ + cursor?: Prisma.TeamMemberWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` TeamMembers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` TeamMembers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of TeamMembers. + */ + distinct?: Prisma.TeamMemberScalarFieldEnum | Prisma.TeamMemberScalarFieldEnum[] +} + +/** + * TeamMember create + */ +export type TeamMemberCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelect | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberInclude | null + /** + * The data needed to create a TeamMember. + */ + data: Prisma.XOR +} + +/** + * TeamMember createMany + */ +export type TeamMemberCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many TeamMembers. + */ + data: Prisma.TeamMemberCreateManyInput | Prisma.TeamMemberCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * TeamMember createManyAndReturn + */ +export type TeamMemberCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelectCreateManyAndReturn | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * The data used to create many TeamMembers. + */ + data: Prisma.TeamMemberCreateManyInput | Prisma.TeamMemberCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberIncludeCreateManyAndReturn | null +} + +/** + * TeamMember update + */ +export type TeamMemberUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelect | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberInclude | null + /** + * The data needed to update a TeamMember. + */ + data: Prisma.XOR + /** + * Choose, which TeamMember to update. + */ + where: Prisma.TeamMemberWhereUniqueInput +} + +/** + * TeamMember updateMany + */ +export type TeamMemberUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update TeamMembers. + */ + data: Prisma.XOR< + Prisma.TeamMemberUpdateManyMutationInput, + Prisma.TeamMemberUncheckedUpdateManyInput + > + /** + * Filter which TeamMembers to update + */ + where?: Prisma.TeamMemberWhereInput + /** + * Limit how many TeamMembers to update. + */ + limit?: number +} + +/** + * TeamMember updateManyAndReturn + */ +export type TeamMemberUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * The data used to update TeamMembers. + */ + data: Prisma.XOR< + Prisma.TeamMemberUpdateManyMutationInput, + Prisma.TeamMemberUncheckedUpdateManyInput + > + /** + * Filter which TeamMembers to update + */ + where?: Prisma.TeamMemberWhereInput + /** + * Limit how many TeamMembers to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberIncludeUpdateManyAndReturn | null +} + +/** + * TeamMember upsert + */ +export type TeamMemberUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelect | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberInclude | null + /** + * The filter to search for the TeamMember to update in case it exists. + */ + where: Prisma.TeamMemberWhereUniqueInput + /** + * In case the TeamMember found by the `where` argument doesn't exist, create a new TeamMember with this data. + */ + create: Prisma.XOR + /** + * In case the TeamMember was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * TeamMember delete + */ +export type TeamMemberDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelect | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberInclude | null + /** + * Filter which TeamMember to delete. + */ + where: Prisma.TeamMemberWhereUniqueInput +} + +/** + * TeamMember deleteMany + */ +export type TeamMemberDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which TeamMembers to delete + */ + where?: Prisma.TeamMemberWhereInput + /** + * Limit how many TeamMembers to delete. + */ + limit?: number +} + +/** + * TeamMember.projectMembers + */ +export type TeamMember$projectMembersArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the ProjectMember + */ + select?: Prisma.ProjectMemberSelect | null + /** + * Omit specific fields from the ProjectMember + */ + omit?: Prisma.ProjectMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectMemberInclude | null + where?: Prisma.ProjectMemberWhereInput + orderBy?: + | Prisma.ProjectMemberOrderByWithRelationInput + | Prisma.ProjectMemberOrderByWithRelationInput[] + cursor?: Prisma.ProjectMemberWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ProjectMemberScalarFieldEnum | Prisma.ProjectMemberScalarFieldEnum[] +} + +/** + * TeamMember.lastReadNotification + */ +export type TeamMember$lastReadNotificationArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + where?: Prisma.NotificationWhereInput +} + +/** + * TeamMember without action + */ +export type TeamMemberDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelect | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberInclude | null +} diff --git a/packages/db/src/generated/prisma/models/User.ts b/packages/db/src/generated/prisma/models/User.ts new file mode 100644 index 00000000..0bee5a9c --- /dev/null +++ b/packages/db/src/generated/prisma/models/User.ts @@ -0,0 +1,4405 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `User` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model User + * + */ +export type UserModel = runtime.Types.Result.DefaultSelection + +export type AggregateUser = { + _count: UserCountAggregateOutputType | null + _min: UserMinAggregateOutputType | null + _max: UserMaxAggregateOutputType | null +} + +export type UserMinAggregateOutputType = { + id: string | null + type: $Enums.UserType | null + name: string | null + email: string | null + emailVerified: boolean | null + image: string | null + password: string | null + guestEmail: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type UserMaxAggregateOutputType = { + id: string | null + type: $Enums.UserType | null + name: string | null + email: string | null + emailVerified: boolean | null + image: string | null + password: string | null + guestEmail: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type UserCountAggregateOutputType = { + id: number + type: number + name: number + email: number + emailVerified: number + image: number + password: number + agentSettings: PrismaJson.AgentSettings + guestEmail: number + createdAt: number + updatedAt: number + _all: number +} + +export type UserMinAggregateInputType = { + id?: true + type?: true + name?: true + email?: true + emailVerified?: true + image?: true + password?: true + guestEmail?: true + createdAt?: true + updatedAt?: true +} + +export type UserMaxAggregateInputType = { + id?: true + type?: true + name?: true + email?: true + emailVerified?: true + image?: true + password?: true + guestEmail?: true + createdAt?: true + updatedAt?: true +} + +export type UserCountAggregateInputType = { + id?: true + type?: true + name?: true + email?: true + emailVerified?: true + image?: true + password?: true + agentSettings?: true + guestEmail?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type UserAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which User to aggregate. + */ + where?: Prisma.UserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.UserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Users from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Users. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Users + **/ + _count?: true | UserCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: UserMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UserMaxAggregateInputType +} + +export type GetUserAggregateType = { + [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type UserGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.UserWhereInput + orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[] + by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum + having?: Prisma.UserScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UserCountAggregateInputType | true + _min?: UserMinAggregateInputType + _max?: UserMaxAggregateInputType +} + +export type UserGroupByOutputType = { + id: string + type: $Enums.UserType + name: string + email: string + emailVerified: boolean + image: string | null + password: string | null + agentSettings: PrismaJson.AgentSettings | null + guestEmail: string | null + createdAt: Date + updatedAt: Date + _count: UserCountAggregateOutputType | null + _min: UserMinAggregateOutputType | null + _max: UserMaxAggregateOutputType | null +} + +export type GetUserGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof UserGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type UserWhereInput = { + AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + OR?: Prisma.UserWhereInput[] + NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + id?: Prisma.StringFilter<'User'> | string + type?: Prisma.EnumUserTypeFilter<'User'> | $Enums.UserType + name?: Prisma.StringFilter<'User'> | string + email?: Prisma.StringFilter<'User'> | string + emailVerified?: Prisma.BoolFilter<'User'> | boolean + image?: Prisma.StringNullableFilter<'User'> | string | null + password?: Prisma.StringNullableFilter<'User'> | string | null + agentSettings?: Prisma.JsonNullableFilter<'User'> + guestEmail?: Prisma.StringNullableFilter<'User'> | string | null + createdAt?: Prisma.DateTimeFilter<'User'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'User'> | Date | string + assets?: Prisma.AssetListRelationFilter + authTokens?: Prisma.AuthTokenListRelationFilter + tasks?: Prisma.TaskListRelationFilter + teamMembers?: Prisma.TeamMemberListRelationFilter + comments?: Prisma.AssetCommentListRelationFilter + createdInvites?: Prisma.InviteListRelationFilter + createdNotifications?: Prisma.NotificationListRelationFilter + notifications?: Prisma.NotificationListRelationFilter + sessions?: Prisma.SessionListRelationFilter + accounts?: Prisma.AccountListRelationFilter + agent?: Prisma.XOR | null + agentSessions?: Prisma.AgentSessionListRelationFilter + userMetadata?: Prisma.UserMetadataListRelationFilter +} + +export type UserOrderByWithRelationInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + name?: Prisma.SortOrder + email?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + image?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + agentSettings?: Prisma.SortOrderInput | Prisma.SortOrder + guestEmail?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + assets?: Prisma.AssetOrderByRelationAggregateInput + authTokens?: Prisma.AuthTokenOrderByRelationAggregateInput + tasks?: Prisma.TaskOrderByRelationAggregateInput + teamMembers?: Prisma.TeamMemberOrderByRelationAggregateInput + comments?: Prisma.AssetCommentOrderByRelationAggregateInput + createdInvites?: Prisma.InviteOrderByRelationAggregateInput + createdNotifications?: Prisma.NotificationOrderByRelationAggregateInput + notifications?: Prisma.NotificationOrderByRelationAggregateInput + sessions?: Prisma.SessionOrderByRelationAggregateInput + accounts?: Prisma.AccountOrderByRelationAggregateInput + agent?: Prisma.AgentOrderByWithRelationInput + agentSessions?: Prisma.AgentSessionOrderByRelationAggregateInput + userMetadata?: Prisma.UserMetadataOrderByRelationAggregateInput +} + +export type UserWhereUniqueInput = Prisma.AtLeast< + { + id?: string + email?: string + AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + OR?: Prisma.UserWhereInput[] + NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + type?: Prisma.EnumUserTypeFilter<'User'> | $Enums.UserType + name?: Prisma.StringFilter<'User'> | string + emailVerified?: Prisma.BoolFilter<'User'> | boolean + image?: Prisma.StringNullableFilter<'User'> | string | null + password?: Prisma.StringNullableFilter<'User'> | string | null + agentSettings?: Prisma.JsonNullableFilter<'User'> + guestEmail?: Prisma.StringNullableFilter<'User'> | string | null + createdAt?: Prisma.DateTimeFilter<'User'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'User'> | Date | string + assets?: Prisma.AssetListRelationFilter + authTokens?: Prisma.AuthTokenListRelationFilter + tasks?: Prisma.TaskListRelationFilter + teamMembers?: Prisma.TeamMemberListRelationFilter + comments?: Prisma.AssetCommentListRelationFilter + createdInvites?: Prisma.InviteListRelationFilter + createdNotifications?: Prisma.NotificationListRelationFilter + notifications?: Prisma.NotificationListRelationFilter + sessions?: Prisma.SessionListRelationFilter + accounts?: Prisma.AccountListRelationFilter + agent?: Prisma.XOR | null + agentSessions?: Prisma.AgentSessionListRelationFilter + userMetadata?: Prisma.UserMetadataListRelationFilter + }, + 'id' | 'email' +> + +export type UserOrderByWithAggregationInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + name?: Prisma.SortOrder + email?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + image?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + agentSettings?: Prisma.SortOrderInput | Prisma.SortOrder + guestEmail?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.UserCountOrderByAggregateInput + _max?: Prisma.UserMaxOrderByAggregateInput + _min?: Prisma.UserMinOrderByAggregateInput +} + +export type UserScalarWhereWithAggregatesInput = { + AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] + OR?: Prisma.UserScalarWhereWithAggregatesInput[] + NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'User'> | string + type?: Prisma.EnumUserTypeWithAggregatesFilter<'User'> | $Enums.UserType + name?: Prisma.StringWithAggregatesFilter<'User'> | string + email?: Prisma.StringWithAggregatesFilter<'User'> | string + emailVerified?: Prisma.BoolWithAggregatesFilter<'User'> | boolean + image?: Prisma.StringNullableWithAggregatesFilter<'User'> | string | null + password?: Prisma.StringNullableWithAggregatesFilter<'User'> | string | null + agentSettings?: Prisma.JsonNullableWithAggregatesFilter<'User'> + guestEmail?: Prisma.StringNullableWithAggregatesFilter<'User'> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<'User'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'User'> | Date | string +} + +export type UserCreateInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + agent?: Prisma.AgentCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput +} + +export type UserUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateManyInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type UserUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserCountOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + name?: Prisma.SortOrder + email?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + image?: Prisma.SortOrder + password?: Prisma.SortOrder + agentSettings?: Prisma.SortOrder + guestEmail?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type UserMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + name?: Prisma.SortOrder + email?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + image?: Prisma.SortOrder + password?: Prisma.SortOrder + guestEmail?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type UserMinOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + name?: Prisma.SortOrder + email?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + image?: Prisma.SortOrder + password?: Prisma.SortOrder + guestEmail?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type UserScalarRelationFilter = { + is?: Prisma.UserWhereInput + isNot?: Prisma.UserWhereInput +} + +export type UserNullableScalarRelationFilter = { + is?: Prisma.UserWhereInput | null + isNot?: Prisma.UserWhereInput | null +} + +export type StringFieldUpdateOperationsInput = { + set?: string +} + +export type EnumUserTypeFieldUpdateOperationsInput = { + set?: $Enums.UserType +} + +export type BoolFieldUpdateOperationsInput = { + set?: boolean +} + +export type NullableStringFieldUpdateOperationsInput = { + set?: string | null +} + +export type DateTimeFieldUpdateOperationsInput = { + set?: Date | string +} + +export type UserCreateNestedOneWithoutSessionsInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutSessionsInput, + Prisma.UserUncheckedCreateWithoutSessionsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutSessionsNestedInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutSessionsInput, + Prisma.UserUncheckedCreateWithoutSessionsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput + upsert?: Prisma.UserUpsertWithoutSessionsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.UserUpdateToOneWithWhereWithoutSessionsInput, + Prisma.UserUpdateWithoutSessionsInput + >, + Prisma.UserUncheckedUpdateWithoutSessionsInput + > +} + +export type UserCreateNestedOneWithoutAccountsInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutAccountsInput, + Prisma.UserUncheckedCreateWithoutAccountsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutAccountsNestedInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutAccountsInput, + Prisma.UserUncheckedCreateWithoutAccountsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput + upsert?: Prisma.UserUpsertWithoutAccountsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.UserUpdateToOneWithWhereWithoutAccountsInput, + Prisma.UserUpdateWithoutAccountsInput + >, + Prisma.UserUncheckedUpdateWithoutAccountsInput + > +} + +export type UserCreateNestedOneWithoutAuthTokensInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutAuthTokensInput, + Prisma.UserUncheckedCreateWithoutAuthTokensInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAuthTokensInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutAuthTokensNestedInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutAuthTokensInput, + Prisma.UserUncheckedCreateWithoutAuthTokensInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAuthTokensInput + upsert?: Prisma.UserUpsertWithoutAuthTokensInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.UserUpdateToOneWithWhereWithoutAuthTokensInput, + Prisma.UserUpdateWithoutAuthTokensInput + >, + Prisma.UserUncheckedUpdateWithoutAuthTokensInput + > +} + +export type UserCreateNestedOneWithoutTeamMembersInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutTeamMembersInput, + Prisma.UserUncheckedCreateWithoutTeamMembersInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutTeamMembersInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutTeamMembersNestedInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutTeamMembersInput, + Prisma.UserUncheckedCreateWithoutTeamMembersInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutTeamMembersInput + upsert?: Prisma.UserUpsertWithoutTeamMembersInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.UserUpdateToOneWithWhereWithoutTeamMembersInput, + Prisma.UserUpdateWithoutTeamMembersInput + >, + Prisma.UserUncheckedUpdateWithoutTeamMembersInput + > +} + +export type UserCreateNestedOneWithoutAssetsInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutAssetsInput, + Prisma.UserUncheckedCreateWithoutAssetsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAssetsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneWithoutAssetsNestedInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutAssetsInput, + Prisma.UserUncheckedCreateWithoutAssetsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAssetsInput + upsert?: Prisma.UserUpsertWithoutAssetsInput + disconnect?: Prisma.UserWhereInput | boolean + delete?: Prisma.UserWhereInput | boolean + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.UserUpdateToOneWithWhereWithoutAssetsInput, + Prisma.UserUpdateWithoutAssetsInput + >, + Prisma.UserUncheckedUpdateWithoutAssetsInput + > +} + +export type UserCreateNestedOneWithoutCommentsInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutCommentsInput, + Prisma.UserUncheckedCreateWithoutCommentsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutCommentsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneWithoutCommentsNestedInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutCommentsInput, + Prisma.UserUncheckedCreateWithoutCommentsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutCommentsInput + upsert?: Prisma.UserUpsertWithoutCommentsInput + disconnect?: Prisma.UserWhereInput | boolean + delete?: Prisma.UserWhereInput | boolean + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.UserUpdateToOneWithWhereWithoutCommentsInput, + Prisma.UserUpdateWithoutCommentsInput + >, + Prisma.UserUncheckedUpdateWithoutCommentsInput + > +} + +export type UserCreateNestedOneWithoutCreatedInvitesInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutCreatedInvitesInput, + Prisma.UserUncheckedCreateWithoutCreatedInvitesInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutCreatedInvitesInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutCreatedInvitesNestedInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutCreatedInvitesInput, + Prisma.UserUncheckedCreateWithoutCreatedInvitesInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutCreatedInvitesInput + upsert?: Prisma.UserUpsertWithoutCreatedInvitesInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.UserUpdateToOneWithWhereWithoutCreatedInvitesInput, + Prisma.UserUpdateWithoutCreatedInvitesInput + >, + Prisma.UserUncheckedUpdateWithoutCreatedInvitesInput + > +} + +export type UserCreateNestedOneWithoutCreatedNotificationsInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutCreatedNotificationsInput, + Prisma.UserUncheckedCreateWithoutCreatedNotificationsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutCreatedNotificationsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserCreateNestedOneWithoutNotificationsInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutNotificationsInput, + Prisma.UserUncheckedCreateWithoutNotificationsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutNotificationsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneWithoutCreatedNotificationsNestedInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutCreatedNotificationsInput, + Prisma.UserUncheckedCreateWithoutCreatedNotificationsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutCreatedNotificationsInput + upsert?: Prisma.UserUpsertWithoutCreatedNotificationsInput + disconnect?: Prisma.UserWhereInput | boolean + delete?: Prisma.UserWhereInput | boolean + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.UserUpdateToOneWithWhereWithoutCreatedNotificationsInput, + Prisma.UserUpdateWithoutCreatedNotificationsInput + >, + Prisma.UserUncheckedUpdateWithoutCreatedNotificationsInput + > +} + +export type UserUpdateOneWithoutNotificationsNestedInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutNotificationsInput, + Prisma.UserUncheckedCreateWithoutNotificationsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutNotificationsInput + upsert?: Prisma.UserUpsertWithoutNotificationsInput + disconnect?: Prisma.UserWhereInput | boolean + delete?: Prisma.UserWhereInput | boolean + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.UserUpdateToOneWithWhereWithoutNotificationsInput, + Prisma.UserUpdateWithoutNotificationsInput + >, + Prisma.UserUncheckedUpdateWithoutNotificationsInput + > +} + +export type UserCreateNestedOneWithoutTasksInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutTasksInput, + Prisma.UserUncheckedCreateWithoutTasksInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutTasksInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneWithoutTasksNestedInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutTasksInput, + Prisma.UserUncheckedCreateWithoutTasksInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutTasksInput + upsert?: Prisma.UserUpsertWithoutTasksInput + disconnect?: Prisma.UserWhereInput | boolean + delete?: Prisma.UserWhereInput | boolean + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.UserUpdateToOneWithWhereWithoutTasksInput, + Prisma.UserUpdateWithoutTasksInput + >, + Prisma.UserUncheckedUpdateWithoutTasksInput + > +} + +export type UserCreateNestedOneWithoutAgentInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutAgentInput, + Prisma.UserUncheckedCreateWithoutAgentInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAgentInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutAgentNestedInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutAgentInput, + Prisma.UserUncheckedCreateWithoutAgentInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAgentInput + upsert?: Prisma.UserUpsertWithoutAgentInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.UserUpdateToOneWithWhereWithoutAgentInput, + Prisma.UserUpdateWithoutAgentInput + >, + Prisma.UserUncheckedUpdateWithoutAgentInput + > +} + +export type UserCreateNestedOneWithoutAgentSessionsInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutAgentSessionsInput, + Prisma.UserUncheckedCreateWithoutAgentSessionsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAgentSessionsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneWithoutAgentSessionsNestedInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutAgentSessionsInput, + Prisma.UserUncheckedCreateWithoutAgentSessionsInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAgentSessionsInput + upsert?: Prisma.UserUpsertWithoutAgentSessionsInput + disconnect?: Prisma.UserWhereInput | boolean + delete?: Prisma.UserWhereInput | boolean + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.UserUpdateToOneWithWhereWithoutAgentSessionsInput, + Prisma.UserUpdateWithoutAgentSessionsInput + >, + Prisma.UserUncheckedUpdateWithoutAgentSessionsInput + > +} + +export type UserCreateNestedOneWithoutUserMetadataInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutUserMetadataInput, + Prisma.UserUncheckedCreateWithoutUserMetadataInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserMetadataInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutUserMetadataNestedInput = { + create?: Prisma.XOR< + Prisma.UserCreateWithoutUserMetadataInput, + Prisma.UserUncheckedCreateWithoutUserMetadataInput + > + connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserMetadataInput + upsert?: Prisma.UserUpsertWithoutUserMetadataInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR< + Prisma.XOR< + Prisma.UserUpdateToOneWithWhereWithoutUserMetadataInput, + Prisma.UserUpdateWithoutUserMetadataInput + >, + Prisma.UserUncheckedUpdateWithoutUserMetadataInput + > +} + +export type UserCreateWithoutSessionsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + agent?: Prisma.AgentCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutSessionsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutSessionsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR< + Prisma.UserCreateWithoutSessionsInput, + Prisma.UserUncheckedCreateWithoutSessionsInput + > +} + +export type UserUpsertWithoutSessionsInput = { + update: Prisma.XOR< + Prisma.UserUpdateWithoutSessionsInput, + Prisma.UserUncheckedUpdateWithoutSessionsInput + > + create: Prisma.XOR< + Prisma.UserCreateWithoutSessionsInput, + Prisma.UserUncheckedCreateWithoutSessionsInput + > + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutSessionsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR< + Prisma.UserUpdateWithoutSessionsInput, + Prisma.UserUncheckedUpdateWithoutSessionsInput + > +} + +export type UserUpdateWithoutSessionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutSessionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutAccountsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + agent?: Prisma.AgentCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutAccountsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutAccountsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR< + Prisma.UserCreateWithoutAccountsInput, + Prisma.UserUncheckedCreateWithoutAccountsInput + > +} + +export type UserUpsertWithoutAccountsInput = { + update: Prisma.XOR< + Prisma.UserUpdateWithoutAccountsInput, + Prisma.UserUncheckedUpdateWithoutAccountsInput + > + create: Prisma.XOR< + Prisma.UserCreateWithoutAccountsInput, + Prisma.UserUncheckedCreateWithoutAccountsInput + > + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutAccountsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR< + Prisma.UserUpdateWithoutAccountsInput, + Prisma.UserUncheckedUpdateWithoutAccountsInput + > +} + +export type UserUpdateWithoutAccountsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutAccountsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutAuthTokensInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput + tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + agent?: Prisma.AgentCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutAuthTokensInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput + tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutAuthTokensInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR< + Prisma.UserCreateWithoutAuthTokensInput, + Prisma.UserUncheckedCreateWithoutAuthTokensInput + > +} + +export type UserUpsertWithoutAuthTokensInput = { + update: Prisma.XOR< + Prisma.UserUpdateWithoutAuthTokensInput, + Prisma.UserUncheckedUpdateWithoutAuthTokensInput + > + create: Prisma.XOR< + Prisma.UserCreateWithoutAuthTokensInput, + Prisma.UserUncheckedCreateWithoutAuthTokensInput + > + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutAuthTokensInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR< + Prisma.UserUpdateWithoutAuthTokensInput, + Prisma.UserUncheckedUpdateWithoutAuthTokensInput + > +} + +export type UserUpdateWithoutAuthTokensInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput + tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutAuthTokensInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput + tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutTeamMembersInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + agent?: Prisma.AgentCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutTeamMembersInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutTeamMembersInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR< + Prisma.UserCreateWithoutTeamMembersInput, + Prisma.UserUncheckedCreateWithoutTeamMembersInput + > +} + +export type UserUpsertWithoutTeamMembersInput = { + update: Prisma.XOR< + Prisma.UserUpdateWithoutTeamMembersInput, + Prisma.UserUncheckedUpdateWithoutTeamMembersInput + > + create: Prisma.XOR< + Prisma.UserCreateWithoutTeamMembersInput, + Prisma.UserUncheckedCreateWithoutTeamMembersInput + > + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutTeamMembersInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR< + Prisma.UserUpdateWithoutTeamMembersInput, + Prisma.UserUncheckedUpdateWithoutTeamMembersInput + > +} + +export type UserUpdateWithoutTeamMembersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutTeamMembersInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutAssetsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + agent?: Prisma.AgentCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutAssetsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutAssetsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR< + Prisma.UserCreateWithoutAssetsInput, + Prisma.UserUncheckedCreateWithoutAssetsInput + > +} + +export type UserUpsertWithoutAssetsInput = { + update: Prisma.XOR< + Prisma.UserUpdateWithoutAssetsInput, + Prisma.UserUncheckedUpdateWithoutAssetsInput + > + create: Prisma.XOR< + Prisma.UserCreateWithoutAssetsInput, + Prisma.UserUncheckedCreateWithoutAssetsInput + > + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutAssetsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR< + Prisma.UserUpdateWithoutAssetsInput, + Prisma.UserUncheckedUpdateWithoutAssetsInput + > +} + +export type UserUpdateWithoutAssetsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutAssetsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutCommentsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput + createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + agent?: Prisma.AgentCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutCommentsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput + createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutCommentsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR< + Prisma.UserCreateWithoutCommentsInput, + Prisma.UserUncheckedCreateWithoutCommentsInput + > +} + +export type UserUpsertWithoutCommentsInput = { + update: Prisma.XOR< + Prisma.UserUpdateWithoutCommentsInput, + Prisma.UserUncheckedUpdateWithoutCommentsInput + > + create: Prisma.XOR< + Prisma.UserCreateWithoutCommentsInput, + Prisma.UserUncheckedCreateWithoutCommentsInput + > + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutCommentsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR< + Prisma.UserUpdateWithoutCommentsInput, + Prisma.UserUncheckedUpdateWithoutCommentsInput + > +} + +export type UserUpdateWithoutCommentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput + createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutCommentsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput + createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutCreatedInvitesInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput + createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + agent?: Prisma.AgentCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutCreatedInvitesInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput + createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutCreatedInvitesInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR< + Prisma.UserCreateWithoutCreatedInvitesInput, + Prisma.UserUncheckedCreateWithoutCreatedInvitesInput + > +} + +export type UserUpsertWithoutCreatedInvitesInput = { + update: Prisma.XOR< + Prisma.UserUpdateWithoutCreatedInvitesInput, + Prisma.UserUncheckedUpdateWithoutCreatedInvitesInput + > + create: Prisma.XOR< + Prisma.UserCreateWithoutCreatedInvitesInput, + Prisma.UserUncheckedCreateWithoutCreatedInvitesInput + > + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutCreatedInvitesInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR< + Prisma.UserUpdateWithoutCreatedInvitesInput, + Prisma.UserUncheckedUpdateWithoutCreatedInvitesInput + > +} + +export type UserUpdateWithoutCreatedInvitesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput + createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutCreatedInvitesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput + createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutCreatedNotificationsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + agent?: Prisma.AgentCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutCreatedNotificationsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutCreatedNotificationsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR< + Prisma.UserCreateWithoutCreatedNotificationsInput, + Prisma.UserUncheckedCreateWithoutCreatedNotificationsInput + > +} + +export type UserCreateWithoutNotificationsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + agent?: Prisma.AgentCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutNotificationsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutNotificationsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR< + Prisma.UserCreateWithoutNotificationsInput, + Prisma.UserUncheckedCreateWithoutNotificationsInput + > +} + +export type UserUpsertWithoutCreatedNotificationsInput = { + update: Prisma.XOR< + Prisma.UserUpdateWithoutCreatedNotificationsInput, + Prisma.UserUncheckedUpdateWithoutCreatedNotificationsInput + > + create: Prisma.XOR< + Prisma.UserCreateWithoutCreatedNotificationsInput, + Prisma.UserUncheckedCreateWithoutCreatedNotificationsInput + > + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutCreatedNotificationsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR< + Prisma.UserUpdateWithoutCreatedNotificationsInput, + Prisma.UserUncheckedUpdateWithoutCreatedNotificationsInput + > +} + +export type UserUpdateWithoutCreatedNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutCreatedNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserUpsertWithoutNotificationsInput = { + update: Prisma.XOR< + Prisma.UserUpdateWithoutNotificationsInput, + Prisma.UserUncheckedUpdateWithoutNotificationsInput + > + create: Prisma.XOR< + Prisma.UserCreateWithoutNotificationsInput, + Prisma.UserUncheckedCreateWithoutNotificationsInput + > + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutNotificationsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR< + Prisma.UserUpdateWithoutNotificationsInput, + Prisma.UserUncheckedUpdateWithoutNotificationsInput + > +} + +export type UserUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutNotificationsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutTasksInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput + teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + agent?: Prisma.AgentCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutTasksInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput + teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutTasksInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR< + Prisma.UserCreateWithoutTasksInput, + Prisma.UserUncheckedCreateWithoutTasksInput + > +} + +export type UserUpsertWithoutTasksInput = { + update: Prisma.XOR< + Prisma.UserUpdateWithoutTasksInput, + Prisma.UserUncheckedUpdateWithoutTasksInput + > + create: Prisma.XOR< + Prisma.UserCreateWithoutTasksInput, + Prisma.UserUncheckedCreateWithoutTasksInput + > + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutTasksInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutTasksInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput + teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutTasksInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput + teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutAgentInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutAgentInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutAgentInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR< + Prisma.UserCreateWithoutAgentInput, + Prisma.UserUncheckedCreateWithoutAgentInput + > +} + +export type UserUpsertWithoutAgentInput = { + update: Prisma.XOR< + Prisma.UserUpdateWithoutAgentInput, + Prisma.UserUncheckedUpdateWithoutAgentInput + > + create: Prisma.XOR< + Prisma.UserCreateWithoutAgentInput, + Prisma.UserUncheckedCreateWithoutAgentInput + > + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutAgentInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutAgentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutAgentInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutAgentSessionsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + agent?: Prisma.AgentCreateNestedOneWithoutUserInput + userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutAgentSessionsInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput + userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutAgentSessionsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR< + Prisma.UserCreateWithoutAgentSessionsInput, + Prisma.UserUncheckedCreateWithoutAgentSessionsInput + > +} + +export type UserUpsertWithoutAgentSessionsInput = { + update: Prisma.XOR< + Prisma.UserUpdateWithoutAgentSessionsInput, + Prisma.UserUncheckedUpdateWithoutAgentSessionsInput + > + create: Prisma.XOR< + Prisma.UserCreateWithoutAgentSessionsInput, + Prisma.UserUncheckedCreateWithoutAgentSessionsInput + > + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutAgentSessionsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR< + Prisma.UserUpdateWithoutAgentSessionsInput, + Prisma.UserUncheckedUpdateWithoutAgentSessionsInput + > +} + +export type UserUpdateWithoutAgentSessionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUpdateOneWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutAgentSessionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput + userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutUserMetadataInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + agent?: Prisma.AgentCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutUserMetadataInput = { + id?: string + type?: $Enums.UserType + name: string + email: string + emailVerified?: boolean + image?: string | null + password?: string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: string | null + createdAt?: Date | string + updatedAt?: Date | string + assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput + authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput + tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput + teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput + comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput + createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput + createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput + notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput + agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutUserMetadataInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR< + Prisma.UserCreateWithoutUserMetadataInput, + Prisma.UserUncheckedCreateWithoutUserMetadataInput + > +} + +export type UserUpsertWithoutUserMetadataInput = { + update: Prisma.XOR< + Prisma.UserUpdateWithoutUserMetadataInput, + Prisma.UserUncheckedUpdateWithoutUserMetadataInput + > + create: Prisma.XOR< + Prisma.UserCreateWithoutUserMetadataInput, + Prisma.UserUncheckedCreateWithoutUserMetadataInput + > + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutUserMetadataInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR< + Prisma.UserUpdateWithoutUserMetadataInput, + Prisma.UserUncheckedUpdateWithoutUserMetadataInput + > +} + +export type UserUpdateWithoutUserMetadataInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutUserMetadataInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput + guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput + authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput + tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput + teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput + comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput + createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput + createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput + notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput + agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput +} + +/** + * Count Type UserCountOutputType + */ + +export type UserCountOutputType = { + assets: number + authTokens: number + tasks: number + teamMembers: number + comments: number + createdInvites: number + createdNotifications: number + notifications: number + sessions: number + accounts: number + agentSessions: number + userMetadata: number +} + +export type UserCountOutputTypeSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + assets?: boolean | UserCountOutputTypeCountAssetsArgs + authTokens?: boolean | UserCountOutputTypeCountAuthTokensArgs + tasks?: boolean | UserCountOutputTypeCountTasksArgs + teamMembers?: boolean | UserCountOutputTypeCountTeamMembersArgs + comments?: boolean | UserCountOutputTypeCountCommentsArgs + createdInvites?: boolean | UserCountOutputTypeCountCreatedInvitesArgs + createdNotifications?: boolean | UserCountOutputTypeCountCreatedNotificationsArgs + notifications?: boolean | UserCountOutputTypeCountNotificationsArgs + sessions?: boolean | UserCountOutputTypeCountSessionsArgs + accounts?: boolean | UserCountOutputTypeCountAccountsArgs + agentSessions?: boolean | UserCountOutputTypeCountAgentSessionsArgs + userMetadata?: boolean | UserCountOutputTypeCountUserMetadataArgs +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserCountOutputType + */ + select?: Prisma.UserCountOutputTypeSelect | null +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountAssetsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountAuthTokensArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AuthTokenWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountTasksArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.TaskWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountTeamMembersArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.TeamMemberWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountCommentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AssetCommentWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountCreatedInvitesArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.InviteWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountCreatedNotificationsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.NotificationWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountNotificationsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.NotificationWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountSessionsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.SessionWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountAccountsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AccountWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountAgentSessionsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.AgentSessionWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountUserMetadataArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.UserMetadataWhereInput +} + +export type UserSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + type?: boolean + name?: boolean + email?: boolean + emailVerified?: boolean + image?: boolean + password?: boolean + agentSettings?: boolean + guestEmail?: boolean + createdAt?: boolean + updatedAt?: boolean + assets?: boolean | Prisma.User$assetsArgs + authTokens?: boolean | Prisma.User$authTokensArgs + tasks?: boolean | Prisma.User$tasksArgs + teamMembers?: boolean | Prisma.User$teamMembersArgs + comments?: boolean | Prisma.User$commentsArgs + createdInvites?: boolean | Prisma.User$createdInvitesArgs + createdNotifications?: boolean | Prisma.User$createdNotificationsArgs + notifications?: boolean | Prisma.User$notificationsArgs + sessions?: boolean | Prisma.User$sessionsArgs + accounts?: boolean | Prisma.User$accountsArgs + agent?: boolean | Prisma.User$agentArgs + agentSessions?: boolean | Prisma.User$agentSessionsArgs + userMetadata?: boolean | Prisma.User$userMetadataArgs + _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs + }, + ExtArgs['result']['user'] +> + +export type UserSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + type?: boolean + name?: boolean + email?: boolean + emailVerified?: boolean + image?: boolean + password?: boolean + agentSettings?: boolean + guestEmail?: boolean + createdAt?: boolean + updatedAt?: boolean + }, + ExtArgs['result']['user'] +> + +export type UserSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + type?: boolean + name?: boolean + email?: boolean + emailVerified?: boolean + image?: boolean + password?: boolean + agentSettings?: boolean + guestEmail?: boolean + createdAt?: boolean + updatedAt?: boolean + }, + ExtArgs['result']['user'] +> + +export type UserSelectScalar = { + id?: boolean + type?: boolean + name?: boolean + email?: boolean + emailVerified?: boolean + image?: boolean + password?: boolean + agentSettings?: boolean + guestEmail?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type UserOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'type' + | 'name' + | 'email' + | 'emailVerified' + | 'image' + | 'password' + | 'agentSettings' + | 'guestEmail' + | 'createdAt' + | 'updatedAt', + ExtArgs['result']['user'] +> +export type UserInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + assets?: boolean | Prisma.User$assetsArgs + authTokens?: boolean | Prisma.User$authTokensArgs + tasks?: boolean | Prisma.User$tasksArgs + teamMembers?: boolean | Prisma.User$teamMembersArgs + comments?: boolean | Prisma.User$commentsArgs + createdInvites?: boolean | Prisma.User$createdInvitesArgs + createdNotifications?: boolean | Prisma.User$createdNotificationsArgs + notifications?: boolean | Prisma.User$notificationsArgs + sessions?: boolean | Prisma.User$sessionsArgs + accounts?: boolean | Prisma.User$accountsArgs + agent?: boolean | Prisma.User$agentArgs + agentSessions?: boolean | Prisma.User$agentSessionsArgs + userMetadata?: boolean | Prisma.User$userMetadataArgs + _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs +} +export type UserIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = {} +export type UserIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = {} + +export type $UserPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'User' + objects: { + assets: Prisma.$AssetPayload[] + authTokens: Prisma.$AuthTokenPayload[] + tasks: Prisma.$TaskPayload[] + teamMembers: Prisma.$TeamMemberPayload[] + comments: Prisma.$AssetCommentPayload[] + createdInvites: Prisma.$InvitePayload[] + createdNotifications: Prisma.$NotificationPayload[] + notifications: Prisma.$NotificationPayload[] + sessions: Prisma.$SessionPayload[] + accounts: Prisma.$AccountPayload[] + agent: Prisma.$AgentPayload | null + agentSessions: Prisma.$AgentSessionPayload[] + userMetadata: Prisma.$UserMetadataPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + type: $Enums.UserType + name: string + email: string + emailVerified: boolean + image: string | null + password: string | null + /** + * [AgentSettings] + */ + agentSettings: PrismaJson.AgentSettings | null + guestEmail: string | null + createdAt: Date + updatedAt: Date + }, + ExtArgs['result']['user'] + > + composites: {} +} + +export type UserGetPayload = + runtime.Types.Result.GetResult + +export type UserCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: UserCountAggregateInputType | true +} + +export interface UserDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { types: Prisma.TypeMap['model']['User']; meta: { name: 'User' } } + /** + * Find zero or one User that matches the filter. + * @param {UserFindUniqueArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one User that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first User that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserFindFirstArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first User that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Users that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Users + * const users = await prisma.user.findMany() + * + * // Get first 10 Users + * const users = await prisma.user.findMany({ take: 10 }) + * + * // Only select the `id` + * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult, T, 'findMany', GlobalOmitOptions> + > + + /** + * Create a User. + * @param {UserCreateArgs} args - Arguments to create a User. + * @example + * // Create one User + * const User = await prisma.user.create({ + * data: { + * // ... data to create a User + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult, T, 'create', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Users. + * @param {UserCreateManyArgs} args - Arguments to create many Users. + * @example + * // Create many Users + * const user = await prisma.user.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Users and returns the data saved in the database. + * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. + * @example + * // Create many Users + * const user = await prisma.user.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Users and only return the `id` + * const userWithIdOnly = await prisma.user.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a User. + * @param {UserDeleteArgs} args - Arguments to delete one User. + * @example + * // Delete one User + * const User = await prisma.user.delete({ + * where: { + * // ... filter to delete one User + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult, T, 'delete', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one User. + * @param {UserUpdateArgs} args - Arguments to update one User. + * @example + * // Update one User + * const user = await prisma.user.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult, T, 'update', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Users. + * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. + * @example + * // Delete a few Users + * const { count } = await prisma.user.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Users. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Users + * const user = await prisma.user.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Users and returns the data updated in the database. + * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. + * @example + * // Update many Users + * const user = await prisma.user.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Users and only return the `id` + * const userWithIdOnly = await prisma.user.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one User. + * @param {UserUpsertArgs} args - Arguments to update or create a User. + * @example + * // Update or create a User + * const user = await prisma.user.upsert({ + * create: { + * // ... data to create a User + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the User we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult, T, 'upsert', GlobalOmitOptions>, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Users. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserCountArgs} args - Arguments to filter Users to count. + * @example + * // Count the number of Users + * const count = await prisma.user.count({ + * where: { + * // ... the filter for the Users we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a User. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by User. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends UserGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: UserGroupByArgs['orderBy'] } + : { orderBy?: UserGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the User model + */ + readonly fields: UserFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for User. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__UserClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + assets = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + authTokens = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AuthTokenPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + tasks = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult, T, 'findMany', GlobalOmitOptions> + | Null + > + teamMembers = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$TeamMemberPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + comments = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AssetCommentPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + createdInvites = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$InvitePayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + createdNotifications = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + notifications = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$NotificationPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + sessions = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$SessionPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + accounts = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AccountPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + agent = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__AgentClient< + runtime.Types.Result.GetResult< + Prisma.$AgentPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + agentSessions = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$AgentSessionPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + userMetadata = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$UserMetadataPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the User model + */ +export interface UserFieldRefs { + readonly id: Prisma.FieldRef<'User', 'String'> + readonly type: Prisma.FieldRef<'User', 'UserType'> + readonly name: Prisma.FieldRef<'User', 'String'> + readonly email: Prisma.FieldRef<'User', 'String'> + readonly emailVerified: Prisma.FieldRef<'User', 'Boolean'> + readonly image: Prisma.FieldRef<'User', 'String'> + readonly password: Prisma.FieldRef<'User', 'String'> + readonly agentSettings: Prisma.FieldRef<'User', 'Json'> + readonly guestEmail: Prisma.FieldRef<'User', 'String'> + readonly createdAt: Prisma.FieldRef<'User', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'User', 'DateTime'> +} + +// Custom InputTypes +/** + * User findUnique + */ +export type UserFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User findUniqueOrThrow + */ +export type UserFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User findFirst + */ +export type UserFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where?: Prisma.UserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Users. + */ + cursor?: Prisma.UserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Users from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Users. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Users. + */ + distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] +} + +/** + * User findFirstOrThrow + */ +export type UserFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where?: Prisma.UserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Users. + */ + cursor?: Prisma.UserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Users from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Users. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Users. + */ + distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] +} + +/** + * User findMany + */ +export type UserFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which Users to fetch. + */ + where?: Prisma.UserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Users. + */ + cursor?: Prisma.UserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Users from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Users. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Users. + */ + distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] +} + +/** + * User create + */ +export type UserCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * The data needed to create a User. + */ + data: Prisma.XOR +} + +/** + * User createMany + */ +export type UserCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Users. + */ + data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * User createManyAndReturn + */ +export type UserCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelectCreateManyAndReturn | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * The data used to create many Users. + */ + data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * User update + */ +export type UserUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * The data needed to update a User. + */ + data: Prisma.XOR + /** + * Choose, which User to update. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User updateMany + */ +export type UserUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Users. + */ + data: Prisma.XOR + /** + * Filter which Users to update + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to update. + */ + limit?: number +} + +/** + * User updateManyAndReturn + */ +export type UserUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * The data used to update Users. + */ + data: Prisma.XOR + /** + * Filter which Users to update + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to update. + */ + limit?: number +} + +/** + * User upsert + */ +export type UserUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * The filter to search for the User to update in case it exists. + */ + where: Prisma.UserWhereUniqueInput + /** + * In case the User found by the `where` argument doesn't exist, create a new User with this data. + */ + create: Prisma.XOR + /** + * In case the User was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * User delete + */ +export type UserDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter which User to delete. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User deleteMany + */ +export type UserDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Users to delete + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to delete. + */ + limit?: number +} + +/** + * User.assets + */ +export type User$assetsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Asset + */ + select?: Prisma.AssetSelect | null + /** + * Omit specific fields from the Asset + */ + omit?: Prisma.AssetOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetInclude | null + where?: Prisma.AssetWhereInput + orderBy?: Prisma.AssetOrderByWithRelationInput | Prisma.AssetOrderByWithRelationInput[] + cursor?: Prisma.AssetWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AssetScalarFieldEnum | Prisma.AssetScalarFieldEnum[] +} + +/** + * User.authTokens + */ +export type User$authTokensArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AuthToken + */ + select?: Prisma.AuthTokenSelect | null + /** + * Omit specific fields from the AuthToken + */ + omit?: Prisma.AuthTokenOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AuthTokenInclude | null + where?: Prisma.AuthTokenWhereInput + orderBy?: Prisma.AuthTokenOrderByWithRelationInput | Prisma.AuthTokenOrderByWithRelationInput[] + cursor?: Prisma.AuthTokenWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AuthTokenScalarFieldEnum | Prisma.AuthTokenScalarFieldEnum[] +} + +/** + * User.tasks + */ +export type User$tasksArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Task + */ + select?: Prisma.TaskSelect | null + /** + * Omit specific fields from the Task + */ + omit?: Prisma.TaskOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TaskInclude | null + where?: Prisma.TaskWhereInput + orderBy?: Prisma.TaskOrderByWithRelationInput | Prisma.TaskOrderByWithRelationInput[] + cursor?: Prisma.TaskWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.TaskScalarFieldEnum | Prisma.TaskScalarFieldEnum[] +} + +/** + * User.teamMembers + */ +export type User$teamMembersArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the TeamMember + */ + select?: Prisma.TeamMemberSelect | null + /** + * Omit specific fields from the TeamMember + */ + omit?: Prisma.TeamMemberOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TeamMemberInclude | null + where?: Prisma.TeamMemberWhereInput + orderBy?: Prisma.TeamMemberOrderByWithRelationInput | Prisma.TeamMemberOrderByWithRelationInput[] + cursor?: Prisma.TeamMemberWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.TeamMemberScalarFieldEnum | Prisma.TeamMemberScalarFieldEnum[] +} + +/** + * User.comments + */ +export type User$commentsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AssetComment + */ + select?: Prisma.AssetCommentSelect | null + /** + * Omit specific fields from the AssetComment + */ + omit?: Prisma.AssetCommentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AssetCommentInclude | null + where?: Prisma.AssetCommentWhereInput + orderBy?: + | Prisma.AssetCommentOrderByWithRelationInput + | Prisma.AssetCommentOrderByWithRelationInput[] + cursor?: Prisma.AssetCommentWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AssetCommentScalarFieldEnum | Prisma.AssetCommentScalarFieldEnum[] +} + +/** + * User.createdInvites + */ +export type User$createdInvitesArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Invite + */ + select?: Prisma.InviteSelect | null + /** + * Omit specific fields from the Invite + */ + omit?: Prisma.InviteOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.InviteInclude | null + where?: Prisma.InviteWhereInput + orderBy?: Prisma.InviteOrderByWithRelationInput | Prisma.InviteOrderByWithRelationInput[] + cursor?: Prisma.InviteWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.InviteScalarFieldEnum | Prisma.InviteScalarFieldEnum[] +} + +/** + * User.createdNotifications + */ +export type User$createdNotificationsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + where?: Prisma.NotificationWhereInput + orderBy?: + | Prisma.NotificationOrderByWithRelationInput + | Prisma.NotificationOrderByWithRelationInput[] + cursor?: Prisma.NotificationWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * User.notifications + */ +export type User$notificationsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Notification + */ + select?: Prisma.NotificationSelect | null + /** + * Omit specific fields from the Notification + */ + omit?: Prisma.NotificationOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.NotificationInclude | null + where?: Prisma.NotificationWhereInput + orderBy?: + | Prisma.NotificationOrderByWithRelationInput + | Prisma.NotificationOrderByWithRelationInput[] + cursor?: Prisma.NotificationWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * User.sessions + */ +export type User$sessionsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + where?: Prisma.SessionWhereInput + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + cursor?: Prisma.SessionWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] +} + +/** + * User.accounts + */ +export type User$accountsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + where?: Prisma.AccountWhereInput + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + cursor?: Prisma.AccountWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] +} + +/** + * User.agent + */ +export type User$agentArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Agent + */ + select?: Prisma.AgentSelect | null + /** + * Omit specific fields from the Agent + */ + omit?: Prisma.AgentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentInclude | null + where?: Prisma.AgentWhereInput +} + +/** + * User.agentSessions + */ +export type User$agentSessionsArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the AgentSession + */ + select?: Prisma.AgentSessionSelect | null + /** + * Omit specific fields from the AgentSession + */ + omit?: Prisma.AgentSessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AgentSessionInclude | null + where?: Prisma.AgentSessionWhereInput + orderBy?: + | Prisma.AgentSessionOrderByWithRelationInput + | Prisma.AgentSessionOrderByWithRelationInput[] + cursor?: Prisma.AgentSessionWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AgentSessionScalarFieldEnum | Prisma.AgentSessionScalarFieldEnum[] +} + +/** + * User.userMetadata + */ +export type User$userMetadataArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelect | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataInclude | null + where?: Prisma.UserMetadataWhereInput + orderBy?: + | Prisma.UserMetadataOrderByWithRelationInput + | Prisma.UserMetadataOrderByWithRelationInput[] + cursor?: Prisma.UserMetadataWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.UserMetadataScalarFieldEnum | Prisma.UserMetadataScalarFieldEnum[] +} + +/** + * User without action + */ +export type UserDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null +} diff --git a/packages/db/src/generated/prisma/models/UserMetadata.ts b/packages/db/src/generated/prisma/models/UserMetadata.ts new file mode 100644 index 00000000..adf1b4f1 --- /dev/null +++ b/packages/db/src/generated/prisma/models/UserMetadata.ts @@ -0,0 +1,1918 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `UserMetadata` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model UserMetadata + * + */ +export type UserMetadataModel = runtime.Types.Result.DefaultSelection + +export type AggregateUserMetadata = { + _count: UserMetadataCountAggregateOutputType | null + _min: UserMetadataMinAggregateOutputType | null + _max: UserMetadataMaxAggregateOutputType | null +} + +export type UserMetadataMinAggregateOutputType = { + id: string | null + key: string | null + createdAt: Date | null + updatedAt: Date | null + userId: string | null + teamId: string | null +} + +export type UserMetadataMaxAggregateOutputType = { + id: string | null + key: string | null + createdAt: Date | null + updatedAt: Date | null + userId: string | null + teamId: string | null +} + +export type UserMetadataCountAggregateOutputType = { + id: number + key: number + value: PrismaJson.UserMetadataValue + createdAt: number + updatedAt: number + userId: number + teamId: number + _all: number +} + +export type UserMetadataMinAggregateInputType = { + id?: true + key?: true + createdAt?: true + updatedAt?: true + userId?: true + teamId?: true +} + +export type UserMetadataMaxAggregateInputType = { + id?: true + key?: true + createdAt?: true + updatedAt?: true + userId?: true + teamId?: true +} + +export type UserMetadataCountAggregateInputType = { + id?: true + key?: true + value?: true + createdAt?: true + updatedAt?: true + userId?: true + teamId?: true + _all?: true +} + +export type UserMetadataAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which UserMetadata to aggregate. + */ + where?: Prisma.UserMetadataWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserMetadata to fetch. + */ + orderBy?: + | Prisma.UserMetadataOrderByWithRelationInput + | Prisma.UserMetadataOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.UserMetadataWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserMetadata from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` UserMetadata. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned UserMetadata + **/ + _count?: true | UserMetadataCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: UserMetadataMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UserMetadataMaxAggregateInputType +} + +export type GetUserMetadataAggregateType = { + [P in keyof T & keyof AggregateUserMetadata]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type UserMetadataGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.UserMetadataWhereInput + orderBy?: + | Prisma.UserMetadataOrderByWithAggregationInput + | Prisma.UserMetadataOrderByWithAggregationInput[] + by: Prisma.UserMetadataScalarFieldEnum[] | Prisma.UserMetadataScalarFieldEnum + having?: Prisma.UserMetadataScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UserMetadataCountAggregateInputType | true + _min?: UserMetadataMinAggregateInputType + _max?: UserMetadataMaxAggregateInputType +} + +export type UserMetadataGroupByOutputType = { + id: string + key: string + value: PrismaJson.UserMetadataValue + createdAt: Date + updatedAt: Date + userId: string + teamId: string + _count: UserMetadataCountAggregateOutputType | null + _min: UserMetadataMinAggregateOutputType | null + _max: UserMetadataMaxAggregateOutputType | null +} + +export type GetUserMetadataGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof UserMetadataGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type UserMetadataWhereInput = { + AND?: Prisma.UserMetadataWhereInput | Prisma.UserMetadataWhereInput[] + OR?: Prisma.UserMetadataWhereInput[] + NOT?: Prisma.UserMetadataWhereInput | Prisma.UserMetadataWhereInput[] + id?: Prisma.StringFilter<'UserMetadata'> | string + key?: Prisma.StringFilter<'UserMetadata'> | string + value?: Prisma.JsonFilter<'UserMetadata'> + createdAt?: Prisma.DateTimeFilter<'UserMetadata'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'UserMetadata'> | Date | string + userId?: Prisma.StringFilter<'UserMetadata'> | string + teamId?: Prisma.StringFilter<'UserMetadata'> | string + user?: Prisma.XOR + team?: Prisma.XOR +} + +export type UserMetadataOrderByWithRelationInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + value?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + userId?: Prisma.SortOrder + teamId?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + team?: Prisma.TeamOrderByWithRelationInput +} + +export type UserMetadataWhereUniqueInput = Prisma.AtLeast< + { + id?: string + userIdTeamIdKey?: Prisma.UserMetadataUserIdTeamIdKeyCompoundUniqueInput + AND?: Prisma.UserMetadataWhereInput | Prisma.UserMetadataWhereInput[] + OR?: Prisma.UserMetadataWhereInput[] + NOT?: Prisma.UserMetadataWhereInput | Prisma.UserMetadataWhereInput[] + key?: Prisma.StringFilter<'UserMetadata'> | string + value?: Prisma.JsonFilter<'UserMetadata'> + createdAt?: Prisma.DateTimeFilter<'UserMetadata'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'UserMetadata'> | Date | string + userId?: Prisma.StringFilter<'UserMetadata'> | string + teamId?: Prisma.StringFilter<'UserMetadata'> | string + user?: Prisma.XOR + team?: Prisma.XOR + }, + 'id' | 'userIdTeamIdKey' +> + +export type UserMetadataOrderByWithAggregationInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + value?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + userId?: Prisma.SortOrder + teamId?: Prisma.SortOrder + _count?: Prisma.UserMetadataCountOrderByAggregateInput + _max?: Prisma.UserMetadataMaxOrderByAggregateInput + _min?: Prisma.UserMetadataMinOrderByAggregateInput +} + +export type UserMetadataScalarWhereWithAggregatesInput = { + AND?: + | Prisma.UserMetadataScalarWhereWithAggregatesInput + | Prisma.UserMetadataScalarWhereWithAggregatesInput[] + OR?: Prisma.UserMetadataScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.UserMetadataScalarWhereWithAggregatesInput + | Prisma.UserMetadataScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'UserMetadata'> | string + key?: Prisma.StringWithAggregatesFilter<'UserMetadata'> | string + value?: Prisma.JsonWithAggregatesFilter<'UserMetadata'> + createdAt?: Prisma.DateTimeWithAggregatesFilter<'UserMetadata'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'UserMetadata'> | Date | string + userId?: Prisma.StringWithAggregatesFilter<'UserMetadata'> | string + teamId?: Prisma.StringWithAggregatesFilter<'UserMetadata'> | string +} + +export type UserMetadataCreateInput = { + id?: string + key: string + value: PrismaJson.UserMetadataValue + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserMetadataInput + team: Prisma.TeamCreateNestedOneWithoutUserMetadataInput +} + +export type UserMetadataUncheckedCreateInput = { + id?: string + key: string + value: PrismaJson.UserMetadataValue + createdAt?: Date | string + updatedAt?: Date | string + userId: string + teamId: string +} + +export type UserMetadataUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.UserMetadataValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserMetadataNestedInput + team?: Prisma.TeamUpdateOneRequiredWithoutUserMetadataNestedInput +} + +export type UserMetadataUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.UserMetadataValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type UserMetadataCreateManyInput = { + id?: string + key: string + value: PrismaJson.UserMetadataValue + createdAt?: Date | string + updatedAt?: Date | string + userId: string + teamId: string +} + +export type UserMetadataUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.UserMetadataValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserMetadataUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.UserMetadataValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type UserMetadataListRelationFilter = { + every?: Prisma.UserMetadataWhereInput + some?: Prisma.UserMetadataWhereInput + none?: Prisma.UserMetadataWhereInput +} + +export type UserMetadataOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type UserMetadataUserIdTeamIdKeyCompoundUniqueInput = { + userId: string + teamId: string + key: string +} + +export type UserMetadataCountOrderByAggregateInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + value?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + userId?: Prisma.SortOrder + teamId?: Prisma.SortOrder +} + +export type UserMetadataMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + userId?: Prisma.SortOrder + teamId?: Prisma.SortOrder +} + +export type UserMetadataMinOrderByAggregateInput = { + id?: Prisma.SortOrder + key?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + userId?: Prisma.SortOrder + teamId?: Prisma.SortOrder +} + +export type UserMetadataCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.UserMetadataCreateWithoutUserInput, + Prisma.UserMetadataUncheckedCreateWithoutUserInput + > + | Prisma.UserMetadataCreateWithoutUserInput[] + | Prisma.UserMetadataUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.UserMetadataCreateOrConnectWithoutUserInput + | Prisma.UserMetadataCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserMetadataCreateManyUserInputEnvelope + connect?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] +} + +export type UserMetadataUncheckedCreateNestedManyWithoutUserInput = { + create?: + | Prisma.XOR< + Prisma.UserMetadataCreateWithoutUserInput, + Prisma.UserMetadataUncheckedCreateWithoutUserInput + > + | Prisma.UserMetadataCreateWithoutUserInput[] + | Prisma.UserMetadataUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.UserMetadataCreateOrConnectWithoutUserInput + | Prisma.UserMetadataCreateOrConnectWithoutUserInput[] + createMany?: Prisma.UserMetadataCreateManyUserInputEnvelope + connect?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] +} + +export type UserMetadataUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.UserMetadataCreateWithoutUserInput, + Prisma.UserMetadataUncheckedCreateWithoutUserInput + > + | Prisma.UserMetadataCreateWithoutUserInput[] + | Prisma.UserMetadataUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.UserMetadataCreateOrConnectWithoutUserInput + | Prisma.UserMetadataCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.UserMetadataUpsertWithWhereUniqueWithoutUserInput + | Prisma.UserMetadataUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserMetadataCreateManyUserInputEnvelope + set?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + disconnect?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + delete?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + connect?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + update?: + | Prisma.UserMetadataUpdateWithWhereUniqueWithoutUserInput + | Prisma.UserMetadataUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.UserMetadataUpdateManyWithWhereWithoutUserInput + | Prisma.UserMetadataUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserMetadataScalarWhereInput | Prisma.UserMetadataScalarWhereInput[] +} + +export type UserMetadataUncheckedUpdateManyWithoutUserNestedInput = { + create?: + | Prisma.XOR< + Prisma.UserMetadataCreateWithoutUserInput, + Prisma.UserMetadataUncheckedCreateWithoutUserInput + > + | Prisma.UserMetadataCreateWithoutUserInput[] + | Prisma.UserMetadataUncheckedCreateWithoutUserInput[] + connectOrCreate?: + | Prisma.UserMetadataCreateOrConnectWithoutUserInput + | Prisma.UserMetadataCreateOrConnectWithoutUserInput[] + upsert?: + | Prisma.UserMetadataUpsertWithWhereUniqueWithoutUserInput + | Prisma.UserMetadataUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.UserMetadataCreateManyUserInputEnvelope + set?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + disconnect?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + delete?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + connect?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + update?: + | Prisma.UserMetadataUpdateWithWhereUniqueWithoutUserInput + | Prisma.UserMetadataUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: + | Prisma.UserMetadataUpdateManyWithWhereWithoutUserInput + | Prisma.UserMetadataUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.UserMetadataScalarWhereInput | Prisma.UserMetadataScalarWhereInput[] +} + +export type UserMetadataCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR< + Prisma.UserMetadataCreateWithoutTeamInput, + Prisma.UserMetadataUncheckedCreateWithoutTeamInput + > + | Prisma.UserMetadataCreateWithoutTeamInput[] + | Prisma.UserMetadataUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.UserMetadataCreateOrConnectWithoutTeamInput + | Prisma.UserMetadataCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.UserMetadataCreateManyTeamInputEnvelope + connect?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] +} + +export type UserMetadataUncheckedCreateNestedManyWithoutTeamInput = { + create?: + | Prisma.XOR< + Prisma.UserMetadataCreateWithoutTeamInput, + Prisma.UserMetadataUncheckedCreateWithoutTeamInput + > + | Prisma.UserMetadataCreateWithoutTeamInput[] + | Prisma.UserMetadataUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.UserMetadataCreateOrConnectWithoutTeamInput + | Prisma.UserMetadataCreateOrConnectWithoutTeamInput[] + createMany?: Prisma.UserMetadataCreateManyTeamInputEnvelope + connect?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] +} + +export type UserMetadataUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR< + Prisma.UserMetadataCreateWithoutTeamInput, + Prisma.UserMetadataUncheckedCreateWithoutTeamInput + > + | Prisma.UserMetadataCreateWithoutTeamInput[] + | Prisma.UserMetadataUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.UserMetadataCreateOrConnectWithoutTeamInput + | Prisma.UserMetadataCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.UserMetadataUpsertWithWhereUniqueWithoutTeamInput + | Prisma.UserMetadataUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.UserMetadataCreateManyTeamInputEnvelope + set?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + disconnect?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + delete?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + connect?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + update?: + | Prisma.UserMetadataUpdateWithWhereUniqueWithoutTeamInput + | Prisma.UserMetadataUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.UserMetadataUpdateManyWithWhereWithoutTeamInput + | Prisma.UserMetadataUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.UserMetadataScalarWhereInput | Prisma.UserMetadataScalarWhereInput[] +} + +export type UserMetadataUncheckedUpdateManyWithoutTeamNestedInput = { + create?: + | Prisma.XOR< + Prisma.UserMetadataCreateWithoutTeamInput, + Prisma.UserMetadataUncheckedCreateWithoutTeamInput + > + | Prisma.UserMetadataCreateWithoutTeamInput[] + | Prisma.UserMetadataUncheckedCreateWithoutTeamInput[] + connectOrCreate?: + | Prisma.UserMetadataCreateOrConnectWithoutTeamInput + | Prisma.UserMetadataCreateOrConnectWithoutTeamInput[] + upsert?: + | Prisma.UserMetadataUpsertWithWhereUniqueWithoutTeamInput + | Prisma.UserMetadataUpsertWithWhereUniqueWithoutTeamInput[] + createMany?: Prisma.UserMetadataCreateManyTeamInputEnvelope + set?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + disconnect?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + delete?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + connect?: Prisma.UserMetadataWhereUniqueInput | Prisma.UserMetadataWhereUniqueInput[] + update?: + | Prisma.UserMetadataUpdateWithWhereUniqueWithoutTeamInput + | Prisma.UserMetadataUpdateWithWhereUniqueWithoutTeamInput[] + updateMany?: + | Prisma.UserMetadataUpdateManyWithWhereWithoutTeamInput + | Prisma.UserMetadataUpdateManyWithWhereWithoutTeamInput[] + deleteMany?: Prisma.UserMetadataScalarWhereInput | Prisma.UserMetadataScalarWhereInput[] +} + +export type UserMetadataCreateWithoutUserInput = { + id?: string + key: string + value: PrismaJson.UserMetadataValue + createdAt?: Date | string + updatedAt?: Date | string + team: Prisma.TeamCreateNestedOneWithoutUserMetadataInput +} + +export type UserMetadataUncheckedCreateWithoutUserInput = { + id?: string + key: string + value: PrismaJson.UserMetadataValue + createdAt?: Date | string + updatedAt?: Date | string + teamId: string +} + +export type UserMetadataCreateOrConnectWithoutUserInput = { + where: Prisma.UserMetadataWhereUniqueInput + create: Prisma.XOR< + Prisma.UserMetadataCreateWithoutUserInput, + Prisma.UserMetadataUncheckedCreateWithoutUserInput + > +} + +export type UserMetadataCreateManyUserInputEnvelope = { + data: Prisma.UserMetadataCreateManyUserInput | Prisma.UserMetadataCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type UserMetadataUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.UserMetadataWhereUniqueInput + update: Prisma.XOR< + Prisma.UserMetadataUpdateWithoutUserInput, + Prisma.UserMetadataUncheckedUpdateWithoutUserInput + > + create: Prisma.XOR< + Prisma.UserMetadataCreateWithoutUserInput, + Prisma.UserMetadataUncheckedCreateWithoutUserInput + > +} + +export type UserMetadataUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.UserMetadataWhereUniqueInput + data: Prisma.XOR< + Prisma.UserMetadataUpdateWithoutUserInput, + Prisma.UserMetadataUncheckedUpdateWithoutUserInput + > +} + +export type UserMetadataUpdateManyWithWhereWithoutUserInput = { + where: Prisma.UserMetadataScalarWhereInput + data: Prisma.XOR< + Prisma.UserMetadataUpdateManyMutationInput, + Prisma.UserMetadataUncheckedUpdateManyWithoutUserInput + > +} + +export type UserMetadataScalarWhereInput = { + AND?: Prisma.UserMetadataScalarWhereInput | Prisma.UserMetadataScalarWhereInput[] + OR?: Prisma.UserMetadataScalarWhereInput[] + NOT?: Prisma.UserMetadataScalarWhereInput | Prisma.UserMetadataScalarWhereInput[] + id?: Prisma.StringFilter<'UserMetadata'> | string + key?: Prisma.StringFilter<'UserMetadata'> | string + value?: Prisma.JsonFilter<'UserMetadata'> + createdAt?: Prisma.DateTimeFilter<'UserMetadata'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'UserMetadata'> | Date | string + userId?: Prisma.StringFilter<'UserMetadata'> | string + teamId?: Prisma.StringFilter<'UserMetadata'> | string +} + +export type UserMetadataCreateWithoutTeamInput = { + id?: string + key: string + value: PrismaJson.UserMetadataValue + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutUserMetadataInput +} + +export type UserMetadataUncheckedCreateWithoutTeamInput = { + id?: string + key: string + value: PrismaJson.UserMetadataValue + createdAt?: Date | string + updatedAt?: Date | string + userId: string +} + +export type UserMetadataCreateOrConnectWithoutTeamInput = { + where: Prisma.UserMetadataWhereUniqueInput + create: Prisma.XOR< + Prisma.UserMetadataCreateWithoutTeamInput, + Prisma.UserMetadataUncheckedCreateWithoutTeamInput + > +} + +export type UserMetadataCreateManyTeamInputEnvelope = { + data: Prisma.UserMetadataCreateManyTeamInput | Prisma.UserMetadataCreateManyTeamInput[] + skipDuplicates?: boolean +} + +export type UserMetadataUpsertWithWhereUniqueWithoutTeamInput = { + where: Prisma.UserMetadataWhereUniqueInput + update: Prisma.XOR< + Prisma.UserMetadataUpdateWithoutTeamInput, + Prisma.UserMetadataUncheckedUpdateWithoutTeamInput + > + create: Prisma.XOR< + Prisma.UserMetadataCreateWithoutTeamInput, + Prisma.UserMetadataUncheckedCreateWithoutTeamInput + > +} + +export type UserMetadataUpdateWithWhereUniqueWithoutTeamInput = { + where: Prisma.UserMetadataWhereUniqueInput + data: Prisma.XOR< + Prisma.UserMetadataUpdateWithoutTeamInput, + Prisma.UserMetadataUncheckedUpdateWithoutTeamInput + > +} + +export type UserMetadataUpdateManyWithWhereWithoutTeamInput = { + where: Prisma.UserMetadataScalarWhereInput + data: Prisma.XOR< + Prisma.UserMetadataUpdateManyMutationInput, + Prisma.UserMetadataUncheckedUpdateManyWithoutTeamInput + > +} + +export type UserMetadataCreateManyUserInput = { + id?: string + key: string + value: PrismaJson.UserMetadataValue + createdAt?: Date | string + updatedAt?: Date | string + teamId: string +} + +export type UserMetadataUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.UserMetadataValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + team?: Prisma.TeamUpdateOneRequiredWithoutUserMetadataNestedInput +} + +export type UserMetadataUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.UserMetadataValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type UserMetadataUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.UserMetadataValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + teamId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type UserMetadataCreateManyTeamInput = { + id?: string + key: string + value: PrismaJson.UserMetadataValue + createdAt?: Date | string + updatedAt?: Date | string + userId: string +} + +export type UserMetadataUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.UserMetadataValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutUserMetadataNestedInput +} + +export type UserMetadataUncheckedUpdateWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.UserMetadataValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + userId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type UserMetadataUncheckedUpdateManyWithoutTeamInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + key?: Prisma.StringFieldUpdateOperationsInput | string + value?: PrismaJson.UserMetadataValue + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + userId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type UserMetadataSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + key?: boolean + value?: boolean + createdAt?: boolean + updatedAt?: boolean + userId?: boolean + teamId?: boolean + user?: boolean | Prisma.UserDefaultArgs + team?: boolean | Prisma.TeamDefaultArgs + }, + ExtArgs['result']['userMetadata'] +> + +export type UserMetadataSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + key?: boolean + value?: boolean + createdAt?: boolean + updatedAt?: boolean + userId?: boolean + teamId?: boolean + user?: boolean | Prisma.UserDefaultArgs + team?: boolean | Prisma.TeamDefaultArgs + }, + ExtArgs['result']['userMetadata'] +> + +export type UserMetadataSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + key?: boolean + value?: boolean + createdAt?: boolean + updatedAt?: boolean + userId?: boolean + teamId?: boolean + user?: boolean | Prisma.UserDefaultArgs + team?: boolean | Prisma.TeamDefaultArgs + }, + ExtArgs['result']['userMetadata'] +> + +export type UserMetadataSelectScalar = { + id?: boolean + key?: boolean + value?: boolean + createdAt?: boolean + updatedAt?: boolean + userId?: boolean + teamId?: boolean +} + +export type UserMetadataOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'key' | 'value' | 'createdAt' | 'updatedAt' | 'userId' | 'teamId', + ExtArgs['result']['userMetadata'] +> +export type UserMetadataInclude< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs + team?: boolean | Prisma.TeamDefaultArgs +} +export type UserMetadataIncludeCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs + team?: boolean | Prisma.TeamDefaultArgs +} +export type UserMetadataIncludeUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + user?: boolean | Prisma.UserDefaultArgs + team?: boolean | Prisma.TeamDefaultArgs +} + +export type $UserMetadataPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'UserMetadata' + objects: { + user: Prisma.$UserPayload + team: Prisma.$TeamPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + key: string + /** + * [UserMetadataValue] + */ + value: PrismaJson.UserMetadataValue + createdAt: Date + updatedAt: Date + userId: string + teamId: string + }, + ExtArgs['result']['userMetadata'] + > + composites: {} +} + +export type UserMetadataGetPayload = + runtime.Types.Result.GetResult + +export type UserMetadataCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: UserMetadataCountAggregateInputType | true +} + +export interface UserMetadataDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['UserMetadata'] + meta: { name: 'UserMetadata' } + } + /** + * Find zero or one UserMetadata that matches the filter. + * @param {UserMetadataFindUniqueArgs} args - Arguments to find a UserMetadata + * @example + * // Get one UserMetadata + * const userMetadata = await prisma.userMetadata.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserMetadataClient< + runtime.Types.Result.GetResult< + Prisma.$UserMetadataPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one UserMetadata that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {UserMetadataFindUniqueOrThrowArgs} args - Arguments to find a UserMetadata + * @example + * // Get one UserMetadata + * const userMetadata = await prisma.userMetadata.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserMetadataClient< + runtime.Types.Result.GetResult< + Prisma.$UserMetadataPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first UserMetadata that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserMetadataFindFirstArgs} args - Arguments to find a UserMetadata + * @example + * // Get one UserMetadata + * const userMetadata = await prisma.userMetadata.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__UserMetadataClient< + runtime.Types.Result.GetResult< + Prisma.$UserMetadataPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first UserMetadata that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserMetadataFindFirstOrThrowArgs} args - Arguments to find a UserMetadata + * @example + * // Get one UserMetadata + * const userMetadata = await prisma.userMetadata.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__UserMetadataClient< + runtime.Types.Result.GetResult< + Prisma.$UserMetadataPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more UserMetadata that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserMetadataFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all UserMetadata + * const userMetadata = await prisma.userMetadata.findMany() + * + * // Get first 10 UserMetadata + * const userMetadata = await prisma.userMetadata.findMany({ take: 10 }) + * + * // Only select the `id` + * const userMetadataWithIdOnly = await prisma.userMetadata.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$UserMetadataPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a UserMetadata. + * @param {UserMetadataCreateArgs} args - Arguments to create a UserMetadata. + * @example + * // Create one UserMetadata + * const UserMetadata = await prisma.userMetadata.create({ + * data: { + * // ... data to create a UserMetadata + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserMetadataClient< + runtime.Types.Result.GetResult< + Prisma.$UserMetadataPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many UserMetadata. + * @param {UserMetadataCreateManyArgs} args - Arguments to create many UserMetadata. + * @example + * // Create many UserMetadata + * const userMetadata = await prisma.userMetadata.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many UserMetadata and returns the data saved in the database. + * @param {UserMetadataCreateManyAndReturnArgs} args - Arguments to create many UserMetadata. + * @example + * // Create many UserMetadata + * const userMetadata = await prisma.userMetadata.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many UserMetadata and only return the `id` + * const userMetadataWithIdOnly = await prisma.userMetadata.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$UserMetadataPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a UserMetadata. + * @param {UserMetadataDeleteArgs} args - Arguments to delete one UserMetadata. + * @example + * // Delete one UserMetadata + * const UserMetadata = await prisma.userMetadata.delete({ + * where: { + * // ... filter to delete one UserMetadata + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserMetadataClient< + runtime.Types.Result.GetResult< + Prisma.$UserMetadataPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one UserMetadata. + * @param {UserMetadataUpdateArgs} args - Arguments to update one UserMetadata. + * @example + * // Update one UserMetadata + * const userMetadata = await prisma.userMetadata.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserMetadataClient< + runtime.Types.Result.GetResult< + Prisma.$UserMetadataPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more UserMetadata. + * @param {UserMetadataDeleteManyArgs} args - Arguments to filter UserMetadata to delete. + * @example + * // Delete a few UserMetadata + * const { count } = await prisma.userMetadata.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more UserMetadata. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserMetadataUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many UserMetadata + * const userMetadata = await prisma.userMetadata.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more UserMetadata and returns the data updated in the database. + * @param {UserMetadataUpdateManyAndReturnArgs} args - Arguments to update many UserMetadata. + * @example + * // Update many UserMetadata + * const userMetadata = await prisma.userMetadata.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more UserMetadata and only return the `id` + * const userMetadataWithIdOnly = await prisma.userMetadata.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$UserMetadataPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one UserMetadata. + * @param {UserMetadataUpsertArgs} args - Arguments to update or create a UserMetadata. + * @example + * // Update or create a UserMetadata + * const userMetadata = await prisma.userMetadata.upsert({ + * create: { + * // ... data to create a UserMetadata + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the UserMetadata we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserMetadataClient< + runtime.Types.Result.GetResult< + Prisma.$UserMetadataPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of UserMetadata. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserMetadataCountArgs} args - Arguments to filter UserMetadata to count. + * @example + * // Count the number of UserMetadata + * const count = await prisma.userMetadata.count({ + * where: { + * // ... the filter for the UserMetadata we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a UserMetadata. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserMetadataAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by UserMetadata. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserMetadataGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends UserMetadataGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: UserMetadataGroupByArgs['orderBy'] } + : { orderBy?: UserMetadataGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetUserMetadataGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the UserMetadata model + */ + readonly fields: UserMetadataFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for UserMetadata. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__UserMetadataClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + user = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__UserClient< + | runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + team = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__TeamClient< + | runtime.Types.Result.GetResult< + Prisma.$TeamPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > + | Null, + Null, + ExtArgs, + GlobalOmitOptions + > + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the UserMetadata model + */ +export interface UserMetadataFieldRefs { + readonly id: Prisma.FieldRef<'UserMetadata', 'String'> + readonly key: Prisma.FieldRef<'UserMetadata', 'String'> + readonly value: Prisma.FieldRef<'UserMetadata', 'Json'> + readonly createdAt: Prisma.FieldRef<'UserMetadata', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'UserMetadata', 'DateTime'> + readonly userId: Prisma.FieldRef<'UserMetadata', 'String'> + readonly teamId: Prisma.FieldRef<'UserMetadata', 'String'> +} + +// Custom InputTypes +/** + * UserMetadata findUnique + */ +export type UserMetadataFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelect | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataInclude | null + /** + * Filter, which UserMetadata to fetch. + */ + where: Prisma.UserMetadataWhereUniqueInput +} + +/** + * UserMetadata findUniqueOrThrow + */ +export type UserMetadataFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelect | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataInclude | null + /** + * Filter, which UserMetadata to fetch. + */ + where: Prisma.UserMetadataWhereUniqueInput +} + +/** + * UserMetadata findFirst + */ +export type UserMetadataFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelect | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataInclude | null + /** + * Filter, which UserMetadata to fetch. + */ + where?: Prisma.UserMetadataWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserMetadata to fetch. + */ + orderBy?: + | Prisma.UserMetadataOrderByWithRelationInput + | Prisma.UserMetadataOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserMetadata. + */ + cursor?: Prisma.UserMetadataWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserMetadata from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` UserMetadata. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserMetadata. + */ + distinct?: Prisma.UserMetadataScalarFieldEnum | Prisma.UserMetadataScalarFieldEnum[] +} + +/** + * UserMetadata findFirstOrThrow + */ +export type UserMetadataFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelect | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataInclude | null + /** + * Filter, which UserMetadata to fetch. + */ + where?: Prisma.UserMetadataWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserMetadata to fetch. + */ + orderBy?: + | Prisma.UserMetadataOrderByWithRelationInput + | Prisma.UserMetadataOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for UserMetadata. + */ + cursor?: Prisma.UserMetadataWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserMetadata from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` UserMetadata. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserMetadata. + */ + distinct?: Prisma.UserMetadataScalarFieldEnum | Prisma.UserMetadataScalarFieldEnum[] +} + +/** + * UserMetadata findMany + */ +export type UserMetadataFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelect | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataInclude | null + /** + * Filter, which UserMetadata to fetch. + */ + where?: Prisma.UserMetadataWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of UserMetadata to fetch. + */ + orderBy?: + | Prisma.UserMetadataOrderByWithRelationInput + | Prisma.UserMetadataOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing UserMetadata. + */ + cursor?: Prisma.UserMetadataWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` UserMetadata from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` UserMetadata. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of UserMetadata. + */ + distinct?: Prisma.UserMetadataScalarFieldEnum | Prisma.UserMetadataScalarFieldEnum[] +} + +/** + * UserMetadata create + */ +export type UserMetadataCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelect | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataInclude | null + /** + * The data needed to create a UserMetadata. + */ + data: Prisma.XOR +} + +/** + * UserMetadata createMany + */ +export type UserMetadataCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many UserMetadata. + */ + data: Prisma.UserMetadataCreateManyInput | Prisma.UserMetadataCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * UserMetadata createManyAndReturn + */ +export type UserMetadataCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelectCreateManyAndReturn | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * The data used to create many UserMetadata. + */ + data: Prisma.UserMetadataCreateManyInput | Prisma.UserMetadataCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataIncludeCreateManyAndReturn | null +} + +/** + * UserMetadata update + */ +export type UserMetadataUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelect | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataInclude | null + /** + * The data needed to update a UserMetadata. + */ + data: Prisma.XOR + /** + * Choose, which UserMetadata to update. + */ + where: Prisma.UserMetadataWhereUniqueInput +} + +/** + * UserMetadata updateMany + */ +export type UserMetadataUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update UserMetadata. + */ + data: Prisma.XOR< + Prisma.UserMetadataUpdateManyMutationInput, + Prisma.UserMetadataUncheckedUpdateManyInput + > + /** + * Filter which UserMetadata to update + */ + where?: Prisma.UserMetadataWhereInput + /** + * Limit how many UserMetadata to update. + */ + limit?: number +} + +/** + * UserMetadata updateManyAndReturn + */ +export type UserMetadataUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * The data used to update UserMetadata. + */ + data: Prisma.XOR< + Prisma.UserMetadataUpdateManyMutationInput, + Prisma.UserMetadataUncheckedUpdateManyInput + > + /** + * Filter which UserMetadata to update + */ + where?: Prisma.UserMetadataWhereInput + /** + * Limit how many UserMetadata to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataIncludeUpdateManyAndReturn | null +} + +/** + * UserMetadata upsert + */ +export type UserMetadataUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelect | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataInclude | null + /** + * The filter to search for the UserMetadata to update in case it exists. + */ + where: Prisma.UserMetadataWhereUniqueInput + /** + * In case the UserMetadata found by the `where` argument doesn't exist, create a new UserMetadata with this data. + */ + create: Prisma.XOR + /** + * In case the UserMetadata was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * UserMetadata delete + */ +export type UserMetadataDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelect | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataInclude | null + /** + * Filter which UserMetadata to delete. + */ + where: Prisma.UserMetadataWhereUniqueInput +} + +/** + * UserMetadata deleteMany + */ +export type UserMetadataDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which UserMetadata to delete + */ + where?: Prisma.UserMetadataWhereInput + /** + * Limit how many UserMetadata to delete. + */ + limit?: number +} + +/** + * UserMetadata without action + */ +export type UserMetadataDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the UserMetadata + */ + select?: Prisma.UserMetadataSelect | null + /** + * Omit specific fields from the UserMetadata + */ + omit?: Prisma.UserMetadataOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserMetadataInclude | null +} diff --git a/packages/db/src/generated/prisma/models/Verification.ts b/packages/db/src/generated/prisma/models/Verification.ts new file mode 100644 index 00000000..ad9e1c38 --- /dev/null +++ b/packages/db/src/generated/prisma/models/Verification.ts @@ -0,0 +1,1394 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Verification` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model Verification + * + */ +export type VerificationModel = runtime.Types.Result.DefaultSelection + +export type AggregateVerification = { + _count: VerificationCountAggregateOutputType | null + _min: VerificationMinAggregateOutputType | null + _max: VerificationMaxAggregateOutputType | null +} + +export type VerificationMinAggregateOutputType = { + id: string | null + identifier: string | null + value: string | null + expiresAt: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type VerificationMaxAggregateOutputType = { + id: string | null + identifier: string | null + value: string | null + expiresAt: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type VerificationCountAggregateOutputType = { + id: number + identifier: number + value: number + expiresAt: number + createdAt: number + updatedAt: number + _all: number +} + +export type VerificationMinAggregateInputType = { + id?: true + identifier?: true + value?: true + expiresAt?: true + createdAt?: true + updatedAt?: true +} + +export type VerificationMaxAggregateInputType = { + id?: true + identifier?: true + value?: true + expiresAt?: true + createdAt?: true + updatedAt?: true +} + +export type VerificationCountAggregateInputType = { + id?: true + identifier?: true + value?: true + expiresAt?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type VerificationAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Verification to aggregate. + */ + where?: Prisma.VerificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Verifications to fetch. + */ + orderBy?: + | Prisma.VerificationOrderByWithRelationInput + | Prisma.VerificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.VerificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Verifications from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Verifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Verifications + **/ + _count?: true | VerificationCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: VerificationMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: VerificationMaxAggregateInputType +} + +export type GetVerificationAggregateType = { + [P in keyof T & keyof AggregateVerification]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type VerificationGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.VerificationWhereInput + orderBy?: + | Prisma.VerificationOrderByWithAggregationInput + | Prisma.VerificationOrderByWithAggregationInput[] + by: Prisma.VerificationScalarFieldEnum[] | Prisma.VerificationScalarFieldEnum + having?: Prisma.VerificationScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: VerificationCountAggregateInputType | true + _min?: VerificationMinAggregateInputType + _max?: VerificationMaxAggregateInputType +} + +export type VerificationGroupByOutputType = { + id: string + identifier: string + value: string + expiresAt: Date + createdAt: Date | null + updatedAt: Date | null + _count: VerificationCountAggregateOutputType | null + _min: VerificationMinAggregateOutputType | null + _max: VerificationMaxAggregateOutputType | null +} + +export type GetVerificationGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof VerificationGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type VerificationWhereInput = { + AND?: Prisma.VerificationWhereInput | Prisma.VerificationWhereInput[] + OR?: Prisma.VerificationWhereInput[] + NOT?: Prisma.VerificationWhereInput | Prisma.VerificationWhereInput[] + id?: Prisma.StringFilter<'Verification'> | string + identifier?: Prisma.StringFilter<'Verification'> | string + value?: Prisma.StringFilter<'Verification'> | string + expiresAt?: Prisma.DateTimeFilter<'Verification'> | Date | string + createdAt?: Prisma.DateTimeNullableFilter<'Verification'> | Date | string | null + updatedAt?: Prisma.DateTimeNullableFilter<'Verification'> | Date | string | null +} + +export type VerificationOrderByWithRelationInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrderInput | Prisma.SortOrder + updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type VerificationWhereUniqueInput = Prisma.AtLeast< + { + id?: string + AND?: Prisma.VerificationWhereInput | Prisma.VerificationWhereInput[] + OR?: Prisma.VerificationWhereInput[] + NOT?: Prisma.VerificationWhereInput | Prisma.VerificationWhereInput[] + identifier?: Prisma.StringFilter<'Verification'> | string + value?: Prisma.StringFilter<'Verification'> | string + expiresAt?: Prisma.DateTimeFilter<'Verification'> | Date | string + createdAt?: Prisma.DateTimeNullableFilter<'Verification'> | Date | string | null + updatedAt?: Prisma.DateTimeNullableFilter<'Verification'> | Date | string | null + }, + 'id' +> + +export type VerificationOrderByWithAggregationInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrderInput | Prisma.SortOrder + updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.VerificationCountOrderByAggregateInput + _max?: Prisma.VerificationMaxOrderByAggregateInput + _min?: Prisma.VerificationMinOrderByAggregateInput +} + +export type VerificationScalarWhereWithAggregatesInput = { + AND?: + | Prisma.VerificationScalarWhereWithAggregatesInput + | Prisma.VerificationScalarWhereWithAggregatesInput[] + OR?: Prisma.VerificationScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.VerificationScalarWhereWithAggregatesInput + | Prisma.VerificationScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'Verification'> | string + identifier?: Prisma.StringWithAggregatesFilter<'Verification'> | string + value?: Prisma.StringWithAggregatesFilter<'Verification'> | string + expiresAt?: Prisma.DateTimeWithAggregatesFilter<'Verification'> | Date | string + createdAt?: Prisma.DateTimeNullableWithAggregatesFilter<'Verification'> | Date | string | null + updatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<'Verification'> | Date | string | null +} + +export type VerificationCreateInput = { + id?: string + identifier: string + value: string + expiresAt: Date | string + createdAt?: Date | string | null + updatedAt?: Date | string | null +} + +export type VerificationUncheckedCreateInput = { + id?: string + identifier: string + value: string + expiresAt: Date | string + createdAt?: Date | string | null + updatedAt?: Date | string | null +} + +export type VerificationUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + identifier?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type VerificationUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + identifier?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type VerificationCreateManyInput = { + id?: string + identifier: string + value: string + expiresAt: Date | string + createdAt?: Date | string | null + updatedAt?: Date | string | null +} + +export type VerificationUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + identifier?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type VerificationUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + identifier?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type VerificationCountOrderByAggregateInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type VerificationMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type VerificationMinOrderByAggregateInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type VerificationSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + identifier?: boolean + value?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean + }, + ExtArgs['result']['verification'] +> + +export type VerificationSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + identifier?: boolean + value?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean + }, + ExtArgs['result']['verification'] +> + +export type VerificationSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + identifier?: boolean + value?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean + }, + ExtArgs['result']['verification'] +> + +export type VerificationSelectScalar = { + id?: boolean + identifier?: boolean + value?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type VerificationOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + 'id' | 'identifier' | 'value' | 'expiresAt' | 'createdAt' | 'updatedAt', + ExtArgs['result']['verification'] +> + +export type $VerificationPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Verification' + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + identifier: string + value: string + expiresAt: Date + createdAt: Date | null + updatedAt: Date | null + }, + ExtArgs['result']['verification'] + > + composites: {} +} + +export type VerificationGetPayload = + runtime.Types.Result.GetResult + +export type VerificationCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: VerificationCountAggregateInputType | true +} + +export interface VerificationDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['Verification'] + meta: { name: 'Verification' } + } + /** + * Find zero or one Verification that matches the filter. + * @param {VerificationFindUniqueArgs} args - Arguments to find a Verification + * @example + * // Get one Verification + * const verification = await prisma.verification.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__VerificationClient< + runtime.Types.Result.GetResult< + Prisma.$VerificationPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one Verification that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {VerificationFindUniqueOrThrowArgs} args - Arguments to find a Verification + * @example + * // Get one Verification + * const verification = await prisma.verification.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__VerificationClient< + runtime.Types.Result.GetResult< + Prisma.$VerificationPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Verification that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationFindFirstArgs} args - Arguments to find a Verification + * @example + * // Get one Verification + * const verification = await prisma.verification.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__VerificationClient< + runtime.Types.Result.GetResult< + Prisma.$VerificationPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first Verification that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationFindFirstOrThrowArgs} args - Arguments to find a Verification + * @example + * // Get one Verification + * const verification = await prisma.verification.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__VerificationClient< + runtime.Types.Result.GetResult< + Prisma.$VerificationPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more Verifications that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Verifications + * const verifications = await prisma.verification.findMany() + * + * // Get first 10 Verifications + * const verifications = await prisma.verification.findMany({ take: 10 }) + * + * // Only select the `id` + * const verificationWithIdOnly = await prisma.verification.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$VerificationPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a Verification. + * @param {VerificationCreateArgs} args - Arguments to create a Verification. + * @example + * // Create one Verification + * const Verification = await prisma.verification.create({ + * data: { + * // ... data to create a Verification + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__VerificationClient< + runtime.Types.Result.GetResult< + Prisma.$VerificationPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many Verifications. + * @param {VerificationCreateManyArgs} args - Arguments to create many Verifications. + * @example + * // Create many Verifications + * const verification = await prisma.verification.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many Verifications and returns the data saved in the database. + * @param {VerificationCreateManyAndReturnArgs} args - Arguments to create many Verifications. + * @example + * // Create many Verifications + * const verification = await prisma.verification.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Verifications and only return the `id` + * const verificationWithIdOnly = await prisma.verification.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$VerificationPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a Verification. + * @param {VerificationDeleteArgs} args - Arguments to delete one Verification. + * @example + * // Delete one Verification + * const Verification = await prisma.verification.delete({ + * where: { + * // ... filter to delete one Verification + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__VerificationClient< + runtime.Types.Result.GetResult< + Prisma.$VerificationPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one Verification. + * @param {VerificationUpdateArgs} args - Arguments to update one Verification. + * @example + * // Update one Verification + * const verification = await prisma.verification.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__VerificationClient< + runtime.Types.Result.GetResult< + Prisma.$VerificationPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more Verifications. + * @param {VerificationDeleteManyArgs} args - Arguments to filter Verifications to delete. + * @example + * // Delete a few Verifications + * const { count } = await prisma.verification.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Verifications. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Verifications + * const verification = await prisma.verification.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more Verifications and returns the data updated in the database. + * @param {VerificationUpdateManyAndReturnArgs} args - Arguments to update many Verifications. + * @example + * // Update many Verifications + * const verification = await prisma.verification.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Verifications and only return the `id` + * const verificationWithIdOnly = await prisma.verification.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$VerificationPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one Verification. + * @param {VerificationUpsertArgs} args - Arguments to update or create a Verification. + * @example + * // Update or create a Verification + * const verification = await prisma.verification.upsert({ + * create: { + * // ... data to create a Verification + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Verification we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__VerificationClient< + runtime.Types.Result.GetResult< + Prisma.$VerificationPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of Verifications. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationCountArgs} args - Arguments to filter Verifications to count. + * @example + * // Count the number of Verifications + * const count = await prisma.verification.count({ + * where: { + * // ... the filter for the Verifications we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Verification. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by Verification. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends VerificationGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: VerificationGroupByArgs['orderBy'] } + : { orderBy?: VerificationGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetVerificationGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Verification model + */ + readonly fields: VerificationFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for Verification. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__VerificationClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the Verification model + */ +export interface VerificationFieldRefs { + readonly id: Prisma.FieldRef<'Verification', 'String'> + readonly identifier: Prisma.FieldRef<'Verification', 'String'> + readonly value: Prisma.FieldRef<'Verification', 'String'> + readonly expiresAt: Prisma.FieldRef<'Verification', 'DateTime'> + readonly createdAt: Prisma.FieldRef<'Verification', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'Verification', 'DateTime'> +} + +// Custom InputTypes +/** + * Verification findUnique + */ +export type VerificationFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verification to fetch. + */ + where: Prisma.VerificationWhereUniqueInput +} + +/** + * Verification findUniqueOrThrow + */ +export type VerificationFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verification to fetch. + */ + where: Prisma.VerificationWhereUniqueInput +} + +/** + * Verification findFirst + */ +export type VerificationFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verification to fetch. + */ + where?: Prisma.VerificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Verifications to fetch. + */ + orderBy?: + | Prisma.VerificationOrderByWithRelationInput + | Prisma.VerificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Verifications. + */ + cursor?: Prisma.VerificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Verifications from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Verifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Verifications. + */ + distinct?: Prisma.VerificationScalarFieldEnum | Prisma.VerificationScalarFieldEnum[] +} + +/** + * Verification findFirstOrThrow + */ +export type VerificationFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verification to fetch. + */ + where?: Prisma.VerificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Verifications to fetch. + */ + orderBy?: + | Prisma.VerificationOrderByWithRelationInput + | Prisma.VerificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Verifications. + */ + cursor?: Prisma.VerificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Verifications from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Verifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Verifications. + */ + distinct?: Prisma.VerificationScalarFieldEnum | Prisma.VerificationScalarFieldEnum[] +} + +/** + * Verification findMany + */ +export type VerificationFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verifications to fetch. + */ + where?: Prisma.VerificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Verifications to fetch. + */ + orderBy?: + | Prisma.VerificationOrderByWithRelationInput + | Prisma.VerificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Verifications. + */ + cursor?: Prisma.VerificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Verifications from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Verifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Verifications. + */ + distinct?: Prisma.VerificationScalarFieldEnum | Prisma.VerificationScalarFieldEnum[] +} + +/** + * Verification create + */ +export type VerificationCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * The data needed to create a Verification. + */ + data: Prisma.XOR +} + +/** + * Verification createMany + */ +export type VerificationCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many Verifications. + */ + data: Prisma.VerificationCreateManyInput | Prisma.VerificationCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Verification createManyAndReturn + */ +export type VerificationCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * The data used to create many Verifications. + */ + data: Prisma.VerificationCreateManyInput | Prisma.VerificationCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Verification update + */ +export type VerificationUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * The data needed to update a Verification. + */ + data: Prisma.XOR + /** + * Choose, which Verification to update. + */ + where: Prisma.VerificationWhereUniqueInput +} + +/** + * Verification updateMany + */ +export type VerificationUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update Verifications. + */ + data: Prisma.XOR< + Prisma.VerificationUpdateManyMutationInput, + Prisma.VerificationUncheckedUpdateManyInput + > + /** + * Filter which Verifications to update + */ + where?: Prisma.VerificationWhereInput + /** + * Limit how many Verifications to update. + */ + limit?: number +} + +/** + * Verification updateManyAndReturn + */ +export type VerificationUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * The data used to update Verifications. + */ + data: Prisma.XOR< + Prisma.VerificationUpdateManyMutationInput, + Prisma.VerificationUncheckedUpdateManyInput + > + /** + * Filter which Verifications to update + */ + where?: Prisma.VerificationWhereInput + /** + * Limit how many Verifications to update. + */ + limit?: number +} + +/** + * Verification upsert + */ +export type VerificationUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * The filter to search for the Verification to update in case it exists. + */ + where: Prisma.VerificationWhereUniqueInput + /** + * In case the Verification found by the `where` argument doesn't exist, create a new Verification with this data. + */ + create: Prisma.XOR + /** + * In case the Verification was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Verification delete + */ +export type VerificationDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter which Verification to delete. + */ + where: Prisma.VerificationWhereUniqueInput +} + +/** + * Verification deleteMany + */ +export type VerificationDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which Verifications to delete + */ + where?: Prisma.VerificationWhereInput + /** + * Limit how many Verifications to delete. + */ + limit?: number +} + +/** + * Verification without action + */ +export type VerificationDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null +} diff --git a/packages/db/src/generated/prisma/models/WorkflowTask.ts b/packages/db/src/generated/prisma/models/WorkflowTask.ts new file mode 100644 index 00000000..dad46fb3 --- /dev/null +++ b/packages/db/src/generated/prisma/models/WorkflowTask.ts @@ -0,0 +1,1751 @@ +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `WorkflowTask` model and its related types. + * + * 🟢 You can import this file directly. + */ + +import type * as PJTG from '../pjtg' +import type * as runtime from '@prisma/client/runtime/client' +import type * as $Enums from '../enums.ts' +import type * as Prisma from '../internal/prismaNamespace.ts' + +/** + * Model WorkflowTask + * + */ +export type WorkflowTaskModel = runtime.Types.Result.DefaultSelection + +export type AggregateWorkflowTask = { + _count: WorkflowTaskCountAggregateOutputType | null + _avg: WorkflowTaskAvgAggregateOutputType | null + _sum: WorkflowTaskSumAggregateOutputType | null + _min: WorkflowTaskMinAggregateOutputType | null + _max: WorkflowTaskMaxAggregateOutputType | null +} + +export type WorkflowTaskAvgAggregateOutputType = { + inputTokens: number | null + outputTokens: number | null +} + +export type WorkflowTaskSumAggregateOutputType = { + inputTokens: number | null + outputTokens: number | null +} + +export type WorkflowTaskMinAggregateOutputType = { + id: string | null + uid: string | null + teamId: string | null + projectId: string | null + assetId: string | null + type: $Enums.WorkflowTaskType | null + status: $Enums.WorkflowTaskStatus | null + heartbeat: Date | null + inputTokens: number | null + outputTokens: number | null + model: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type WorkflowTaskMaxAggregateOutputType = { + id: string | null + uid: string | null + teamId: string | null + projectId: string | null + assetId: string | null + type: $Enums.WorkflowTaskType | null + status: $Enums.WorkflowTaskStatus | null + heartbeat: Date | null + inputTokens: number | null + outputTokens: number | null + model: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type WorkflowTaskCountAggregateOutputType = { + id: number + uid: number + teamId: number + projectId: number + assetId: number + type: number + status: number + payload: PrismaJson.WorkflowTaskPayload + output: PrismaJson.WorkflowTaskOutput + heartbeat: number + inputTokens: number + outputTokens: number + model: number + createdAt: number + updatedAt: number + _all: number +} + +export type WorkflowTaskAvgAggregateInputType = { + inputTokens?: true + outputTokens?: true +} + +export type WorkflowTaskSumAggregateInputType = { + inputTokens?: true + outputTokens?: true +} + +export type WorkflowTaskMinAggregateInputType = { + id?: true + uid?: true + teamId?: true + projectId?: true + assetId?: true + type?: true + status?: true + heartbeat?: true + inputTokens?: true + outputTokens?: true + model?: true + createdAt?: true + updatedAt?: true +} + +export type WorkflowTaskMaxAggregateInputType = { + id?: true + uid?: true + teamId?: true + projectId?: true + assetId?: true + type?: true + status?: true + heartbeat?: true + inputTokens?: true + outputTokens?: true + model?: true + createdAt?: true + updatedAt?: true +} + +export type WorkflowTaskCountAggregateInputType = { + id?: true + uid?: true + teamId?: true + projectId?: true + assetId?: true + type?: true + status?: true + payload?: true + output?: true + heartbeat?: true + inputTokens?: true + outputTokens?: true + model?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type WorkflowTaskAggregateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which WorkflowTask to aggregate. + */ + where?: Prisma.WorkflowTaskWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of WorkflowTasks to fetch. + */ + orderBy?: + | Prisma.WorkflowTaskOrderByWithRelationInput + | Prisma.WorkflowTaskOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.WorkflowTaskWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` WorkflowTasks from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` WorkflowTasks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned WorkflowTasks + **/ + _count?: true | WorkflowTaskCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: WorkflowTaskAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: WorkflowTaskSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: WorkflowTaskMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: WorkflowTaskMaxAggregateInputType +} + +export type GetWorkflowTaskAggregateType = { + [P in keyof T & keyof AggregateWorkflowTask]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + +export type WorkflowTaskGroupByArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.WorkflowTaskWhereInput + orderBy?: + | Prisma.WorkflowTaskOrderByWithAggregationInput + | Prisma.WorkflowTaskOrderByWithAggregationInput[] + by: Prisma.WorkflowTaskScalarFieldEnum[] | Prisma.WorkflowTaskScalarFieldEnum + having?: Prisma.WorkflowTaskScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: WorkflowTaskCountAggregateInputType | true + _avg?: WorkflowTaskAvgAggregateInputType + _sum?: WorkflowTaskSumAggregateInputType + _min?: WorkflowTaskMinAggregateInputType + _max?: WorkflowTaskMaxAggregateInputType +} + +export type WorkflowTaskGroupByOutputType = { + id: string + uid: string + teamId: string | null + projectId: string | null + assetId: string + type: $Enums.WorkflowTaskType | null + status: $Enums.WorkflowTaskStatus | null + payload: PrismaJson.WorkflowTaskPayload | null + output: PrismaJson.WorkflowTaskOutput | null + heartbeat: Date | null + inputTokens: number + outputTokens: number + model: string | null + createdAt: Date + updatedAt: Date + _count: WorkflowTaskCountAggregateOutputType | null + _avg: WorkflowTaskAvgAggregateOutputType | null + _sum: WorkflowTaskSumAggregateOutputType | null + _min: WorkflowTaskMinAggregateOutputType | null + _max: WorkflowTaskMaxAggregateOutputType | null +} + +export type GetWorkflowTaskGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof WorkflowTaskGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > +> + +export type WorkflowTaskWhereInput = { + AND?: Prisma.WorkflowTaskWhereInput | Prisma.WorkflowTaskWhereInput[] + OR?: Prisma.WorkflowTaskWhereInput[] + NOT?: Prisma.WorkflowTaskWhereInput | Prisma.WorkflowTaskWhereInput[] + id?: Prisma.StringFilter<'WorkflowTask'> | string + uid?: Prisma.UuidFilter<'WorkflowTask'> | string + teamId?: Prisma.StringNullableFilter<'WorkflowTask'> | string | null + projectId?: Prisma.StringNullableFilter<'WorkflowTask'> | string | null + assetId?: Prisma.StringFilter<'WorkflowTask'> | string + type?: Prisma.EnumWorkflowTaskTypeNullableFilter<'WorkflowTask'> | $Enums.WorkflowTaskType | null + status?: + | Prisma.EnumWorkflowTaskStatusNullableFilter<'WorkflowTask'> + | $Enums.WorkflowTaskStatus + | null + payload?: Prisma.JsonNullableFilter<'WorkflowTask'> + output?: Prisma.JsonNullableFilter<'WorkflowTask'> + heartbeat?: Prisma.DateTimeNullableFilter<'WorkflowTask'> | Date | string | null + inputTokens?: Prisma.IntFilter<'WorkflowTask'> | number + outputTokens?: Prisma.IntFilter<'WorkflowTask'> | number + model?: Prisma.StringNullableFilter<'WorkflowTask'> | string | null + createdAt?: Prisma.DateTimeFilter<'WorkflowTask'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'WorkflowTask'> | Date | string +} + +export type WorkflowTaskOrderByWithRelationInput = { + id?: Prisma.SortOrder + uid?: Prisma.SortOrder + teamId?: Prisma.SortOrderInput | Prisma.SortOrder + projectId?: Prisma.SortOrderInput | Prisma.SortOrder + assetId?: Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + payload?: Prisma.SortOrderInput | Prisma.SortOrder + output?: Prisma.SortOrderInput | Prisma.SortOrder + heartbeat?: Prisma.SortOrderInput | Prisma.SortOrder + inputTokens?: Prisma.SortOrder + outputTokens?: Prisma.SortOrder + model?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type WorkflowTaskWhereUniqueInput = Prisma.AtLeast< + { + id?: string + AND?: Prisma.WorkflowTaskWhereInput | Prisma.WorkflowTaskWhereInput[] + OR?: Prisma.WorkflowTaskWhereInput[] + NOT?: Prisma.WorkflowTaskWhereInput | Prisma.WorkflowTaskWhereInput[] + uid?: Prisma.UuidFilter<'WorkflowTask'> | string + teamId?: Prisma.StringNullableFilter<'WorkflowTask'> | string | null + projectId?: Prisma.StringNullableFilter<'WorkflowTask'> | string | null + assetId?: Prisma.StringFilter<'WorkflowTask'> | string + type?: + | Prisma.EnumWorkflowTaskTypeNullableFilter<'WorkflowTask'> + | $Enums.WorkflowTaskType + | null + status?: + | Prisma.EnumWorkflowTaskStatusNullableFilter<'WorkflowTask'> + | $Enums.WorkflowTaskStatus + | null + payload?: Prisma.JsonNullableFilter<'WorkflowTask'> + output?: Prisma.JsonNullableFilter<'WorkflowTask'> + heartbeat?: Prisma.DateTimeNullableFilter<'WorkflowTask'> | Date | string | null + inputTokens?: Prisma.IntFilter<'WorkflowTask'> | number + outputTokens?: Prisma.IntFilter<'WorkflowTask'> | number + model?: Prisma.StringNullableFilter<'WorkflowTask'> | string | null + createdAt?: Prisma.DateTimeFilter<'WorkflowTask'> | Date | string + updatedAt?: Prisma.DateTimeFilter<'WorkflowTask'> | Date | string + }, + 'id' +> + +export type WorkflowTaskOrderByWithAggregationInput = { + id?: Prisma.SortOrder + uid?: Prisma.SortOrder + teamId?: Prisma.SortOrderInput | Prisma.SortOrder + projectId?: Prisma.SortOrderInput | Prisma.SortOrder + assetId?: Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + payload?: Prisma.SortOrderInput | Prisma.SortOrder + output?: Prisma.SortOrderInput | Prisma.SortOrder + heartbeat?: Prisma.SortOrderInput | Prisma.SortOrder + inputTokens?: Prisma.SortOrder + outputTokens?: Prisma.SortOrder + model?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.WorkflowTaskCountOrderByAggregateInput + _avg?: Prisma.WorkflowTaskAvgOrderByAggregateInput + _max?: Prisma.WorkflowTaskMaxOrderByAggregateInput + _min?: Prisma.WorkflowTaskMinOrderByAggregateInput + _sum?: Prisma.WorkflowTaskSumOrderByAggregateInput +} + +export type WorkflowTaskScalarWhereWithAggregatesInput = { + AND?: + | Prisma.WorkflowTaskScalarWhereWithAggregatesInput + | Prisma.WorkflowTaskScalarWhereWithAggregatesInput[] + OR?: Prisma.WorkflowTaskScalarWhereWithAggregatesInput[] + NOT?: + | Prisma.WorkflowTaskScalarWhereWithAggregatesInput + | Prisma.WorkflowTaskScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<'WorkflowTask'> | string + uid?: Prisma.UuidWithAggregatesFilter<'WorkflowTask'> | string + teamId?: Prisma.StringNullableWithAggregatesFilter<'WorkflowTask'> | string | null + projectId?: Prisma.StringNullableWithAggregatesFilter<'WorkflowTask'> | string | null + assetId?: Prisma.StringWithAggregatesFilter<'WorkflowTask'> | string + type?: + | Prisma.EnumWorkflowTaskTypeNullableWithAggregatesFilter<'WorkflowTask'> + | $Enums.WorkflowTaskType + | null + status?: + | Prisma.EnumWorkflowTaskStatusNullableWithAggregatesFilter<'WorkflowTask'> + | $Enums.WorkflowTaskStatus + | null + payload?: Prisma.JsonNullableWithAggregatesFilter<'WorkflowTask'> + output?: Prisma.JsonNullableWithAggregatesFilter<'WorkflowTask'> + heartbeat?: Prisma.DateTimeNullableWithAggregatesFilter<'WorkflowTask'> | Date | string | null + inputTokens?: Prisma.IntWithAggregatesFilter<'WorkflowTask'> | number + outputTokens?: Prisma.IntWithAggregatesFilter<'WorkflowTask'> | number + model?: Prisma.StringNullableWithAggregatesFilter<'WorkflowTask'> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<'WorkflowTask'> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'WorkflowTask'> | Date | string +} + +export type WorkflowTaskCreateInput = { + id?: string + uid?: string + teamId?: string | null + projectId?: string | null + assetId: string + type?: $Enums.WorkflowTaskType | null + status?: $Enums.WorkflowTaskStatus | null + payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput + output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput + heartbeat?: Date | string | null + inputTokens?: number + outputTokens?: number + model?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type WorkflowTaskUncheckedCreateInput = { + id?: string + uid?: string + teamId?: string | null + projectId?: string | null + assetId: string + type?: $Enums.WorkflowTaskType | null + status?: $Enums.WorkflowTaskStatus | null + payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput + output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput + heartbeat?: Date | string | null + inputTokens?: number + outputTokens?: number + model?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type WorkflowTaskUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + uid?: Prisma.StringFieldUpdateOperationsInput | string + teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumWorkflowTaskTypeFieldUpdateOperationsInput + | $Enums.WorkflowTaskType + | null + status?: + | Prisma.NullableEnumWorkflowTaskStatusFieldUpdateOperationsInput + | $Enums.WorkflowTaskStatus + | null + payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput + output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput + heartbeat?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + inputTokens?: Prisma.IntFieldUpdateOperationsInput | number + outputTokens?: Prisma.IntFieldUpdateOperationsInput | number + model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type WorkflowTaskUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + uid?: Prisma.StringFieldUpdateOperationsInput | string + teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumWorkflowTaskTypeFieldUpdateOperationsInput + | $Enums.WorkflowTaskType + | null + status?: + | Prisma.NullableEnumWorkflowTaskStatusFieldUpdateOperationsInput + | $Enums.WorkflowTaskStatus + | null + payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput + output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput + heartbeat?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + inputTokens?: Prisma.IntFieldUpdateOperationsInput | number + outputTokens?: Prisma.IntFieldUpdateOperationsInput | number + model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type WorkflowTaskCreateManyInput = { + id?: string + uid?: string + teamId?: string | null + projectId?: string | null + assetId: string + type?: $Enums.WorkflowTaskType | null + status?: $Enums.WorkflowTaskStatus | null + payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput + output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput + heartbeat?: Date | string | null + inputTokens?: number + outputTokens?: number + model?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type WorkflowTaskUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + uid?: Prisma.StringFieldUpdateOperationsInput | string + teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumWorkflowTaskTypeFieldUpdateOperationsInput + | $Enums.WorkflowTaskType + | null + status?: + | Prisma.NullableEnumWorkflowTaskStatusFieldUpdateOperationsInput + | $Enums.WorkflowTaskStatus + | null + payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput + output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput + heartbeat?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + inputTokens?: Prisma.IntFieldUpdateOperationsInput | number + outputTokens?: Prisma.IntFieldUpdateOperationsInput | number + model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type WorkflowTaskUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + uid?: Prisma.StringFieldUpdateOperationsInput | string + teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + assetId?: Prisma.StringFieldUpdateOperationsInput | string + type?: + | Prisma.NullableEnumWorkflowTaskTypeFieldUpdateOperationsInput + | $Enums.WorkflowTaskType + | null + status?: + | Prisma.NullableEnumWorkflowTaskStatusFieldUpdateOperationsInput + | $Enums.WorkflowTaskStatus + | null + payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput + output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput + heartbeat?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + inputTokens?: Prisma.IntFieldUpdateOperationsInput | number + outputTokens?: Prisma.IntFieldUpdateOperationsInput | number + model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type WorkflowTaskCountOrderByAggregateInput = { + id?: Prisma.SortOrder + uid?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + assetId?: Prisma.SortOrder + type?: Prisma.SortOrder + status?: Prisma.SortOrder + payload?: Prisma.SortOrder + output?: Prisma.SortOrder + heartbeat?: Prisma.SortOrder + inputTokens?: Prisma.SortOrder + outputTokens?: Prisma.SortOrder + model?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type WorkflowTaskAvgOrderByAggregateInput = { + inputTokens?: Prisma.SortOrder + outputTokens?: Prisma.SortOrder +} + +export type WorkflowTaskMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + uid?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + assetId?: Prisma.SortOrder + type?: Prisma.SortOrder + status?: Prisma.SortOrder + heartbeat?: Prisma.SortOrder + inputTokens?: Prisma.SortOrder + outputTokens?: Prisma.SortOrder + model?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type WorkflowTaskMinOrderByAggregateInput = { + id?: Prisma.SortOrder + uid?: Prisma.SortOrder + teamId?: Prisma.SortOrder + projectId?: Prisma.SortOrder + assetId?: Prisma.SortOrder + type?: Prisma.SortOrder + status?: Prisma.SortOrder + heartbeat?: Prisma.SortOrder + inputTokens?: Prisma.SortOrder + outputTokens?: Prisma.SortOrder + model?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type WorkflowTaskSumOrderByAggregateInput = { + inputTokens?: Prisma.SortOrder + outputTokens?: Prisma.SortOrder +} + +export type NullableEnumWorkflowTaskTypeFieldUpdateOperationsInput = { + set?: $Enums.WorkflowTaskType | null +} + +export type NullableEnumWorkflowTaskStatusFieldUpdateOperationsInput = { + set?: $Enums.WorkflowTaskStatus | null +} + +export type WorkflowTaskSelect< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + uid?: boolean + teamId?: boolean + projectId?: boolean + assetId?: boolean + type?: boolean + status?: boolean + payload?: boolean + output?: boolean + heartbeat?: boolean + inputTokens?: boolean + outputTokens?: boolean + model?: boolean + createdAt?: boolean + updatedAt?: boolean + }, + ExtArgs['result']['workflowTask'] +> + +export type WorkflowTaskSelectCreateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + uid?: boolean + teamId?: boolean + projectId?: boolean + assetId?: boolean + type?: boolean + status?: boolean + payload?: boolean + output?: boolean + heartbeat?: boolean + inputTokens?: boolean + outputTokens?: boolean + model?: boolean + createdAt?: boolean + updatedAt?: boolean + }, + ExtArgs['result']['workflowTask'] +> + +export type WorkflowTaskSelectUpdateManyAndReturn< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean + uid?: boolean + teamId?: boolean + projectId?: boolean + assetId?: boolean + type?: boolean + status?: boolean + payload?: boolean + output?: boolean + heartbeat?: boolean + inputTokens?: boolean + outputTokens?: boolean + model?: boolean + createdAt?: boolean + updatedAt?: boolean + }, + ExtArgs['result']['workflowTask'] +> + +export type WorkflowTaskSelectScalar = { + id?: boolean + uid?: boolean + teamId?: boolean + projectId?: boolean + assetId?: boolean + type?: boolean + status?: boolean + payload?: boolean + output?: boolean + heartbeat?: boolean + inputTokens?: boolean + outputTokens?: boolean + model?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type WorkflowTaskOmit< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'uid' + | 'teamId' + | 'projectId' + | 'assetId' + | 'type' + | 'status' + | 'payload' + | 'output' + | 'heartbeat' + | 'inputTokens' + | 'outputTokens' + | 'model' + | 'createdAt' + | 'updatedAt', + ExtArgs['result']['workflowTask'] +> + +export type $WorkflowTaskPayload< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'WorkflowTask' + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: string + uid: string + teamId: string | null + projectId: string | null + assetId: string + type: $Enums.WorkflowTaskType | null + status: $Enums.WorkflowTaskStatus | null + /** + * [WorkflowTaskPayload] + */ + payload: PrismaJson.WorkflowTaskPayload | null + /** + * [WorkflowTaskOutput] + */ + output: PrismaJson.WorkflowTaskOutput | null + heartbeat: Date | null + inputTokens: number + outputTokens: number + model: string | null + createdAt: Date + updatedAt: Date + }, + ExtArgs['result']['workflowTask'] + > + composites: {} +} + +export type WorkflowTaskGetPayload = + runtime.Types.Result.GetResult + +export type WorkflowTaskCountArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: WorkflowTaskCountAggregateInputType | true +} + +export interface WorkflowTaskDelegate< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['WorkflowTask'] + meta: { name: 'WorkflowTask' } + } + /** + * Find zero or one WorkflowTask that matches the filter. + * @param {WorkflowTaskFindUniqueArgs} args - Arguments to find a WorkflowTask + * @example + * // Get one WorkflowTask + * const workflowTask = await prisma.workflowTask.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__WorkflowTaskClient< + runtime.Types.Result.GetResult< + Prisma.$WorkflowTaskPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find one WorkflowTask that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {WorkflowTaskFindUniqueOrThrowArgs} args - Arguments to find a WorkflowTask + * @example + * // Get one WorkflowTask + * const workflowTask = await prisma.workflowTask.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__WorkflowTaskClient< + runtime.Types.Result.GetResult< + Prisma.$WorkflowTaskPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first WorkflowTask that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {WorkflowTaskFindFirstArgs} args - Arguments to find a WorkflowTask + * @example + * // Get one WorkflowTask + * const workflowTask = await prisma.workflowTask.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__WorkflowTaskClient< + runtime.Types.Result.GetResult< + Prisma.$WorkflowTaskPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find the first WorkflowTask that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {WorkflowTaskFindFirstOrThrowArgs} args - Arguments to find a WorkflowTask + * @example + * // Get one WorkflowTask + * const workflowTask = await prisma.workflowTask.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__WorkflowTaskClient< + runtime.Types.Result.GetResult< + Prisma.$WorkflowTaskPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Find zero or more WorkflowTasks that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {WorkflowTaskFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all WorkflowTasks + * const workflowTasks = await prisma.workflowTask.findMany() + * + * // Get first 10 WorkflowTasks + * const workflowTasks = await prisma.workflowTask.findMany({ take: 10 }) + * + * // Only select the `id` + * const workflowTaskWithIdOnly = await prisma.workflowTask.findMany({ select: { id: true } }) + * + */ + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$WorkflowTaskPayload, + T, + 'findMany', + GlobalOmitOptions + > + > + + /** + * Create a WorkflowTask. + * @param {WorkflowTaskCreateArgs} args - Arguments to create a WorkflowTask. + * @example + * // Create one WorkflowTask + * const WorkflowTask = await prisma.workflowTask.create({ + * data: { + * // ... data to create a WorkflowTask + * } + * }) + * + */ + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__WorkflowTaskClient< + runtime.Types.Result.GetResult< + Prisma.$WorkflowTaskPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Create many WorkflowTasks. + * @param {WorkflowTaskCreateManyArgs} args - Arguments to create many WorkflowTasks. + * @example + * // Create many WorkflowTasks + * const workflowTask = await prisma.workflowTask.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Create many WorkflowTasks and returns the data saved in the database. + * @param {WorkflowTaskCreateManyAndReturnArgs} args - Arguments to create many WorkflowTasks. + * @example + * // Create many WorkflowTasks + * const workflowTask = await prisma.workflowTask.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many WorkflowTasks and only return the `id` + * const workflowTaskWithIdOnly = await prisma.workflowTask.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$WorkflowTaskPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Delete a WorkflowTask. + * @param {WorkflowTaskDeleteArgs} args - Arguments to delete one WorkflowTask. + * @example + * // Delete one WorkflowTask + * const WorkflowTask = await prisma.workflowTask.delete({ + * where: { + * // ... filter to delete one WorkflowTask + * } + * }) + * + */ + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__WorkflowTaskClient< + runtime.Types.Result.GetResult< + Prisma.$WorkflowTaskPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Update one WorkflowTask. + * @param {WorkflowTaskUpdateArgs} args - Arguments to update one WorkflowTask. + * @example + * // Update one WorkflowTask + * const workflowTask = await prisma.workflowTask.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__WorkflowTaskClient< + runtime.Types.Result.GetResult< + Prisma.$WorkflowTaskPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Delete zero or more WorkflowTasks. + * @param {WorkflowTaskDeleteManyArgs} args - Arguments to filter WorkflowTasks to delete. + * @example + * // Delete a few WorkflowTasks + * const { count } = await prisma.workflowTask.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more WorkflowTasks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {WorkflowTaskUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many WorkflowTasks + * const workflowTask = await prisma.workflowTask.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise + + /** + * Update zero or more WorkflowTasks and returns the data updated in the database. + * @param {WorkflowTaskUpdateManyAndReturnArgs} args - Arguments to update many WorkflowTasks. + * @example + * // Update many WorkflowTasks + * const workflowTask = await prisma.workflowTask.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more WorkflowTasks and only return the `id` + * const workflowTaskWithIdOnly = await prisma.workflowTask.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$WorkflowTaskPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + > + + /** + * Create or update one WorkflowTask. + * @param {WorkflowTaskUpsertArgs} args - Arguments to update or create a WorkflowTask. + * @example + * // Update or create a WorkflowTask + * const workflowTask = await prisma.workflowTask.upsert({ + * create: { + * // ... data to create a WorkflowTask + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the WorkflowTask we want to update + * } + * }) + */ + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__WorkflowTaskClient< + runtime.Types.Result.GetResult< + Prisma.$WorkflowTaskPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + > + + /** + * Count the number of WorkflowTasks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {WorkflowTaskCountArgs} args - Arguments to filter WorkflowTasks to count. + * @example + * // Count the number of WorkflowTasks + * const count = await prisma.workflowTask.count({ + * where: { + * // ... the filter for the WorkflowTasks we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a WorkflowTask. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {WorkflowTaskAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise> + + /** + * Group by WorkflowTask. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {WorkflowTaskGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends WorkflowTaskGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: WorkflowTaskGroupByArgs['orderBy'] } + : { orderBy?: WorkflowTaskGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [Error, 'Field ', P, ` in "having" needs to be provided in "by"`] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields], + >( + args: Prisma.SubsetIntersection & InputErrors, + ): {} extends InputErrors ? GetWorkflowTaskGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the WorkflowTask model + */ + readonly fields: WorkflowTaskFieldRefs +} + +/** + * The delegate class that acts as a "Promise-like" for WorkflowTask. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__WorkflowTaskClient< + T, + Null = never, + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise' + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then( + onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch( + onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null, + ): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + +/** + * Fields of the WorkflowTask model + */ +export interface WorkflowTaskFieldRefs { + readonly id: Prisma.FieldRef<'WorkflowTask', 'String'> + readonly uid: Prisma.FieldRef<'WorkflowTask', 'String'> + readonly teamId: Prisma.FieldRef<'WorkflowTask', 'String'> + readonly projectId: Prisma.FieldRef<'WorkflowTask', 'String'> + readonly assetId: Prisma.FieldRef<'WorkflowTask', 'String'> + readonly type: Prisma.FieldRef<'WorkflowTask', 'WorkflowTaskType'> + readonly status: Prisma.FieldRef<'WorkflowTask', 'WorkflowTaskStatus'> + readonly payload: Prisma.FieldRef<'WorkflowTask', 'Json'> + readonly output: Prisma.FieldRef<'WorkflowTask', 'Json'> + readonly heartbeat: Prisma.FieldRef<'WorkflowTask', 'DateTime'> + readonly inputTokens: Prisma.FieldRef<'WorkflowTask', 'Int'> + readonly outputTokens: Prisma.FieldRef<'WorkflowTask', 'Int'> + readonly model: Prisma.FieldRef<'WorkflowTask', 'String'> + readonly createdAt: Prisma.FieldRef<'WorkflowTask', 'DateTime'> + readonly updatedAt: Prisma.FieldRef<'WorkflowTask', 'DateTime'> +} + +// Custom InputTypes +/** + * WorkflowTask findUnique + */ +export type WorkflowTaskFindUniqueArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the WorkflowTask + */ + select?: Prisma.WorkflowTaskSelect | null + /** + * Omit specific fields from the WorkflowTask + */ + omit?: Prisma.WorkflowTaskOmit | null + /** + * Filter, which WorkflowTask to fetch. + */ + where: Prisma.WorkflowTaskWhereUniqueInput +} + +/** + * WorkflowTask findUniqueOrThrow + */ +export type WorkflowTaskFindUniqueOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the WorkflowTask + */ + select?: Prisma.WorkflowTaskSelect | null + /** + * Omit specific fields from the WorkflowTask + */ + omit?: Prisma.WorkflowTaskOmit | null + /** + * Filter, which WorkflowTask to fetch. + */ + where: Prisma.WorkflowTaskWhereUniqueInput +} + +/** + * WorkflowTask findFirst + */ +export type WorkflowTaskFindFirstArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the WorkflowTask + */ + select?: Prisma.WorkflowTaskSelect | null + /** + * Omit specific fields from the WorkflowTask + */ + omit?: Prisma.WorkflowTaskOmit | null + /** + * Filter, which WorkflowTask to fetch. + */ + where?: Prisma.WorkflowTaskWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of WorkflowTasks to fetch. + */ + orderBy?: + | Prisma.WorkflowTaskOrderByWithRelationInput + | Prisma.WorkflowTaskOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for WorkflowTasks. + */ + cursor?: Prisma.WorkflowTaskWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` WorkflowTasks from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` WorkflowTasks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of WorkflowTasks. + */ + distinct?: Prisma.WorkflowTaskScalarFieldEnum | Prisma.WorkflowTaskScalarFieldEnum[] +} + +/** + * WorkflowTask findFirstOrThrow + */ +export type WorkflowTaskFindFirstOrThrowArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the WorkflowTask + */ + select?: Prisma.WorkflowTaskSelect | null + /** + * Omit specific fields from the WorkflowTask + */ + omit?: Prisma.WorkflowTaskOmit | null + /** + * Filter, which WorkflowTask to fetch. + */ + where?: Prisma.WorkflowTaskWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of WorkflowTasks to fetch. + */ + orderBy?: + | Prisma.WorkflowTaskOrderByWithRelationInput + | Prisma.WorkflowTaskOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for WorkflowTasks. + */ + cursor?: Prisma.WorkflowTaskWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` WorkflowTasks from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` WorkflowTasks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of WorkflowTasks. + */ + distinct?: Prisma.WorkflowTaskScalarFieldEnum | Prisma.WorkflowTaskScalarFieldEnum[] +} + +/** + * WorkflowTask findMany + */ +export type WorkflowTaskFindManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the WorkflowTask + */ + select?: Prisma.WorkflowTaskSelect | null + /** + * Omit specific fields from the WorkflowTask + */ + omit?: Prisma.WorkflowTaskOmit | null + /** + * Filter, which WorkflowTasks to fetch. + */ + where?: Prisma.WorkflowTaskWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of WorkflowTasks to fetch. + */ + orderBy?: + | Prisma.WorkflowTaskOrderByWithRelationInput + | Prisma.WorkflowTaskOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing WorkflowTasks. + */ + cursor?: Prisma.WorkflowTaskWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` WorkflowTasks from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` WorkflowTasks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of WorkflowTasks. + */ + distinct?: Prisma.WorkflowTaskScalarFieldEnum | Prisma.WorkflowTaskScalarFieldEnum[] +} + +/** + * WorkflowTask create + */ +export type WorkflowTaskCreateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the WorkflowTask + */ + select?: Prisma.WorkflowTaskSelect | null + /** + * Omit specific fields from the WorkflowTask + */ + omit?: Prisma.WorkflowTaskOmit | null + /** + * The data needed to create a WorkflowTask. + */ + data: Prisma.XOR +} + +/** + * WorkflowTask createMany + */ +export type WorkflowTaskCreateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to create many WorkflowTasks. + */ + data: Prisma.WorkflowTaskCreateManyInput | Prisma.WorkflowTaskCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * WorkflowTask createManyAndReturn + */ +export type WorkflowTaskCreateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the WorkflowTask + */ + select?: Prisma.WorkflowTaskSelectCreateManyAndReturn | null + /** + * Omit specific fields from the WorkflowTask + */ + omit?: Prisma.WorkflowTaskOmit | null + /** + * The data used to create many WorkflowTasks. + */ + data: Prisma.WorkflowTaskCreateManyInput | Prisma.WorkflowTaskCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * WorkflowTask update + */ +export type WorkflowTaskUpdateArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the WorkflowTask + */ + select?: Prisma.WorkflowTaskSelect | null + /** + * Omit specific fields from the WorkflowTask + */ + omit?: Prisma.WorkflowTaskOmit | null + /** + * The data needed to update a WorkflowTask. + */ + data: Prisma.XOR + /** + * Choose, which WorkflowTask to update. + */ + where: Prisma.WorkflowTaskWhereUniqueInput +} + +/** + * WorkflowTask updateMany + */ +export type WorkflowTaskUpdateManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * The data used to update WorkflowTasks. + */ + data: Prisma.XOR< + Prisma.WorkflowTaskUpdateManyMutationInput, + Prisma.WorkflowTaskUncheckedUpdateManyInput + > + /** + * Filter which WorkflowTasks to update + */ + where?: Prisma.WorkflowTaskWhereInput + /** + * Limit how many WorkflowTasks to update. + */ + limit?: number +} + +/** + * WorkflowTask updateManyAndReturn + */ +export type WorkflowTaskUpdateManyAndReturnArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the WorkflowTask + */ + select?: Prisma.WorkflowTaskSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the WorkflowTask + */ + omit?: Prisma.WorkflowTaskOmit | null + /** + * The data used to update WorkflowTasks. + */ + data: Prisma.XOR< + Prisma.WorkflowTaskUpdateManyMutationInput, + Prisma.WorkflowTaskUncheckedUpdateManyInput + > + /** + * Filter which WorkflowTasks to update + */ + where?: Prisma.WorkflowTaskWhereInput + /** + * Limit how many WorkflowTasks to update. + */ + limit?: number +} + +/** + * WorkflowTask upsert + */ +export type WorkflowTaskUpsertArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the WorkflowTask + */ + select?: Prisma.WorkflowTaskSelect | null + /** + * Omit specific fields from the WorkflowTask + */ + omit?: Prisma.WorkflowTaskOmit | null + /** + * The filter to search for the WorkflowTask to update in case it exists. + */ + where: Prisma.WorkflowTaskWhereUniqueInput + /** + * In case the WorkflowTask found by the `where` argument doesn't exist, create a new WorkflowTask with this data. + */ + create: Prisma.XOR + /** + * In case the WorkflowTask was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * WorkflowTask delete + */ +export type WorkflowTaskDeleteArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the WorkflowTask + */ + select?: Prisma.WorkflowTaskSelect | null + /** + * Omit specific fields from the WorkflowTask + */ + omit?: Prisma.WorkflowTaskOmit | null + /** + * Filter which WorkflowTask to delete. + */ + where: Prisma.WorkflowTaskWhereUniqueInput +} + +/** + * WorkflowTask deleteMany + */ +export type WorkflowTaskDeleteManyArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Filter which WorkflowTasks to delete + */ + where?: Prisma.WorkflowTaskWhereInput + /** + * Limit how many WorkflowTasks to delete. + */ + limit?: number +} + +/** + * WorkflowTask without action + */ +export type WorkflowTaskDefaultArgs< + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + /** + * Select specific fields to fetch from the WorkflowTask + */ + select?: Prisma.WorkflowTaskSelect | null + /** + * Omit specific fields from the WorkflowTask + */ + omit?: Prisma.WorkflowTaskOmit | null +} diff --git a/packages/db/src/generated/prisma/pjtg.ts b/packages/db/src/generated/prisma/pjtg.ts new file mode 100644 index 00000000..14ebe493 --- /dev/null +++ b/packages/db/src/generated/prisma/pjtg.ts @@ -0,0 +1,183 @@ +import * as Prisma from './internal/prismaNamespace' +declare global { + namespace PrismaJson { + // This namespace will always be empty. Definitions should be done by + // you manually, and merged automatically by typescript. Make sure that + // your declaration merging file is included in your tsconfig.json + // + // Learn more: https://github.com/arthurfiorette/prisma-json-types-generator/issues/143 + // Declaration Merging: https://www.typescriptlang.org/docs/handbook/declaration-merging.html + } +} + +/** A filter to be used against nullable List types. */ +export type NullableListFilter = { + equals?: T | T[] | null + has?: T | null + hasEvery?: T[] + hasSome?: T[] + isEmpty?: boolean +} + +/** A type to determine how to update a json field */ +export type UpdateInput = T extends object ? { [P in keyof T]?: UpdateInput } : T + +/** A type to determine how to update a json[] field */ +export type UpdateManyInput = T | T[] | { set?: T[]; push?: T | T[] } + +/** A type to determine how to create a json[] input */ +export type CreateManyInput = T | T[] | { set?: T[] } + +/** + * A typed version of NestedStringFilter, allowing narrowing of string types to + * discriminated unions. + */ +export type TypedNestedStringFilter = + //@ts-ignore - When Prisma.StringFilter is not present, this type is not used + Prisma.StringFilter & { + equals?: S + in?: S[] + notIn?: S[] + not?: TypedNestedStringFilter | S + } + +/** + * A typed version of StringFilter, allowing narrowing of string types to discriminated + * unions. + */ +export type TypedStringFilter = + //@ts-ignore - When Prisma.StringFilter is not present, this type is not used + Prisma.StringFilter & { + equals?: S + in?: S[] + notIn?: S[] + not?: TypedNestedStringFilter | S + } + +/** + * A typed version of NestedStringNullableFilter, allowing narrowing of string types to + * discriminated unions. + */ +export type TypedNestedStringNullableFilter = + //@ts-ignore - When Prisma.StringNullableFilter is not present, this type is not used + Prisma.StringNullableFilter & { + equals?: S | null + in?: S[] | null + notIn?: S[] | null + not?: TypedNestedStringNullableFilter | S | null + } + +/** + * A typed version of StringNullableFilter, allowing narrowing of string types to + * discriminated unions. + */ +export type TypedStringNullableFilter = + //@ts-ignore - When Prisma.StringNullableFilter is not present, this type is not used + Prisma.StringNullableFilter & { + equals?: S | null + in?: S[] | null + notIn?: S[] | null + not?: TypedNestedStringNullableFilter | S | null + } + +/** + * A typed version of NestedStringWithAggregatesFilter, allowing narrowing of string types + * to discriminated unions. + */ +export type TypedNestedStringWithAggregatesFilter = + //@ts-ignore - When Prisma.NestedStringWithAggregatesFilter is not present, this type is not used + Prisma.NestedStringWithAggregatesFilter & { + equals?: S + in?: S[] + notIn?: S[] + not?: TypedNestedStringWithAggregatesFilter | S + } + +/** + * A typed version of StringWithAggregatesFilter, allowing narrowing of string types to + * discriminated unions. + */ +export type TypedStringWithAggregatesFilter = + //@ts-ignore - When Prisma.StringWithAggregatesFilter is not present, this type is not used + Prisma.StringWithAggregatesFilter & { + equals?: S + in?: S[] + notIn?: S[] + not?: TypedNestedStringWithAggregatesFilter | S + } + +/** + * A typed version of NestedStringNullableWithAggregatesFilter, allowing narrowing of + * string types to discriminated unions. + */ +export type TypedNestedStringNullableWithAggregatesFilter = + //@ts-ignore - When Prisma.NestedStringNullableWithAggregatesFilter is not present, this type is not used + Prisma.NestedStringNullableWithAggregatesFilter & { + equals?: S | null + in?: S[] | null + notIn?: S[] | null + not?: TypedNestedStringNullableWithAggregatesFilter | S | null + } + +/** + * A typed version of StringNullableWithAggregatesFilter, allowing narrowing of string + * types to discriminated unions. + */ +export type TypedStringNullableWithAggregatesFilter = + //@ts-ignore - When Prisma.StringNullableWithAggregatesFilter is not present, this type is not used + Prisma.StringNullableWithAggregatesFilter & { + equals?: S | null + in?: S[] | null + notIn?: S[] | null + not?: TypedNestedStringNullableWithAggregatesFilter | S | null + } + +/** + * A typed version of StringFieldUpdateOperationsInput, allowing narrowing of string types + * to discriminated unions. + */ +export type TypedStringFieldUpdateOperationsInput = + //@ts-ignore - When Prisma.StringFieldUpdateOperationsInput is not present, this type is not used + Prisma.StringFieldUpdateOperationsInput & { + set?: S + } + +/** + * A typed version of NullableStringFieldUpdateOperationsInput, allowing narrowing of + * string types to discriminated unions. + */ +export type TypedNullableStringFieldUpdateOperationsInput = + //@ts-ignore - When Prisma.NullableStringFieldUpdateOperationsInput is not present, this type is not used + Prisma.NullableStringFieldUpdateOperationsInput & { + set?: S | null + } + +/** + * A typed version of StringNullableListFilter, allowing narrowing of string types to + * discriminated unions. + */ +export type TypedStringNullableListFilter = + //@ts-ignore - When Prisma.StringNullableListFilter is not present, this type is not used + Prisma.StringNullableListFilter & { + equals?: S[] | null + has?: S | null + hasEvery?: S[] + hasSome?: S[] + } + +/** + * A typed version of the input type to update a string[] field, allowing narrowing of + * string types to discriminated unions. + */ +export type UpdateStringArrayInput = { + set?: S[] + push?: S | S[] +} + +/** + * A typed version of the input type to create a string[] field, allowing narrowing of + * string types to discriminated unions. + */ +export type CreateStringArrayInput = { + set?: S[] +} diff --git a/src/db.ts b/packages/db/src/index.ts similarity index 73% rename from src/db.ts rename to packages/db/src/index.ts index 889ebeda..38f77517 100644 --- a/src/db.ts +++ b/packages/db/src/index.ts @@ -1,8 +1,16 @@ -import { PrismaClient } from '@/generated/prisma/client' -import { PrismaTestingHelper } from '@/test-utils' +import { PrismaClient, WorkflowTask } from './generated/prisma/client' +import { PrismaTestingHelper } from './prisma-testing-helper' import { PrismaPg } from '@prisma/adapter-pg' import { Pool } from 'pg' -import { generateNgrams } from '@/utils/ngram' +import { generateNgrams } from './utils/ngram' + +// Global callback for workflow task creation (decouples db package from workflow engine) +type WorkflowTriggerCallback = (task: WorkflowTask) => Promise +let onWorkflowTaskCreated: WorkflowTriggerCallback | null = null + +export function registerWorkflowTrigger(cb: WorkflowTriggerCallback) { + onWorkflowTaskCreated = cb +} const isTest = process.env.NODE_ENV === 'test' @@ -10,7 +18,6 @@ const globalForPrisma = globalThis as unknown as { prisma: PrismaClient | undefined } -// We use any here because PrismaTestingHelper is generic and the extended client type is complex // eslint-disable-next-line @typescript-eslint/no-explicit-any let prismaTestingHelper: PrismaTestingHelper | null = null @@ -24,16 +31,9 @@ function createPrismaClient() { workflowTask: { async create({ args, query }) { const result = await query(args) - // Lazy load workflowService to avoid circular dependency - import('@/workflow/workflow').then((mod) => { - const service = mod?.workflowService - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const task = result as any - if (service && task.status === 'pending') { - // result is the created task, but the extension types are complex - service.submit(task).catch(console.error) - } - }) + if (onWorkflowTaskCreated && (result as WorkflowTask).status === 'pending') { + onWorkflowTaskCreated(result as WorkflowTask).catch(console.error) + } return result }, }, @@ -94,3 +94,10 @@ export function getPrismaTestingHelper() { } return prismaTestingHelper } + +export * from './utils/ngram' +export * from './db-test-hooks' +export * from './prisma-testing-helper' +export * from './generated/prisma/models' +export * from './generated/prisma/enums' +export { PrismaClient } from './generated/prisma/client' diff --git a/src/prisma-json-types.ts b/packages/db/src/prisma-json-types.ts similarity index 95% rename from src/prisma-json-types.ts rename to packages/db/src/prisma-json-types.ts index f2367ced..f66098a5 100644 --- a/src/prisma-json-types.ts +++ b/packages/db/src/prisma-json-types.ts @@ -51,7 +51,7 @@ declare global { // ---------------------------------------------------------------------- // Collection Filter // ---------------------------------------------------------------------- - export type CollectionFilter = import('./dtos/collection').CollectionFilter + export type CollectionFilter = import('@shumai/dtos').CollectionFilter export interface TranscodeSettings { videoStrategy: VideoTranscodeStrategy @@ -231,9 +231,9 @@ declare global { // Provider Config // ---------------------------------------------------------------------- export type ModelConfig = import('zod').z.infer< - typeof import('@/dtos/provider').providerModelConfigSchema + typeof import('@shumai/dtos').providerModelConfigSchema > - export type ProviderConfig = import('@/dtos/provider').ProviderConfigSerializable + export type ProviderConfig = import('@shumai/dtos').ProviderConfigSerializable // ---------------------------------------------------------------------- // Workflow Task Payload @@ -284,13 +284,7 @@ declare global { // ---------------------------------------------------------------------- // Skill Config // ---------------------------------------------------------------------- - export interface SkillEnvironmentVariable { - name: string - default?: string - } - - export interface SkillConfig { - environmentVariables: SkillEnvironmentVariable[] - } + export type SkillEnvironmentVariable = import('@shumai/dtos').SkillEnvironmentVariable + export type SkillConfig = import('@shumai/dtos').SkillConfig } } diff --git a/packages/db/src/prisma-testing-helper.ts b/packages/db/src/prisma-testing-helper.ts new file mode 100644 index 00000000..b2815e81 --- /dev/null +++ b/packages/db/src/prisma-testing-helper.ts @@ -0,0 +1,255 @@ +import { AsyncLocalStorage } from 'node:async_hooks' +import { Prisma } from './generated/prisma/client' + +type PromiseResolveFunction = (value: void | PromiseLike) => void +const internalRollbackErrorSymbol = Symbol( + 'Internal transactional-prisma-testing rollback error symbol', +) + +const MAX_ACTIVE_SAVEPOINTS = 56 + +export class PrismaTestingHelper< + T extends { + $transaction(arg: unknown[], options?: unknown): Promise + $transaction(fn: (client: unknown) => Promise, options?: unknown): Promise + }, +> { + private readonly proxyClient: T + private currentPrismaTransactionClient?: Prisma.TransactionClient + private endCurrentTransactionPromise?: (value?: unknown) => void + private savepointId = 0 + private transactionLock: Promise | null = null + private readonly asyncLocalStorage = new AsyncLocalStorage<{ + transactionSavepoint: string + }>() + + constructor(private readonly prismaClient: T) { + // eslint-disable-next-line @typescript-eslint/no-this-alias + const prismaTestingHelper = this + this.proxyClient = new Proxy(prismaClient, { + get(target, prop, receiver) { + if (prismaTestingHelper.currentPrismaTransactionClient == null) { + return Reflect.get(target, prop, receiver) + } + + const descriptor = Object.getOwnPropertyDescriptor(target, prop) + if (descriptor && !descriptor.configurable && !descriptor.writable) { + return Reflect.get(target, prop, receiver) + } + + if (prop === '$transaction') { + return prismaTestingHelper.transactionProxyFunction.bind(prismaTestingHelper) + } + + // accessing arbitrary properties on transaction client requires any cast + // eslint-disable-next-line @typescript-eslint/no-explicit-any + if ((prismaTestingHelper.currentPrismaTransactionClient as any)[prop] != null) { + const ret = Reflect.get( + prismaTestingHelper.currentPrismaTransactionClient, + prop, + receiver, + ) + if ( + typeof ret === 'object' && + ret !== null && + 'findFirst' in ret && + typeof ret.findFirst === 'function' + ) { + return prismaTestingHelper.getPrismaDelegateProxy(ret) + } + return ret + } + return Reflect.get(target, prop, receiver) + }, + }) + } + + private getPrismaDelegateProxy(original: TU): TU { + // eslint-disable-next-line @typescript-eslint/no-this-alias + const prismaTestingHelper = this + const prismaDelegateProxy = new Proxy(original, { + get(_, prop, receiver) { + const originalReturnValue = Reflect.get(original, prop, receiver) + if (typeof originalReturnValue !== 'function') { + return originalReturnValue + } + + const originalFunction = originalReturnValue as (...args: unknown[]) => Promise + return (...args: unknown[]) => { + const catchCallbacks: Array<(reason: unknown) => unknown> = [] + const finallyCallbacks: Array<() => unknown> = [] + const returnedPromise = { + // reject must be any per Promise signature + // eslint-disable-next-line @typescript-eslint/no-explicit-any + then: async (resolve: PromiseResolveFunction, reject: any) => { + try { + const isInTransaction = + prismaTestingHelper.asyncLocalStorage.getStore()?.transactionSavepoint != null + if (!isInTransaction) { + const value = await prismaTestingHelper.wrapInSavepoint(() => + originalFunction.apply(prismaDelegateProxy, args), + ) + // resolve requires any cast to match expected type + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return resolve(value as any) + } + + const value = await originalFunction.apply(prismaDelegateProxy, args) + // resolve requires any cast to match expected type + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return resolve(value as any) + } catch (e) { + try { + let error = e + for (const catchCallback of catchCallbacks) { + error = await catchCallback(error) + } + if (reject) { + reject(error) + } else { + return Promise.reject(error) + } + } catch (innerError) { + if (reject) { + reject(innerError) + } else { + return Promise.reject(innerError) + } + } + } finally { + finallyCallbacks.forEach((c) => c()) + } + }, + catch: (callback: (reason: unknown) => unknown) => { + catchCallbacks.push(callback) + return returnedPromise + }, + finally: (callback: () => unknown) => { + finallyCallbacks.push(callback) + return returnedPromise + }, + } + + return returnedPromise + } + }, + }) + + return prismaDelegateProxy + } + + private async transactionProxyFunction(args: unknown): Promise { + return this.wrapInSavepoint(async () => { + if (Array.isArray(args)) { + const ret = [] + for (const query of args) { + ret.push(await query) + } + return ret + } else if (typeof args === 'function') { + return args(this.currentPrismaTransactionClient) + } else { + throw new Error( + '[transactional-prisma-testing] Invalid $transaction call. Argument must be an array or a callback function.', + ) + } + }) + } + + private async wrapInSavepoint(func: () => Promise): Promise { + const transactionClient = this.currentPrismaTransactionClient + const isInTransaction = this.asyncLocalStorage.getStore()?.transactionSavepoint != null + let lockResolve = undefined + if (!isInTransaction) { + lockResolve = await this.acquireTransactionLock() + } + + try { + if (transactionClient == null) { + throw new Error( + '[transactional-prisma-testing] Invalid call to $transaction while no transaction is active.', + ) + } + + if (transactionClient !== this.currentPrismaTransactionClient) { + throw new Error( + '[transactional-prisma-testing] Transaction client changed (and old transaction rollbacked) before query could be executed.', + ) + } + + const savepointIdToRelease = this.savepointId - MAX_ACTIVE_SAVEPOINTS + if (savepointIdToRelease >= 0 && savepointIdToRelease % MAX_ACTIVE_SAVEPOINTS === 0) { + try { + await transactionClient.$executeRawUnsafe( + `RELEASE SAVEPOINT trnsctl_tst_${savepointIdToRelease}`, + ) + } catch { + // ignore release errors + } + } + + const savepointName = `trnsctl_tst_${this.savepointId++}` + try { + await transactionClient.$executeRawUnsafe(`SAVEPOINT ${savepointName}`) + return await this.asyncLocalStorage.run({ transactionSavepoint: savepointName }, func) + } catch (err) { + await transactionClient?.$executeRawUnsafe(`ROLLBACK TO SAVEPOINT ${savepointName}`) + throw err + } + } finally { + this.transactionLock = null + lockResolve?.() + } + } + + private async acquireTransactionLock(): Promise { + while (this.transactionLock != null) { + await this.transactionLock + } + let lockResolve!: PromiseResolveFunction + this.transactionLock = new Promise((resolve) => { + lockResolve = resolve + }) + return lockResolve + } + + public getProxyClient(): T { + return this.proxyClient + } + + public async startNewTransaction(opts?: { timeout?: number; maxWait?: number }): Promise { + if (this.endCurrentTransactionPromise != null) { + throw new Error( + '[transactional-prisma-testing] rollbackCurrentTransaction must be called before starting a new transaction', + ) + } + this.savepointId = 0 + return new Promise((resolve) => { + this.prismaClient + .$transaction( + async (prisma) => { + this.currentPrismaTransactionClient = prisma as Prisma.TransactionClient | undefined + await new Promise((innerResolve) => { + this.endCurrentTransactionPromise = innerResolve + resolve() + }) + throw internalRollbackErrorSymbol + }, + { ...opts, timeout: 30000 }, + ) + .catch((error) => { + if (error !== internalRollbackErrorSymbol) { + throw error + } + }) + }) + } + + public rollbackCurrentTransaction(): void { + if (this.endCurrentTransactionPromise == null) { + throw new Error('[transactional-prisma-testing] No transaction currently active') + } + this.endCurrentTransactionPromise() + this.endCurrentTransactionPromise = undefined + } +} diff --git a/packages/db/src/utils/ngram.ts b/packages/db/src/utils/ngram.ts new file mode 100644 index 00000000..aae492ae --- /dev/null +++ b/packages/db/src/utils/ngram.ts @@ -0,0 +1,61 @@ +/** + * Generates 1-gram, 2-gram, and 3-gram tokens for a given text. + * Used for optimizing substring searches (especially for CJK characters). + * + * Examples: + * "apple" -> a, p, l, e, ap, pp, pl, le, app, ppl, ple + * "foo-bar" -> f, o, -, b, a, r, fo, oo, o-, -b, ba, ar, foo, oo-, o-b, -ba, bar + */ +export function generateNgrams(text: string): string[] { + if (!text) return [] + + const normalized = text.toLowerCase() + const tokens = new Set() + const chars = Array.from(normalized) // Unicode-aware character splitting + + for (let i = 0; i < chars.length; i++) { + // 1-gram + tokens.add(chars[i]) + + // 2-gram + if (i + 1 < chars.length) { + tokens.add(chars[i] + chars[i + 1]) + } + + // 3-gram + if (i + 2 < chars.length) { + tokens.add(chars[i] + chars[i + 1] + chars[i + 2]) + } + } + + return Array.from(tokens) +} + +/** + * Generates only the longest possible n-grams for a search query. + * If the word is 3+ chars, only return 3-grams. + * If 2 chars, return 2-grams. + * If 1 char, return 1-grams. + * + * This significantly improves search performance by reducing GIN index intersection overhead. + */ +export function generateSearchNgrams(text: string): string[] { + if (!text) return [] + + const normalized = text.toLowerCase() + const tokens = new Set() + const chars = Array.from(normalized) + const len = chars.length + + if (len >= 3) { + for (let i = 0; i <= len - 3; i++) { + tokens.add(chars[i] + chars[i + 1] + chars[i + 2]) + } + } else if (len === 2) { + tokens.add(chars[0] + chars[1]) + } else if (len === 1) { + tokens.add(chars[0]) + } + + return Array.from(tokens) +} diff --git a/packages/db/tsconfig.json b/packages/db/tsconfig.json new file mode 100644 index 00000000..fc4e681f --- /dev/null +++ b/packages/db/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "ignoreDeprecations": "6.0" + }, + "include": ["src/**/*"] +} diff --git a/packages/dtos/package.json b/packages/dtos/package.json new file mode 100644 index 00000000..c4ed8424 --- /dev/null +++ b/packages/dtos/package.json @@ -0,0 +1,11 @@ +{ + "name": "@shumai/dtos", + "version": "0.1.0", + "private": true, + "type": "module", + "main": "./src/index.ts", + "types": "./src/index.ts", + "dependencies": { + "zod": "^4.4.3" + } +} diff --git a/src/dtos/agent.ts b/packages/dtos/src/agent.ts similarity index 100% rename from src/dtos/agent.ts rename to packages/dtos/src/agent.ts diff --git a/src/dtos/ai.ts b/packages/dtos/src/ai.ts similarity index 100% rename from src/dtos/ai.ts rename to packages/dtos/src/ai.ts diff --git a/src/dtos/asset.ts b/packages/dtos/src/asset.ts similarity index 96% rename from src/dtos/asset.ts rename to packages/dtos/src/asset.ts index 384362cc..18aa6946 100644 --- a/src/dtos/asset.ts +++ b/packages/dtos/src/asset.ts @@ -22,11 +22,11 @@ export const childPreviewSchema = z.object({ }) export type ChildPreview = z.infer -export const userInfoSchema = z.object({ +export const assetUserInfoSchema = z.object({ id: z.string(), name: z.string(), }) -export type UserInfo = z.infer +export type AssetUserInfo = z.infer export const fieldValueInfoSchema = z.object({ fieldId: z.string(), @@ -63,7 +63,7 @@ export const assetInfoSchema = z.object({ createdAt: z.string(), updatedAt: z.string(), deletedAt: z.string().nullable().optional(), - creator: userInfoSchema.nullable().optional(), + creator: assetUserInfoSchema.nullable().optional(), fieldValues: z.array(fieldValueInfoSchema).optional(), sortIndex: z.string().optional().nullable(), startTime: z.number().optional().nullable(), @@ -192,10 +192,10 @@ export type CommentInfo = { // eslint-disable-next-line @typescript-eslint/no-explicit-any annotations: any second: number | null - creator: UserInfo + creator: AssetUserInfo replies: CommentInfo[] attachments: AttachmentInfo[] - mentions: UserInfo[] + mentions: AssetUserInfo[] createdAt: string updatedAt: string sessionId: string | null @@ -208,10 +208,10 @@ export const commentInfoSchema: z.ZodType = z.object({ annotations: z.any(), second: z.number().nullable(), - creator: userInfoSchema, + creator: assetUserInfoSchema, replies: z.array(z.lazy(() => commentInfoSchema)), attachments: z.array(attachmentInfoSchema), - mentions: z.array(userInfoSchema), + mentions: z.array(assetUserInfoSchema), createdAt: z.string(), updatedAt: z.string(), sessionId: z.string().nullable(), diff --git a/src/dtos/auth.ts b/packages/dtos/src/auth.ts similarity index 100% rename from src/dtos/auth.ts rename to packages/dtos/src/auth.ts diff --git a/src/dtos/collection.ts b/packages/dtos/src/collection.ts similarity index 100% rename from src/dtos/collection.ts rename to packages/dtos/src/collection.ts diff --git a/src/dtos/folder.ts b/packages/dtos/src/folder.ts similarity index 100% rename from src/dtos/folder.ts rename to packages/dtos/src/folder.ts diff --git a/packages/dtos/src/index.ts b/packages/dtos/src/index.ts new file mode 100644 index 00000000..10f63d41 --- /dev/null +++ b/packages/dtos/src/index.ts @@ -0,0 +1,20 @@ +export * from './agent' +export * from './ai' +export * from './asset' +export * from './auth' +export * from './collection' +export * from './folder' +export * from './invite' +export * from './metadata' +export * from './notification' +export * from './pagination' +export * from './project' +export * from './provider' +export * from './s3' +export * from './search' +export * from './share' +export * from './skill' +export * from './team' +export * from './upload' +export * from './user-metadata' +export * from './versionStack' diff --git a/src/dtos/invite.ts b/packages/dtos/src/invite.ts similarity index 100% rename from src/dtos/invite.ts rename to packages/dtos/src/invite.ts diff --git a/src/dtos/metadata.ts b/packages/dtos/src/metadata.ts similarity index 100% rename from src/dtos/metadata.ts rename to packages/dtos/src/metadata.ts diff --git a/src/dtos/notification.ts b/packages/dtos/src/notification.ts similarity index 100% rename from src/dtos/notification.ts rename to packages/dtos/src/notification.ts diff --git a/src/dtos/pagination.ts b/packages/dtos/src/pagination.ts similarity index 100% rename from src/dtos/pagination.ts rename to packages/dtos/src/pagination.ts diff --git a/src/dtos/project.ts b/packages/dtos/src/project.ts similarity index 100% rename from src/dtos/project.ts rename to packages/dtos/src/project.ts diff --git a/src/dtos/provider.ts b/packages/dtos/src/provider.ts similarity index 100% rename from src/dtos/provider.ts rename to packages/dtos/src/provider.ts diff --git a/src/dtos/s3.ts b/packages/dtos/src/s3.ts similarity index 100% rename from src/dtos/s3.ts rename to packages/dtos/src/s3.ts diff --git a/src/dtos/search.ts b/packages/dtos/src/search.ts similarity index 100% rename from src/dtos/search.ts rename to packages/dtos/src/search.ts diff --git a/src/dtos/share.ts b/packages/dtos/src/share.ts similarity index 100% rename from src/dtos/share.ts rename to packages/dtos/src/share.ts diff --git a/src/dtos/skill.ts b/packages/dtos/src/skill.ts similarity index 80% rename from src/dtos/skill.ts rename to packages/dtos/src/skill.ts index 3dd130f1..00bf41f3 100644 --- a/src/dtos/skill.ts +++ b/packages/dtos/src/skill.ts @@ -1,10 +1,19 @@ import { z } from 'zod' +export interface SkillEnvironmentVariable { + name: string + default?: string +} + +export interface SkillConfig { + environmentVariables: SkillEnvironmentVariable[] +} + export interface SkillInfo { id: string name: string description: string | null - config: PrismaJson.SkillConfig | null + config: SkillConfig | null assetId: string hash: string createdAt: string diff --git a/src/dtos/team.ts b/packages/dtos/src/team.ts similarity index 100% rename from src/dtos/team.ts rename to packages/dtos/src/team.ts diff --git a/src/dtos/upload.ts b/packages/dtos/src/upload.ts similarity index 100% rename from src/dtos/upload.ts rename to packages/dtos/src/upload.ts diff --git a/src/dtos/user-metadata.ts b/packages/dtos/src/user-metadata.ts similarity index 100% rename from src/dtos/user-metadata.ts rename to packages/dtos/src/user-metadata.ts diff --git a/src/dtos/versionStack.ts b/packages/dtos/src/versionStack.ts similarity index 100% rename from src/dtos/versionStack.ts rename to packages/dtos/src/versionStack.ts diff --git a/packages/dtos/tsconfig.json b/packages/dtos/tsconfig.json new file mode 100644 index 00000000..fc4e681f --- /dev/null +++ b/packages/dtos/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "ignoreDeprecations": "6.0" + }, + "include": ["src/**/*"] +} diff --git a/prisma.config.ts b/prisma.config.ts index 1b479364..d5d3dd67 100644 --- a/prisma.config.ts +++ b/prisma.config.ts @@ -4,9 +4,9 @@ import { loadEnvConfig } from './src/env-loader' loadEnvConfig(process.cwd()) export default defineConfig({ - schema: 'prisma/schema.prisma', + schema: 'packages/db/prisma/schema.prisma', migrations: { - path: 'prisma/migrations', + path: 'packages/db/prisma/migrations', }, datasource: { url: process.env.DATABASE_URL, diff --git a/prisma.config.ts.prod b/prisma.config.ts.prod index b934879c..c20e6853 100644 --- a/prisma.config.ts.prod +++ b/prisma.config.ts.prod @@ -1,9 +1,9 @@ import { defineConfig } from 'prisma/config' export default defineConfig({ - schema: 'prisma/schema.prisma', + schema: 'packages/db/prisma/schema.prisma', migrations: { - path: 'prisma/migrations', + path: 'packages/db/prisma/migrations', }, datasource: { url: process.env.DATABASE_URL, diff --git a/src/agent/database-session-storage.test.ts b/src/agent/database-session-storage.test.ts index ccf0afe7..ea0d3c9a 100644 --- a/src/agent/database-session-storage.test.ts +++ b/src/agent/database-session-storage.test.ts @@ -1,5 +1,5 @@ -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { s3Service } from '@/services/s3/s3' import { type SessionTreeEntry } from '@earendil-works/pi-agent-core' import { describe, expect, it, vi } from 'vitest' diff --git a/src/agent/database-session-storage.ts b/src/agent/database-session-storage.ts index 57d6e642..b675bc1c 100644 --- a/src/agent/database-session-storage.ts +++ b/src/agent/database-session-storage.ts @@ -1,4 +1,4 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { s3Service } from '@/services/s3/s3' import { ulid } from 'ulid' import { diff --git a/src/agent/tools/read-skill.test.ts b/src/agent/tools/read-skill.test.ts index 9d8bd972..476e7749 100644 --- a/src/agent/tools/read-skill.test.ts +++ b/src/agent/tools/read-skill.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { createReadSkillTool } from './read-skill' import { s3Service } from '@/services/s3/s3' import * as fs from 'fs' diff --git a/src/agent/tools/read-skill.ts b/src/agent/tools/read-skill.ts index 8934cf46..5b7a41c2 100644 --- a/src/agent/tools/read-skill.ts +++ b/src/agent/tools/read-skill.ts @@ -1,4 +1,4 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { Type } from '@sinclair/typebox' import { type AgentTool } from '@earendil-works/pi-agent-core' import { agentService } from '@/services/agent/agent' diff --git a/src/agent/tools/utils.ts b/src/agent/tools/utils.ts index a0bcff6d..13ff0ee0 100644 --- a/src/agent/tools/utils.ts +++ b/src/agent/tools/utils.ts @@ -1,4 +1,4 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { workflowService } from '@/workflow/workflow' import { WorkflowTaskType, WorkflowTaskStatus } from '@/generated/prisma/client' diff --git a/src/api/agent.ts b/src/api/agent.ts index 9e6c12fa..f54957e6 100644 --- a/src/api/agent.ts +++ b/src/api/agent.ts @@ -7,7 +7,7 @@ import { updateAgentRequestSchema, AgentInfo, AgentType, -} from '@/dtos/agent' +} from '@shumai/dtos' import type { Prisma } from '@/generated/prisma/client' diff --git a/src/api/attachment.ts b/src/api/attachment.ts index b605d7e1..9df86481 100644 --- a/src/api/attachment.ts +++ b/src/api/attachment.ts @@ -1,6 +1,6 @@ import { Hono } from 'hono' import { zValidator } from '@hono/zod-validator' -import { postAttachmentRequestSchema } from '@/dtos/asset' +import { postAttachmentRequestSchema } from '@shumai/dtos' import { assetService } from '@/services/asset/asset' import { s3Service } from '@/services/s3/s3' import { AssetType } from '@/generated/prisma/client' diff --git a/src/api/authn.ts b/src/api/authn.ts index 29ed36e5..215ac61f 100644 --- a/src/api/authn.ts +++ b/src/api/authn.ts @@ -3,7 +3,7 @@ import { teamService } from '@/services/team/team' import { auth } from '@/services/auth/auth' import { z } from 'zod' import { zValidator } from '@hono/zod-validator' -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { ulid } from 'ulid' const app = new Hono() diff --git a/src/api/collection.ts b/src/api/collection.ts index 8d189ab2..9c191d60 100644 --- a/src/api/collection.ts +++ b/src/api/collection.ts @@ -8,7 +8,7 @@ import { listCollectionsRequestSchema, CollectionInfo, CollectionFilter, -} from '@/dtos/collection' +} from '@shumai/dtos' import type { Prisma } from '@/generated/prisma/client' type User = Prisma.UserGetPayload> diff --git a/src/api/file.test.ts b/src/api/file.test.ts index 88c231c8..ffabaeb8 100644 --- a/src/api/file.test.ts +++ b/src/api/file.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it, vi, beforeEach, afterEach } from 'vitest' import { Hono, type Context, type Next } from 'hono' -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import fileRoute from './file' import { assetService } from '@/services/asset/asset' import { metadataService } from '@/services/metadata/metadata' diff --git a/src/api/file.ts b/src/api/file.ts index 0cae2f2c..e9c48054 100644 --- a/src/api/file.ts +++ b/src/api/file.ts @@ -1,6 +1,6 @@ import { Hono } from 'hono' import { zValidator } from '@hono/zod-validator' -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { authzService, Permission, ResourceType } from '@/services/authz/authz' import { assetService } from '@/services/asset/asset' import { metadataService } from '@/services/metadata/metadata' @@ -13,9 +13,9 @@ import { restoreFilesRequestSchema, createCommentRequestSchema, uploadFileRequestSchema, -} from '@/dtos/asset' -import { updateAssetMetadataRequestSchema } from '@/dtos/metadata' -import { paginationParamsSchema } from '@/dtos/pagination' +} from '@shumai/dtos' +import { updateAssetMetadataRequestSchema } from '@shumai/dtos' +import { paginationParamsSchema } from '@shumai/dtos' import { ulid } from 'ulid' import { z } from 'zod' import type { Prisma } from '@/generated/prisma/client' diff --git a/src/api/folder.ts b/src/api/folder.ts index 76f682bd..8fb0e40d 100644 --- a/src/api/folder.ts +++ b/src/api/folder.ts @@ -8,9 +8,9 @@ import { updateFolderRequestSchema, deleteFoldersRequestSchema, restoreFoldersRequestSchema, -} from '@/dtos/folder' -import { listChildrenRequestSchema, updateAssetOrderRequestSchema } from '@/dtos/asset' -import { searchRequestSchema } from '@/dtos/search' +} from '@shumai/dtos' +import { listChildrenRequestSchema, updateAssetOrderRequestSchema } from '@shumai/dtos' +import { searchRequestSchema } from '@shumai/dtos' import type { Prisma } from '@/generated/prisma/client' type User = Prisma.UserGetPayload> diff --git a/src/api/invite.ts b/src/api/invite.ts index 45febd52..37355611 100644 --- a/src/api/invite.ts +++ b/src/api/invite.ts @@ -5,7 +5,7 @@ import { createTeamInviteRequestSchema, joinRequestSchema, InviteInfo, -} from '@/dtos/invite' +} from '@shumai/dtos' import { authzService, Permission, ResourceType } from '@/services/authz/authz' import { inviteService } from '@/services/invite/invite' import { notificationService } from '@/services/notification/notification' diff --git a/src/api/metadata.ts b/src/api/metadata.ts index ab60c7e2..21f7c729 100644 --- a/src/api/metadata.ts +++ b/src/api/metadata.ts @@ -7,7 +7,7 @@ import { updateFieldRequestSchema, updateProjectFieldsOrderRequestSchema, FieldInfo, -} from '@/dtos/metadata' +} from '@shumai/dtos' import type { Prisma } from '@/generated/prisma/client' type User = Prisma.UserGetPayload> diff --git a/src/api/middleware/auth.ts b/src/api/middleware/auth.ts index ac43f595..adb99be8 100644 --- a/src/api/middleware/auth.ts +++ b/src/api/middleware/auth.ts @@ -1,6 +1,6 @@ import type { Prisma } from '@/generated/prisma/client' import { auth } from '@/services/auth/auth' -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { createMiddleware } from 'hono/factory' type User = Prisma.UserGetPayload> diff --git a/src/api/notification.ts b/src/api/notification.ts index 795f5bb6..7a861874 100644 --- a/src/api/notification.ts +++ b/src/api/notification.ts @@ -6,7 +6,7 @@ import { listNotificationsRequestSchema, markNotificationReadRequestSchema, notificationSettingsSchema, -} from '@/dtos/notification' +} from '@shumai/dtos' import { userMetadataService } from '@/services/user-metadata/user-metadata' import type { Prisma } from '@/generated/prisma/client' diff --git a/src/api/project.ts b/src/api/project.ts index 92a94fae..bbb5d13b 100644 --- a/src/api/project.ts +++ b/src/api/project.ts @@ -3,14 +3,14 @@ import { zValidator } from '@hono/zod-validator' import { authzService, Permission, ResourceType } from '@/services/authz/authz' import { projectService } from '@/services/project/project' import { assetService } from '@/services/asset/asset' -import { reparentAssetsRequestSchema, copyAssetsRequestSchema } from '@/dtos/asset' +import { reparentAssetsRequestSchema, copyAssetsRequestSchema } from '@shumai/dtos' import { createProjectRequestSchema, updateProjectRequestSchema, listProjectsRequestSchema, recentlyDeletedRequestSchema, -} from '@/dtos/project' -import { listMembersQuerySchema } from '@/dtos/team' +} from '@shumai/dtos' +import { listMembersQuerySchema } from '@shumai/dtos' import type { Prisma } from '@/generated/prisma/client' type User = Prisma.UserGetPayload> diff --git a/src/api/provider.ts b/src/api/provider.ts index ebff47a6..eba6dce6 100644 --- a/src/api/provider.ts +++ b/src/api/provider.ts @@ -2,7 +2,7 @@ import { zValidator } from '@hono/zod-validator' import { Hono } from 'hono' import { authzService, Permission, ResourceType } from '@/services/authz/authz' import { providerService } from '@/services/provider/provider' -import { createProviderRequestSchema, updateProviderRequestSchema } from '@/dtos/provider' +import { createProviderRequestSchema, updateProviderRequestSchema } from '@shumai/dtos' import type { Prisma } from '@/generated/prisma/client' type User = Prisma.UserGetPayload> diff --git a/src/api/public-invite.ts b/src/api/public-invite.ts index d58e0e05..1ec6b8ed 100644 --- a/src/api/public-invite.ts +++ b/src/api/public-invite.ts @@ -1,6 +1,6 @@ import { Hono } from 'hono' import { inviteService } from '@/services/invite/invite' -import { InviteInfo } from '@/dtos/invite' +import { InviteInfo } from '@shumai/dtos' const app = new Hono() diff --git a/src/api/public-share.ts b/src/api/public-share.ts index b4a915a2..06436894 100644 --- a/src/api/public-share.ts +++ b/src/api/public-share.ts @@ -2,14 +2,14 @@ import { Hono } from 'hono' import { zValidator } from '@hono/zod-validator' import { shareService } from '@/services/share/share' import { assetService } from '@/services/asset/asset' -import { paginationParamsSchema } from '@/dtos/pagination' +import { paginationParamsSchema } from '@shumai/dtos' import { z } from 'zod' import { metadataService } from '@/services/metadata/metadata' -import { FieldInfo } from '@/dtos/metadata' +import { FieldInfo } from '@shumai/dtos' import type { Prisma as PrismaType } from '@/generated/prisma/client' import { auth } from '@/services/auth/auth' -import { prisma } from '@/db' -import { createCommentRequestSchema } from '@/dtos/asset' +import { prisma } from '@shumai/db' +import { createCommentRequestSchema } from '@shumai/dtos' import { notificationService } from '@/services/notification/notification' const app = new Hono() diff --git a/src/api/share.ts b/src/api/share.ts index c44b9fb8..fafe55c8 100644 --- a/src/api/share.ts +++ b/src/api/share.ts @@ -7,7 +7,7 @@ import { updateShareLinkRequestSchema, listShareLinksRequestSchema, addAssetToShareRequestSchema, -} from '@/dtos/share' +} from '@shumai/dtos' import type { Prisma } from '@/generated/prisma/client' type User = Prisma.UserGetPayload> diff --git a/src/api/skill.ts b/src/api/skill.ts index 80ed284c..9e7311f4 100644 --- a/src/api/skill.ts +++ b/src/api/skill.ts @@ -2,7 +2,7 @@ import { Hono } from 'hono' import { zValidator } from '@hono/zod-validator' import { authzService, Permission, ResourceType } from '@/services/authz/authz' import { skillService } from '@/services/skill/skill' -import { upsertSkillRequestSchema, updateSkillConfigRequestSchema } from '@/dtos/skill' +import { upsertSkillRequestSchema, updateSkillConfigRequestSchema } from '@shumai/dtos' import type { Prisma } from '@/generated/prisma/client' type User = Prisma.UserGetPayload> diff --git a/src/api/team.ts b/src/api/team.ts index c44b1f93..123ab2e0 100644 --- a/src/api/team.ts +++ b/src/api/team.ts @@ -11,8 +11,8 @@ import { updateTeamSettingsRequestSchema, listMembersQuerySchema, updateSandboxSettingsRequestSchema, -} from '@/dtos/team' -import { updateUserMetadataRequestSchema } from '@/dtos/user-metadata' +} from '@shumai/dtos' +import { updateUserMetadataRequestSchema } from '@shumai/dtos' import type { Prisma } from '@/generated/prisma/client' type User = Prisma.UserGetPayload> diff --git a/src/api/upload.test.ts b/src/api/upload.test.ts index 7a749753..06987e67 100644 --- a/src/api/upload.test.ts +++ b/src/api/upload.test.ts @@ -3,7 +3,7 @@ import { Hono } from 'hono' import uploadRoute from './upload' import { authMiddleware } from '@/api/middleware/auth' import { uploadService } from '@/services/upload/upload' -import type { CreateUploadTaskResponse, TaskInfo } from '@/dtos/upload' +import type { CreateUploadTaskResponse, TaskInfo } from '@shumai/dtos' import type { PaginatedData } from '@/services/pagination' import { authzService, ResourceType, Permission } from '@/services/authz/authz' diff --git a/src/api/upload.ts b/src/api/upload.ts index 74f25ec6..4224e1a4 100644 --- a/src/api/upload.ts +++ b/src/api/upload.ts @@ -5,8 +5,8 @@ import { confirmFileUploadRequestSchema, createUploadTaskRequestSchema, localUploadQuerySchema, -} from '@/dtos/upload' -import { paginationParamsSchema } from '@/dtos/pagination' +} from '@shumai/dtos' +import { paginationParamsSchema } from '@shumai/dtos' import { authzService, Permission, ResourceType } from '@/services/authz/authz' import { notificationService } from '@/services/notification/notification' import { NotificationType } from '@/generated/prisma/client' diff --git a/src/api/versionStack.ts b/src/api/versionStack.ts index f823cb43..f72d8470 100644 --- a/src/api/versionStack.ts +++ b/src/api/versionStack.ts @@ -3,10 +3,7 @@ import { zValidator } from '@hono/zod-validator' import { versionStackService } from '@/services/versionStack/versionStack' import { assetService } from '@/services/asset/asset' import { authzService, Permission, ResourceType } from '@/services/authz/authz' -import { - createVersionStackRequestSchema, - changeStackFileVersionRequestSchema, -} from '@/dtos/versionStack' +import { createVersionStackRequestSchema, changeStackFileVersionRequestSchema } from '@shumai/dtos' import type { Prisma } from '@/generated/prisma/client' type User = Prisma.UserGetPayload> diff --git a/src/services/agent/agent.test.ts b/src/services/agent/agent.test.ts index 7aa4287c..8f87796b 100644 --- a/src/services/agent/agent.test.ts +++ b/src/services/agent/agent.test.ts @@ -1,7 +1,7 @@ import { describe, expect, test } from 'vitest' import { AgentService } from './agent' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' describe('AgentService', () => { setupTestDbHooks() diff --git a/src/services/agent/agent.ts b/src/services/agent/agent.ts index 46cd3feb..fa07aaa0 100644 --- a/src/services/agent/agent.ts +++ b/src/services/agent/agent.ts @@ -1,11 +1,11 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { CreateAgentParams, DeleteAgentParams, ListAgentsParams, UpdateAgentParams, -} from '@/dtos/agent' -import '@/prisma-json-types' +} from '@shumai/dtos' +import '@shumai/db/src/prisma-json-types' import { s3Service } from '@/services/s3/s3' import AdmZip from 'adm-zip' import * as fs from 'fs' diff --git a/src/services/asset/asset.test.ts b/src/services/asset/asset.test.ts index 27672976..832886b5 100644 --- a/src/services/asset/asset.test.ts +++ b/src/services/asset/asset.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it, vi, beforeEach, afterEach } from 'vitest' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { AssetType, AssetStatus, Prisma } from '@/generated/prisma/client.ts' import { AssetService } from './asset' diff --git a/src/services/asset/asset.ts b/src/services/asset/asset.ts index 2539e8cc..be4cb32c 100644 --- a/src/services/asset/asset.ts +++ b/src/services/asset/asset.ts @@ -1,4 +1,4 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { AncestorFolder, AssetInfo, @@ -15,8 +15,8 @@ import { ReparentAssetsRequest, UpdateAssetNameRequest, UpdateAssetOrderRequest, - UserInfo, -} from '@/dtos/asset' + AssetUserInfo, +} from '@shumai/dtos' import { Asset, AssetStatus, AssetType, Prisma, StorageKey } from '@/generated/prisma/client.ts' import { logger } from '@/logger' import { PaginatedData, paginateQuery, PaginationParams } from '@/services/pagination' @@ -1670,7 +1670,7 @@ export class AssetService { } } - const mentions: UserInfo[] = [] + const mentions: AssetUserInfo[] = [] const botMentionMatch = (c.message || '').match(/<@([^>]+)>/g) if (botMentionMatch) { const userIds = botMentionMatch.map((m: string) => m.replace('<@', '').replace('>', '')) @@ -1682,7 +1682,7 @@ export class AssetService { } } - const creator: UserInfo = { id: '', name: '' } + const creator: AssetUserInfo = { id: '', name: '' } if (c.sessionId) { creator.id = c.creatorId || '' creator.name = c.creator?.name || 'Ai Bot' diff --git a/src/services/auth/auth.ts b/src/services/auth/auth.ts index 74341c09..a3259a02 100644 --- a/src/services/auth/auth.ts +++ b/src/services/auth/auth.ts @@ -1,6 +1,6 @@ import { betterAuth } from 'better-auth' import { prismaAdapter } from 'better-auth/adapters/prisma' -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { teamService } from '@/services/team/team' import { inviteService } from '@/services/invite/invite' import { createAuthMiddleware } from 'better-auth/api' diff --git a/src/services/authz/authz.test.ts b/src/services/authz/authz.test.ts index 6655c844..06de5473 100644 --- a/src/services/authz/authz.test.ts +++ b/src/services/authz/authz.test.ts @@ -1,7 +1,7 @@ -import { setupTestDbHooks } from '@/db-test-hooks' +import { setupTestDbHooks } from '@shumai/db' import { describe, expect, it } from 'vitest' -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { authzService, Permission, ResourceType } from '@/services/authz/authz' describe('AuthzService', () => { diff --git a/src/services/authz/authz.ts b/src/services/authz/authz.ts index 4f644bb6..942eb8d3 100644 --- a/src/services/authz/authz.ts +++ b/src/services/authz/authz.ts @@ -1,4 +1,4 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import type { Prisma } from '@/generated/prisma/client.ts' type User = Prisma.UserGetPayload> diff --git a/src/services/collection/collection.test.ts b/src/services/collection/collection.test.ts index 9fb470e8..c2a292e2 100644 --- a/src/services/collection/collection.test.ts +++ b/src/services/collection/collection.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect } from 'vitest' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { collectionService } from './collection' import { projectService } from '../project/project' diff --git a/src/services/collection/collection.ts b/src/services/collection/collection.ts index 9616efae..8c20a1ab 100644 --- a/src/services/collection/collection.ts +++ b/src/services/collection/collection.ts @@ -1,10 +1,10 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { paginateQuery } from '../pagination' import { CreateCollectionRequest, UpdateCollectionRequest, ListCollectionsRequest, -} from '@/dtos/collection' +} from '@shumai/dtos' export class CollectionService { async createCollection(projectId: string, req: CreateCollectionRequest) { diff --git a/src/services/invite/invite.test.ts b/src/services/invite/invite.test.ts index d1630f55..5efb3a08 100644 --- a/src/services/invite/invite.test.ts +++ b/src/services/invite/invite.test.ts @@ -1,5 +1,5 @@ -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { inviteService } from '@/services/invite/invite' import { beforeEach, describe, expect, it } from 'vitest' diff --git a/src/services/invite/invite.ts b/src/services/invite/invite.ts index e333362a..29e70815 100644 --- a/src/services/invite/invite.ts +++ b/src/services/invite/invite.ts @@ -1,4 +1,4 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { InviteRole, ProjectMemberRole, TeamMemberRole } from '@/generated/prisma/client' import { ulid } from 'ulid' diff --git a/src/services/metadata/metadata.test.ts b/src/services/metadata/metadata.test.ts index 4a496fd3..0af30ffc 100644 --- a/src/services/metadata/metadata.test.ts +++ b/src/services/metadata/metadata.test.ts @@ -1,7 +1,7 @@ import { describe, it, expect, beforeEach } from 'vitest' import { MetadataService } from './metadata' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' describe('MetadataService', () => { setupTestDbHooks() diff --git a/src/services/metadata/metadata.ts b/src/services/metadata/metadata.ts index 23732490..c0900631 100644 --- a/src/services/metadata/metadata.ts +++ b/src/services/metadata/metadata.ts @@ -1,10 +1,10 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { CreateFieldRequest, ProjectFieldOrder, UpdateAssetMetadataRequest, UpdateFieldRequest, -} from '@/dtos/metadata' +} from '@shumai/dtos' import type { Prisma } from '@/generated/prisma/client.ts' import { ulid } from 'ulid' import { assetService } from '../asset/asset' diff --git a/src/services/metadata/system_fields.ts b/src/services/metadata/system_fields.ts index 65a216bc..c4c8f25e 100644 --- a/src/services/metadata/system_fields.ts +++ b/src/services/metadata/system_fields.ts @@ -1,5 +1,5 @@ import type { Prisma } from '@/generated/prisma/client.ts' -import '@/prisma-json-types' +import '@shumai/db/src/prisma-json-types' export const systemFields: Prisma.MetadataFieldCreateInput[] = [ { diff --git a/src/services/notification/notification.test.ts b/src/services/notification/notification.test.ts index 3cffd566..fd428dc0 100644 --- a/src/services/notification/notification.test.ts +++ b/src/services/notification/notification.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { NotificationType } from '@/generated/prisma/client' import { notificationService } from './notification' import { userMetadataService } from '@/services/user-metadata/user-metadata' diff --git a/src/services/notification/notification.ts b/src/services/notification/notification.ts index 4a78afb4..cca031ff 100644 --- a/src/services/notification/notification.ts +++ b/src/services/notification/notification.ts @@ -1,4 +1,4 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import type { Prisma } from '@/generated/prisma/client' import { NotificationType } from '@/generated/prisma/client' import { @@ -6,9 +6,9 @@ import { CreateNotificationRequest, ListNotificationParams, NotificationSettings, -} from '@/dtos/notification' +} from '@shumai/dtos' import { paginateQuery, PaginatedData } from '@/services/pagination' -import '@/prisma-json-types' +import '@shumai/db/src/prisma-json-types' import { s3Service } from '@/services/s3/s3' import { userMetadataService } from '@/services/user-metadata/user-metadata' diff --git a/src/services/project/project.test.ts b/src/services/project/project.test.ts index 6845c861..3c58073a 100644 --- a/src/services/project/project.test.ts +++ b/src/services/project/project.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect, vi, beforeEach } from 'vitest' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { ProjectService } from './project' import { s3Service } from '@/services/s3/s3' import { assetService } from '@/services/asset/asset' diff --git a/src/services/project/project.ts b/src/services/project/project.ts index 1ce9128a..13a94013 100644 --- a/src/services/project/project.ts +++ b/src/services/project/project.ts @@ -1,4 +1,4 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { Prisma } from '@/generated/prisma/client' import { s3Service } from '@/services/s3/s3' import { paginateQuery, PaginatedData } from '@/services/pagination' @@ -10,7 +10,7 @@ import { ServiceListProjectMembersRequest, ProjectInfo, ProjectUserInfo, -} from '@/dtos/project' +} from '@shumai/dtos' export class ProjectService { async createProject( diff --git a/src/services/provider/provider.test.ts b/src/services/provider/provider.test.ts index 9119b879..d0937300 100644 --- a/src/services/provider/provider.test.ts +++ b/src/services/provider/provider.test.ts @@ -1,8 +1,8 @@ -import { setupTestDbHooks } from '@/db-test-hooks' +import { setupTestDbHooks } from '@shumai/db' import { teamService } from '@/services/team/team' import { providerService } from './provider' import { describe, expect, it } from 'vitest' -import { ProviderConfigSerializable, providerModelSchema } from '@/dtos/provider' +import { ProviderConfigSerializable, providerModelSchema } from '@shumai/dtos' import { builtinProviders } from '@/generated/providers.generated' import { z } from 'zod' diff --git a/src/services/provider/provider.ts b/src/services/provider/provider.ts index 59605456..b8baaa6e 100644 --- a/src/services/provider/provider.ts +++ b/src/services/provider/provider.ts @@ -1,5 +1,5 @@ -import { prisma } from '@/db' -import { ProviderConfigSerializable, providerModelSchema } from '@/dtos/provider' +import { prisma } from '@shumai/db' +import { ProviderConfigSerializable, providerModelSchema } from '@shumai/dtos' import { builtinProviders } from '@/generated/providers.generated' import { z } from 'zod' diff --git a/src/services/s3/s3.ts b/src/services/s3/s3.ts index 3a1e69af..936cceba 100644 --- a/src/services/s3/s3.ts +++ b/src/services/s3/s3.ts @@ -1,4 +1,4 @@ -import { ObjectInfo } from '@/dtos/s3' +import { ObjectInfo } from '@shumai/dtos' import { CopyObjectCommand, DeleteObjectCommand, diff --git a/src/services/search/ngram-search.test.ts b/src/services/search/ngram-search.test.ts index 2caceb59..15c6993e 100644 --- a/src/services/search/ngram-search.test.ts +++ b/src/services/search/ngram-search.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it, beforeEach } from 'vitest' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { SearchService } from './search' import { AssetType } from '@/generated/prisma/client.ts' diff --git a/src/services/search/search.test.ts b/src/services/search/search.test.ts index 57c4bb2c..ef19fd0b 100644 --- a/src/services/search/search.test.ts +++ b/src/services/search/search.test.ts @@ -1,8 +1,8 @@ import { describe, expect, it, beforeEach, vi } from 'vitest' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { SearchService } from './search' -import { SearchConditionOperator } from '@/dtos/search' +import { SearchConditionOperator } from '@shumai/dtos' import { metadataService } from '@/services/metadata/metadata' import { workflowService } from '@/workflow/workflow' diff --git a/src/services/search/search.ts b/src/services/search/search.ts index 1cf2c886..246aaad3 100644 --- a/src/services/search/search.ts +++ b/src/services/search/search.ts @@ -1,8 +1,8 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { Prisma, AssetType, WorkflowTaskType } from '@/generated/prisma/client.ts' import { AssetService, assetService } from '@/services/asset/asset' -import { AssetInfo } from '@/dtos/asset' -import { SearchRequest } from '@/dtos/search' +import { AssetInfo } from '@shumai/dtos' +import { SearchRequest } from '@shumai/dtos' import { PaginatedData, decodeCursor, encodeCursor, PageInfo } from '@/services/pagination' import { generateSearchNgrams } from '@/utils/ngram' import { workflowService } from '@/workflow/workflow' diff --git a/src/services/search/sql-query-builder.ts b/src/services/search/sql-query-builder.ts index 7556843f..1c19cb38 100644 --- a/src/services/search/sql-query-builder.ts +++ b/src/services/search/sql-query-builder.ts @@ -1,5 +1,5 @@ import { Prisma } from '@/generated/prisma/client.ts' -import { SearchCondition } from '@/dtos/search' +import { SearchCondition } from '@shumai/dtos' export class SqlQueryBuilder { private selectSql: Prisma.Sql = Prisma.sql`*` diff --git a/src/services/share/share.test.ts b/src/services/share/share.test.ts index f4a8c18f..dc64d071 100644 --- a/src/services/share/share.test.ts +++ b/src/services/share/share.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect, beforeEach } from 'vitest' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { shareService } from './share' import { assetService } from '@/services/asset/asset' import { projectService } from '@/services/project/project' diff --git a/src/services/share/share.ts b/src/services/share/share.ts index 05e0d85a..bfd4f65f 100644 --- a/src/services/share/share.ts +++ b/src/services/share/share.ts @@ -1,4 +1,4 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { AssetType, Prisma } from '@/generated/prisma/client' import { ShareLinkInfo, @@ -6,7 +6,7 @@ import { UpdateShareLinkRequest, ListShareLinksRequest, AddAssetToShareRequest, -} from '@/dtos/share' +} from '@shumai/dtos' import { PaginatedData, paginateQuery } from '@/services/pagination' export class ShareService { diff --git a/src/services/skill/skill.test.ts b/src/services/skill/skill.test.ts index bd2c27d4..4fb4d7e3 100644 --- a/src/services/skill/skill.test.ts +++ b/src/services/skill/skill.test.ts @@ -1,5 +1,5 @@ -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { s3Service } from '@/services/s3/s3' import { skillService } from '@/services/skill/skill' import AdmZip from 'adm-zip' diff --git a/src/services/skill/skill.ts b/src/services/skill/skill.ts index 58adb39e..b5f5b5bf 100644 --- a/src/services/skill/skill.ts +++ b/src/services/skill/skill.ts @@ -1,5 +1,5 @@ -import { prisma } from '@/db' -import { SkillInfo, UpsertSkillRequest } from '@/dtos/skill' +import { prisma } from '@shumai/db' +import { SkillInfo, UpsertSkillRequest } from '@shumai/dtos' import { s3Service } from '@/services/s3/s3' import AdmZip from 'adm-zip' import * as crypto from 'crypto' diff --git a/src/services/team/team.test.ts b/src/services/team/team.test.ts index 5b09d039..4bf80247 100644 --- a/src/services/team/team.test.ts +++ b/src/services/team/team.test.ts @@ -1,5 +1,5 @@ -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { teamService } from '@/services/team/team' import { describe, expect, it } from 'vitest' diff --git a/src/services/team/team.ts b/src/services/team/team.ts index 5666ccd3..f3eff440 100644 --- a/src/services/team/team.ts +++ b/src/services/team/team.ts @@ -1,4 +1,4 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { Prisma } from '@/generated/prisma/client' import { PaginatedData, paginateQuery } from '@/services/pagination' import { ProviderService, providerService } from '@/services/provider/provider' @@ -13,11 +13,13 @@ import { GetMeResponse, UserInfo, SandboxSettings, -} from '@/dtos/team' +} from '@shumai/dtos' export class TeamService { async ensureDefaultTeam() { - let team = await prisma.team.findFirst() + let team = await prisma.team.findFirst({ + where: { name: 'Default Team' }, + }) if (!team) { team = await prisma.team.create({ diff --git a/src/services/upload/upload.test.ts b/src/services/upload/upload.test.ts index 9010623a..1a744f90 100644 --- a/src/services/upload/upload.test.ts +++ b/src/services/upload/upload.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it, vi, beforeEach } from 'vitest' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { uploadService } from './upload' import { s3Service } from '@/services/s3/s3' import { AssetStatus, AssetType, WorkflowTaskType } from '@/generated/prisma/client' diff --git a/src/services/upload/upload.ts b/src/services/upload/upload.ts index 3b960fd7..86f77b7b 100644 --- a/src/services/upload/upload.ts +++ b/src/services/upload/upload.ts @@ -1,4 +1,4 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { ulid } from 'ulid' import { generateKeyBetween } from 'jittered-fractional-indexing' import { s3Service } from '@/services/s3/s3' @@ -10,7 +10,7 @@ import { FileNode, PresignedUrl, TaskInfo, -} from '@/dtos/upload' +} from '@shumai/dtos' import { AssetStatus, AssetType, diff --git a/src/services/user-metadata/user-metadata.test.ts b/src/services/user-metadata/user-metadata.test.ts index 4dae6b49..9cad9700 100644 --- a/src/services/user-metadata/user-metadata.test.ts +++ b/src/services/user-metadata/user-metadata.test.ts @@ -1,5 +1,5 @@ -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { userMetadataService } from './user-metadata' import { describe, expect, it } from 'vitest' diff --git a/src/services/user-metadata/user-metadata.ts b/src/services/user-metadata/user-metadata.ts index bd9c3f1c..3e8f84e2 100644 --- a/src/services/user-metadata/user-metadata.ts +++ b/src/services/user-metadata/user-metadata.ts @@ -1,5 +1,5 @@ -import { prisma } from '@/db' -import { UserMetadataItem } from '@/dtos/user-metadata' +import { prisma } from '@shumai/db' +import { UserMetadataItem } from '@shumai/dtos' export class UserMetadataService { async upsertMetadata(userId: string, teamId: string, key: string, value: unknown) { diff --git a/src/services/versionStack/versionStack.test.ts b/src/services/versionStack/versionStack.test.ts index 881c1f7b..19cd70c1 100644 --- a/src/services/versionStack/versionStack.test.ts +++ b/src/services/versionStack/versionStack.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect, beforeEach } from 'vitest' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { VersionStackService } from './versionStack' import { AssetType } from '@/generated/prisma/client.ts' diff --git a/src/services/versionStack/versionStack.ts b/src/services/versionStack/versionStack.ts index 04d92056..7b0ac047 100644 --- a/src/services/versionStack/versionStack.ts +++ b/src/services/versionStack/versionStack.ts @@ -1,7 +1,7 @@ import { generateKeyBetween } from 'jittered-fractional-indexing' -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { Asset, AssetType } from '@/generated/prisma/client.ts' -import { ChangeStackFileVersionParams, CreateVersionStackParams } from '@/dtos/versionStack' +import { ChangeStackFileVersionParams, CreateVersionStackParams } from '@shumai/dtos' function generateSortIndex(previous?: string | null): string { if (!previous) return generateKeyBetween(null, null) diff --git a/src/transcode/activities/transcode.test.ts b/src/transcode/activities/transcode.test.ts index a8cd854b..e9b5bf7a 100644 --- a/src/transcode/activities/transcode.test.ts +++ b/src/transcode/activities/transcode.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect, vi, beforeEach } from 'vitest' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { getMediaInfoActivity, transcodeVideoActivity, updateAssetMediaActivity } from './transcode' import { s3Service } from '@/services/s3/s3' import { transcodeService } from '@/transcode/transcode' diff --git a/src/transcode/activities/transcode.ts b/src/transcode/activities/transcode.ts index e2665b11..17164ad9 100644 --- a/src/transcode/activities/transcode.ts +++ b/src/transcode/activities/transcode.ts @@ -1,4 +1,4 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { s3Service } from '@/services/s3/s3' import { transcodeService } from '@/transcode/transcode' import { metadataService } from '@/services/metadata/metadata' diff --git a/src/transcode/transcode.ts b/src/transcode/transcode.ts index f2f6466d..fc181dec 100644 --- a/src/transcode/transcode.ts +++ b/src/transcode/transcode.ts @@ -1,6 +1,6 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { WorkflowTaskStatus, WorkflowTaskType } from '@/generated/prisma/client' -import '@/prisma-json-types' +import '@shumai/db/src/prisma-json-types' import { exec } from 'child_process' import * as fs from 'fs' import * as os from 'os' diff --git a/src/transcode/transcoder.ts b/src/transcode/transcoder.ts index 799287eb..a6c02260 100644 --- a/src/transcode/transcoder.ts +++ b/src/transcode/transcoder.ts @@ -1,6 +1,6 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { WorkflowTaskType, WorkflowTaskStatus } from '@/generated/prisma/client' -import '@/prisma-json-types' +import '@shumai/db/src/prisma-json-types' type TransactionClient = Omit< typeof prisma, diff --git a/src/ui/components/breadcrumb-nav.tsx b/src/ui/components/breadcrumb-nav.tsx index 40b43535..d114e4b1 100644 --- a/src/ui/components/breadcrumb-nav.tsx +++ b/src/ui/components/breadcrumb-nav.tsx @@ -1,4 +1,4 @@ -import type { AncestorFolder } from '@/dtos/asset' +import type { AncestorFolder } from '@shumai/dtos' import { Badge } from '@/ui/components/ui/badge' import { DropdownMenu, diff --git a/src/ui/components/chat/message-card.tsx b/src/ui/components/chat/message-card.tsx index 65ac9e60..4b4a5b99 100644 --- a/src/ui/components/chat/message-card.tsx +++ b/src/ui/components/chat/message-card.tsx @@ -1,5 +1,5 @@ -import type { AttachmentInfo, CommentInfo } from '@/dtos/asset' -import type { UserInfo } from '@/dtos/team' +import type { AttachmentInfo, CommentInfo } from '@shumai/dtos' +import type { UserInfo } from '@shumai/dtos' import { client } from '@/ui/api/client' import { Button } from '@/ui/components/ui/button' import { diff --git a/src/ui/components/chat/message-input.tsx b/src/ui/components/chat/message-input.tsx index c7079b44..c51ca284 100644 --- a/src/ui/components/chat/message-input.tsx +++ b/src/ui/components/chat/message-input.tsx @@ -1,6 +1,6 @@ -import type { CommentInfo, PostAttachmentRequest, PostAttachmentResponse } from '@/dtos/asset' -import type { BotInfo } from '@/dtos/project' -import type { UserInfo } from '@/dtos/team' +import type { CommentInfo, PostAttachmentRequest, PostAttachmentResponse } from '@shumai/dtos' +import type { BotInfo } from '@shumai/dtos' +import type { UserInfo } from '@shumai/dtos' import { client } from '@/ui/api/client' import { useAnnotationStore } from '@/ui/stores/annotation-store' import type { Annotation } from '@/ui/types' diff --git a/src/ui/components/field-renderer.tsx b/src/ui/components/field-renderer.tsx index cf8b46ac..552a7ac5 100644 --- a/src/ui/components/field-renderer.tsx +++ b/src/ui/components/field-renderer.tsx @@ -1,4 +1,4 @@ -import type { FieldInfo as FieldInfo } from '@/dtos/metadata' +import type { FieldInfo as FieldInfo } from '@shumai/dtos' import React from 'react' import DateField from './fields/date-field' import LongTextField from './fields/long-text-field' diff --git a/src/ui/components/fields-manager.tsx b/src/ui/components/fields-manager.tsx index 96739c01..3aead492 100644 --- a/src/ui/components/fields-manager.tsx +++ b/src/ui/components/fields-manager.tsx @@ -1,4 +1,4 @@ -import { FieldType, type FieldInfo, type FieldInfo as MetadataFieldInfo } from '@/dtos/metadata' +import { FieldType, type FieldInfo, type FieldInfo as MetadataFieldInfo } from '@shumai/dtos' import { client } from '@/ui/api/client' import { useFieldStore } from '@/ui/stores/fields' import { DragDropProvider, KeyboardSensor, PointerSensor, type DragEndEvent } from '@dnd-kit/react' diff --git a/src/ui/components/fields/field-types.ts b/src/ui/components/fields/field-types.ts index 02e5109f..9d55b36b 100644 --- a/src/ui/components/fields/field-types.ts +++ b/src/ui/components/fields/field-types.ts @@ -1,4 +1,4 @@ -import type { FieldInfo as MetadataFieldInfo } from '@/dtos/metadata' +import type { FieldInfo as MetadataFieldInfo } from '@shumai/dtos' export type FieldConfig = MetadataFieldInfo['config'] diff --git a/src/ui/components/fields/select-field.tsx b/src/ui/components/fields/select-field.tsx index c042fd93..b0523f00 100644 --- a/src/ui/components/fields/select-field.tsx +++ b/src/ui/components/fields/select-field.tsx @@ -1,4 +1,4 @@ -import type { SelectOption } from '@/dtos/metadata' +import type { SelectOption } from '@shumai/dtos' import { ChevronDown, X } from 'lucide-react' import React, { useEffect, useRef, useState } from 'react' import type { FieldProps } from './field-types' diff --git a/src/ui/components/fields/select-multi-field.tsx b/src/ui/components/fields/select-multi-field.tsx index c55e7afb..716cbca7 100644 --- a/src/ui/components/fields/select-multi-field.tsx +++ b/src/ui/components/fields/select-multi-field.tsx @@ -1,7 +1,7 @@ import { Check } from 'lucide-react' import React, { useEffect, useLayoutEffect, useRef, useState } from 'react' import type { FieldProps } from './field-types' -import type { SelectOption } from '@/dtos/metadata' +import type { SelectOption } from '@shumai/dtos' const SelectMultiField: React.FC> = ({ value = [], diff --git a/src/ui/components/fields/toggle-field.tsx b/src/ui/components/fields/toggle-field.tsx index 6cb78874..666349b3 100644 --- a/src/ui/components/fields/toggle-field.tsx +++ b/src/ui/components/fields/toggle-field.tsx @@ -1,4 +1,4 @@ -import type { FieldInfo as MetadataFieldInfo } from '@/dtos/metadata' +import type { FieldInfo as MetadataFieldInfo } from '@shumai/dtos' import React from 'react' interface FieldProps { diff --git a/src/ui/components/file-browser/context-menu.tsx b/src/ui/components/file-browser/context-menu.tsx index 79351307..d2248fe9 100644 --- a/src/ui/components/file-browser/context-menu.tsx +++ b/src/ui/components/file-browser/context-menu.tsx @@ -1,5 +1,5 @@ -import type { AssetInfo } from '@/dtos/asset' -import type { ShareLinkInfo } from '@/dtos/share' +import type { AssetInfo } from '@shumai/dtos' +import type { ShareLinkInfo } from '@shumai/dtos' import { ContextMenuContent, ContextMenuItem, diff --git a/src/ui/components/file-browser/file-browser.tsx b/src/ui/components/file-browser/file-browser.tsx index da7324f6..19e12ffa 100644 --- a/src/ui/components/file-browser/file-browser.tsx +++ b/src/ui/components/file-browser/file-browser.tsx @@ -2,11 +2,11 @@ import { client } from '@/ui/api/client' import type { InferRequestType, InferResponseType } from 'hono/client' -import type { AssetInfo } from '@/dtos/asset' -import type { CollectionInfo } from '@/dtos/collection' -import type { SearchCondition, SearchSort } from '@/dtos/search' -import type { ShareLinkInfo } from '@/dtos/share' -import type { CreateUploadTaskRequest } from '@/dtos/upload' +import type { AssetInfo } from '@shumai/dtos' +import type { CollectionInfo } from '@shumai/dtos' +import type { SearchCondition, SearchSort } from '@shumai/dtos' +import type { ShareLinkInfo } from '@shumai/dtos' +import type { CreateUploadTaskRequest } from '@shumai/dtos' import { formatSize } from '@/ui/lib/format' import { useFieldStore } from '@/ui/stores/fields' import { useUploadStore } from '@/ui/stores/upload' diff --git a/src/ui/components/file-browser/file-card.tsx b/src/ui/components/file-browser/file-card.tsx index 648611c7..fee6794c 100644 --- a/src/ui/components/file-browser/file-card.tsx +++ b/src/ui/components/file-browser/file-card.tsx @@ -1,4 +1,4 @@ -import type { AssetInfo, FieldValueInfo } from '@/dtos/asset' +import type { AssetInfo, FieldValueInfo } from '@shumai/dtos' import { client } from '@/ui/api/client' import { useQuery } from '@tanstack/react-query' @@ -23,7 +23,7 @@ import { Checkbox } from '@/ui/components/ui/checkbox' import { EditableText } from '@/ui/components/ui/editable-text' import { Skeleton } from '@/ui/components/ui/skeleton' -import { type FieldInfo as MetadataFieldInfo } from '@/dtos/metadata' +import { type FieldInfo as MetadataFieldInfo } from '@shumai/dtos' interface FileCardProps { teamId?: string diff --git a/src/ui/components/file-browser/file-list-item.tsx b/src/ui/components/file-browser/file-list-item.tsx index 6ca1221b..692792dd 100644 --- a/src/ui/components/file-browser/file-list-item.tsx +++ b/src/ui/components/file-browser/file-list-item.tsx @@ -1,4 +1,4 @@ -import type { AssetInfo, FieldValueInfo } from '@/dtos/asset' +import type { AssetInfo, FieldValueInfo } from '@shumai/dtos' import { client } from '@/ui/api/client' import { useQuery } from '@tanstack/react-query' @@ -12,7 +12,7 @@ import { Badge } from '@/ui/components/ui/badge' import { Checkbox } from '@/ui/components/ui/checkbox' import { EditableText } from '@/ui/components/ui/editable-text' -import { type FieldInfo as MetadataFieldInfo } from '@/dtos/metadata' +import { type FieldInfo as MetadataFieldInfo } from '@shumai/dtos' interface FileListItemProps { teamId?: string diff --git a/src/ui/components/file-browser/folder-card.tsx b/src/ui/components/file-browser/folder-card.tsx index 2baef4be..577c2d04 100644 --- a/src/ui/components/file-browser/folder-card.tsx +++ b/src/ui/components/file-browser/folder-card.tsx @@ -1,4 +1,4 @@ -import type { AssetInfo, ChildPreview } from '@/dtos/asset' +import type { AssetInfo, ChildPreview } from '@shumai/dtos' import { Checkbox } from '@/ui/components/ui/checkbox' import { DropdownMenu, diff --git a/src/ui/components/file-browser/grid-view.tsx b/src/ui/components/file-browser/grid-view.tsx index 0e97e9f0..69f0df95 100644 --- a/src/ui/components/file-browser/grid-view.tsx +++ b/src/ui/components/file-browser/grid-view.tsx @@ -1,7 +1,7 @@ 'use client' -import type { AssetInfo } from '@/dtos/asset' -import type { SearchSort } from '@/dtos/search' +import type { AssetInfo } from '@shumai/dtos' +import type { SearchSort } from '@shumai/dtos' import { useDroppable } from '@dnd-kit/react' import { ChevronDown, ChevronRight } from 'lucide-react' import React from 'react' diff --git a/src/ui/components/file-browser/list-view.tsx b/src/ui/components/file-browser/list-view.tsx index 3ca78f0f..7096a8b2 100644 --- a/src/ui/components/file-browser/list-view.tsx +++ b/src/ui/components/file-browser/list-view.tsx @@ -1,8 +1,8 @@ 'use client' -import type { AssetInfo } from '@/dtos/asset' -import type { FieldInfo } from '@/dtos/metadata' -import type { SearchSort } from '@/dtos/search' +import type { AssetInfo } from '@shumai/dtos' +import type { FieldInfo } from '@shumai/dtos' +import type { SearchSort } from '@shumai/dtos' import { useDroppable } from '@dnd-kit/react' import { flexRender, getCoreRowModel, useReactTable, type ColumnDef } from '@tanstack/react-table' import { ChevronDown, ChevronRight } from 'lucide-react' diff --git a/src/ui/components/file-browser/toolbar.tsx b/src/ui/components/file-browser/toolbar.tsx index 22b0eeab..bab56c18 100644 --- a/src/ui/components/file-browser/toolbar.tsx +++ b/src/ui/components/file-browser/toolbar.tsx @@ -1,7 +1,7 @@ -import type { AssetInfo } from '@/dtos/asset' -import type { CollectionInfo } from '@/dtos/collection' -import { type FieldInfo as MetadataFieldInfo } from '@/dtos/metadata' -import type { SearchCondition, SearchSort } from '@/dtos/search' +import type { AssetInfo } from '@shumai/dtos' +import type { CollectionInfo } from '@shumai/dtos' +import { type FieldInfo as MetadataFieldInfo } from '@shumai/dtos' +import type { SearchCondition, SearchSort } from '@shumai/dtos' import { client } from '@/ui/api/client' import { useMutation, useQuery } from '@tanstack/react-query' import type { InferRequestType, InferResponseType } from 'hono/client' diff --git a/src/ui/components/file-browser/use-file-actions.ts b/src/ui/components/file-browser/use-file-actions.ts index b68dd2c4..24f26dcb 100644 --- a/src/ui/components/file-browser/use-file-actions.ts +++ b/src/ui/components/file-browser/use-file-actions.ts @@ -1,7 +1,7 @@ 'use client' import { client } from '@/ui/api/client' -import type { AssetInfo } from '@/dtos/asset' +import type { AssetInfo } from '@shumai/dtos' import { useMutation, useQueryClient } from '@tanstack/react-query' import type { InferRequestType, InferResponseType } from 'hono/client' import { useState } from 'react' diff --git a/src/ui/components/file-system-manager.tsx b/src/ui/components/file-system-manager.tsx index a2706a7f..87f5a958 100644 --- a/src/ui/components/file-system-manager.tsx +++ b/src/ui/components/file-system-manager.tsx @@ -1,7 +1,7 @@ -import type { AssetInfo, AssetInfoPaginatedList } from '@/dtos/asset' -import type { CollectionInfo } from '@/dtos/collection' -import { type FieldInfo as MetadataFieldInfo } from '@/dtos/metadata' -import type { SearchCondition, SearchSort } from '@/dtos/search' +import type { AssetInfo, AssetInfoPaginatedList } from '@shumai/dtos' +import type { CollectionInfo } from '@shumai/dtos' +import { type FieldInfo as MetadataFieldInfo } from '@shumai/dtos' +import type { SearchCondition, SearchSort } from '@shumai/dtos' import { client } from '@/ui/api/client' import { useMutation } from '@tanstack/react-query' import { InferRequestType, InferResponseType } from 'hono/client' diff --git a/src/ui/components/file-viewer-left-sidebar.tsx b/src/ui/components/file-viewer-left-sidebar.tsx index 81c33002..2ade37c2 100644 --- a/src/ui/components/file-viewer-left-sidebar.tsx +++ b/src/ui/components/file-viewer-left-sidebar.tsx @@ -2,7 +2,7 @@ import { client } from '@/ui/api/client' import { useInfiniteQuery } from '@tanstack/react-query' import { Loader2, PanelLeftClose } from 'lucide-react' import type { FC } from 'react' -import type { AssetInfoPaginatedList } from '@/dtos/asset' +import type { AssetInfoPaginatedList } from '@shumai/dtos' import { useEffect, useRef } from 'react' import { useInView } from 'react-intersection-observer' import { SidebarFileCard } from './sidebar-file-card' diff --git a/src/ui/components/file-viewer-right-sidebar.tsx b/src/ui/components/file-viewer-right-sidebar.tsx index 33b5476a..b4ac9983 100644 --- a/src/ui/components/file-viewer-right-sidebar.tsx +++ b/src/ui/components/file-viewer-right-sidebar.tsx @@ -1,6 +1,6 @@ -import type { AssetInfo, AttachmentInfo, CommentInfo, FieldValueInfo } from '@/dtos/asset' -import { type FieldInfo as MetadataFieldInfo } from '@/dtos/metadata' -import type { UserInfo } from '@/dtos/team' +import type { AssetInfo, AttachmentInfo, CommentInfo, FieldValueInfo } from '@shumai/dtos' +import { type FieldInfo as MetadataFieldInfo } from '@shumai/dtos' +import type { UserInfo } from '@shumai/dtos' import { client } from '@/ui/api/client' import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/ui/components/ui/tabs' import { useFieldStore } from '@/ui/stores/fields' diff --git a/src/ui/components/file-viewer.tsx b/src/ui/components/file-viewer.tsx index 5f55f438..b841a8ec 100644 --- a/src/ui/components/file-viewer.tsx +++ b/src/ui/components/file-viewer.tsx @@ -1,4 +1,4 @@ -import type { AssetInfo } from '@/dtos/asset' +import type { AssetInfo } from '@shumai/dtos' import { useScreenSize } from '@/ui/hooks/useScreenSize' import { getBestTranscode } from '@/ui/lib/media' import { Minus, Plus, Copy, Download, Check } from 'lucide-react' diff --git a/src/ui/components/folder-tree.tsx b/src/ui/components/folder-tree.tsx index e3d5d970..502ad669 100644 --- a/src/ui/components/folder-tree.tsx +++ b/src/ui/components/folder-tree.tsx @@ -1,4 +1,4 @@ -import type { AssetInfoPaginatedList, AssetInfo } from '@/dtos/asset' +import type { AssetInfoPaginatedList, AssetInfo } from '@shumai/dtos' import { client } from '@/ui/api/client' import { cn } from '@/ui/lib/utils' import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from '@tanstack/react-query' @@ -22,8 +22,8 @@ import { useInView } from 'react-intersection-observer' import { useDraggable, useDroppable } from '@dnd-kit/react' import type { DragState } from './dnd-types' import { toast } from 'sonner' -import type { ShareLinkInfo } from '@/dtos/share' -import type { CollectionInfo } from '@/dtos/collection' +import type { ShareLinkInfo } from '@shumai/dtos' +import type { CollectionInfo } from '@shumai/dtos' interface FolderTreeProps { teamId: string diff --git a/src/ui/components/manage-fields-dialog.tsx b/src/ui/components/manage-fields-dialog.tsx index c153cac1..9de2aa62 100644 --- a/src/ui/components/manage-fields-dialog.tsx +++ b/src/ui/components/manage-fields-dialog.tsx @@ -3,7 +3,7 @@ import { type FieldInfo, FieldType, type SelectOption, -} from '@/dtos/metadata' +} from '@shumai/dtos' import { client } from '@/ui/api/client' import { useMutation } from '@tanstack/react-query' import { InferRequestType, InferResponseType } from 'hono/client' diff --git a/src/ui/components/move-copy-dialog.tsx b/src/ui/components/move-copy-dialog.tsx index 9395f76e..85a8fc52 100644 --- a/src/ui/components/move-copy-dialog.tsx +++ b/src/ui/components/move-copy-dialog.tsx @@ -18,8 +18,8 @@ import { import { useQuery } from '@tanstack/react-query' import { client } from '@/ui/api/client' import { FolderTree } from './folder-tree' -import { AssetInfo } from '@/dtos/asset' -import { ProjectInfo } from '@/dtos/project' +import { AssetInfo } from '@shumai/dtos' +import { ProjectInfo } from '@shumai/dtos' import { ScrollArea } from './ui/scroll-area' import { Loader2 } from 'lucide-react' diff --git a/src/ui/components/notification-card.tsx b/src/ui/components/notification-card.tsx index 1bbf287b..019a41ac 100644 --- a/src/ui/components/notification-card.tsx +++ b/src/ui/components/notification-card.tsx @@ -1,4 +1,4 @@ -import type { NotificationInfo } from '@/dtos/notification' +import type { NotificationInfo } from '@shumai/dtos' import { formatTimeAgo } from '@/ui/lib/time' import { cn } from '@/ui/lib/utils' diff --git a/src/ui/components/notification-list.tsx b/src/ui/components/notification-list.tsx index 4bd158c6..28db23da 100644 --- a/src/ui/components/notification-list.tsx +++ b/src/ui/components/notification-list.tsx @@ -8,7 +8,7 @@ import { CheckCheckIcon, Loader2 } from 'lucide-react' import { useEffect, useMemo, useState } from 'react' import { useInView } from 'react-intersection-observer' import type { InferResponseType } from 'hono/client' -import type { GetMeResponse } from '@/dtos/team' +import type { GetMeResponse } from '@shumai/dtos' export const NotificationList = () => { const { teamId } = useTeamContextStore() diff --git a/src/ui/components/project-dialog.tsx b/src/ui/components/project-dialog.tsx index b7a2728e..a4f9bc15 100644 --- a/src/ui/components/project-dialog.tsx +++ b/src/ui/components/project-dialog.tsx @@ -1,4 +1,4 @@ -import type { ProjectInfo } from '@/dtos/project' +import type { ProjectInfo } from '@shumai/dtos' import { client } from '@/ui/api/client' import { Button } from '@/ui/components/ui/button' import { diff --git a/src/ui/components/public-share-manager.tsx b/src/ui/components/public-share-manager.tsx index 31d95d8d..3a579f6d 100644 --- a/src/ui/components/public-share-manager.tsx +++ b/src/ui/components/public-share-manager.tsx @@ -12,8 +12,8 @@ import { Card, CardContent, CardHeader, CardTitle } from './ui/card' import { Input } from './ui/input' import { Button } from './ui/button' import { Lock, AlertCircle, Loader2 } from 'lucide-react' -import type { AncestorFolder, AssetInfoPaginatedList, AssetInfo, CommentInfo } from '@/dtos/asset' -import { FieldInfo } from '@/dtos/metadata' +import type { AncestorFolder, AssetInfoPaginatedList, AssetInfo, CommentInfo } from '@shumai/dtos' +import { FieldInfo } from '@shumai/dtos' import { FileViewer } from './file-viewer' import type Player from 'video.js/dist/types/player' import type { Annotation } from '@/ui/types' diff --git a/src/ui/components/search/filter-panel.tsx b/src/ui/components/search/filter-panel.tsx index e4808588..4f1c2e9a 100644 --- a/src/ui/components/search/filter-panel.tsx +++ b/src/ui/components/search/filter-panel.tsx @@ -1,5 +1,5 @@ -import type { SearchCondition, SearchConditionOperator } from '@/dtos/search' -import { type FieldInfo } from '@/dtos/metadata' +import type { SearchCondition, SearchConditionOperator } from '@shumai/dtos' +import { type FieldInfo } from '@shumai/dtos' import { Button } from '@/ui/components/ui/button' import { Input } from '@/ui/components/ui/input' import { DebouncedInput } from '@/ui/components/ui/debounced-input' diff --git a/src/ui/components/search/search-filter-dialog.tsx b/src/ui/components/search/search-filter-dialog.tsx index 1a530212..fced5fb5 100644 --- a/src/ui/components/search/search-filter-dialog.tsx +++ b/src/ui/components/search/search-filter-dialog.tsx @@ -1,6 +1,6 @@ -import { type AssetInfo } from '@/dtos/asset' -import { type FieldInfo as MetadataFieldInfo } from '@/dtos/metadata' -import type { SearchCondition } from '@/dtos/search' +import { type AssetInfo } from '@shumai/dtos' +import { type FieldInfo as MetadataFieldInfo } from '@shumai/dtos' +import type { SearchCondition } from '@shumai/dtos' import { client } from '@/ui/api/client' import { Button } from '@/ui/components/ui/button' import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/ui/components/ui/dialog' diff --git a/src/ui/components/search/sort-control.tsx b/src/ui/components/search/sort-control.tsx index eb5deb28..ef932c32 100644 --- a/src/ui/components/search/sort-control.tsx +++ b/src/ui/components/search/sort-control.tsx @@ -1,5 +1,5 @@ -import { type FieldInfo as MetadataFieldInfo } from '@/dtos/metadata' -import type { SearchSort } from '@/dtos/search' +import { type FieldInfo as MetadataFieldInfo } from '@shumai/dtos' +import type { SearchSort } from '@shumai/dtos' import { ArrowDownUp } from 'lucide-react' import { Button } from '@/ui/components/ui/button' import { Popover, PopoverContent, PopoverTrigger } from '@/ui/components/ui/popover' diff --git a/src/ui/components/settings/AgentFormDialog.tsx b/src/ui/components/settings/AgentFormDialog.tsx index 2a1b4e59..78d1c00b 100644 --- a/src/ui/components/settings/AgentFormDialog.tsx +++ b/src/ui/components/settings/AgentFormDialog.tsx @@ -24,7 +24,7 @@ import { useForm, useStore } from '@tanstack/react-form' import { Loader2, Puzzle } from 'lucide-react' import { useEffect, useMemo } from 'react' import { toast } from 'sonner' -import { AgentInfo, AgentType } from '@/dtos/agent' +import { AgentInfo, AgentType } from '@shumai/dtos' import { Textarea } from '@/ui/components/ui/textarea' import { ScrollArea } from '@/ui/components/ui/scroll-area' import { z } from 'zod' diff --git a/src/ui/components/settings/AgentsSettings.tsx b/src/ui/components/settings/AgentsSettings.tsx index 27cd2055..52e3d1cc 100644 --- a/src/ui/components/settings/AgentsSettings.tsx +++ b/src/ui/components/settings/AgentsSettings.tsx @@ -16,7 +16,7 @@ import { } from 'lucide-react' import { useState } from 'react' import { toast } from 'sonner' -import { AgentInfo, AgentType } from '@/dtos/agent' +import { AgentInfo, AgentType } from '@shumai/dtos' import { AgentFormDialog } from './AgentFormDialog' import { DropdownMenu, diff --git a/src/ui/components/settings/NotificationSettings.tsx b/src/ui/components/settings/NotificationSettings.tsx index c1af0148..5f80ad3a 100644 --- a/src/ui/components/settings/NotificationSettings.tsx +++ b/src/ui/components/settings/NotificationSettings.tsx @@ -12,7 +12,7 @@ import { Bell, } from 'lucide-react' import { toast } from 'sonner' -import type { NotificationSettings as Settings } from '@/dtos/notification' +import type { NotificationSettings as Settings } from '@shumai/dtos' export function NotificationSettings({ teamId }: { teamId: string }) { const queryClient = useQueryClient() diff --git a/src/ui/components/settings/ProvidersSettings.tsx b/src/ui/components/settings/ProvidersSettings.tsx index c5c0463c..5b16f3cb 100644 --- a/src/ui/components/settings/ProvidersSettings.tsx +++ b/src/ui/components/settings/ProvidersSettings.tsx @@ -56,7 +56,7 @@ import { import { useState, useMemo, useEffect } from 'react' import { toast } from 'sonner' import { InferResponseType } from 'hono/client' -import { providerConfigSchema, providerModelSchema } from '@/dtos/provider' +import { providerConfigSchema, providerModelSchema } from '@shumai/dtos' import { z } from 'zod' const providerFormSchemaBase = z.object({ diff --git a/src/ui/components/settings/SkillsConfigCard.tsx b/src/ui/components/settings/SkillsConfigCard.tsx index a61abbf3..a4ff0f50 100644 --- a/src/ui/components/settings/SkillsConfigCard.tsx +++ b/src/ui/components/settings/SkillsConfigCard.tsx @@ -31,7 +31,7 @@ import { AlertDialogHeader, AlertDialogTitle, } from '@/ui/components/ui/alert-dialog' -import { SkillInfo } from '@/dtos/skill' +import { SkillInfo } from '@shumai/dtos' const Github = (props: React.SVGProps) => ( { diff --git a/src/ui/components/viewers/video-player.tsx b/src/ui/components/viewers/video-player.tsx index 867c3d8e..af01be87 100644 --- a/src/ui/components/viewers/video-player.tsx +++ b/src/ui/components/viewers/video-player.tsx @@ -1,4 +1,4 @@ -import type { AssetInfo, VideoTranscode } from '@/dtos/asset' +import type { AssetInfo, VideoTranscode } from '@shumai/dtos' import { cn } from '@/ui/lib/utils' import { Download, diff --git a/src/ui/lib/media.ts b/src/ui/lib/media.ts index 573cf505..7651053f 100644 --- a/src/ui/lib/media.ts +++ b/src/ui/lib/media.ts @@ -1,4 +1,4 @@ -import type { ImageTranscode, VideoTranscode } from '@/dtos/asset' +import type { ImageTranscode, VideoTranscode } from '@shumai/dtos' type Transcode = ImageTranscode | VideoTranscode diff --git a/src/ui/routes/projects/$projectId/files/$fileId.tsx b/src/ui/routes/projects/$projectId/files/$fileId.tsx index ea8997a9..33c485f8 100644 --- a/src/ui/routes/projects/$projectId/files/$fileId.tsx +++ b/src/ui/routes/projects/$projectId/files/$fileId.tsx @@ -11,7 +11,7 @@ import { type Annotation } from '@/ui/types' import { useMutation } from '@tanstack/react-query' import { InferRequestType, InferResponseType } from 'hono/client' -import type { AssetInfo, CommentInfo } from '@/dtos/asset' +import type { AssetInfo, CommentInfo } from '@shumai/dtos' import { keepPreviousData, useQuery, useQueryClient } from '@tanstack/react-query' import { createFileRoute, useNavigate } from '@tanstack/react-router' import { Loader2 } from 'lucide-react' diff --git a/src/ui/routes/teams/$teamId/index.tsx b/src/ui/routes/teams/$teamId/index.tsx index f227999b..f2938171 100644 --- a/src/ui/routes/teams/$teamId/index.tsx +++ b/src/ui/routes/teams/$teamId/index.tsx @@ -1,4 +1,4 @@ -import type { ProjectInfo } from '@/dtos/project' +import type { ProjectInfo } from '@shumai/dtos' import { client } from '@/ui/api/client' import { MembersDialog } from '@/ui/components/members-dialog' import { ProjectDialog } from '@/ui/components/project-dialog' diff --git a/src/ui/routes/teams/$teamId/settings.tsx b/src/ui/routes/teams/$teamId/settings.tsx index ea9ba250..c673a612 100644 --- a/src/ui/routes/teams/$teamId/settings.tsx +++ b/src/ui/routes/teams/$teamId/settings.tsx @@ -1,4 +1,4 @@ -import { VideoTranscodeStrategy } from '@/dtos/team' +import { VideoTranscodeStrategy } from '@shumai/dtos' import { client } from '@/ui/api/client' import { AgentsSettings } from '@/ui/components/settings/AgentsSettings' import { ProvidersSettings } from '@/ui/components/settings/ProvidersSettings' diff --git a/src/ui/stores/fields.ts b/src/ui/stores/fields.ts index 4a72e113..218d66d6 100644 --- a/src/ui/stores/fields.ts +++ b/src/ui/stores/fields.ts @@ -1,4 +1,4 @@ -import type { FieldInfo as FieldInfo } from '@/dtos/metadata' +import type { FieldInfo as FieldInfo } from '@shumai/dtos' import { create } from 'zustand' interface FieldState { diff --git a/src/ui/stores/members.ts b/src/ui/stores/members.ts index eda4c9c5..1a3a873b 100644 --- a/src/ui/stores/members.ts +++ b/src/ui/stores/members.ts @@ -2,7 +2,7 @@ import { create } from 'zustand' import { devtools } from 'zustand/middleware' import { immer } from 'zustand/middleware/immer' import { client } from '@/ui/api/client' -import type { UserInfo } from '@/dtos/team' +import type { UserInfo } from '@shumai/dtos' interface MemberState { members: UserInfo[] diff --git a/src/ui/stores/top-nav.ts b/src/ui/stores/top-nav.ts index 79fe414e..ae6e74d1 100644 --- a/src/ui/stores/top-nav.ts +++ b/src/ui/stores/top-nav.ts @@ -1,5 +1,5 @@ import { create } from 'zustand' -import type { AncestorFolder } from '@/dtos/asset' +import type { AncestorFolder } from '@shumai/dtos' export interface TopNavProjectState { teamId: string diff --git a/src/workflow/activities/db.test.ts b/src/workflow/activities/db.test.ts index 413e7511..01fb5888 100644 --- a/src/workflow/activities/db.test.ts +++ b/src/workflow/activities/db.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect } from 'vitest' -import { setupTestDbHooks } from '@/db-test-hooks' -import { prisma } from '@/db' +import { setupTestDbHooks } from '@shumai/db' +import { prisma } from '@shumai/db' import { createCommentActivity, updateCommentActivity, diff --git a/src/workflow/activities/db.ts b/src/workflow/activities/db.ts index fc660d29..7bb641c2 100644 --- a/src/workflow/activities/db.ts +++ b/src/workflow/activities/db.ts @@ -1,9 +1,9 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { ApplicationFailure } from '@temporalio/activity' import type { AgentMessage, SessionTreeEntry } from '@earendil-works/pi-agent-core' import { ulid } from 'ulid' import { metadataService } from '@/services/metadata/metadata' -import { UpdateAssetMetadataRequest } from '@/dtos/metadata' +import { UpdateAssetMetadataRequest } from '@shumai/dtos' import { WorkflowTaskStatus, AssetStatus, Prisma, AssetType } from '@/generated/prisma/client' import type { AgentExecutionContext } from './agent' import { assetService } from '@/services/asset/asset' diff --git a/src/workflow/activities/task.test.ts b/src/workflow/activities/task.test.ts index b6cb98ac..d8d5152c 100644 --- a/src/workflow/activities/task.test.ts +++ b/src/workflow/activities/task.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect } from 'vitest' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { updateTaskStatusActivity, updateAssetStatusActivity, updateTaskUsageActivity } from './db' import { WorkflowTaskStatus, WorkflowTaskType, AssetStatus } from '@/generated/prisma/client' diff --git a/src/workflow/local-executor.test.ts b/src/workflow/local-executor.test.ts index 3c6458ef..a97368c9 100644 --- a/src/workflow/local-executor.test.ts +++ b/src/workflow/local-executor.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect, beforeEach, vi } from 'vitest' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import { workflowService } from './workflow' import { LocalExecutor, ConcurrencyLimiter } from './local-executor' import { WorkflowTaskStatus, WorkflowTaskType } from '@/generated/prisma/client' diff --git a/src/workflow/local-executor.ts b/src/workflow/local-executor.ts index 675c596a..67627bf2 100644 --- a/src/workflow/local-executor.ts +++ b/src/workflow/local-executor.ts @@ -1,4 +1,4 @@ -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { WorkflowTask, WorkflowTaskStatus, WorkflowTaskType } from '@/generated/prisma/client' import { Executor } from './executor' import { agentEmbeddingMedia } from './workflows/agent-embedding' diff --git a/src/workflow/workflow.test.ts b/src/workflow/workflow.test.ts index 5df5f406..c1d9e523 100644 --- a/src/workflow/workflow.test.ts +++ b/src/workflow/workflow.test.ts @@ -1,5 +1,5 @@ import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest' -import { prisma } from '@/db' +import { prisma } from '@shumai/db' import { workflowService } from './workflow' import { WorkflowTaskStatus, WorkflowTaskType } from '@/generated/prisma/client' diff --git a/src/workflow/workflow.ts b/src/workflow/workflow.ts index 954aff98..995dc75c 100644 --- a/src/workflow/workflow.ts +++ b/src/workflow/workflow.ts @@ -2,7 +2,7 @@ import { WorkflowTask } from '@/generated/prisma/client' import { Executor } from './executor' import { LocalExecutor } from './local-executor' import { TemporalExecutor } from './temporal-executor' -import { prisma } from '@/db' +import { prisma, registerWorkflowTrigger } from '@shumai/db' export class WorkflowService { private executor: Executor @@ -122,3 +122,6 @@ export class WorkflowService { } export const workflowService = new WorkflowService() +registerWorkflowTrigger(async (task) => { + await workflowService.submit(task) +}) diff --git a/src/workflow/workflows/agent-autofill.test.ts b/src/workflow/workflows/agent-autofill.test.ts index b6666dff..28a14749 100644 --- a/src/workflow/workflows/agent-autofill.test.ts +++ b/src/workflow/workflows/agent-autofill.test.ts @@ -1,7 +1,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest' import { agentAutofillMedia } from './agent-autofill' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import * as workflowUtils from '@/workflow/workflow-utils' vi.mock('@/workflow/workflow-utils', async () => { diff --git a/src/workflow/workflows/agent-chat.test.ts b/src/workflow/workflows/agent-chat.test.ts index 4106c8b1..093fa30f 100644 --- a/src/workflow/workflows/agent-chat.test.ts +++ b/src/workflow/workflows/agent-chat.test.ts @@ -1,7 +1,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest' import { agentChat } from './agent-chat' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import * as workflowUtils from '@/workflow/workflow-utils' vi.mock('@/workflow/workflow-utils', async () => { diff --git a/src/workflow/workflows/agent-embedding.test.ts b/src/workflow/workflows/agent-embedding.test.ts index 51af8927..ab6a99f5 100644 --- a/src/workflow/workflows/agent-embedding.test.ts +++ b/src/workflow/workflows/agent-embedding.test.ts @@ -1,7 +1,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest' import { agentEmbeddingMedia } from './agent-embedding' -import { prisma } from '@/db' -import { setupTestDbHooks } from '@/db-test-hooks' +import { prisma } from '@shumai/db' +import { setupTestDbHooks } from '@shumai/db' import * as workflowUtils from '@/workflow/workflow-utils' vi.mock('@/workflow/workflow-utils', async () => {