/* !!! 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" import { type PrismaClient } from "./class" export type * from '../models' 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.5.0 * Query Engine version: 280c870be64f457428992c43c1f6d557fab6e29e */ export const prismaVersion: PrismaVersion = { client: "7.5.0", engine: "280c870be64f457428992c43c1f6d557fab6e29e" } /** * 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< O extends object, K extends Key, strict extends Boolean > = { 1: EitherStrict 0: EitherLoose }[strict] export type Either< O extends object, K extends Key, strict extends Boolean = 1 > = 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; }>>; 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< Extends, 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< T, U = Omit > = IsObject extends True ? U : T export type GetHavingFields = { [K in keyof T]: Or< 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> /** * 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 = { OAuthSession: 'OAuthSession', DeviceFlowState: 'DeviceFlowState', AuthCodeFlowState: 'AuthCodeFlowState', AuthorizationCode: 'AuthorizationCode', McpSessionMapping: 'McpSessionMapping' } 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 = { globalOmitOptions: { omit: GlobalOmitOptions } meta: { modelProps: "oAuthSession" | "deviceFlowState" | "authCodeFlowState" | "authorizationCode" | "mcpSessionMapping" txIsolationLevel: TransactionIsolationLevel } model: { OAuthSession: { payload: Prisma.$OAuthSessionPayload fields: Prisma.OAuthSessionFieldRefs operations: { findUnique: { args: Prisma.OAuthSessionFindUniqueArgs result: runtime.Types.Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.OAuthSessionFindUniqueOrThrowArgs result: runtime.Types.Utils.PayloadToResult } findFirst: { args: Prisma.OAuthSessionFindFirstArgs result: runtime.Types.Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.OAuthSessionFindFirstOrThrowArgs result: runtime.Types.Utils.PayloadToResult } findMany: { args: Prisma.OAuthSessionFindManyArgs result: runtime.Types.Utils.PayloadToResult[] } create: { args: Prisma.OAuthSessionCreateArgs result: runtime.Types.Utils.PayloadToResult } createMany: { args: Prisma.OAuthSessionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.OAuthSessionCreateManyAndReturnArgs result: runtime.Types.Utils.PayloadToResult[] } delete: { args: Prisma.OAuthSessionDeleteArgs result: runtime.Types.Utils.PayloadToResult } update: { args: Prisma.OAuthSessionUpdateArgs result: runtime.Types.Utils.PayloadToResult } deleteMany: { args: Prisma.OAuthSessionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.OAuthSessionUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.OAuthSessionUpdateManyAndReturnArgs result: runtime.Types.Utils.PayloadToResult[] } upsert: { args: Prisma.OAuthSessionUpsertArgs result: runtime.Types.Utils.PayloadToResult } aggregate: { args: Prisma.OAuthSessionAggregateArgs result: runtime.Types.Utils.Optional } groupBy: { args: Prisma.OAuthSessionGroupByArgs result: runtime.Types.Utils.Optional[] } count: { args: Prisma.OAuthSessionCountArgs result: runtime.Types.Utils.Optional | number } } } DeviceFlowState: { payload: Prisma.$DeviceFlowStatePayload fields: Prisma.DeviceFlowStateFieldRefs operations: { findUnique: { args: Prisma.DeviceFlowStateFindUniqueArgs result: runtime.Types.Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.DeviceFlowStateFindUniqueOrThrowArgs result: runtime.Types.Utils.PayloadToResult } findFirst: { args: Prisma.DeviceFlowStateFindFirstArgs result: runtime.Types.Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.DeviceFlowStateFindFirstOrThrowArgs result: runtime.Types.Utils.PayloadToResult } findMany: { args: Prisma.DeviceFlowStateFindManyArgs result: runtime.Types.Utils.PayloadToResult[] } create: { args: Prisma.DeviceFlowStateCreateArgs result: runtime.Types.Utils.PayloadToResult } createMany: { args: Prisma.DeviceFlowStateCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.DeviceFlowStateCreateManyAndReturnArgs result: runtime.Types.Utils.PayloadToResult[] } delete: { args: Prisma.DeviceFlowStateDeleteArgs result: runtime.Types.Utils.PayloadToResult } update: { args: Prisma.DeviceFlowStateUpdateArgs result: runtime.Types.Utils.PayloadToResult } deleteMany: { args: Prisma.DeviceFlowStateDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.DeviceFlowStateUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.DeviceFlowStateUpdateManyAndReturnArgs result: runtime.Types.Utils.PayloadToResult[] } upsert: { args: Prisma.DeviceFlowStateUpsertArgs result: runtime.Types.Utils.PayloadToResult } aggregate: { args: Prisma.DeviceFlowStateAggregateArgs result: runtime.Types.Utils.Optional } groupBy: { args: Prisma.DeviceFlowStateGroupByArgs result: runtime.Types.Utils.Optional[] } count: { args: Prisma.DeviceFlowStateCountArgs result: runtime.Types.Utils.Optional | number } } } AuthCodeFlowState: { payload: Prisma.$AuthCodeFlowStatePayload fields: Prisma.AuthCodeFlowStateFieldRefs operations: { findUnique: { args: Prisma.AuthCodeFlowStateFindUniqueArgs result: runtime.Types.Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AuthCodeFlowStateFindUniqueOrThrowArgs result: runtime.Types.Utils.PayloadToResult } findFirst: { args: Prisma.AuthCodeFlowStateFindFirstArgs result: runtime.Types.Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AuthCodeFlowStateFindFirstOrThrowArgs result: runtime.Types.Utils.PayloadToResult } findMany: { args: Prisma.AuthCodeFlowStateFindManyArgs result: runtime.Types.Utils.PayloadToResult[] } create: { args: Prisma.AuthCodeFlowStateCreateArgs result: runtime.Types.Utils.PayloadToResult } createMany: { args: Prisma.AuthCodeFlowStateCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AuthCodeFlowStateCreateManyAndReturnArgs result: runtime.Types.Utils.PayloadToResult[] } delete: { args: Prisma.AuthCodeFlowStateDeleteArgs result: runtime.Types.Utils.PayloadToResult } update: { args: Prisma.AuthCodeFlowStateUpdateArgs result: runtime.Types.Utils.PayloadToResult } deleteMany: { args: Prisma.AuthCodeFlowStateDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AuthCodeFlowStateUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AuthCodeFlowStateUpdateManyAndReturnArgs result: runtime.Types.Utils.PayloadToResult[] } upsert: { args: Prisma.AuthCodeFlowStateUpsertArgs result: runtime.Types.Utils.PayloadToResult } aggregate: { args: Prisma.AuthCodeFlowStateAggregateArgs result: runtime.Types.Utils.Optional } groupBy: { args: Prisma.AuthCodeFlowStateGroupByArgs result: runtime.Types.Utils.Optional[] } count: { args: Prisma.AuthCodeFlowStateCountArgs result: runtime.Types.Utils.Optional | number } } } AuthorizationCode: { payload: Prisma.$AuthorizationCodePayload fields: Prisma.AuthorizationCodeFieldRefs operations: { findUnique: { args: Prisma.AuthorizationCodeFindUniqueArgs result: runtime.Types.Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AuthorizationCodeFindUniqueOrThrowArgs result: runtime.Types.Utils.PayloadToResult } findFirst: { args: Prisma.AuthorizationCodeFindFirstArgs result: runtime.Types.Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AuthorizationCodeFindFirstOrThrowArgs result: runtime.Types.Utils.PayloadToResult } findMany: { args: Prisma.AuthorizationCodeFindManyArgs result: runtime.Types.Utils.PayloadToResult[] } create: { args: Prisma.AuthorizationCodeCreateArgs result: runtime.Types.Utils.PayloadToResult } createMany: { args: Prisma.AuthorizationCodeCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AuthorizationCodeCreateManyAndReturnArgs result: runtime.Types.Utils.PayloadToResult[] } delete: { args: Prisma.AuthorizationCodeDeleteArgs result: runtime.Types.Utils.PayloadToResult } update: { args: Prisma.AuthorizationCodeUpdateArgs result: runtime.Types.Utils.PayloadToResult } deleteMany: { args: Prisma.AuthorizationCodeDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AuthorizationCodeUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AuthorizationCodeUpdateManyAndReturnArgs result: runtime.Types.Utils.PayloadToResult[] } upsert: { args: Prisma.AuthorizationCodeUpsertArgs result: runtime.Types.Utils.PayloadToResult } aggregate: { args: Prisma.AuthorizationCodeAggregateArgs result: runtime.Types.Utils.Optional } groupBy: { args: Prisma.AuthorizationCodeGroupByArgs result: runtime.Types.Utils.Optional[] } count: { args: Prisma.AuthorizationCodeCountArgs result: runtime.Types.Utils.Optional | number } } } McpSessionMapping: { payload: Prisma.$McpSessionMappingPayload fields: Prisma.McpSessionMappingFieldRefs operations: { findUnique: { args: Prisma.McpSessionMappingFindUniqueArgs result: runtime.Types.Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.McpSessionMappingFindUniqueOrThrowArgs result: runtime.Types.Utils.PayloadToResult } findFirst: { args: Prisma.McpSessionMappingFindFirstArgs result: runtime.Types.Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.McpSessionMappingFindFirstOrThrowArgs result: runtime.Types.Utils.PayloadToResult } findMany: { args: Prisma.McpSessionMappingFindManyArgs result: runtime.Types.Utils.PayloadToResult[] } create: { args: Prisma.McpSessionMappingCreateArgs result: runtime.Types.Utils.PayloadToResult } createMany: { args: Prisma.McpSessionMappingCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.McpSessionMappingCreateManyAndReturnArgs result: runtime.Types.Utils.PayloadToResult[] } delete: { args: Prisma.McpSessionMappingDeleteArgs result: runtime.Types.Utils.PayloadToResult } update: { args: Prisma.McpSessionMappingUpdateArgs result: runtime.Types.Utils.PayloadToResult } deleteMany: { args: Prisma.McpSessionMappingDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.McpSessionMappingUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.McpSessionMappingUpdateManyAndReturnArgs result: runtime.Types.Utils.PayloadToResult[] } upsert: { args: Prisma.McpSessionMappingUpsertArgs result: runtime.Types.Utils.PayloadToResult } aggregate: { args: Prisma.McpSessionMappingAggregateArgs result: runtime.Types.Utils.Optional } groupBy: { args: Prisma.McpSessionMappingGroupByArgs result: runtime.Types.Utils.Optional[] } count: { args: Prisma.McpSessionMappingCountArgs 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 OAuthSessionScalarFieldEnum = { id: 'id', mcpAccessToken: 'mcpAccessToken', mcpRefreshToken: 'mcpRefreshToken', mcpTokenExpiry: 'mcpTokenExpiry', gitlabAccessToken: 'gitlabAccessToken', gitlabRefreshToken: 'gitlabRefreshToken', gitlabTokenExpiry: 'gitlabTokenExpiry', gitlabUserId: 'gitlabUserId', gitlabUsername: 'gitlabUsername', gitlabApiUrl: 'gitlabApiUrl', instanceLabel: 'instanceLabel', clientId: 'clientId', scopes: 'scopes', createdAt: 'createdAt', updatedAt: 'updatedAt' } as const export type OAuthSessionScalarFieldEnum = (typeof OAuthSessionScalarFieldEnum)[keyof typeof OAuthSessionScalarFieldEnum] export const DeviceFlowStateScalarFieldEnum = { state: 'state', deviceCode: 'deviceCode', userCode: 'userCode', verificationUri: 'verificationUri', verificationUriComplete: 'verificationUriComplete', expiresAt: 'expiresAt', interval: 'interval', clientId: 'clientId', codeChallenge: 'codeChallenge', codeChallengeMethod: 'codeChallengeMethod', redirectUri: 'redirectUri' } as const export type DeviceFlowStateScalarFieldEnum = (typeof DeviceFlowStateScalarFieldEnum)[keyof typeof DeviceFlowStateScalarFieldEnum] export const AuthCodeFlowStateScalarFieldEnum = { internalState: 'internalState', clientId: 'clientId', codeChallenge: 'codeChallenge', codeChallengeMethod: 'codeChallengeMethod', clientState: 'clientState', clientRedirectUri: 'clientRedirectUri', callbackUri: 'callbackUri', expiresAt: 'expiresAt' } as const export type AuthCodeFlowStateScalarFieldEnum = (typeof AuthCodeFlowStateScalarFieldEnum)[keyof typeof AuthCodeFlowStateScalarFieldEnum] export const AuthorizationCodeScalarFieldEnum = { code: 'code', sessionId: 'sessionId', clientId: 'clientId', codeChallenge: 'codeChallenge', codeChallengeMethod: 'codeChallengeMethod', redirectUri: 'redirectUri', expiresAt: 'expiresAt' } as const export type AuthorizationCodeScalarFieldEnum = (typeof AuthorizationCodeScalarFieldEnum)[keyof typeof AuthorizationCodeScalarFieldEnum] export const McpSessionMappingScalarFieldEnum = { mcpSessionId: 'mcpSessionId', oauthSessionId: 'oauthSessionId' } as const export type McpSessionMappingScalarFieldEnum = (typeof McpSessionMappingScalarFieldEnum)[keyof typeof McpSessionMappingScalarFieldEnum] export const SortOrder = { asc: 'asc', desc: 'desc' } as const export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const QueryMode = { default: 'default', insensitive: 'insensitive' } as const export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] 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 'BigInt' */ export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'> /** * Reference to a field of type 'BigInt[]' */ export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'> /** * 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 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Reference to a field of type 'Float[]' */ export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> /** * 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 = { oAuthSession?: Prisma.OAuthSessionOmit deviceFlowState?: Prisma.DeviceFlowStateOmit authCodeFlowState?: Prisma.AuthCodeFlowStateOmit authorizationCode?: Prisma.AuthorizationCodeOmit mcpSessionMapping?: Prisma.McpSessionMappingOmit } /* 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< T extends LogDefinition ? T['level'] : T >; 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