/** * Client **/ import * as runtime from '@prisma/client/runtime/library.js'; import $Types = runtime.Types // general types import $Public = runtime.Types.Public import $Utils = runtime.Types.Utils import $Extensions = runtime.Types.Extensions import $Result = runtime.Types.Result export type PrismaPromise = $Public.PrismaPromise /** * Model User * */ export type User = $Result.DefaultSelection /** * Model Session * */ export type Session = $Result.DefaultSelection /** * Model RepoConfig * */ export type RepoConfig = $Result.DefaultSelection /** * Model Preview * */ export type Preview = $Result.DefaultSelection /** * Model Job * */ export type Job = $Result.DefaultSelection /** * Model WebhookToken * */ export type WebhookToken = $Result.DefaultSelection /** * Model NoConfigComment * */ export type NoConfigComment = $Result.DefaultSelection /** * Model AdminSettings * */ export type AdminSettings = $Result.DefaultSelection /** * Enums */ export namespace $Enums { export const PreviewStatus: { PROVISIONING: 'PROVISIONING', BUILDING: 'BUILDING', RUNNING: 'RUNNING', FAILED: 'FAILED', STOPPED: 'STOPPED', IGNORED: 'IGNORED' }; export type PreviewStatus = (typeof PreviewStatus)[keyof typeof PreviewStatus] export const JobType: { DEPLOY: 'DEPLOY', STOP: 'STOP', INACTIVITY_STOP: 'INACTIVITY_STOP' }; export type JobType = (typeof JobType)[keyof typeof JobType] export const JobStatus: { PENDING: 'PENDING', RUNNING: 'RUNNING', DONE: 'DONE', FAILED: 'FAILED' }; export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus] } export type PreviewStatus = $Enums.PreviewStatus export const PreviewStatus: typeof $Enums.PreviewStatus export type JobType = $Enums.JobType export const JobType: typeof $Enums.JobType export type JobStatus = $Enums.JobStatus export const JobStatus: typeof $Enums.JobStatus /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ export class PrismaClient< ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, const U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs > { [K: symbol]: { types: Prisma.TypeMap['other'] } /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ constructor(optionsArg ?: Prisma.Subset); $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; /** * Connect with the database */ $connect(): $Utils.JsPromise; /** * Disconnect from the database */ $disconnect(): $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://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $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://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $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://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $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://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $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/concepts/components/prisma-client/transactions). */ $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, $Utils.Call, { 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.repoConfig`: Exposes CRUD operations for the **RepoConfig** model. * Example usage: * ```ts * // Fetch zero or more RepoConfigs * const repoConfigs = await prisma.repoConfig.findMany() * ``` */ get repoConfig(): Prisma.RepoConfigDelegate; /** * `prisma.preview`: Exposes CRUD operations for the **Preview** model. * Example usage: * ```ts * // Fetch zero or more Previews * const previews = await prisma.preview.findMany() * ``` */ get preview(): Prisma.PreviewDelegate; /** * `prisma.job`: Exposes CRUD operations for the **Job** model. * Example usage: * ```ts * // Fetch zero or more Jobs * const jobs = await prisma.job.findMany() * ``` */ get job(): Prisma.JobDelegate; /** * `prisma.webhookToken`: Exposes CRUD operations for the **WebhookToken** model. * Example usage: * ```ts * // Fetch zero or more WebhookTokens * const webhookTokens = await prisma.webhookToken.findMany() * ``` */ get webhookToken(): Prisma.WebhookTokenDelegate; /** * `prisma.noConfigComment`: Exposes CRUD operations for the **NoConfigComment** model. * Example usage: * ```ts * // Fetch zero or more NoConfigComments * const noConfigComments = await prisma.noConfigComment.findMany() * ``` */ get noConfigComment(): Prisma.NoConfigCommentDelegate; /** * `prisma.adminSettings`: Exposes CRUD operations for the **AdminSettings** model. * Example usage: * ```ts * // Fetch zero or more AdminSettings * const adminSettings = await prisma.adminSettings.findMany() * ``` */ get adminSettings(): Prisma.AdminSettingsDelegate; } export namespace Prisma { export import DMMF = runtime.DMMF export type PrismaPromise = $Public.PrismaPromise /** * Validator */ export import validator = runtime.Public.validator /** * Prisma Errors */ export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError export import PrismaClientInitializationError = runtime.PrismaClientInitializationError export import PrismaClientValidationError = runtime.PrismaClientValidationError /** * Re-export of sql-template-tag */ export import sql = runtime.sqltag export import empty = runtime.empty export import join = runtime.join export import raw = runtime.raw export import Sql = runtime.Sql /** * Decimal.js */ export import Decimal = runtime.Decimal export type DecimalJsLike = runtime.DecimalJsLike /** * Metrics */ export type Metrics = runtime.Metrics export type Metric = runtime.Metric export type MetricHistogram = runtime.MetricHistogram export type MetricHistogramBucket = runtime.MetricHistogramBucket /** * Extensions */ export import Extension = $Extensions.UserArgs export import getExtensionContext = runtime.Extensions.getExtensionContext export import Args = $Public.Args export import Payload = $Public.Payload export import Result = $Public.Result export import Exact = $Public.Exact /** * Prisma Client JS version: 6.19.3 * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7 */ export type PrismaVersion = { client: string } export const prismaVersion: PrismaVersion /** * Utility Types */ export import Bytes = runtime.Bytes export import JsonObject = runtime.JsonObject export import JsonArray = runtime.JsonArray export import JsonValue = runtime.JsonValue export import InputJsonObject = runtime.InputJsonObject export import InputJsonArray = runtime.InputJsonArray export import InputJsonValue = runtime.InputJsonValue /** * Types of the values used to represent different kinds of `null` values when working with JSON fields. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ namespace NullTypes { /** * Type of `Prisma.DbNull`. * * You cannot use other instances of this class. Please use the `Prisma.DbNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class DbNull { private DbNull: never private constructor() } /** * Type of `Prisma.JsonNull`. * * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class JsonNull { private JsonNull: never private constructor() } /** * Type of `Prisma.AnyNull`. * * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class AnyNull { private AnyNull: never private constructor() } } /** * 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: NullTypes.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: NullTypes.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: NullTypes.AnyNull type SelectAndInclude = { select: any include: any } type SelectAndOmit = { select: any omit: any } /** * Get the type of the value, that the Promise holds. */ export type PromiseType> = T extends PromiseLike ? U : T; /** * Get the return type of a function which returns a Promise. */ export type PromiseReturnType $Utils.JsPromise> = PromiseType> /** * 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; export type RequiredKeys = { [K in keyof T]-?: {} extends Prisma__Pick ? never : K }[keyof T] export type TruthyKeys = keyof { [K in keyof T as T[K] extends false | undefined | null ? never : K]: K } export type TrueKeys = TruthyKeys>> /** * 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 */ 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] type Either< O extends object, K extends Key, strict extends Boolean = 1 > = O extends unknown ? _Either : never export type Union = any 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 AtBasic = K extends keyof O ? O[K] : never; 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 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>>; /** A [[Boolean]] */ export type Boolean = True | False // /** // 1 // */ export type True = 1 /** 0 */ 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 type Cast = A extends B ? A : B; export const type: unique symbol; /** * Used by group by */ 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 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 type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T /** * Like `Pick`, but additionally can also accept an array of keys */ type PickEnumerable | keyof T> = Prisma__Pick> /** * Exclude all keys with underscores */ 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', RepoConfig: 'RepoConfig', Preview: 'Preview', Job: 'Job', WebhookToken: 'WebhookToken', NoConfigComment: 'NoConfigComment', AdminSettings: 'AdminSettings' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { db?: Datasource } interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { globalOmitOptions: { omit: GlobalOmitOptions } meta: { modelProps: "user" | "session" | "repoConfig" | "preview" | "job" | "webhookToken" | "noConfigComment" | "adminSettings" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { User: { payload: Prisma.$UserPayload fields: Prisma.UserFieldRefs operations: { findUnique: { args: Prisma.UserFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.UserCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.UserDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.UserUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.UserUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserCountArgs result: $Utils.Optional | number } } } Session: { payload: Prisma.$SessionPayload fields: Prisma.SessionFieldRefs operations: { findUnique: { args: Prisma.SessionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SessionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SessionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SessionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SessionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SessionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SessionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.SessionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.SessionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SessionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SessionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SessionUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.SessionUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.SessionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SessionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SessionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SessionCountArgs result: $Utils.Optional | number } } } RepoConfig: { payload: Prisma.$RepoConfigPayload fields: Prisma.RepoConfigFieldRefs operations: { findUnique: { args: Prisma.RepoConfigFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.RepoConfigFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.RepoConfigFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.RepoConfigFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.RepoConfigFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.RepoConfigCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.RepoConfigCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.RepoConfigCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.RepoConfigDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.RepoConfigUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.RepoConfigDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.RepoConfigUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.RepoConfigUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.RepoConfigUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.RepoConfigAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.RepoConfigGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.RepoConfigCountArgs result: $Utils.Optional | number } } } Preview: { payload: Prisma.$PreviewPayload fields: Prisma.PreviewFieldRefs operations: { findUnique: { args: Prisma.PreviewFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PreviewFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PreviewFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PreviewFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PreviewFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PreviewCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PreviewCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PreviewCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PreviewDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PreviewUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PreviewDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PreviewUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PreviewUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PreviewUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PreviewAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PreviewGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PreviewCountArgs result: $Utils.Optional | number } } } Job: { payload: Prisma.$JobPayload fields: Prisma.JobFieldRefs operations: { findUnique: { args: Prisma.JobFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.JobFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.JobFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.JobFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.JobFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.JobCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.JobCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.JobCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.JobDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.JobUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.JobDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.JobUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.JobUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.JobUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.JobAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.JobGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.JobCountArgs result: $Utils.Optional | number } } } WebhookToken: { payload: Prisma.$WebhookTokenPayload fields: Prisma.WebhookTokenFieldRefs operations: { findUnique: { args: Prisma.WebhookTokenFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.WebhookTokenFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.WebhookTokenFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.WebhookTokenFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.WebhookTokenFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.WebhookTokenCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.WebhookTokenCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.WebhookTokenCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.WebhookTokenDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.WebhookTokenUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.WebhookTokenDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.WebhookTokenUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.WebhookTokenUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.WebhookTokenUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.WebhookTokenAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.WebhookTokenGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.WebhookTokenCountArgs result: $Utils.Optional | number } } } NoConfigComment: { payload: Prisma.$NoConfigCommentPayload fields: Prisma.NoConfigCommentFieldRefs operations: { findUnique: { args: Prisma.NoConfigCommentFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.NoConfigCommentFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.NoConfigCommentFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.NoConfigCommentFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.NoConfigCommentFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.NoConfigCommentCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.NoConfigCommentCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.NoConfigCommentCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.NoConfigCommentDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.NoConfigCommentUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.NoConfigCommentDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.NoConfigCommentUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.NoConfigCommentUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.NoConfigCommentUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.NoConfigCommentAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.NoConfigCommentGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.NoConfigCommentCountArgs result: $Utils.Optional | number } } } AdminSettings: { payload: Prisma.$AdminSettingsPayload fields: Prisma.AdminSettingsFieldRefs operations: { findUnique: { args: Prisma.AdminSettingsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AdminSettingsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AdminSettingsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AdminSettingsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AdminSettingsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AdminSettingsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AdminSettingsCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AdminSettingsCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AdminSettingsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AdminSettingsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AdminSettingsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AdminSettingsUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AdminSettingsUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AdminSettingsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AdminSettingsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AdminSettingsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AdminSettingsCountArgs result: $Utils.Optional | number } } } } } & { other: { payload: any operations: { $executeRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $executeRawUnsafe: { args: [query: string, ...values: any[]], result: any } $queryRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $queryRawUnsafe: { args: [query: string, ...values: any[]], result: any } } } } export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> export type DefaultPrismaClient = PrismaClient export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' export interface PrismaClientOptions { /** * Overwrites the datasource url from your schema.prisma file */ datasources?: Datasources /** * Overwrites the datasource url from your schema.prisma file */ datasourceUrl?: string /** * @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://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). */ log?: (LogLevel | LogDefinition)[] /** * The default values for transactionOptions * maxWait ?= 2000 * timeout ?= 5000 */ transactionOptions?: { maxWait?: number timeout?: number isolationLevel?: Prisma.TransactionIsolationLevel } /** * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale` */ adapter?: runtime.SqlDriverAdapterFactory | null /** * Global configuration for omitting model fields by default. * * @example * ``` * const prisma = new PrismaClient({ * omit: { * user: { * password: true * } * } * }) * ``` */ omit?: Prisma.GlobalOmitConfig } export type GlobalOmitConfig = { user?: UserOmit session?: SessionOmit repoConfig?: RepoConfigOmit preview?: PreviewOmit job?: JobOmit webhookToken?: WebhookTokenOmit noConfigComment?: NoConfigCommentOmit adminSettings?: AdminSettingsOmit } /* 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' // tested in getLogLevel.test.ts export function getLogLevel(log: Array): LogLevel | undefined; /** * `PrismaClient` proxy available in interactive transactions. */ export type TransactionClient = Omit export type Datasource = { url?: string } /** * Count Types */ /** * Count Type UserCountOutputType */ export type UserCountOutputType = { sessions: number repoConfigs: number noConfigComments: number } export type UserCountOutputTypeSelect = { sessions?: boolean | UserCountOutputTypeCountSessionsArgs repoConfigs?: boolean | UserCountOutputTypeCountRepoConfigsArgs noConfigComments?: boolean | UserCountOutputTypeCountNoConfigCommentsArgs } // Custom InputTypes /** * UserCountOutputType without action */ export type UserCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the UserCountOutputType */ select?: UserCountOutputTypeSelect | null } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountSessionsArgs = { where?: SessionWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountRepoConfigsArgs = { where?: RepoConfigWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountNoConfigCommentsArgs = { where?: NoConfigCommentWhereInput } /** * Count Type RepoConfigCountOutputType */ export type RepoConfigCountOutputType = { previews: number } export type RepoConfigCountOutputTypeSelect = { previews?: boolean | RepoConfigCountOutputTypeCountPreviewsArgs } // Custom InputTypes /** * RepoConfigCountOutputType without action */ export type RepoConfigCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the RepoConfigCountOutputType */ select?: RepoConfigCountOutputTypeSelect | null } /** * RepoConfigCountOutputType without action */ export type RepoConfigCountOutputTypeCountPreviewsArgs = { where?: PreviewWhereInput } /** * Count Type PreviewCountOutputType */ export type PreviewCountOutputType = { jobs: number } export type PreviewCountOutputTypeSelect = { jobs?: boolean | PreviewCountOutputTypeCountJobsArgs } // Custom InputTypes /** * PreviewCountOutputType without action */ export type PreviewCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the PreviewCountOutputType */ select?: PreviewCountOutputTypeSelect | null } /** * PreviewCountOutputType without action */ export type PreviewCountOutputTypeCountJobsArgs = { where?: JobWhereInput } /** * Models */ /** * Model User */ export type AggregateUser = { _count: UserCountAggregateOutputType | null _avg: UserAvgAggregateOutputType | null _sum: UserSumAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } export type UserAvgAggregateOutputType = { id: number | null } export type UserSumAggregateOutputType = { id: number | null } export type UserMinAggregateOutputType = { id: number | null username: string | null passwordHash: string | null isAdmin: boolean | null isFounder: boolean | null createdAt: Date | null updatedAt: Date | null giteaUsername: string | null giteaPAT: string | null giteaInstanceUrl: string | null awsAccessKeyId: string | null awsSecretAccessKey: string | null awsRegion: string | null } export type UserMaxAggregateOutputType = { id: number | null username: string | null passwordHash: string | null isAdmin: boolean | null isFounder: boolean | null createdAt: Date | null updatedAt: Date | null giteaUsername: string | null giteaPAT: string | null giteaInstanceUrl: string | null awsAccessKeyId: string | null awsSecretAccessKey: string | null awsRegion: string | null } export type UserCountAggregateOutputType = { id: number username: number passwordHash: number isAdmin: number isFounder: number createdAt: number updatedAt: number giteaUsername: number giteaPAT: number giteaInstanceUrl: number awsAccessKeyId: number awsSecretAccessKey: number awsRegion: number _all: number } export type UserAvgAggregateInputType = { id?: true } export type UserSumAggregateInputType = { id?: true } export type UserMinAggregateInputType = { id?: true username?: true passwordHash?: true isAdmin?: true isFounder?: true createdAt?: true updatedAt?: true giteaUsername?: true giteaPAT?: true giteaInstanceUrl?: true awsAccessKeyId?: true awsSecretAccessKey?: true awsRegion?: true } export type UserMaxAggregateInputType = { id?: true username?: true passwordHash?: true isAdmin?: true isFounder?: true createdAt?: true updatedAt?: true giteaUsername?: true giteaPAT?: true giteaInstanceUrl?: true awsAccessKeyId?: true awsSecretAccessKey?: true awsRegion?: true } export type UserCountAggregateInputType = { id?: true username?: true passwordHash?: true isAdmin?: true isFounder?: true createdAt?: true updatedAt?: true giteaUsername?: true giteaPAT?: true giteaInstanceUrl?: true awsAccessKeyId?: true awsSecretAccessKey?: true awsRegion?: true _all?: true } export type UserAggregateArgs = { /** * Filter which User to aggregate. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: 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 average **/ _avg?: UserAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: UserSumAggregateInputType /** * {@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 : GetScalarType : GetScalarType } export type UserGroupByArgs = { where?: UserWhereInput orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] by: UserScalarFieldEnum[] | UserScalarFieldEnum having?: UserScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserCountAggregateInputType | true _avg?: UserAvgAggregateInputType _sum?: UserSumAggregateInputType _min?: UserMinAggregateInputType _max?: UserMaxAggregateInputType } export type UserGroupByOutputType = { id: number username: string passwordHash: string isAdmin: boolean isFounder: boolean createdAt: Date updatedAt: Date giteaUsername: string | null giteaPAT: string | null giteaInstanceUrl: string | null awsAccessKeyId: string | null awsSecretAccessKey: string | null awsRegion: string | null _count: UserCountAggregateOutputType | null _avg: UserAvgAggregateOutputType | null _sum: UserSumAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } type GetUserGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserSelect = $Extensions.GetSelect<{ id?: boolean username?: boolean passwordHash?: boolean isAdmin?: boolean isFounder?: boolean createdAt?: boolean updatedAt?: boolean giteaUsername?: boolean giteaPAT?: boolean giteaInstanceUrl?: boolean awsAccessKeyId?: boolean awsSecretAccessKey?: boolean awsRegion?: boolean sessions?: boolean | User$sessionsArgs repoConfigs?: boolean | User$repoConfigsArgs webhookToken?: boolean | User$webhookTokenArgs noConfigComments?: boolean | User$noConfigCommentsArgs _count?: boolean | UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> export type UserSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean username?: boolean passwordHash?: boolean isAdmin?: boolean isFounder?: boolean createdAt?: boolean updatedAt?: boolean giteaUsername?: boolean giteaPAT?: boolean giteaInstanceUrl?: boolean awsAccessKeyId?: boolean awsSecretAccessKey?: boolean awsRegion?: boolean }, ExtArgs["result"]["user"]> export type UserSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean username?: boolean passwordHash?: boolean isAdmin?: boolean isFounder?: boolean createdAt?: boolean updatedAt?: boolean giteaUsername?: boolean giteaPAT?: boolean giteaInstanceUrl?: boolean awsAccessKeyId?: boolean awsSecretAccessKey?: boolean awsRegion?: boolean }, ExtArgs["result"]["user"]> export type UserSelectScalar = { id?: boolean username?: boolean passwordHash?: boolean isAdmin?: boolean isFounder?: boolean createdAt?: boolean updatedAt?: boolean giteaUsername?: boolean giteaPAT?: boolean giteaInstanceUrl?: boolean awsAccessKeyId?: boolean awsSecretAccessKey?: boolean awsRegion?: boolean } export type UserOmit = $Extensions.GetOmit<"id" | "username" | "passwordHash" | "isAdmin" | "isFounder" | "createdAt" | "updatedAt" | "giteaUsername" | "giteaPAT" | "giteaInstanceUrl" | "awsAccessKeyId" | "awsSecretAccessKey" | "awsRegion", ExtArgs["result"]["user"]> export type UserInclude = { sessions?: boolean | User$sessionsArgs repoConfigs?: boolean | User$repoConfigsArgs webhookToken?: boolean | User$webhookTokenArgs noConfigComments?: boolean | User$noConfigCommentsArgs _count?: boolean | UserCountOutputTypeDefaultArgs } export type UserIncludeCreateManyAndReturn = {} export type UserIncludeUpdateManyAndReturn = {} export type $UserPayload = { name: "User" objects: { sessions: Prisma.$SessionPayload[] repoConfigs: Prisma.$RepoConfigPayload[] webhookToken: Prisma.$WebhookTokenPayload | null noConfigComments: Prisma.$NoConfigCommentPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number username: string passwordHash: string isAdmin: boolean isFounder: boolean createdAt: Date updatedAt: Date giteaUsername: string | null giteaPAT: string | null giteaInstanceUrl: string | null awsAccessKeyId: string | null awsSecretAccessKey: string | null awsRegion: string | null }, ExtArgs["result"]["user"]> composites: {} } type UserGetPayload = $Result.GetResult type UserCountArgs = Omit & { select?: UserCountAggregateInputType | true } export interface UserDelegate { [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: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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?: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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?: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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?: SelectSubset>): Prisma.PrismaPromise<$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: SelectSubset>): Prisma__UserClient<$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?: 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?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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: SelectSubset>): Prisma__UserClient<$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: SelectSubset>): Prisma__UserClient<$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?: 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: 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: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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: SelectSubset>): Prisma__UserClient<$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?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : 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: 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 Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserGroupByArgs['orderBy'] } : { orderBy?: UserGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" sessions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> repoConfigs = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> webhookToken = {}>(args?: Subset>): Prisma__WebhookTokenClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> noConfigComments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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): $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): $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): $Utils.JsPromise } /** * Fields of the User model */ interface UserFieldRefs { readonly id: FieldRef<"User", 'Int'> readonly username: FieldRef<"User", 'String'> readonly passwordHash: FieldRef<"User", 'String'> readonly isAdmin: FieldRef<"User", 'Boolean'> readonly isFounder: FieldRef<"User", 'Boolean'> readonly createdAt: FieldRef<"User", 'DateTime'> readonly updatedAt: FieldRef<"User", 'DateTime'> readonly giteaUsername: FieldRef<"User", 'String'> readonly giteaPAT: FieldRef<"User", 'String'> readonly giteaInstanceUrl: FieldRef<"User", 'String'> readonly awsAccessKeyId: FieldRef<"User", 'String'> readonly awsSecretAccessKey: FieldRef<"User", 'String'> readonly awsRegion: FieldRef<"User", 'String'> } // Custom InputTypes /** * User findUnique */ export type UserFindUniqueArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findUniqueOrThrow */ export type UserFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findFirst */ export type UserFindFirstArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | 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?: 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?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findFirstOrThrow */ export type UserFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | 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?: 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?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findMany */ export type UserFindManyArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which Users to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Users. */ cursor?: 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 distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User create */ export type UserCreateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to create a User. */ data: XOR } /** * User createMany */ export type UserCreateManyArgs = { /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User createManyAndReturn */ export type UserCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectCreateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User update */ export type UserUpdateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to update a User. */ data: XOR /** * Choose, which User to update. */ where: UserWhereUniqueInput } /** * User updateMany */ export type UserUpdateManyArgs = { /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User updateManyAndReturn */ export type UserUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectUpdateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User upsert */ export type UserUpsertArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The filter to search for the User to update in case it exists. */ where: UserWhereUniqueInput /** * In case the User found by the `where` argument doesn't exist, create a new User with this data. */ create: XOR /** * In case the User was found with the provided `where` argument, update it with this data. */ update: XOR } /** * User delete */ export type UserDeleteArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter which User to delete. */ where: UserWhereUniqueInput } /** * User deleteMany */ export type UserDeleteManyArgs = { /** * Filter which Users to delete */ where?: UserWhereInput /** * Limit how many Users to delete. */ limit?: number } /** * User.sessions */ export type User$sessionsArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null where?: SessionWhereInput orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] cursor?: SessionWhereUniqueInput take?: number skip?: number distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** * User.repoConfigs */ export type User$repoConfigsArgs = { /** * Select specific fields to fetch from the RepoConfig */ select?: RepoConfigSelect | null /** * Omit specific fields from the RepoConfig */ omit?: RepoConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: RepoConfigInclude | null where?: RepoConfigWhereInput orderBy?: RepoConfigOrderByWithRelationInput | RepoConfigOrderByWithRelationInput[] cursor?: RepoConfigWhereUniqueInput take?: number skip?: number distinct?: RepoConfigScalarFieldEnum | RepoConfigScalarFieldEnum[] } /** * User.webhookToken */ export type User$webhookTokenArgs = { /** * Select specific fields to fetch from the WebhookToken */ select?: WebhookTokenSelect | null /** * Omit specific fields from the WebhookToken */ omit?: WebhookTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebhookTokenInclude | null where?: WebhookTokenWhereInput } /** * User.noConfigComments */ export type User$noConfigCommentsArgs = { /** * Select specific fields to fetch from the NoConfigComment */ select?: NoConfigCommentSelect | null /** * Omit specific fields from the NoConfigComment */ omit?: NoConfigCommentOmit | null /** * Choose, which related nodes to fetch as well */ include?: NoConfigCommentInclude | null where?: NoConfigCommentWhereInput orderBy?: NoConfigCommentOrderByWithRelationInput | NoConfigCommentOrderByWithRelationInput[] cursor?: NoConfigCommentWhereUniqueInput take?: number skip?: number distinct?: NoConfigCommentScalarFieldEnum | NoConfigCommentScalarFieldEnum[] } /** * User without action */ export type UserDefaultArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null } /** * Model Session */ export type AggregateSession = { _count: SessionCountAggregateOutputType | null _avg: SessionAvgAggregateOutputType | null _sum: SessionSumAggregateOutputType | null _min: SessionMinAggregateOutputType | null _max: SessionMaxAggregateOutputType | null } export type SessionAvgAggregateOutputType = { id: number | null userId: number | null } export type SessionSumAggregateOutputType = { id: number | null userId: number | null } export type SessionMinAggregateOutputType = { id: number | null hash: string | null userId: number | null createdAt: Date | null updatedAt: Date | null } export type SessionMaxAggregateOutputType = { id: number | null hash: string | null userId: number | null createdAt: Date | null updatedAt: Date | null } export type SessionCountAggregateOutputType = { id: number hash: number userId: number createdAt: number updatedAt: number _all: number } export type SessionAvgAggregateInputType = { id?: true userId?: true } export type SessionSumAggregateInputType = { id?: true userId?: true } export type SessionMinAggregateInputType = { id?: true hash?: true userId?: true createdAt?: true updatedAt?: true } export type SessionMaxAggregateInputType = { id?: true hash?: true userId?: true createdAt?: true updatedAt?: true } export type SessionCountAggregateInputType = { id?: true hash?: true userId?: true createdAt?: true updatedAt?: true _all?: true } export type SessionAggregateArgs = { /** * Filter which Session to aggregate. */ where?: SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: 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 average **/ _avg?: SessionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SessionSumAggregateInputType /** * {@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 : GetScalarType : GetScalarType } export type SessionGroupByArgs = { where?: SessionWhereInput orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[] by: SessionScalarFieldEnum[] | SessionScalarFieldEnum having?: SessionScalarWhereWithAggregatesInput take?: number skip?: number _count?: SessionCountAggregateInputType | true _avg?: SessionAvgAggregateInputType _sum?: SessionSumAggregateInputType _min?: SessionMinAggregateInputType _max?: SessionMaxAggregateInputType } export type SessionGroupByOutputType = { id: number hash: string userId: number createdAt: Date updatedAt: Date _count: SessionCountAggregateOutputType | null _avg: SessionAvgAggregateOutputType | null _sum: SessionSumAggregateOutputType | null _min: SessionMinAggregateOutputType | null _max: SessionMaxAggregateOutputType | null } type GetSessionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SessionSelect = $Extensions.GetSelect<{ id?: boolean hash?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["session"]> export type SessionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean hash?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["session"]> export type SessionSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean hash?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["session"]> export type SessionSelectScalar = { id?: boolean hash?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean } export type SessionOmit = $Extensions.GetOmit<"id" | "hash" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["session"]> export type SessionInclude = { user?: boolean | UserDefaultArgs } export type SessionIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type SessionIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $SessionPayload = { name: "Session" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number hash: string userId: number createdAt: Date updatedAt: Date }, ExtArgs["result"]["session"]> composites: {} } type SessionGetPayload = $Result.GetResult type SessionCountArgs = Omit & { select?: SessionCountAggregateInputType | true } export interface SessionDelegate { [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: SelectSubset>): Prisma__SessionClient<$Result.GetResult, 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: SelectSubset>): Prisma__SessionClient<$Result.GetResult, 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?: SelectSubset>): Prisma__SessionClient<$Result.GetResult, 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?: SelectSubset>): Prisma__SessionClient<$Result.GetResult, 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?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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: SelectSubset>): Prisma__SessionClient<$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?: 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?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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: SelectSubset>): Prisma__SessionClient<$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: SelectSubset>): Prisma__SessionClient<$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?: 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: 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: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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: SelectSubset>): Prisma__SessionClient<$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?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : 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: 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 Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SessionGroupByArgs['orderBy'] } : { orderBy?: SessionGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, 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): $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): $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): $Utils.JsPromise } /** * Fields of the Session model */ interface SessionFieldRefs { readonly id: FieldRef<"Session", 'Int'> readonly hash: FieldRef<"Session", 'String'> readonly userId: FieldRef<"Session", 'Int'> readonly createdAt: FieldRef<"Session", 'DateTime'> readonly updatedAt: FieldRef<"Session", 'DateTime'> } // Custom InputTypes /** * Session findUnique */ export type SessionFindUniqueArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where: SessionWhereUniqueInput } /** * Session findUniqueOrThrow */ export type SessionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where: SessionWhereUniqueInput } /** * Session findFirst */ export type SessionFindFirstArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where?: SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: SessionOrderByWithRelationInput | 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?: 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?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** * Session findFirstOrThrow */ export type SessionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where?: SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: SessionOrderByWithRelationInput | 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?: 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?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** * Session findMany */ export type SessionFindManyArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Sessions to fetch. */ where?: SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Sessions. */ cursor?: 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 distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** * Session create */ export type SessionCreateArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * The data needed to create a Session. */ data: XOR } /** * Session createMany */ export type SessionCreateManyArgs = { /** * The data used to create many Sessions. */ data: SessionCreateManyInput | SessionCreateManyInput[] skipDuplicates?: boolean } /** * Session createManyAndReturn */ export type SessionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelectCreateManyAndReturn | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * The data used to create many Sessions. */ data: SessionCreateManyInput | SessionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: SessionIncludeCreateManyAndReturn | null } /** * Session update */ export type SessionUpdateArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * The data needed to update a Session. */ data: XOR /** * Choose, which Session to update. */ where: SessionWhereUniqueInput } /** * Session updateMany */ export type SessionUpdateManyArgs = { /** * The data used to update Sessions. */ data: XOR /** * Filter which Sessions to update */ where?: SessionWhereInput /** * Limit how many Sessions to update. */ limit?: number } /** * Session updateManyAndReturn */ export type SessionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelectUpdateManyAndReturn | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * The data used to update Sessions. */ data: XOR /** * Filter which Sessions to update */ where?: SessionWhereInput /** * Limit how many Sessions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: SessionIncludeUpdateManyAndReturn | null } /** * Session upsert */ export type SessionUpsertArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * The filter to search for the Session to update in case it exists. */ where: SessionWhereUniqueInput /** * In case the Session found by the `where` argument doesn't exist, create a new Session with this data. */ create: XOR /** * In case the Session was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Session delete */ export type SessionDeleteArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter which Session to delete. */ where: SessionWhereUniqueInput } /** * Session deleteMany */ export type SessionDeleteManyArgs = { /** * Filter which Sessions to delete */ where?: SessionWhereInput /** * Limit how many Sessions to delete. */ limit?: number } /** * Session without action */ export type SessionDefaultArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null } /** * Model RepoConfig */ export type AggregateRepoConfig = { _count: RepoConfigCountAggregateOutputType | null _avg: RepoConfigAvgAggregateOutputType | null _sum: RepoConfigSumAggregateOutputType | null _min: RepoConfigMinAggregateOutputType | null _max: RepoConfigMaxAggregateOutputType | null } export type RepoConfigAvgAggregateOutputType = { id: number | null userId: number | null inactivityHours: number | null port: number | null } export type RepoConfigSumAggregateOutputType = { id: number | null userId: number | null inactivityHours: number | null port: number | null } export type RepoConfigMinAggregateOutputType = { id: number | null userId: number | null repoOwner: string | null repoName: string | null isEnabled: boolean | null giteaWebhookId: string | null instanceType: string | null inactivityHours: number | null port: number | null useDockerCompose: boolean | null composeFilePath: string | null runCommand: string | null createdAt: Date | null updatedAt: Date | null } export type RepoConfigMaxAggregateOutputType = { id: number | null userId: number | null repoOwner: string | null repoName: string | null isEnabled: boolean | null giteaWebhookId: string | null instanceType: string | null inactivityHours: number | null port: number | null useDockerCompose: boolean | null composeFilePath: string | null runCommand: string | null createdAt: Date | null updatedAt: Date | null } export type RepoConfigCountAggregateOutputType = { id: number userId: number repoOwner: number repoName: number isEnabled: number giteaWebhookId: number denyList: number instanceType: number inactivityHours: number port: number envVars: number useDockerCompose: number composeFilePath: number aptPackages: number setupCommands: number buildCommands: number postBuildCommands: number runCommand: number createdAt: number updatedAt: number _all: number } export type RepoConfigAvgAggregateInputType = { id?: true userId?: true inactivityHours?: true port?: true } export type RepoConfigSumAggregateInputType = { id?: true userId?: true inactivityHours?: true port?: true } export type RepoConfigMinAggregateInputType = { id?: true userId?: true repoOwner?: true repoName?: true isEnabled?: true giteaWebhookId?: true instanceType?: true inactivityHours?: true port?: true useDockerCompose?: true composeFilePath?: true runCommand?: true createdAt?: true updatedAt?: true } export type RepoConfigMaxAggregateInputType = { id?: true userId?: true repoOwner?: true repoName?: true isEnabled?: true giteaWebhookId?: true instanceType?: true inactivityHours?: true port?: true useDockerCompose?: true composeFilePath?: true runCommand?: true createdAt?: true updatedAt?: true } export type RepoConfigCountAggregateInputType = { id?: true userId?: true repoOwner?: true repoName?: true isEnabled?: true giteaWebhookId?: true denyList?: true instanceType?: true inactivityHours?: true port?: true envVars?: true useDockerCompose?: true composeFilePath?: true aptPackages?: true setupCommands?: true buildCommands?: true postBuildCommands?: true runCommand?: true createdAt?: true updatedAt?: true _all?: true } export type RepoConfigAggregateArgs = { /** * Filter which RepoConfig to aggregate. */ where?: RepoConfigWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RepoConfigs to fetch. */ orderBy?: RepoConfigOrderByWithRelationInput | RepoConfigOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: RepoConfigWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RepoConfigs 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` RepoConfigs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned RepoConfigs **/ _count?: true | RepoConfigCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: RepoConfigAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: RepoConfigSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: RepoConfigMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: RepoConfigMaxAggregateInputType } export type GetRepoConfigAggregateType = { [P in keyof T & keyof AggregateRepoConfig]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type RepoConfigGroupByArgs = { where?: RepoConfigWhereInput orderBy?: RepoConfigOrderByWithAggregationInput | RepoConfigOrderByWithAggregationInput[] by: RepoConfigScalarFieldEnum[] | RepoConfigScalarFieldEnum having?: RepoConfigScalarWhereWithAggregatesInput take?: number skip?: number _count?: RepoConfigCountAggregateInputType | true _avg?: RepoConfigAvgAggregateInputType _sum?: RepoConfigSumAggregateInputType _min?: RepoConfigMinAggregateInputType _max?: RepoConfigMaxAggregateInputType } export type RepoConfigGroupByOutputType = { id: number userId: number repoOwner: string repoName: string isEnabled: boolean giteaWebhookId: string | null denyList: string[] instanceType: string inactivityHours: number port: number envVars: JsonValue useDockerCompose: boolean composeFilePath: string | null aptPackages: string[] setupCommands: string[] buildCommands: string[] postBuildCommands: string[] runCommand: string | null createdAt: Date updatedAt: Date _count: RepoConfigCountAggregateOutputType | null _avg: RepoConfigAvgAggregateOutputType | null _sum: RepoConfigSumAggregateOutputType | null _min: RepoConfigMinAggregateOutputType | null _max: RepoConfigMaxAggregateOutputType | null } type GetRepoConfigGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof RepoConfigGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type RepoConfigSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean repoOwner?: boolean repoName?: boolean isEnabled?: boolean giteaWebhookId?: boolean denyList?: boolean instanceType?: boolean inactivityHours?: boolean port?: boolean envVars?: boolean useDockerCompose?: boolean composeFilePath?: boolean aptPackages?: boolean setupCommands?: boolean buildCommands?: boolean postBuildCommands?: boolean runCommand?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs previews?: boolean | RepoConfig$previewsArgs _count?: boolean | RepoConfigCountOutputTypeDefaultArgs }, ExtArgs["result"]["repoConfig"]> export type RepoConfigSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean repoOwner?: boolean repoName?: boolean isEnabled?: boolean giteaWebhookId?: boolean denyList?: boolean instanceType?: boolean inactivityHours?: boolean port?: boolean envVars?: boolean useDockerCompose?: boolean composeFilePath?: boolean aptPackages?: boolean setupCommands?: boolean buildCommands?: boolean postBuildCommands?: boolean runCommand?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["repoConfig"]> export type RepoConfigSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean repoOwner?: boolean repoName?: boolean isEnabled?: boolean giteaWebhookId?: boolean denyList?: boolean instanceType?: boolean inactivityHours?: boolean port?: boolean envVars?: boolean useDockerCompose?: boolean composeFilePath?: boolean aptPackages?: boolean setupCommands?: boolean buildCommands?: boolean postBuildCommands?: boolean runCommand?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["repoConfig"]> export type RepoConfigSelectScalar = { id?: boolean userId?: boolean repoOwner?: boolean repoName?: boolean isEnabled?: boolean giteaWebhookId?: boolean denyList?: boolean instanceType?: boolean inactivityHours?: boolean port?: boolean envVars?: boolean useDockerCompose?: boolean composeFilePath?: boolean aptPackages?: boolean setupCommands?: boolean buildCommands?: boolean postBuildCommands?: boolean runCommand?: boolean createdAt?: boolean updatedAt?: boolean } export type RepoConfigOmit = $Extensions.GetOmit<"id" | "userId" | "repoOwner" | "repoName" | "isEnabled" | "giteaWebhookId" | "denyList" | "instanceType" | "inactivityHours" | "port" | "envVars" | "useDockerCompose" | "composeFilePath" | "aptPackages" | "setupCommands" | "buildCommands" | "postBuildCommands" | "runCommand" | "createdAt" | "updatedAt", ExtArgs["result"]["repoConfig"]> export type RepoConfigInclude = { user?: boolean | UserDefaultArgs previews?: boolean | RepoConfig$previewsArgs _count?: boolean | RepoConfigCountOutputTypeDefaultArgs } export type RepoConfigIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type RepoConfigIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $RepoConfigPayload = { name: "RepoConfig" objects: { user: Prisma.$UserPayload previews: Prisma.$PreviewPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number userId: number repoOwner: string repoName: string isEnabled: boolean giteaWebhookId: string | null denyList: string[] instanceType: string inactivityHours: number port: number envVars: Prisma.JsonValue useDockerCompose: boolean composeFilePath: string | null aptPackages: string[] setupCommands: string[] buildCommands: string[] postBuildCommands: string[] runCommand: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["repoConfig"]> composites: {} } type RepoConfigGetPayload = $Result.GetResult type RepoConfigCountArgs = Omit & { select?: RepoConfigCountAggregateInputType | true } export interface RepoConfigDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['RepoConfig'], meta: { name: 'RepoConfig' } } /** * Find zero or one RepoConfig that matches the filter. * @param {RepoConfigFindUniqueArgs} args - Arguments to find a RepoConfig * @example * // Get one RepoConfig * const repoConfig = await prisma.repoConfig.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__RepoConfigClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one RepoConfig that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {RepoConfigFindUniqueOrThrowArgs} args - Arguments to find a RepoConfig * @example * // Get one RepoConfig * const repoConfig = await prisma.repoConfig.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__RepoConfigClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first RepoConfig 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 {RepoConfigFindFirstArgs} args - Arguments to find a RepoConfig * @example * // Get one RepoConfig * const repoConfig = await prisma.repoConfig.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__RepoConfigClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first RepoConfig 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 {RepoConfigFindFirstOrThrowArgs} args - Arguments to find a RepoConfig * @example * // Get one RepoConfig * const repoConfig = await prisma.repoConfig.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__RepoConfigClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more RepoConfigs 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 {RepoConfigFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all RepoConfigs * const repoConfigs = await prisma.repoConfig.findMany() * * // Get first 10 RepoConfigs * const repoConfigs = await prisma.repoConfig.findMany({ take: 10 }) * * // Only select the `id` * const repoConfigWithIdOnly = await prisma.repoConfig.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a RepoConfig. * @param {RepoConfigCreateArgs} args - Arguments to create a RepoConfig. * @example * // Create one RepoConfig * const RepoConfig = await prisma.repoConfig.create({ * data: { * // ... data to create a RepoConfig * } * }) * */ create(args: SelectSubset>): Prisma__RepoConfigClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many RepoConfigs. * @param {RepoConfigCreateManyArgs} args - Arguments to create many RepoConfigs. * @example * // Create many RepoConfigs * const repoConfig = await prisma.repoConfig.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many RepoConfigs and returns the data saved in the database. * @param {RepoConfigCreateManyAndReturnArgs} args - Arguments to create many RepoConfigs. * @example * // Create many RepoConfigs * const repoConfig = await prisma.repoConfig.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many RepoConfigs and only return the `id` * const repoConfigWithIdOnly = await prisma.repoConfig.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?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a RepoConfig. * @param {RepoConfigDeleteArgs} args - Arguments to delete one RepoConfig. * @example * // Delete one RepoConfig * const RepoConfig = await prisma.repoConfig.delete({ * where: { * // ... filter to delete one RepoConfig * } * }) * */ delete(args: SelectSubset>): Prisma__RepoConfigClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one RepoConfig. * @param {RepoConfigUpdateArgs} args - Arguments to update one RepoConfig. * @example * // Update one RepoConfig * const repoConfig = await prisma.repoConfig.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__RepoConfigClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more RepoConfigs. * @param {RepoConfigDeleteManyArgs} args - Arguments to filter RepoConfigs to delete. * @example * // Delete a few RepoConfigs * const { count } = await prisma.repoConfig.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more RepoConfigs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RepoConfigUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many RepoConfigs * const repoConfig = await prisma.repoConfig.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more RepoConfigs and returns the data updated in the database. * @param {RepoConfigUpdateManyAndReturnArgs} args - Arguments to update many RepoConfigs. * @example * // Update many RepoConfigs * const repoConfig = await prisma.repoConfig.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more RepoConfigs and only return the `id` * const repoConfigWithIdOnly = await prisma.repoConfig.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: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one RepoConfig. * @param {RepoConfigUpsertArgs} args - Arguments to update or create a RepoConfig. * @example * // Update or create a RepoConfig * const repoConfig = await prisma.repoConfig.upsert({ * create: { * // ... data to create a RepoConfig * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the RepoConfig we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__RepoConfigClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of RepoConfigs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RepoConfigCountArgs} args - Arguments to filter RepoConfigs to count. * @example * // Count the number of RepoConfigs * const count = await prisma.repoConfig.count({ * where: { * // ... the filter for the RepoConfigs we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a RepoConfig. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RepoConfigAggregateArgs} 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: Subset): Prisma.PrismaPromise> /** * Group by RepoConfig. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RepoConfigGroupByArgs} 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 RepoConfigGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: RepoConfigGroupByArgs['orderBy'] } : { orderBy?: RepoConfigGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetRepoConfigGroupByPayload : Prisma.PrismaPromise /** * Fields of the RepoConfig model */ readonly fields: RepoConfigFieldRefs; } /** * The delegate class that acts as a "Promise-like" for RepoConfig. * 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__RepoConfigClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> previews = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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): $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): $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): $Utils.JsPromise } /** * Fields of the RepoConfig model */ interface RepoConfigFieldRefs { readonly id: FieldRef<"RepoConfig", 'Int'> readonly userId: FieldRef<"RepoConfig", 'Int'> readonly repoOwner: FieldRef<"RepoConfig", 'String'> readonly repoName: FieldRef<"RepoConfig", 'String'> readonly isEnabled: FieldRef<"RepoConfig", 'Boolean'> readonly giteaWebhookId: FieldRef<"RepoConfig", 'String'> readonly denyList: FieldRef<"RepoConfig", 'String[]'> readonly instanceType: FieldRef<"RepoConfig", 'String'> readonly inactivityHours: FieldRef<"RepoConfig", 'Float'> readonly port: FieldRef<"RepoConfig", 'Int'> readonly envVars: FieldRef<"RepoConfig", 'Json'> readonly useDockerCompose: FieldRef<"RepoConfig", 'Boolean'> readonly composeFilePath: FieldRef<"RepoConfig", 'String'> readonly aptPackages: FieldRef<"RepoConfig", 'String[]'> readonly setupCommands: FieldRef<"RepoConfig", 'String[]'> readonly buildCommands: FieldRef<"RepoConfig", 'String[]'> readonly postBuildCommands: FieldRef<"RepoConfig", 'String[]'> readonly runCommand: FieldRef<"RepoConfig", 'String'> readonly createdAt: FieldRef<"RepoConfig", 'DateTime'> readonly updatedAt: FieldRef<"RepoConfig", 'DateTime'> } // Custom InputTypes /** * RepoConfig findUnique */ export type RepoConfigFindUniqueArgs = { /** * Select specific fields to fetch from the RepoConfig */ select?: RepoConfigSelect | null /** * Omit specific fields from the RepoConfig */ omit?: RepoConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: RepoConfigInclude | null /** * Filter, which RepoConfig to fetch. */ where: RepoConfigWhereUniqueInput } /** * RepoConfig findUniqueOrThrow */ export type RepoConfigFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the RepoConfig */ select?: RepoConfigSelect | null /** * Omit specific fields from the RepoConfig */ omit?: RepoConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: RepoConfigInclude | null /** * Filter, which RepoConfig to fetch. */ where: RepoConfigWhereUniqueInput } /** * RepoConfig findFirst */ export type RepoConfigFindFirstArgs = { /** * Select specific fields to fetch from the RepoConfig */ select?: RepoConfigSelect | null /** * Omit specific fields from the RepoConfig */ omit?: RepoConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: RepoConfigInclude | null /** * Filter, which RepoConfig to fetch. */ where?: RepoConfigWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RepoConfigs to fetch. */ orderBy?: RepoConfigOrderByWithRelationInput | RepoConfigOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for RepoConfigs. */ cursor?: RepoConfigWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RepoConfigs 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` RepoConfigs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of RepoConfigs. */ distinct?: RepoConfigScalarFieldEnum | RepoConfigScalarFieldEnum[] } /** * RepoConfig findFirstOrThrow */ export type RepoConfigFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the RepoConfig */ select?: RepoConfigSelect | null /** * Omit specific fields from the RepoConfig */ omit?: RepoConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: RepoConfigInclude | null /** * Filter, which RepoConfig to fetch. */ where?: RepoConfigWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RepoConfigs to fetch. */ orderBy?: RepoConfigOrderByWithRelationInput | RepoConfigOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for RepoConfigs. */ cursor?: RepoConfigWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RepoConfigs 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` RepoConfigs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of RepoConfigs. */ distinct?: RepoConfigScalarFieldEnum | RepoConfigScalarFieldEnum[] } /** * RepoConfig findMany */ export type RepoConfigFindManyArgs = { /** * Select specific fields to fetch from the RepoConfig */ select?: RepoConfigSelect | null /** * Omit specific fields from the RepoConfig */ omit?: RepoConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: RepoConfigInclude | null /** * Filter, which RepoConfigs to fetch. */ where?: RepoConfigWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RepoConfigs to fetch. */ orderBy?: RepoConfigOrderByWithRelationInput | RepoConfigOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing RepoConfigs. */ cursor?: RepoConfigWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RepoConfigs 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` RepoConfigs. */ skip?: number distinct?: RepoConfigScalarFieldEnum | RepoConfigScalarFieldEnum[] } /** * RepoConfig create */ export type RepoConfigCreateArgs = { /** * Select specific fields to fetch from the RepoConfig */ select?: RepoConfigSelect | null /** * Omit specific fields from the RepoConfig */ omit?: RepoConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: RepoConfigInclude | null /** * The data needed to create a RepoConfig. */ data: XOR } /** * RepoConfig createMany */ export type RepoConfigCreateManyArgs = { /** * The data used to create many RepoConfigs. */ data: RepoConfigCreateManyInput | RepoConfigCreateManyInput[] skipDuplicates?: boolean } /** * RepoConfig createManyAndReturn */ export type RepoConfigCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the RepoConfig */ select?: RepoConfigSelectCreateManyAndReturn | null /** * Omit specific fields from the RepoConfig */ omit?: RepoConfigOmit | null /** * The data used to create many RepoConfigs. */ data: RepoConfigCreateManyInput | RepoConfigCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: RepoConfigIncludeCreateManyAndReturn | null } /** * RepoConfig update */ export type RepoConfigUpdateArgs = { /** * Select specific fields to fetch from the RepoConfig */ select?: RepoConfigSelect | null /** * Omit specific fields from the RepoConfig */ omit?: RepoConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: RepoConfigInclude | null /** * The data needed to update a RepoConfig. */ data: XOR /** * Choose, which RepoConfig to update. */ where: RepoConfigWhereUniqueInput } /** * RepoConfig updateMany */ export type RepoConfigUpdateManyArgs = { /** * The data used to update RepoConfigs. */ data: XOR /** * Filter which RepoConfigs to update */ where?: RepoConfigWhereInput /** * Limit how many RepoConfigs to update. */ limit?: number } /** * RepoConfig updateManyAndReturn */ export type RepoConfigUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the RepoConfig */ select?: RepoConfigSelectUpdateManyAndReturn | null /** * Omit specific fields from the RepoConfig */ omit?: RepoConfigOmit | null /** * The data used to update RepoConfigs. */ data: XOR /** * Filter which RepoConfigs to update */ where?: RepoConfigWhereInput /** * Limit how many RepoConfigs to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: RepoConfigIncludeUpdateManyAndReturn | null } /** * RepoConfig upsert */ export type RepoConfigUpsertArgs = { /** * Select specific fields to fetch from the RepoConfig */ select?: RepoConfigSelect | null /** * Omit specific fields from the RepoConfig */ omit?: RepoConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: RepoConfigInclude | null /** * The filter to search for the RepoConfig to update in case it exists. */ where: RepoConfigWhereUniqueInput /** * In case the RepoConfig found by the `where` argument doesn't exist, create a new RepoConfig with this data. */ create: XOR /** * In case the RepoConfig was found with the provided `where` argument, update it with this data. */ update: XOR } /** * RepoConfig delete */ export type RepoConfigDeleteArgs = { /** * Select specific fields to fetch from the RepoConfig */ select?: RepoConfigSelect | null /** * Omit specific fields from the RepoConfig */ omit?: RepoConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: RepoConfigInclude | null /** * Filter which RepoConfig to delete. */ where: RepoConfigWhereUniqueInput } /** * RepoConfig deleteMany */ export type RepoConfigDeleteManyArgs = { /** * Filter which RepoConfigs to delete */ where?: RepoConfigWhereInput /** * Limit how many RepoConfigs to delete. */ limit?: number } /** * RepoConfig.previews */ export type RepoConfig$previewsArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelect | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * Choose, which related nodes to fetch as well */ include?: PreviewInclude | null where?: PreviewWhereInput orderBy?: PreviewOrderByWithRelationInput | PreviewOrderByWithRelationInput[] cursor?: PreviewWhereUniqueInput take?: number skip?: number distinct?: PreviewScalarFieldEnum | PreviewScalarFieldEnum[] } /** * RepoConfig without action */ export type RepoConfigDefaultArgs = { /** * Select specific fields to fetch from the RepoConfig */ select?: RepoConfigSelect | null /** * Omit specific fields from the RepoConfig */ omit?: RepoConfigOmit | null /** * Choose, which related nodes to fetch as well */ include?: RepoConfigInclude | null } /** * Model Preview */ export type AggregatePreview = { _count: PreviewCountAggregateOutputType | null _avg: PreviewAvgAggregateOutputType | null _sum: PreviewSumAggregateOutputType | null _min: PreviewMinAggregateOutputType | null _max: PreviewMaxAggregateOutputType | null } export type PreviewAvgAggregateOutputType = { id: number | null repoConfigId: number | null prNumber: number | null port: number | null pid: number | null giteaCommentId: number | null } export type PreviewSumAggregateOutputType = { id: number | null repoConfigId: number | null prNumber: number | null port: number | null pid: number | null giteaCommentId: number | null } export type PreviewMinAggregateOutputType = { id: number | null repoConfigId: number | null prNumber: number | null prTitle: string | null commitSha: string | null instanceId: string | null instanceIp: string | null port: number | null status: $Enums.PreviewStatus | null logs: string | null pid: number | null sshPrivateKey: string | null sshKeyName: string | null giteaCommentId: number | null lastActivityAt: Date | null createdAt: Date | null updatedAt: Date | null stoppedAt: Date | null } export type PreviewMaxAggregateOutputType = { id: number | null repoConfigId: number | null prNumber: number | null prTitle: string | null commitSha: string | null instanceId: string | null instanceIp: string | null port: number | null status: $Enums.PreviewStatus | null logs: string | null pid: number | null sshPrivateKey: string | null sshKeyName: string | null giteaCommentId: number | null lastActivityAt: Date | null createdAt: Date | null updatedAt: Date | null stoppedAt: Date | null } export type PreviewCountAggregateOutputType = { id: number repoConfigId: number prNumber: number prTitle: number commitSha: number instanceId: number instanceIp: number port: number status: number logs: number pid: number sshPrivateKey: number sshKeyName: number giteaCommentId: number lastActivityAt: number createdAt: number updatedAt: number stoppedAt: number _all: number } export type PreviewAvgAggregateInputType = { id?: true repoConfigId?: true prNumber?: true port?: true pid?: true giteaCommentId?: true } export type PreviewSumAggregateInputType = { id?: true repoConfigId?: true prNumber?: true port?: true pid?: true giteaCommentId?: true } export type PreviewMinAggregateInputType = { id?: true repoConfigId?: true prNumber?: true prTitle?: true commitSha?: true instanceId?: true instanceIp?: true port?: true status?: true logs?: true pid?: true sshPrivateKey?: true sshKeyName?: true giteaCommentId?: true lastActivityAt?: true createdAt?: true updatedAt?: true stoppedAt?: true } export type PreviewMaxAggregateInputType = { id?: true repoConfigId?: true prNumber?: true prTitle?: true commitSha?: true instanceId?: true instanceIp?: true port?: true status?: true logs?: true pid?: true sshPrivateKey?: true sshKeyName?: true giteaCommentId?: true lastActivityAt?: true createdAt?: true updatedAt?: true stoppedAt?: true } export type PreviewCountAggregateInputType = { id?: true repoConfigId?: true prNumber?: true prTitle?: true commitSha?: true instanceId?: true instanceIp?: true port?: true status?: true logs?: true pid?: true sshPrivateKey?: true sshKeyName?: true giteaCommentId?: true lastActivityAt?: true createdAt?: true updatedAt?: true stoppedAt?: true _all?: true } export type PreviewAggregateArgs = { /** * Filter which Preview to aggregate. */ where?: PreviewWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Previews to fetch. */ orderBy?: PreviewOrderByWithRelationInput | PreviewOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PreviewWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Previews 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` Previews. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Previews **/ _count?: true | PreviewCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PreviewAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PreviewSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PreviewMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PreviewMaxAggregateInputType } export type GetPreviewAggregateType = { [P in keyof T & keyof AggregatePreview]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PreviewGroupByArgs = { where?: PreviewWhereInput orderBy?: PreviewOrderByWithAggregationInput | PreviewOrderByWithAggregationInput[] by: PreviewScalarFieldEnum[] | PreviewScalarFieldEnum having?: PreviewScalarWhereWithAggregatesInput take?: number skip?: number _count?: PreviewCountAggregateInputType | true _avg?: PreviewAvgAggregateInputType _sum?: PreviewSumAggregateInputType _min?: PreviewMinAggregateInputType _max?: PreviewMaxAggregateInputType } export type PreviewGroupByOutputType = { id: number repoConfigId: number prNumber: number prTitle: string commitSha: string instanceId: string | null instanceIp: string | null port: number status: $Enums.PreviewStatus logs: string pid: number | null sshPrivateKey: string | null sshKeyName: string | null giteaCommentId: number | null lastActivityAt: Date createdAt: Date updatedAt: Date stoppedAt: Date | null _count: PreviewCountAggregateOutputType | null _avg: PreviewAvgAggregateOutputType | null _sum: PreviewSumAggregateOutputType | null _min: PreviewMinAggregateOutputType | null _max: PreviewMaxAggregateOutputType | null } type GetPreviewGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PreviewGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PreviewSelect = $Extensions.GetSelect<{ id?: boolean repoConfigId?: boolean prNumber?: boolean prTitle?: boolean commitSha?: boolean instanceId?: boolean instanceIp?: boolean port?: boolean status?: boolean logs?: boolean pid?: boolean sshPrivateKey?: boolean sshKeyName?: boolean giteaCommentId?: boolean lastActivityAt?: boolean createdAt?: boolean updatedAt?: boolean stoppedAt?: boolean repoConfig?: boolean | RepoConfigDefaultArgs jobs?: boolean | Preview$jobsArgs _count?: boolean | PreviewCountOutputTypeDefaultArgs }, ExtArgs["result"]["preview"]> export type PreviewSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean repoConfigId?: boolean prNumber?: boolean prTitle?: boolean commitSha?: boolean instanceId?: boolean instanceIp?: boolean port?: boolean status?: boolean logs?: boolean pid?: boolean sshPrivateKey?: boolean sshKeyName?: boolean giteaCommentId?: boolean lastActivityAt?: boolean createdAt?: boolean updatedAt?: boolean stoppedAt?: boolean repoConfig?: boolean | RepoConfigDefaultArgs }, ExtArgs["result"]["preview"]> export type PreviewSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean repoConfigId?: boolean prNumber?: boolean prTitle?: boolean commitSha?: boolean instanceId?: boolean instanceIp?: boolean port?: boolean status?: boolean logs?: boolean pid?: boolean sshPrivateKey?: boolean sshKeyName?: boolean giteaCommentId?: boolean lastActivityAt?: boolean createdAt?: boolean updatedAt?: boolean stoppedAt?: boolean repoConfig?: boolean | RepoConfigDefaultArgs }, ExtArgs["result"]["preview"]> export type PreviewSelectScalar = { id?: boolean repoConfigId?: boolean prNumber?: boolean prTitle?: boolean commitSha?: boolean instanceId?: boolean instanceIp?: boolean port?: boolean status?: boolean logs?: boolean pid?: boolean sshPrivateKey?: boolean sshKeyName?: boolean giteaCommentId?: boolean lastActivityAt?: boolean createdAt?: boolean updatedAt?: boolean stoppedAt?: boolean } export type PreviewOmit = $Extensions.GetOmit<"id" | "repoConfigId" | "prNumber" | "prTitle" | "commitSha" | "instanceId" | "instanceIp" | "port" | "status" | "logs" | "pid" | "sshPrivateKey" | "sshKeyName" | "giteaCommentId" | "lastActivityAt" | "createdAt" | "updatedAt" | "stoppedAt", ExtArgs["result"]["preview"]> export type PreviewInclude = { repoConfig?: boolean | RepoConfigDefaultArgs jobs?: boolean | Preview$jobsArgs _count?: boolean | PreviewCountOutputTypeDefaultArgs } export type PreviewIncludeCreateManyAndReturn = { repoConfig?: boolean | RepoConfigDefaultArgs } export type PreviewIncludeUpdateManyAndReturn = { repoConfig?: boolean | RepoConfigDefaultArgs } export type $PreviewPayload = { name: "Preview" objects: { repoConfig: Prisma.$RepoConfigPayload jobs: Prisma.$JobPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number repoConfigId: number prNumber: number prTitle: string commitSha: string instanceId: string | null instanceIp: string | null port: number status: $Enums.PreviewStatus logs: string pid: number | null sshPrivateKey: string | null sshKeyName: string | null giteaCommentId: number | null lastActivityAt: Date createdAt: Date updatedAt: Date stoppedAt: Date | null }, ExtArgs["result"]["preview"]> composites: {} } type PreviewGetPayload = $Result.GetResult type PreviewCountArgs = Omit & { select?: PreviewCountAggregateInputType | true } export interface PreviewDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Preview'], meta: { name: 'Preview' } } /** * Find zero or one Preview that matches the filter. * @param {PreviewFindUniqueArgs} args - Arguments to find a Preview * @example * // Get one Preview * const preview = await prisma.preview.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PreviewClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Preview that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PreviewFindUniqueOrThrowArgs} args - Arguments to find a Preview * @example * // Get one Preview * const preview = await prisma.preview.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PreviewClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Preview 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 {PreviewFindFirstArgs} args - Arguments to find a Preview * @example * // Get one Preview * const preview = await prisma.preview.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PreviewClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Preview 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 {PreviewFindFirstOrThrowArgs} args - Arguments to find a Preview * @example * // Get one Preview * const preview = await prisma.preview.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PreviewClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Previews 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 {PreviewFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Previews * const previews = await prisma.preview.findMany() * * // Get first 10 Previews * const previews = await prisma.preview.findMany({ take: 10 }) * * // Only select the `id` * const previewWithIdOnly = await prisma.preview.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Preview. * @param {PreviewCreateArgs} args - Arguments to create a Preview. * @example * // Create one Preview * const Preview = await prisma.preview.create({ * data: { * // ... data to create a Preview * } * }) * */ create(args: SelectSubset>): Prisma__PreviewClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Previews. * @param {PreviewCreateManyArgs} args - Arguments to create many Previews. * @example * // Create many Previews * const preview = await prisma.preview.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Previews and returns the data saved in the database. * @param {PreviewCreateManyAndReturnArgs} args - Arguments to create many Previews. * @example * // Create many Previews * const preview = await prisma.preview.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Previews and only return the `id` * const previewWithIdOnly = await prisma.preview.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?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Preview. * @param {PreviewDeleteArgs} args - Arguments to delete one Preview. * @example * // Delete one Preview * const Preview = await prisma.preview.delete({ * where: { * // ... filter to delete one Preview * } * }) * */ delete(args: SelectSubset>): Prisma__PreviewClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Preview. * @param {PreviewUpdateArgs} args - Arguments to update one Preview. * @example * // Update one Preview * const preview = await prisma.preview.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PreviewClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Previews. * @param {PreviewDeleteManyArgs} args - Arguments to filter Previews to delete. * @example * // Delete a few Previews * const { count } = await prisma.preview.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Previews. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PreviewUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Previews * const preview = await prisma.preview.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Previews and returns the data updated in the database. * @param {PreviewUpdateManyAndReturnArgs} args - Arguments to update many Previews. * @example * // Update many Previews * const preview = await prisma.preview.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Previews and only return the `id` * const previewWithIdOnly = await prisma.preview.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: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Preview. * @param {PreviewUpsertArgs} args - Arguments to update or create a Preview. * @example * // Update or create a Preview * const preview = await prisma.preview.upsert({ * create: { * // ... data to create a Preview * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Preview we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PreviewClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Previews. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PreviewCountArgs} args - Arguments to filter Previews to count. * @example * // Count the number of Previews * const count = await prisma.preview.count({ * where: { * // ... the filter for the Previews we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Preview. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PreviewAggregateArgs} 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: Subset): Prisma.PrismaPromise> /** * Group by Preview. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PreviewGroupByArgs} 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 PreviewGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PreviewGroupByArgs['orderBy'] } : { orderBy?: PreviewGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetPreviewGroupByPayload : Prisma.PrismaPromise /** * Fields of the Preview model */ readonly fields: PreviewFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Preview. * 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__PreviewClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" repoConfig = {}>(args?: Subset>): Prisma__RepoConfigClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> jobs = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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): $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): $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): $Utils.JsPromise } /** * Fields of the Preview model */ interface PreviewFieldRefs { readonly id: FieldRef<"Preview", 'Int'> readonly repoConfigId: FieldRef<"Preview", 'Int'> readonly prNumber: FieldRef<"Preview", 'Int'> readonly prTitle: FieldRef<"Preview", 'String'> readonly commitSha: FieldRef<"Preview", 'String'> readonly instanceId: FieldRef<"Preview", 'String'> readonly instanceIp: FieldRef<"Preview", 'String'> readonly port: FieldRef<"Preview", 'Int'> readonly status: FieldRef<"Preview", 'PreviewStatus'> readonly logs: FieldRef<"Preview", 'String'> readonly pid: FieldRef<"Preview", 'Int'> readonly sshPrivateKey: FieldRef<"Preview", 'String'> readonly sshKeyName: FieldRef<"Preview", 'String'> readonly giteaCommentId: FieldRef<"Preview", 'Int'> readonly lastActivityAt: FieldRef<"Preview", 'DateTime'> readonly createdAt: FieldRef<"Preview", 'DateTime'> readonly updatedAt: FieldRef<"Preview", 'DateTime'> readonly stoppedAt: FieldRef<"Preview", 'DateTime'> } // Custom InputTypes /** * Preview findUnique */ export type PreviewFindUniqueArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelect | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * Choose, which related nodes to fetch as well */ include?: PreviewInclude | null /** * Filter, which Preview to fetch. */ where: PreviewWhereUniqueInput } /** * Preview findUniqueOrThrow */ export type PreviewFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelect | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * Choose, which related nodes to fetch as well */ include?: PreviewInclude | null /** * Filter, which Preview to fetch. */ where: PreviewWhereUniqueInput } /** * Preview findFirst */ export type PreviewFindFirstArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelect | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * Choose, which related nodes to fetch as well */ include?: PreviewInclude | null /** * Filter, which Preview to fetch. */ where?: PreviewWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Previews to fetch. */ orderBy?: PreviewOrderByWithRelationInput | PreviewOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Previews. */ cursor?: PreviewWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Previews 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` Previews. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Previews. */ distinct?: PreviewScalarFieldEnum | PreviewScalarFieldEnum[] } /** * Preview findFirstOrThrow */ export type PreviewFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelect | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * Choose, which related nodes to fetch as well */ include?: PreviewInclude | null /** * Filter, which Preview to fetch. */ where?: PreviewWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Previews to fetch. */ orderBy?: PreviewOrderByWithRelationInput | PreviewOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Previews. */ cursor?: PreviewWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Previews 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` Previews. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Previews. */ distinct?: PreviewScalarFieldEnum | PreviewScalarFieldEnum[] } /** * Preview findMany */ export type PreviewFindManyArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelect | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * Choose, which related nodes to fetch as well */ include?: PreviewInclude | null /** * Filter, which Previews to fetch. */ where?: PreviewWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Previews to fetch. */ orderBy?: PreviewOrderByWithRelationInput | PreviewOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Previews. */ cursor?: PreviewWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Previews 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` Previews. */ skip?: number distinct?: PreviewScalarFieldEnum | PreviewScalarFieldEnum[] } /** * Preview create */ export type PreviewCreateArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelect | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * Choose, which related nodes to fetch as well */ include?: PreviewInclude | null /** * The data needed to create a Preview. */ data: XOR } /** * Preview createMany */ export type PreviewCreateManyArgs = { /** * The data used to create many Previews. */ data: PreviewCreateManyInput | PreviewCreateManyInput[] skipDuplicates?: boolean } /** * Preview createManyAndReturn */ export type PreviewCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelectCreateManyAndReturn | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * The data used to create many Previews. */ data: PreviewCreateManyInput | PreviewCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PreviewIncludeCreateManyAndReturn | null } /** * Preview update */ export type PreviewUpdateArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelect | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * Choose, which related nodes to fetch as well */ include?: PreviewInclude | null /** * The data needed to update a Preview. */ data: XOR /** * Choose, which Preview to update. */ where: PreviewWhereUniqueInput } /** * Preview updateMany */ export type PreviewUpdateManyArgs = { /** * The data used to update Previews. */ data: XOR /** * Filter which Previews to update */ where?: PreviewWhereInput /** * Limit how many Previews to update. */ limit?: number } /** * Preview updateManyAndReturn */ export type PreviewUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelectUpdateManyAndReturn | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * The data used to update Previews. */ data: XOR /** * Filter which Previews to update */ where?: PreviewWhereInput /** * Limit how many Previews to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PreviewIncludeUpdateManyAndReturn | null } /** * Preview upsert */ export type PreviewUpsertArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelect | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * Choose, which related nodes to fetch as well */ include?: PreviewInclude | null /** * The filter to search for the Preview to update in case it exists. */ where: PreviewWhereUniqueInput /** * In case the Preview found by the `where` argument doesn't exist, create a new Preview with this data. */ create: XOR /** * In case the Preview was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Preview delete */ export type PreviewDeleteArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelect | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * Choose, which related nodes to fetch as well */ include?: PreviewInclude | null /** * Filter which Preview to delete. */ where: PreviewWhereUniqueInput } /** * Preview deleteMany */ export type PreviewDeleteManyArgs = { /** * Filter which Previews to delete */ where?: PreviewWhereInput /** * Limit how many Previews to delete. */ limit?: number } /** * Preview.jobs */ export type Preview$jobsArgs = { /** * Select specific fields to fetch from the Job */ select?: JobSelect | null /** * Omit specific fields from the Job */ omit?: JobOmit | null /** * Choose, which related nodes to fetch as well */ include?: JobInclude | null where?: JobWhereInput orderBy?: JobOrderByWithRelationInput | JobOrderByWithRelationInput[] cursor?: JobWhereUniqueInput take?: number skip?: number distinct?: JobScalarFieldEnum | JobScalarFieldEnum[] } /** * Preview without action */ export type PreviewDefaultArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelect | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * Choose, which related nodes to fetch as well */ include?: PreviewInclude | null } /** * Model Job */ export type AggregateJob = { _count: JobCountAggregateOutputType | null _avg: JobAvgAggregateOutputType | null _sum: JobSumAggregateOutputType | null _min: JobMinAggregateOutputType | null _max: JobMaxAggregateOutputType | null } export type JobAvgAggregateOutputType = { id: number | null previewId: number | null } export type JobSumAggregateOutputType = { id: number | null previewId: number | null } export type JobMinAggregateOutputType = { id: number | null previewId: number | null type: $Enums.JobType | null status: $Enums.JobStatus | null error: string | null createdAt: Date | null startedAt: Date | null finishedAt: Date | null } export type JobMaxAggregateOutputType = { id: number | null previewId: number | null type: $Enums.JobType | null status: $Enums.JobStatus | null error: string | null createdAt: Date | null startedAt: Date | null finishedAt: Date | null } export type JobCountAggregateOutputType = { id: number previewId: number type: number status: number payload: number error: number createdAt: number startedAt: number finishedAt: number _all: number } export type JobAvgAggregateInputType = { id?: true previewId?: true } export type JobSumAggregateInputType = { id?: true previewId?: true } export type JobMinAggregateInputType = { id?: true previewId?: true type?: true status?: true error?: true createdAt?: true startedAt?: true finishedAt?: true } export type JobMaxAggregateInputType = { id?: true previewId?: true type?: true status?: true error?: true createdAt?: true startedAt?: true finishedAt?: true } export type JobCountAggregateInputType = { id?: true previewId?: true type?: true status?: true payload?: true error?: true createdAt?: true startedAt?: true finishedAt?: true _all?: true } export type JobAggregateArgs = { /** * Filter which Job to aggregate. */ where?: JobWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Jobs to fetch. */ orderBy?: JobOrderByWithRelationInput | JobOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: JobWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Jobs 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` Jobs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Jobs **/ _count?: true | JobCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: JobAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: JobSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: JobMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: JobMaxAggregateInputType } export type GetJobAggregateType = { [P in keyof T & keyof AggregateJob]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type JobGroupByArgs = { where?: JobWhereInput orderBy?: JobOrderByWithAggregationInput | JobOrderByWithAggregationInput[] by: JobScalarFieldEnum[] | JobScalarFieldEnum having?: JobScalarWhereWithAggregatesInput take?: number skip?: number _count?: JobCountAggregateInputType | true _avg?: JobAvgAggregateInputType _sum?: JobSumAggregateInputType _min?: JobMinAggregateInputType _max?: JobMaxAggregateInputType } export type JobGroupByOutputType = { id: number previewId: number | null type: $Enums.JobType status: $Enums.JobStatus payload: JsonValue error: string | null createdAt: Date startedAt: Date | null finishedAt: Date | null _count: JobCountAggregateOutputType | null _avg: JobAvgAggregateOutputType | null _sum: JobSumAggregateOutputType | null _min: JobMinAggregateOutputType | null _max: JobMaxAggregateOutputType | null } type GetJobGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof JobGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type JobSelect = $Extensions.GetSelect<{ id?: boolean previewId?: boolean type?: boolean status?: boolean payload?: boolean error?: boolean createdAt?: boolean startedAt?: boolean finishedAt?: boolean preview?: boolean | Job$previewArgs }, ExtArgs["result"]["job"]> export type JobSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean previewId?: boolean type?: boolean status?: boolean payload?: boolean error?: boolean createdAt?: boolean startedAt?: boolean finishedAt?: boolean preview?: boolean | Job$previewArgs }, ExtArgs["result"]["job"]> export type JobSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean previewId?: boolean type?: boolean status?: boolean payload?: boolean error?: boolean createdAt?: boolean startedAt?: boolean finishedAt?: boolean preview?: boolean | Job$previewArgs }, ExtArgs["result"]["job"]> export type JobSelectScalar = { id?: boolean previewId?: boolean type?: boolean status?: boolean payload?: boolean error?: boolean createdAt?: boolean startedAt?: boolean finishedAt?: boolean } export type JobOmit = $Extensions.GetOmit<"id" | "previewId" | "type" | "status" | "payload" | "error" | "createdAt" | "startedAt" | "finishedAt", ExtArgs["result"]["job"]> export type JobInclude = { preview?: boolean | Job$previewArgs } export type JobIncludeCreateManyAndReturn = { preview?: boolean | Job$previewArgs } export type JobIncludeUpdateManyAndReturn = { preview?: boolean | Job$previewArgs } export type $JobPayload = { name: "Job" objects: { preview: Prisma.$PreviewPayload | null } scalars: $Extensions.GetPayloadResult<{ id: number previewId: number | null type: $Enums.JobType status: $Enums.JobStatus payload: Prisma.JsonValue error: string | null createdAt: Date startedAt: Date | null finishedAt: Date | null }, ExtArgs["result"]["job"]> composites: {} } type JobGetPayload = $Result.GetResult type JobCountArgs = Omit & { select?: JobCountAggregateInputType | true } export interface JobDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Job'], meta: { name: 'Job' } } /** * Find zero or one Job that matches the filter. * @param {JobFindUniqueArgs} args - Arguments to find a Job * @example * // Get one Job * const job = await prisma.job.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__JobClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Job that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {JobFindUniqueOrThrowArgs} args - Arguments to find a Job * @example * // Get one Job * const job = await prisma.job.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__JobClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Job 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 {JobFindFirstArgs} args - Arguments to find a Job * @example * // Get one Job * const job = await prisma.job.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__JobClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Job 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 {JobFindFirstOrThrowArgs} args - Arguments to find a Job * @example * // Get one Job * const job = await prisma.job.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__JobClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Jobs 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 {JobFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Jobs * const jobs = await prisma.job.findMany() * * // Get first 10 Jobs * const jobs = await prisma.job.findMany({ take: 10 }) * * // Only select the `id` * const jobWithIdOnly = await prisma.job.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Job. * @param {JobCreateArgs} args - Arguments to create a Job. * @example * // Create one Job * const Job = await prisma.job.create({ * data: { * // ... data to create a Job * } * }) * */ create(args: SelectSubset>): Prisma__JobClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Jobs. * @param {JobCreateManyArgs} args - Arguments to create many Jobs. * @example * // Create many Jobs * const job = await prisma.job.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Jobs and returns the data saved in the database. * @param {JobCreateManyAndReturnArgs} args - Arguments to create many Jobs. * @example * // Create many Jobs * const job = await prisma.job.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Jobs and only return the `id` * const jobWithIdOnly = await prisma.job.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?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Job. * @param {JobDeleteArgs} args - Arguments to delete one Job. * @example * // Delete one Job * const Job = await prisma.job.delete({ * where: { * // ... filter to delete one Job * } * }) * */ delete(args: SelectSubset>): Prisma__JobClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Job. * @param {JobUpdateArgs} args - Arguments to update one Job. * @example * // Update one Job * const job = await prisma.job.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__JobClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Jobs. * @param {JobDeleteManyArgs} args - Arguments to filter Jobs to delete. * @example * // Delete a few Jobs * const { count } = await prisma.job.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Jobs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {JobUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Jobs * const job = await prisma.job.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Jobs and returns the data updated in the database. * @param {JobUpdateManyAndReturnArgs} args - Arguments to update many Jobs. * @example * // Update many Jobs * const job = await prisma.job.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Jobs and only return the `id` * const jobWithIdOnly = await prisma.job.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: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Job. * @param {JobUpsertArgs} args - Arguments to update or create a Job. * @example * // Update or create a Job * const job = await prisma.job.upsert({ * create: { * // ... data to create a Job * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Job we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__JobClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Jobs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {JobCountArgs} args - Arguments to filter Jobs to count. * @example * // Count the number of Jobs * const count = await prisma.job.count({ * where: { * // ... the filter for the Jobs we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Job. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {JobAggregateArgs} 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: Subset): Prisma.PrismaPromise> /** * Group by Job. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {JobGroupByArgs} 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 JobGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: JobGroupByArgs['orderBy'] } : { orderBy?: JobGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetJobGroupByPayload : Prisma.PrismaPromise /** * Fields of the Job model */ readonly fields: JobFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Job. * 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__JobClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" preview = {}>(args?: Subset>): Prisma__PreviewClient<$Result.GetResult, 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): $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): $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): $Utils.JsPromise } /** * Fields of the Job model */ interface JobFieldRefs { readonly id: FieldRef<"Job", 'Int'> readonly previewId: FieldRef<"Job", 'Int'> readonly type: FieldRef<"Job", 'JobType'> readonly status: FieldRef<"Job", 'JobStatus'> readonly payload: FieldRef<"Job", 'Json'> readonly error: FieldRef<"Job", 'String'> readonly createdAt: FieldRef<"Job", 'DateTime'> readonly startedAt: FieldRef<"Job", 'DateTime'> readonly finishedAt: FieldRef<"Job", 'DateTime'> } // Custom InputTypes /** * Job findUnique */ export type JobFindUniqueArgs = { /** * Select specific fields to fetch from the Job */ select?: JobSelect | null /** * Omit specific fields from the Job */ omit?: JobOmit | null /** * Choose, which related nodes to fetch as well */ include?: JobInclude | null /** * Filter, which Job to fetch. */ where: JobWhereUniqueInput } /** * Job findUniqueOrThrow */ export type JobFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Job */ select?: JobSelect | null /** * Omit specific fields from the Job */ omit?: JobOmit | null /** * Choose, which related nodes to fetch as well */ include?: JobInclude | null /** * Filter, which Job to fetch. */ where: JobWhereUniqueInput } /** * Job findFirst */ export type JobFindFirstArgs = { /** * Select specific fields to fetch from the Job */ select?: JobSelect | null /** * Omit specific fields from the Job */ omit?: JobOmit | null /** * Choose, which related nodes to fetch as well */ include?: JobInclude | null /** * Filter, which Job to fetch. */ where?: JobWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Jobs to fetch. */ orderBy?: JobOrderByWithRelationInput | JobOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Jobs. */ cursor?: JobWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Jobs 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` Jobs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Jobs. */ distinct?: JobScalarFieldEnum | JobScalarFieldEnum[] } /** * Job findFirstOrThrow */ export type JobFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Job */ select?: JobSelect | null /** * Omit specific fields from the Job */ omit?: JobOmit | null /** * Choose, which related nodes to fetch as well */ include?: JobInclude | null /** * Filter, which Job to fetch. */ where?: JobWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Jobs to fetch. */ orderBy?: JobOrderByWithRelationInput | JobOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Jobs. */ cursor?: JobWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Jobs 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` Jobs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Jobs. */ distinct?: JobScalarFieldEnum | JobScalarFieldEnum[] } /** * Job findMany */ export type JobFindManyArgs = { /** * Select specific fields to fetch from the Job */ select?: JobSelect | null /** * Omit specific fields from the Job */ omit?: JobOmit | null /** * Choose, which related nodes to fetch as well */ include?: JobInclude | null /** * Filter, which Jobs to fetch. */ where?: JobWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Jobs to fetch. */ orderBy?: JobOrderByWithRelationInput | JobOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Jobs. */ cursor?: JobWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Jobs 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` Jobs. */ skip?: number distinct?: JobScalarFieldEnum | JobScalarFieldEnum[] } /** * Job create */ export type JobCreateArgs = { /** * Select specific fields to fetch from the Job */ select?: JobSelect | null /** * Omit specific fields from the Job */ omit?: JobOmit | null /** * Choose, which related nodes to fetch as well */ include?: JobInclude | null /** * The data needed to create a Job. */ data: XOR } /** * Job createMany */ export type JobCreateManyArgs = { /** * The data used to create many Jobs. */ data: JobCreateManyInput | JobCreateManyInput[] skipDuplicates?: boolean } /** * Job createManyAndReturn */ export type JobCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Job */ select?: JobSelectCreateManyAndReturn | null /** * Omit specific fields from the Job */ omit?: JobOmit | null /** * The data used to create many Jobs. */ data: JobCreateManyInput | JobCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: JobIncludeCreateManyAndReturn | null } /** * Job update */ export type JobUpdateArgs = { /** * Select specific fields to fetch from the Job */ select?: JobSelect | null /** * Omit specific fields from the Job */ omit?: JobOmit | null /** * Choose, which related nodes to fetch as well */ include?: JobInclude | null /** * The data needed to update a Job. */ data: XOR /** * Choose, which Job to update. */ where: JobWhereUniqueInput } /** * Job updateMany */ export type JobUpdateManyArgs = { /** * The data used to update Jobs. */ data: XOR /** * Filter which Jobs to update */ where?: JobWhereInput /** * Limit how many Jobs to update. */ limit?: number } /** * Job updateManyAndReturn */ export type JobUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Job */ select?: JobSelectUpdateManyAndReturn | null /** * Omit specific fields from the Job */ omit?: JobOmit | null /** * The data used to update Jobs. */ data: XOR /** * Filter which Jobs to update */ where?: JobWhereInput /** * Limit how many Jobs to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: JobIncludeUpdateManyAndReturn | null } /** * Job upsert */ export type JobUpsertArgs = { /** * Select specific fields to fetch from the Job */ select?: JobSelect | null /** * Omit specific fields from the Job */ omit?: JobOmit | null /** * Choose, which related nodes to fetch as well */ include?: JobInclude | null /** * The filter to search for the Job to update in case it exists. */ where: JobWhereUniqueInput /** * In case the Job found by the `where` argument doesn't exist, create a new Job with this data. */ create: XOR /** * In case the Job was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Job delete */ export type JobDeleteArgs = { /** * Select specific fields to fetch from the Job */ select?: JobSelect | null /** * Omit specific fields from the Job */ omit?: JobOmit | null /** * Choose, which related nodes to fetch as well */ include?: JobInclude | null /** * Filter which Job to delete. */ where: JobWhereUniqueInput } /** * Job deleteMany */ export type JobDeleteManyArgs = { /** * Filter which Jobs to delete */ where?: JobWhereInput /** * Limit how many Jobs to delete. */ limit?: number } /** * Job.preview */ export type Job$previewArgs = { /** * Select specific fields to fetch from the Preview */ select?: PreviewSelect | null /** * Omit specific fields from the Preview */ omit?: PreviewOmit | null /** * Choose, which related nodes to fetch as well */ include?: PreviewInclude | null where?: PreviewWhereInput } /** * Job without action */ export type JobDefaultArgs = { /** * Select specific fields to fetch from the Job */ select?: JobSelect | null /** * Omit specific fields from the Job */ omit?: JobOmit | null /** * Choose, which related nodes to fetch as well */ include?: JobInclude | null } /** * Model WebhookToken */ export type AggregateWebhookToken = { _count: WebhookTokenCountAggregateOutputType | null _avg: WebhookTokenAvgAggregateOutputType | null _sum: WebhookTokenSumAggregateOutputType | null _min: WebhookTokenMinAggregateOutputType | null _max: WebhookTokenMaxAggregateOutputType | null } export type WebhookTokenAvgAggregateOutputType = { id: number | null userId: number | null } export type WebhookTokenSumAggregateOutputType = { id: number | null userId: number | null } export type WebhookTokenMinAggregateOutputType = { id: number | null userId: number | null token: string | null createdAt: Date | null } export type WebhookTokenMaxAggregateOutputType = { id: number | null userId: number | null token: string | null createdAt: Date | null } export type WebhookTokenCountAggregateOutputType = { id: number userId: number token: number createdAt: number _all: number } export type WebhookTokenAvgAggregateInputType = { id?: true userId?: true } export type WebhookTokenSumAggregateInputType = { id?: true userId?: true } export type WebhookTokenMinAggregateInputType = { id?: true userId?: true token?: true createdAt?: true } export type WebhookTokenMaxAggregateInputType = { id?: true userId?: true token?: true createdAt?: true } export type WebhookTokenCountAggregateInputType = { id?: true userId?: true token?: true createdAt?: true _all?: true } export type WebhookTokenAggregateArgs = { /** * Filter which WebhookToken to aggregate. */ where?: WebhookTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WebhookTokens to fetch. */ orderBy?: WebhookTokenOrderByWithRelationInput | WebhookTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: WebhookTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WebhookTokens 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` WebhookTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned WebhookTokens **/ _count?: true | WebhookTokenCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: WebhookTokenAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: WebhookTokenSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: WebhookTokenMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: WebhookTokenMaxAggregateInputType } export type GetWebhookTokenAggregateType = { [P in keyof T & keyof AggregateWebhookToken]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type WebhookTokenGroupByArgs = { where?: WebhookTokenWhereInput orderBy?: WebhookTokenOrderByWithAggregationInput | WebhookTokenOrderByWithAggregationInput[] by: WebhookTokenScalarFieldEnum[] | WebhookTokenScalarFieldEnum having?: WebhookTokenScalarWhereWithAggregatesInput take?: number skip?: number _count?: WebhookTokenCountAggregateInputType | true _avg?: WebhookTokenAvgAggregateInputType _sum?: WebhookTokenSumAggregateInputType _min?: WebhookTokenMinAggregateInputType _max?: WebhookTokenMaxAggregateInputType } export type WebhookTokenGroupByOutputType = { id: number userId: number token: string createdAt: Date _count: WebhookTokenCountAggregateOutputType | null _avg: WebhookTokenAvgAggregateOutputType | null _sum: WebhookTokenSumAggregateOutputType | null _min: WebhookTokenMinAggregateOutputType | null _max: WebhookTokenMaxAggregateOutputType | null } type GetWebhookTokenGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof WebhookTokenGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type WebhookTokenSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean token?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["webhookToken"]> export type WebhookTokenSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean token?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["webhookToken"]> export type WebhookTokenSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean token?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["webhookToken"]> export type WebhookTokenSelectScalar = { id?: boolean userId?: boolean token?: boolean createdAt?: boolean } export type WebhookTokenOmit = $Extensions.GetOmit<"id" | "userId" | "token" | "createdAt", ExtArgs["result"]["webhookToken"]> export type WebhookTokenInclude = { user?: boolean | UserDefaultArgs } export type WebhookTokenIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type WebhookTokenIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $WebhookTokenPayload = { name: "WebhookToken" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number token: string createdAt: Date }, ExtArgs["result"]["webhookToken"]> composites: {} } type WebhookTokenGetPayload = $Result.GetResult type WebhookTokenCountArgs = Omit & { select?: WebhookTokenCountAggregateInputType | true } export interface WebhookTokenDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['WebhookToken'], meta: { name: 'WebhookToken' } } /** * Find zero or one WebhookToken that matches the filter. * @param {WebhookTokenFindUniqueArgs} args - Arguments to find a WebhookToken * @example * // Get one WebhookToken * const webhookToken = await prisma.webhookToken.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__WebhookTokenClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one WebhookToken that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {WebhookTokenFindUniqueOrThrowArgs} args - Arguments to find a WebhookToken * @example * // Get one WebhookToken * const webhookToken = await prisma.webhookToken.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__WebhookTokenClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first WebhookToken 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 {WebhookTokenFindFirstArgs} args - Arguments to find a WebhookToken * @example * // Get one WebhookToken * const webhookToken = await prisma.webhookToken.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__WebhookTokenClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first WebhookToken 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 {WebhookTokenFindFirstOrThrowArgs} args - Arguments to find a WebhookToken * @example * // Get one WebhookToken * const webhookToken = await prisma.webhookToken.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__WebhookTokenClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more WebhookTokens 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 {WebhookTokenFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all WebhookTokens * const webhookTokens = await prisma.webhookToken.findMany() * * // Get first 10 WebhookTokens * const webhookTokens = await prisma.webhookToken.findMany({ take: 10 }) * * // Only select the `id` * const webhookTokenWithIdOnly = await prisma.webhookToken.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a WebhookToken. * @param {WebhookTokenCreateArgs} args - Arguments to create a WebhookToken. * @example * // Create one WebhookToken * const WebhookToken = await prisma.webhookToken.create({ * data: { * // ... data to create a WebhookToken * } * }) * */ create(args: SelectSubset>): Prisma__WebhookTokenClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many WebhookTokens. * @param {WebhookTokenCreateManyArgs} args - Arguments to create many WebhookTokens. * @example * // Create many WebhookTokens * const webhookToken = await prisma.webhookToken.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many WebhookTokens and returns the data saved in the database. * @param {WebhookTokenCreateManyAndReturnArgs} args - Arguments to create many WebhookTokens. * @example * // Create many WebhookTokens * const webhookToken = await prisma.webhookToken.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many WebhookTokens and only return the `id` * const webhookTokenWithIdOnly = await prisma.webhookToken.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?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a WebhookToken. * @param {WebhookTokenDeleteArgs} args - Arguments to delete one WebhookToken. * @example * // Delete one WebhookToken * const WebhookToken = await prisma.webhookToken.delete({ * where: { * // ... filter to delete one WebhookToken * } * }) * */ delete(args: SelectSubset>): Prisma__WebhookTokenClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one WebhookToken. * @param {WebhookTokenUpdateArgs} args - Arguments to update one WebhookToken. * @example * // Update one WebhookToken * const webhookToken = await prisma.webhookToken.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__WebhookTokenClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more WebhookTokens. * @param {WebhookTokenDeleteManyArgs} args - Arguments to filter WebhookTokens to delete. * @example * // Delete a few WebhookTokens * const { count } = await prisma.webhookToken.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more WebhookTokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WebhookTokenUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many WebhookTokens * const webhookToken = await prisma.webhookToken.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more WebhookTokens and returns the data updated in the database. * @param {WebhookTokenUpdateManyAndReturnArgs} args - Arguments to update many WebhookTokens. * @example * // Update many WebhookTokens * const webhookToken = await prisma.webhookToken.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more WebhookTokens and only return the `id` * const webhookTokenWithIdOnly = await prisma.webhookToken.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: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one WebhookToken. * @param {WebhookTokenUpsertArgs} args - Arguments to update or create a WebhookToken. * @example * // Update or create a WebhookToken * const webhookToken = await prisma.webhookToken.upsert({ * create: { * // ... data to create a WebhookToken * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the WebhookToken we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__WebhookTokenClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of WebhookTokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WebhookTokenCountArgs} args - Arguments to filter WebhookTokens to count. * @example * // Count the number of WebhookTokens * const count = await prisma.webhookToken.count({ * where: { * // ... the filter for the WebhookTokens we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a WebhookToken. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WebhookTokenAggregateArgs} 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: Subset): Prisma.PrismaPromise> /** * Group by WebhookToken. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WebhookTokenGroupByArgs} 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 WebhookTokenGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: WebhookTokenGroupByArgs['orderBy'] } : { orderBy?: WebhookTokenGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetWebhookTokenGroupByPayload : Prisma.PrismaPromise /** * Fields of the WebhookToken model */ readonly fields: WebhookTokenFieldRefs; } /** * The delegate class that acts as a "Promise-like" for WebhookToken. * 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__WebhookTokenClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, 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): $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): $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): $Utils.JsPromise } /** * Fields of the WebhookToken model */ interface WebhookTokenFieldRefs { readonly id: FieldRef<"WebhookToken", 'Int'> readonly userId: FieldRef<"WebhookToken", 'Int'> readonly token: FieldRef<"WebhookToken", 'String'> readonly createdAt: FieldRef<"WebhookToken", 'DateTime'> } // Custom InputTypes /** * WebhookToken findUnique */ export type WebhookTokenFindUniqueArgs = { /** * Select specific fields to fetch from the WebhookToken */ select?: WebhookTokenSelect | null /** * Omit specific fields from the WebhookToken */ omit?: WebhookTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebhookTokenInclude | null /** * Filter, which WebhookToken to fetch. */ where: WebhookTokenWhereUniqueInput } /** * WebhookToken findUniqueOrThrow */ export type WebhookTokenFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the WebhookToken */ select?: WebhookTokenSelect | null /** * Omit specific fields from the WebhookToken */ omit?: WebhookTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebhookTokenInclude | null /** * Filter, which WebhookToken to fetch. */ where: WebhookTokenWhereUniqueInput } /** * WebhookToken findFirst */ export type WebhookTokenFindFirstArgs = { /** * Select specific fields to fetch from the WebhookToken */ select?: WebhookTokenSelect | null /** * Omit specific fields from the WebhookToken */ omit?: WebhookTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebhookTokenInclude | null /** * Filter, which WebhookToken to fetch. */ where?: WebhookTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WebhookTokens to fetch. */ orderBy?: WebhookTokenOrderByWithRelationInput | WebhookTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for WebhookTokens. */ cursor?: WebhookTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WebhookTokens 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` WebhookTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of WebhookTokens. */ distinct?: WebhookTokenScalarFieldEnum | WebhookTokenScalarFieldEnum[] } /** * WebhookToken findFirstOrThrow */ export type WebhookTokenFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the WebhookToken */ select?: WebhookTokenSelect | null /** * Omit specific fields from the WebhookToken */ omit?: WebhookTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebhookTokenInclude | null /** * Filter, which WebhookToken to fetch. */ where?: WebhookTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WebhookTokens to fetch. */ orderBy?: WebhookTokenOrderByWithRelationInput | WebhookTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for WebhookTokens. */ cursor?: WebhookTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WebhookTokens 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` WebhookTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of WebhookTokens. */ distinct?: WebhookTokenScalarFieldEnum | WebhookTokenScalarFieldEnum[] } /** * WebhookToken findMany */ export type WebhookTokenFindManyArgs = { /** * Select specific fields to fetch from the WebhookToken */ select?: WebhookTokenSelect | null /** * Omit specific fields from the WebhookToken */ omit?: WebhookTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebhookTokenInclude | null /** * Filter, which WebhookTokens to fetch. */ where?: WebhookTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WebhookTokens to fetch. */ orderBy?: WebhookTokenOrderByWithRelationInput | WebhookTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing WebhookTokens. */ cursor?: WebhookTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WebhookTokens 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` WebhookTokens. */ skip?: number distinct?: WebhookTokenScalarFieldEnum | WebhookTokenScalarFieldEnum[] } /** * WebhookToken create */ export type WebhookTokenCreateArgs = { /** * Select specific fields to fetch from the WebhookToken */ select?: WebhookTokenSelect | null /** * Omit specific fields from the WebhookToken */ omit?: WebhookTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebhookTokenInclude | null /** * The data needed to create a WebhookToken. */ data: XOR } /** * WebhookToken createMany */ export type WebhookTokenCreateManyArgs = { /** * The data used to create many WebhookTokens. */ data: WebhookTokenCreateManyInput | WebhookTokenCreateManyInput[] skipDuplicates?: boolean } /** * WebhookToken createManyAndReturn */ export type WebhookTokenCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the WebhookToken */ select?: WebhookTokenSelectCreateManyAndReturn | null /** * Omit specific fields from the WebhookToken */ omit?: WebhookTokenOmit | null /** * The data used to create many WebhookTokens. */ data: WebhookTokenCreateManyInput | WebhookTokenCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: WebhookTokenIncludeCreateManyAndReturn | null } /** * WebhookToken update */ export type WebhookTokenUpdateArgs = { /** * Select specific fields to fetch from the WebhookToken */ select?: WebhookTokenSelect | null /** * Omit specific fields from the WebhookToken */ omit?: WebhookTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebhookTokenInclude | null /** * The data needed to update a WebhookToken. */ data: XOR /** * Choose, which WebhookToken to update. */ where: WebhookTokenWhereUniqueInput } /** * WebhookToken updateMany */ export type WebhookTokenUpdateManyArgs = { /** * The data used to update WebhookTokens. */ data: XOR /** * Filter which WebhookTokens to update */ where?: WebhookTokenWhereInput /** * Limit how many WebhookTokens to update. */ limit?: number } /** * WebhookToken updateManyAndReturn */ export type WebhookTokenUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the WebhookToken */ select?: WebhookTokenSelectUpdateManyAndReturn | null /** * Omit specific fields from the WebhookToken */ omit?: WebhookTokenOmit | null /** * The data used to update WebhookTokens. */ data: XOR /** * Filter which WebhookTokens to update */ where?: WebhookTokenWhereInput /** * Limit how many WebhookTokens to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: WebhookTokenIncludeUpdateManyAndReturn | null } /** * WebhookToken upsert */ export type WebhookTokenUpsertArgs = { /** * Select specific fields to fetch from the WebhookToken */ select?: WebhookTokenSelect | null /** * Omit specific fields from the WebhookToken */ omit?: WebhookTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebhookTokenInclude | null /** * The filter to search for the WebhookToken to update in case it exists. */ where: WebhookTokenWhereUniqueInput /** * In case the WebhookToken found by the `where` argument doesn't exist, create a new WebhookToken with this data. */ create: XOR /** * In case the WebhookToken was found with the provided `where` argument, update it with this data. */ update: XOR } /** * WebhookToken delete */ export type WebhookTokenDeleteArgs = { /** * Select specific fields to fetch from the WebhookToken */ select?: WebhookTokenSelect | null /** * Omit specific fields from the WebhookToken */ omit?: WebhookTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebhookTokenInclude | null /** * Filter which WebhookToken to delete. */ where: WebhookTokenWhereUniqueInput } /** * WebhookToken deleteMany */ export type WebhookTokenDeleteManyArgs = { /** * Filter which WebhookTokens to delete */ where?: WebhookTokenWhereInput /** * Limit how many WebhookTokens to delete. */ limit?: number } /** * WebhookToken without action */ export type WebhookTokenDefaultArgs = { /** * Select specific fields to fetch from the WebhookToken */ select?: WebhookTokenSelect | null /** * Omit specific fields from the WebhookToken */ omit?: WebhookTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebhookTokenInclude | null } /** * Model NoConfigComment */ export type AggregateNoConfigComment = { _count: NoConfigCommentCountAggregateOutputType | null _avg: NoConfigCommentAvgAggregateOutputType | null _sum: NoConfigCommentSumAggregateOutputType | null _min: NoConfigCommentMinAggregateOutputType | null _max: NoConfigCommentMaxAggregateOutputType | null } export type NoConfigCommentAvgAggregateOutputType = { id: number | null userId: number | null prNumber: number | null } export type NoConfigCommentSumAggregateOutputType = { id: number | null userId: number | null prNumber: number | null } export type NoConfigCommentMinAggregateOutputType = { id: number | null userId: number | null repoOwner: string | null repoName: string | null prNumber: number | null createdAt: Date | null } export type NoConfigCommentMaxAggregateOutputType = { id: number | null userId: number | null repoOwner: string | null repoName: string | null prNumber: number | null createdAt: Date | null } export type NoConfigCommentCountAggregateOutputType = { id: number userId: number repoOwner: number repoName: number prNumber: number createdAt: number _all: number } export type NoConfigCommentAvgAggregateInputType = { id?: true userId?: true prNumber?: true } export type NoConfigCommentSumAggregateInputType = { id?: true userId?: true prNumber?: true } export type NoConfigCommentMinAggregateInputType = { id?: true userId?: true repoOwner?: true repoName?: true prNumber?: true createdAt?: true } export type NoConfigCommentMaxAggregateInputType = { id?: true userId?: true repoOwner?: true repoName?: true prNumber?: true createdAt?: true } export type NoConfigCommentCountAggregateInputType = { id?: true userId?: true repoOwner?: true repoName?: true prNumber?: true createdAt?: true _all?: true } export type NoConfigCommentAggregateArgs = { /** * Filter which NoConfigComment to aggregate. */ where?: NoConfigCommentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NoConfigComments to fetch. */ orderBy?: NoConfigCommentOrderByWithRelationInput | NoConfigCommentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: NoConfigCommentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NoConfigComments 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` NoConfigComments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned NoConfigComments **/ _count?: true | NoConfigCommentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: NoConfigCommentAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: NoConfigCommentSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: NoConfigCommentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: NoConfigCommentMaxAggregateInputType } export type GetNoConfigCommentAggregateType = { [P in keyof T & keyof AggregateNoConfigComment]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type NoConfigCommentGroupByArgs = { where?: NoConfigCommentWhereInput orderBy?: NoConfigCommentOrderByWithAggregationInput | NoConfigCommentOrderByWithAggregationInput[] by: NoConfigCommentScalarFieldEnum[] | NoConfigCommentScalarFieldEnum having?: NoConfigCommentScalarWhereWithAggregatesInput take?: number skip?: number _count?: NoConfigCommentCountAggregateInputType | true _avg?: NoConfigCommentAvgAggregateInputType _sum?: NoConfigCommentSumAggregateInputType _min?: NoConfigCommentMinAggregateInputType _max?: NoConfigCommentMaxAggregateInputType } export type NoConfigCommentGroupByOutputType = { id: number userId: number repoOwner: string repoName: string prNumber: number createdAt: Date _count: NoConfigCommentCountAggregateOutputType | null _avg: NoConfigCommentAvgAggregateOutputType | null _sum: NoConfigCommentSumAggregateOutputType | null _min: NoConfigCommentMinAggregateOutputType | null _max: NoConfigCommentMaxAggregateOutputType | null } type GetNoConfigCommentGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof NoConfigCommentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type NoConfigCommentSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean repoOwner?: boolean repoName?: boolean prNumber?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["noConfigComment"]> export type NoConfigCommentSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean repoOwner?: boolean repoName?: boolean prNumber?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["noConfigComment"]> export type NoConfigCommentSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean repoOwner?: boolean repoName?: boolean prNumber?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["noConfigComment"]> export type NoConfigCommentSelectScalar = { id?: boolean userId?: boolean repoOwner?: boolean repoName?: boolean prNumber?: boolean createdAt?: boolean } export type NoConfigCommentOmit = $Extensions.GetOmit<"id" | "userId" | "repoOwner" | "repoName" | "prNumber" | "createdAt", ExtArgs["result"]["noConfigComment"]> export type NoConfigCommentInclude = { user?: boolean | UserDefaultArgs } export type NoConfigCommentIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type NoConfigCommentIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $NoConfigCommentPayload = { name: "NoConfigComment" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number repoOwner: string repoName: string prNumber: number createdAt: Date }, ExtArgs["result"]["noConfigComment"]> composites: {} } type NoConfigCommentGetPayload = $Result.GetResult type NoConfigCommentCountArgs = Omit & { select?: NoConfigCommentCountAggregateInputType | true } export interface NoConfigCommentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['NoConfigComment'], meta: { name: 'NoConfigComment' } } /** * Find zero or one NoConfigComment that matches the filter. * @param {NoConfigCommentFindUniqueArgs} args - Arguments to find a NoConfigComment * @example * // Get one NoConfigComment * const noConfigComment = await prisma.noConfigComment.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__NoConfigCommentClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one NoConfigComment that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {NoConfigCommentFindUniqueOrThrowArgs} args - Arguments to find a NoConfigComment * @example * // Get one NoConfigComment * const noConfigComment = await prisma.noConfigComment.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__NoConfigCommentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first NoConfigComment 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 {NoConfigCommentFindFirstArgs} args - Arguments to find a NoConfigComment * @example * // Get one NoConfigComment * const noConfigComment = await prisma.noConfigComment.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__NoConfigCommentClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first NoConfigComment 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 {NoConfigCommentFindFirstOrThrowArgs} args - Arguments to find a NoConfigComment * @example * // Get one NoConfigComment * const noConfigComment = await prisma.noConfigComment.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__NoConfigCommentClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more NoConfigComments 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 {NoConfigCommentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all NoConfigComments * const noConfigComments = await prisma.noConfigComment.findMany() * * // Get first 10 NoConfigComments * const noConfigComments = await prisma.noConfigComment.findMany({ take: 10 }) * * // Only select the `id` * const noConfigCommentWithIdOnly = await prisma.noConfigComment.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a NoConfigComment. * @param {NoConfigCommentCreateArgs} args - Arguments to create a NoConfigComment. * @example * // Create one NoConfigComment * const NoConfigComment = await prisma.noConfigComment.create({ * data: { * // ... data to create a NoConfigComment * } * }) * */ create(args: SelectSubset>): Prisma__NoConfigCommentClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many NoConfigComments. * @param {NoConfigCommentCreateManyArgs} args - Arguments to create many NoConfigComments. * @example * // Create many NoConfigComments * const noConfigComment = await prisma.noConfigComment.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many NoConfigComments and returns the data saved in the database. * @param {NoConfigCommentCreateManyAndReturnArgs} args - Arguments to create many NoConfigComments. * @example * // Create many NoConfigComments * const noConfigComment = await prisma.noConfigComment.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many NoConfigComments and only return the `id` * const noConfigCommentWithIdOnly = await prisma.noConfigComment.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?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a NoConfigComment. * @param {NoConfigCommentDeleteArgs} args - Arguments to delete one NoConfigComment. * @example * // Delete one NoConfigComment * const NoConfigComment = await prisma.noConfigComment.delete({ * where: { * // ... filter to delete one NoConfigComment * } * }) * */ delete(args: SelectSubset>): Prisma__NoConfigCommentClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one NoConfigComment. * @param {NoConfigCommentUpdateArgs} args - Arguments to update one NoConfigComment. * @example * // Update one NoConfigComment * const noConfigComment = await prisma.noConfigComment.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__NoConfigCommentClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more NoConfigComments. * @param {NoConfigCommentDeleteManyArgs} args - Arguments to filter NoConfigComments to delete. * @example * // Delete a few NoConfigComments * const { count } = await prisma.noConfigComment.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more NoConfigComments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NoConfigCommentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many NoConfigComments * const noConfigComment = await prisma.noConfigComment.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more NoConfigComments and returns the data updated in the database. * @param {NoConfigCommentUpdateManyAndReturnArgs} args - Arguments to update many NoConfigComments. * @example * // Update many NoConfigComments * const noConfigComment = await prisma.noConfigComment.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more NoConfigComments and only return the `id` * const noConfigCommentWithIdOnly = await prisma.noConfigComment.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: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one NoConfigComment. * @param {NoConfigCommentUpsertArgs} args - Arguments to update or create a NoConfigComment. * @example * // Update or create a NoConfigComment * const noConfigComment = await prisma.noConfigComment.upsert({ * create: { * // ... data to create a NoConfigComment * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the NoConfigComment we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__NoConfigCommentClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of NoConfigComments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NoConfigCommentCountArgs} args - Arguments to filter NoConfigComments to count. * @example * // Count the number of NoConfigComments * const count = await prisma.noConfigComment.count({ * where: { * // ... the filter for the NoConfigComments we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a NoConfigComment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NoConfigCommentAggregateArgs} 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: Subset): Prisma.PrismaPromise> /** * Group by NoConfigComment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NoConfigCommentGroupByArgs} 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 NoConfigCommentGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: NoConfigCommentGroupByArgs['orderBy'] } : { orderBy?: NoConfigCommentGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetNoConfigCommentGroupByPayload : Prisma.PrismaPromise /** * Fields of the NoConfigComment model */ readonly fields: NoConfigCommentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for NoConfigComment. * 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__NoConfigCommentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, 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): $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): $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): $Utils.JsPromise } /** * Fields of the NoConfigComment model */ interface NoConfigCommentFieldRefs { readonly id: FieldRef<"NoConfigComment", 'Int'> readonly userId: FieldRef<"NoConfigComment", 'Int'> readonly repoOwner: FieldRef<"NoConfigComment", 'String'> readonly repoName: FieldRef<"NoConfigComment", 'String'> readonly prNumber: FieldRef<"NoConfigComment", 'Int'> readonly createdAt: FieldRef<"NoConfigComment", 'DateTime'> } // Custom InputTypes /** * NoConfigComment findUnique */ export type NoConfigCommentFindUniqueArgs = { /** * Select specific fields to fetch from the NoConfigComment */ select?: NoConfigCommentSelect | null /** * Omit specific fields from the NoConfigComment */ omit?: NoConfigCommentOmit | null /** * Choose, which related nodes to fetch as well */ include?: NoConfigCommentInclude | null /** * Filter, which NoConfigComment to fetch. */ where: NoConfigCommentWhereUniqueInput } /** * NoConfigComment findUniqueOrThrow */ export type NoConfigCommentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the NoConfigComment */ select?: NoConfigCommentSelect | null /** * Omit specific fields from the NoConfigComment */ omit?: NoConfigCommentOmit | null /** * Choose, which related nodes to fetch as well */ include?: NoConfigCommentInclude | null /** * Filter, which NoConfigComment to fetch. */ where: NoConfigCommentWhereUniqueInput } /** * NoConfigComment findFirst */ export type NoConfigCommentFindFirstArgs = { /** * Select specific fields to fetch from the NoConfigComment */ select?: NoConfigCommentSelect | null /** * Omit specific fields from the NoConfigComment */ omit?: NoConfigCommentOmit | null /** * Choose, which related nodes to fetch as well */ include?: NoConfigCommentInclude | null /** * Filter, which NoConfigComment to fetch. */ where?: NoConfigCommentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NoConfigComments to fetch. */ orderBy?: NoConfigCommentOrderByWithRelationInput | NoConfigCommentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for NoConfigComments. */ cursor?: NoConfigCommentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NoConfigComments 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` NoConfigComments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of NoConfigComments. */ distinct?: NoConfigCommentScalarFieldEnum | NoConfigCommentScalarFieldEnum[] } /** * NoConfigComment findFirstOrThrow */ export type NoConfigCommentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the NoConfigComment */ select?: NoConfigCommentSelect | null /** * Omit specific fields from the NoConfigComment */ omit?: NoConfigCommentOmit | null /** * Choose, which related nodes to fetch as well */ include?: NoConfigCommentInclude | null /** * Filter, which NoConfigComment to fetch. */ where?: NoConfigCommentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NoConfigComments to fetch. */ orderBy?: NoConfigCommentOrderByWithRelationInput | NoConfigCommentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for NoConfigComments. */ cursor?: NoConfigCommentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NoConfigComments 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` NoConfigComments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of NoConfigComments. */ distinct?: NoConfigCommentScalarFieldEnum | NoConfigCommentScalarFieldEnum[] } /** * NoConfigComment findMany */ export type NoConfigCommentFindManyArgs = { /** * Select specific fields to fetch from the NoConfigComment */ select?: NoConfigCommentSelect | null /** * Omit specific fields from the NoConfigComment */ omit?: NoConfigCommentOmit | null /** * Choose, which related nodes to fetch as well */ include?: NoConfigCommentInclude | null /** * Filter, which NoConfigComments to fetch. */ where?: NoConfigCommentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NoConfigComments to fetch. */ orderBy?: NoConfigCommentOrderByWithRelationInput | NoConfigCommentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing NoConfigComments. */ cursor?: NoConfigCommentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NoConfigComments 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` NoConfigComments. */ skip?: number distinct?: NoConfigCommentScalarFieldEnum | NoConfigCommentScalarFieldEnum[] } /** * NoConfigComment create */ export type NoConfigCommentCreateArgs = { /** * Select specific fields to fetch from the NoConfigComment */ select?: NoConfigCommentSelect | null /** * Omit specific fields from the NoConfigComment */ omit?: NoConfigCommentOmit | null /** * Choose, which related nodes to fetch as well */ include?: NoConfigCommentInclude | null /** * The data needed to create a NoConfigComment. */ data: XOR } /** * NoConfigComment createMany */ export type NoConfigCommentCreateManyArgs = { /** * The data used to create many NoConfigComments. */ data: NoConfigCommentCreateManyInput | NoConfigCommentCreateManyInput[] skipDuplicates?: boolean } /** * NoConfigComment createManyAndReturn */ export type NoConfigCommentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the NoConfigComment */ select?: NoConfigCommentSelectCreateManyAndReturn | null /** * Omit specific fields from the NoConfigComment */ omit?: NoConfigCommentOmit | null /** * The data used to create many NoConfigComments. */ data: NoConfigCommentCreateManyInput | NoConfigCommentCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: NoConfigCommentIncludeCreateManyAndReturn | null } /** * NoConfigComment update */ export type NoConfigCommentUpdateArgs = { /** * Select specific fields to fetch from the NoConfigComment */ select?: NoConfigCommentSelect | null /** * Omit specific fields from the NoConfigComment */ omit?: NoConfigCommentOmit | null /** * Choose, which related nodes to fetch as well */ include?: NoConfigCommentInclude | null /** * The data needed to update a NoConfigComment. */ data: XOR /** * Choose, which NoConfigComment to update. */ where: NoConfigCommentWhereUniqueInput } /** * NoConfigComment updateMany */ export type NoConfigCommentUpdateManyArgs = { /** * The data used to update NoConfigComments. */ data: XOR /** * Filter which NoConfigComments to update */ where?: NoConfigCommentWhereInput /** * Limit how many NoConfigComments to update. */ limit?: number } /** * NoConfigComment updateManyAndReturn */ export type NoConfigCommentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the NoConfigComment */ select?: NoConfigCommentSelectUpdateManyAndReturn | null /** * Omit specific fields from the NoConfigComment */ omit?: NoConfigCommentOmit | null /** * The data used to update NoConfigComments. */ data: XOR /** * Filter which NoConfigComments to update */ where?: NoConfigCommentWhereInput /** * Limit how many NoConfigComments to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: NoConfigCommentIncludeUpdateManyAndReturn | null } /** * NoConfigComment upsert */ export type NoConfigCommentUpsertArgs = { /** * Select specific fields to fetch from the NoConfigComment */ select?: NoConfigCommentSelect | null /** * Omit specific fields from the NoConfigComment */ omit?: NoConfigCommentOmit | null /** * Choose, which related nodes to fetch as well */ include?: NoConfigCommentInclude | null /** * The filter to search for the NoConfigComment to update in case it exists. */ where: NoConfigCommentWhereUniqueInput /** * In case the NoConfigComment found by the `where` argument doesn't exist, create a new NoConfigComment with this data. */ create: XOR /** * In case the NoConfigComment was found with the provided `where` argument, update it with this data. */ update: XOR } /** * NoConfigComment delete */ export type NoConfigCommentDeleteArgs = { /** * Select specific fields to fetch from the NoConfigComment */ select?: NoConfigCommentSelect | null /** * Omit specific fields from the NoConfigComment */ omit?: NoConfigCommentOmit | null /** * Choose, which related nodes to fetch as well */ include?: NoConfigCommentInclude | null /** * Filter which NoConfigComment to delete. */ where: NoConfigCommentWhereUniqueInput } /** * NoConfigComment deleteMany */ export type NoConfigCommentDeleteManyArgs = { /** * Filter which NoConfigComments to delete */ where?: NoConfigCommentWhereInput /** * Limit how many NoConfigComments to delete. */ limit?: number } /** * NoConfigComment without action */ export type NoConfigCommentDefaultArgs = { /** * Select specific fields to fetch from the NoConfigComment */ select?: NoConfigCommentSelect | null /** * Omit specific fields from the NoConfigComment */ omit?: NoConfigCommentOmit | null /** * Choose, which related nodes to fetch as well */ include?: NoConfigCommentInclude | null } /** * Model AdminSettings */ export type AggregateAdminSettings = { _count: AdminSettingsCountAggregateOutputType | null _avg: AdminSettingsAvgAggregateOutputType | null _sum: AdminSettingsSumAggregateOutputType | null _min: AdminSettingsMinAggregateOutputType | null _max: AdminSettingsMaxAggregateOutputType | null } export type AdminSettingsAvgAggregateOutputType = { id: number | null maxConcurrentInstancesPerUser: number | null logSizeLimitBytes: number | null previewRetentionDays: number | null webhookRateLimitPerMinute: number | null } export type AdminSettingsSumAggregateOutputType = { id: number | null maxConcurrentInstancesPerUser: number | null logSizeLimitBytes: number | null previewRetentionDays: number | null webhookRateLimitPerMinute: number | null } export type AdminSettingsMinAggregateOutputType = { id: number | null defaultInstanceType: string | null maxConcurrentInstancesPerUser: number | null logSizeLimitBytes: number | null previewRetentionDays: number | null webhookRateLimitPerMinute: number | null contactEmail: string | null } export type AdminSettingsMaxAggregateOutputType = { id: number | null defaultInstanceType: string | null maxConcurrentInstancesPerUser: number | null logSizeLimitBytes: number | null previewRetentionDays: number | null webhookRateLimitPerMinute: number | null contactEmail: string | null } export type AdminSettingsCountAggregateOutputType = { id: number defaultInstanceType: number maxConcurrentInstancesPerUser: number logSizeLimitBytes: number previewRetentionDays: number webhookRateLimitPerMinute: number contactEmail: number _all: number } export type AdminSettingsAvgAggregateInputType = { id?: true maxConcurrentInstancesPerUser?: true logSizeLimitBytes?: true previewRetentionDays?: true webhookRateLimitPerMinute?: true } export type AdminSettingsSumAggregateInputType = { id?: true maxConcurrentInstancesPerUser?: true logSizeLimitBytes?: true previewRetentionDays?: true webhookRateLimitPerMinute?: true } export type AdminSettingsMinAggregateInputType = { id?: true defaultInstanceType?: true maxConcurrentInstancesPerUser?: true logSizeLimitBytes?: true previewRetentionDays?: true webhookRateLimitPerMinute?: true contactEmail?: true } export type AdminSettingsMaxAggregateInputType = { id?: true defaultInstanceType?: true maxConcurrentInstancesPerUser?: true logSizeLimitBytes?: true previewRetentionDays?: true webhookRateLimitPerMinute?: true contactEmail?: true } export type AdminSettingsCountAggregateInputType = { id?: true defaultInstanceType?: true maxConcurrentInstancesPerUser?: true logSizeLimitBytes?: true previewRetentionDays?: true webhookRateLimitPerMinute?: true contactEmail?: true _all?: true } export type AdminSettingsAggregateArgs = { /** * Filter which AdminSettings to aggregate. */ where?: AdminSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminSettings to fetch. */ orderBy?: AdminSettingsOrderByWithRelationInput | AdminSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AdminSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminSettings 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` AdminSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AdminSettings **/ _count?: true | AdminSettingsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AdminSettingsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AdminSettingsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AdminSettingsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AdminSettingsMaxAggregateInputType } export type GetAdminSettingsAggregateType = { [P in keyof T & keyof AggregateAdminSettings]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AdminSettingsGroupByArgs = { where?: AdminSettingsWhereInput orderBy?: AdminSettingsOrderByWithAggregationInput | AdminSettingsOrderByWithAggregationInput[] by: AdminSettingsScalarFieldEnum[] | AdminSettingsScalarFieldEnum having?: AdminSettingsScalarWhereWithAggregatesInput take?: number skip?: number _count?: AdminSettingsCountAggregateInputType | true _avg?: AdminSettingsAvgAggregateInputType _sum?: AdminSettingsSumAggregateInputType _min?: AdminSettingsMinAggregateInputType _max?: AdminSettingsMaxAggregateInputType } export type AdminSettingsGroupByOutputType = { id: number defaultInstanceType: string maxConcurrentInstancesPerUser: number logSizeLimitBytes: number previewRetentionDays: number webhookRateLimitPerMinute: number contactEmail: string _count: AdminSettingsCountAggregateOutputType | null _avg: AdminSettingsAvgAggregateOutputType | null _sum: AdminSettingsSumAggregateOutputType | null _min: AdminSettingsMinAggregateOutputType | null _max: AdminSettingsMaxAggregateOutputType | null } type GetAdminSettingsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AdminSettingsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AdminSettingsSelect = $Extensions.GetSelect<{ id?: boolean defaultInstanceType?: boolean maxConcurrentInstancesPerUser?: boolean logSizeLimitBytes?: boolean previewRetentionDays?: boolean webhookRateLimitPerMinute?: boolean contactEmail?: boolean }, ExtArgs["result"]["adminSettings"]> export type AdminSettingsSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean defaultInstanceType?: boolean maxConcurrentInstancesPerUser?: boolean logSizeLimitBytes?: boolean previewRetentionDays?: boolean webhookRateLimitPerMinute?: boolean contactEmail?: boolean }, ExtArgs["result"]["adminSettings"]> export type AdminSettingsSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean defaultInstanceType?: boolean maxConcurrentInstancesPerUser?: boolean logSizeLimitBytes?: boolean previewRetentionDays?: boolean webhookRateLimitPerMinute?: boolean contactEmail?: boolean }, ExtArgs["result"]["adminSettings"]> export type AdminSettingsSelectScalar = { id?: boolean defaultInstanceType?: boolean maxConcurrentInstancesPerUser?: boolean logSizeLimitBytes?: boolean previewRetentionDays?: boolean webhookRateLimitPerMinute?: boolean contactEmail?: boolean } export type AdminSettingsOmit = $Extensions.GetOmit<"id" | "defaultInstanceType" | "maxConcurrentInstancesPerUser" | "logSizeLimitBytes" | "previewRetentionDays" | "webhookRateLimitPerMinute" | "contactEmail", ExtArgs["result"]["adminSettings"]> export type $AdminSettingsPayload = { name: "AdminSettings" objects: {} scalars: $Extensions.GetPayloadResult<{ id: number defaultInstanceType: string maxConcurrentInstancesPerUser: number logSizeLimitBytes: number previewRetentionDays: number webhookRateLimitPerMinute: number contactEmail: string }, ExtArgs["result"]["adminSettings"]> composites: {} } type AdminSettingsGetPayload = $Result.GetResult type AdminSettingsCountArgs = Omit & { select?: AdminSettingsCountAggregateInputType | true } export interface AdminSettingsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AdminSettings'], meta: { name: 'AdminSettings' } } /** * Find zero or one AdminSettings that matches the filter. * @param {AdminSettingsFindUniqueArgs} args - Arguments to find a AdminSettings * @example * // Get one AdminSettings * const adminSettings = await prisma.adminSettings.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AdminSettingsClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AdminSettings that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AdminSettingsFindUniqueOrThrowArgs} args - Arguments to find a AdminSettings * @example * // Get one AdminSettings * const adminSettings = await prisma.adminSettings.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AdminSettingsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AdminSettings 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 {AdminSettingsFindFirstArgs} args - Arguments to find a AdminSettings * @example * // Get one AdminSettings * const adminSettings = await prisma.adminSettings.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AdminSettingsClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AdminSettings 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 {AdminSettingsFindFirstOrThrowArgs} args - Arguments to find a AdminSettings * @example * // Get one AdminSettings * const adminSettings = await prisma.adminSettings.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AdminSettingsClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AdminSettings 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 {AdminSettingsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AdminSettings * const adminSettings = await prisma.adminSettings.findMany() * * // Get first 10 AdminSettings * const adminSettings = await prisma.adminSettings.findMany({ take: 10 }) * * // Only select the `id` * const adminSettingsWithIdOnly = await prisma.adminSettings.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a AdminSettings. * @param {AdminSettingsCreateArgs} args - Arguments to create a AdminSettings. * @example * // Create one AdminSettings * const AdminSettings = await prisma.adminSettings.create({ * data: { * // ... data to create a AdminSettings * } * }) * */ create(args: SelectSubset>): Prisma__AdminSettingsClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AdminSettings. * @param {AdminSettingsCreateManyArgs} args - Arguments to create many AdminSettings. * @example * // Create many AdminSettings * const adminSettings = await prisma.adminSettings.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many AdminSettings and returns the data saved in the database. * @param {AdminSettingsCreateManyAndReturnArgs} args - Arguments to create many AdminSettings. * @example * // Create many AdminSettings * const adminSettings = await prisma.adminSettings.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AdminSettings and only return the `id` * const adminSettingsWithIdOnly = await prisma.adminSettings.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?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a AdminSettings. * @param {AdminSettingsDeleteArgs} args - Arguments to delete one AdminSettings. * @example * // Delete one AdminSettings * const AdminSettings = await prisma.adminSettings.delete({ * where: { * // ... filter to delete one AdminSettings * } * }) * */ delete(args: SelectSubset>): Prisma__AdminSettingsClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AdminSettings. * @param {AdminSettingsUpdateArgs} args - Arguments to update one AdminSettings. * @example * // Update one AdminSettings * const adminSettings = await prisma.adminSettings.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AdminSettingsClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AdminSettings. * @param {AdminSettingsDeleteManyArgs} args - Arguments to filter AdminSettings to delete. * @example * // Delete a few AdminSettings * const { count } = await prisma.adminSettings.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AdminSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminSettingsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AdminSettings * const adminSettings = await prisma.adminSettings.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AdminSettings and returns the data updated in the database. * @param {AdminSettingsUpdateManyAndReturnArgs} args - Arguments to update many AdminSettings. * @example * // Update many AdminSettings * const adminSettings = await prisma.adminSettings.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AdminSettings and only return the `id` * const adminSettingsWithIdOnly = await prisma.adminSettings.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: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one AdminSettings. * @param {AdminSettingsUpsertArgs} args - Arguments to update or create a AdminSettings. * @example * // Update or create a AdminSettings * const adminSettings = await prisma.adminSettings.upsert({ * create: { * // ... data to create a AdminSettings * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AdminSettings we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AdminSettingsClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AdminSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminSettingsCountArgs} args - Arguments to filter AdminSettings to count. * @example * // Count the number of AdminSettings * const count = await prisma.adminSettings.count({ * where: { * // ... the filter for the AdminSettings we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a AdminSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminSettingsAggregateArgs} 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: Subset): Prisma.PrismaPromise> /** * Group by AdminSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminSettingsGroupByArgs} 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 AdminSettingsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AdminSettingsGroupByArgs['orderBy'] } : { orderBy?: AdminSettingsGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 Keys ? 'orderBy' extends Keys ? ByValid extends 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 True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetAdminSettingsGroupByPayload : Prisma.PrismaPromise /** * Fields of the AdminSettings model */ readonly fields: AdminSettingsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AdminSettings. * 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__AdminSettingsClient 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): $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): $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): $Utils.JsPromise } /** * Fields of the AdminSettings model */ interface AdminSettingsFieldRefs { readonly id: FieldRef<"AdminSettings", 'Int'> readonly defaultInstanceType: FieldRef<"AdminSettings", 'String'> readonly maxConcurrentInstancesPerUser: FieldRef<"AdminSettings", 'Int'> readonly logSizeLimitBytes: FieldRef<"AdminSettings", 'Int'> readonly previewRetentionDays: FieldRef<"AdminSettings", 'Int'> readonly webhookRateLimitPerMinute: FieldRef<"AdminSettings", 'Int'> readonly contactEmail: FieldRef<"AdminSettings", 'String'> } // Custom InputTypes /** * AdminSettings findUnique */ export type AdminSettingsFindUniqueArgs = { /** * Select specific fields to fetch from the AdminSettings */ select?: AdminSettingsSelect | null /** * Omit specific fields from the AdminSettings */ omit?: AdminSettingsOmit | null /** * Filter, which AdminSettings to fetch. */ where: AdminSettingsWhereUniqueInput } /** * AdminSettings findUniqueOrThrow */ export type AdminSettingsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AdminSettings */ select?: AdminSettingsSelect | null /** * Omit specific fields from the AdminSettings */ omit?: AdminSettingsOmit | null /** * Filter, which AdminSettings to fetch. */ where: AdminSettingsWhereUniqueInput } /** * AdminSettings findFirst */ export type AdminSettingsFindFirstArgs = { /** * Select specific fields to fetch from the AdminSettings */ select?: AdminSettingsSelect | null /** * Omit specific fields from the AdminSettings */ omit?: AdminSettingsOmit | null /** * Filter, which AdminSettings to fetch. */ where?: AdminSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminSettings to fetch. */ orderBy?: AdminSettingsOrderByWithRelationInput | AdminSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AdminSettings. */ cursor?: AdminSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminSettings 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` AdminSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminSettings. */ distinct?: AdminSettingsScalarFieldEnum | AdminSettingsScalarFieldEnum[] } /** * AdminSettings findFirstOrThrow */ export type AdminSettingsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AdminSettings */ select?: AdminSettingsSelect | null /** * Omit specific fields from the AdminSettings */ omit?: AdminSettingsOmit | null /** * Filter, which AdminSettings to fetch. */ where?: AdminSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminSettings to fetch. */ orderBy?: AdminSettingsOrderByWithRelationInput | AdminSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AdminSettings. */ cursor?: AdminSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminSettings 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` AdminSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminSettings. */ distinct?: AdminSettingsScalarFieldEnum | AdminSettingsScalarFieldEnum[] } /** * AdminSettings findMany */ export type AdminSettingsFindManyArgs = { /** * Select specific fields to fetch from the AdminSettings */ select?: AdminSettingsSelect | null /** * Omit specific fields from the AdminSettings */ omit?: AdminSettingsOmit | null /** * Filter, which AdminSettings to fetch. */ where?: AdminSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminSettings to fetch. */ orderBy?: AdminSettingsOrderByWithRelationInput | AdminSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AdminSettings. */ cursor?: AdminSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminSettings 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` AdminSettings. */ skip?: number distinct?: AdminSettingsScalarFieldEnum | AdminSettingsScalarFieldEnum[] } /** * AdminSettings create */ export type AdminSettingsCreateArgs = { /** * Select specific fields to fetch from the AdminSettings */ select?: AdminSettingsSelect | null /** * Omit specific fields from the AdminSettings */ omit?: AdminSettingsOmit | null /** * The data needed to create a AdminSettings. */ data?: XOR } /** * AdminSettings createMany */ export type AdminSettingsCreateManyArgs = { /** * The data used to create many AdminSettings. */ data: AdminSettingsCreateManyInput | AdminSettingsCreateManyInput[] skipDuplicates?: boolean } /** * AdminSettings createManyAndReturn */ export type AdminSettingsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AdminSettings */ select?: AdminSettingsSelectCreateManyAndReturn | null /** * Omit specific fields from the AdminSettings */ omit?: AdminSettingsOmit | null /** * The data used to create many AdminSettings. */ data: AdminSettingsCreateManyInput | AdminSettingsCreateManyInput[] skipDuplicates?: boolean } /** * AdminSettings update */ export type AdminSettingsUpdateArgs = { /** * Select specific fields to fetch from the AdminSettings */ select?: AdminSettingsSelect | null /** * Omit specific fields from the AdminSettings */ omit?: AdminSettingsOmit | null /** * The data needed to update a AdminSettings. */ data: XOR /** * Choose, which AdminSettings to update. */ where: AdminSettingsWhereUniqueInput } /** * AdminSettings updateMany */ export type AdminSettingsUpdateManyArgs = { /** * The data used to update AdminSettings. */ data: XOR /** * Filter which AdminSettings to update */ where?: AdminSettingsWhereInput /** * Limit how many AdminSettings to update. */ limit?: number } /** * AdminSettings updateManyAndReturn */ export type AdminSettingsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AdminSettings */ select?: AdminSettingsSelectUpdateManyAndReturn | null /** * Omit specific fields from the AdminSettings */ omit?: AdminSettingsOmit | null /** * The data used to update AdminSettings. */ data: XOR /** * Filter which AdminSettings to update */ where?: AdminSettingsWhereInput /** * Limit how many AdminSettings to update. */ limit?: number } /** * AdminSettings upsert */ export type AdminSettingsUpsertArgs = { /** * Select specific fields to fetch from the AdminSettings */ select?: AdminSettingsSelect | null /** * Omit specific fields from the AdminSettings */ omit?: AdminSettingsOmit | null /** * The filter to search for the AdminSettings to update in case it exists. */ where: AdminSettingsWhereUniqueInput /** * In case the AdminSettings found by the `where` argument doesn't exist, create a new AdminSettings with this data. */ create: XOR /** * In case the AdminSettings was found with the provided `where` argument, update it with this data. */ update: XOR } /** * AdminSettings delete */ export type AdminSettingsDeleteArgs = { /** * Select specific fields to fetch from the AdminSettings */ select?: AdminSettingsSelect | null /** * Omit specific fields from the AdminSettings */ omit?: AdminSettingsOmit | null /** * Filter which AdminSettings to delete. */ where: AdminSettingsWhereUniqueInput } /** * AdminSettings deleteMany */ export type AdminSettingsDeleteManyArgs = { /** * Filter which AdminSettings to delete */ where?: AdminSettingsWhereInput /** * Limit how many AdminSettings to delete. */ limit?: number } /** * AdminSettings without action */ export type AdminSettingsDefaultArgs = { /** * Select specific fields to fetch from the AdminSettings */ select?: AdminSettingsSelect | null /** * Omit specific fields from the AdminSettings */ omit?: AdminSettingsOmit | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const UserScalarFieldEnum: { id: 'id', username: 'username', passwordHash: 'passwordHash', isAdmin: 'isAdmin', isFounder: 'isFounder', createdAt: 'createdAt', updatedAt: 'updatedAt', giteaUsername: 'giteaUsername', giteaPAT: 'giteaPAT', giteaInstanceUrl: 'giteaInstanceUrl', awsAccessKeyId: 'awsAccessKeyId', awsSecretAccessKey: 'awsSecretAccessKey', awsRegion: 'awsRegion' }; export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] export const SessionScalarFieldEnum: { id: 'id', hash: 'hash', userId: 'userId', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] export const RepoConfigScalarFieldEnum: { id: 'id', userId: 'userId', repoOwner: 'repoOwner', repoName: 'repoName', isEnabled: 'isEnabled', giteaWebhookId: 'giteaWebhookId', denyList: 'denyList', instanceType: 'instanceType', inactivityHours: 'inactivityHours', port: 'port', envVars: 'envVars', useDockerCompose: 'useDockerCompose', composeFilePath: 'composeFilePath', aptPackages: 'aptPackages', setupCommands: 'setupCommands', buildCommands: 'buildCommands', postBuildCommands: 'postBuildCommands', runCommand: 'runCommand', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type RepoConfigScalarFieldEnum = (typeof RepoConfigScalarFieldEnum)[keyof typeof RepoConfigScalarFieldEnum] export const PreviewScalarFieldEnum: { id: 'id', repoConfigId: 'repoConfigId', prNumber: 'prNumber', prTitle: 'prTitle', commitSha: 'commitSha', instanceId: 'instanceId', instanceIp: 'instanceIp', port: 'port', status: 'status', logs: 'logs', pid: 'pid', sshPrivateKey: 'sshPrivateKey', sshKeyName: 'sshKeyName', giteaCommentId: 'giteaCommentId', lastActivityAt: 'lastActivityAt', createdAt: 'createdAt', updatedAt: 'updatedAt', stoppedAt: 'stoppedAt' }; export type PreviewScalarFieldEnum = (typeof PreviewScalarFieldEnum)[keyof typeof PreviewScalarFieldEnum] export const JobScalarFieldEnum: { id: 'id', previewId: 'previewId', type: 'type', status: 'status', payload: 'payload', error: 'error', createdAt: 'createdAt', startedAt: 'startedAt', finishedAt: 'finishedAt' }; export type JobScalarFieldEnum = (typeof JobScalarFieldEnum)[keyof typeof JobScalarFieldEnum] export const WebhookTokenScalarFieldEnum: { id: 'id', userId: 'userId', token: 'token', createdAt: 'createdAt' }; export type WebhookTokenScalarFieldEnum = (typeof WebhookTokenScalarFieldEnum)[keyof typeof WebhookTokenScalarFieldEnum] export const NoConfigCommentScalarFieldEnum: { id: 'id', userId: 'userId', repoOwner: 'repoOwner', repoName: 'repoName', prNumber: 'prNumber', createdAt: 'createdAt' }; export type NoConfigCommentScalarFieldEnum = (typeof NoConfigCommentScalarFieldEnum)[keyof typeof NoConfigCommentScalarFieldEnum] export const AdminSettingsScalarFieldEnum: { id: 'id', defaultInstanceType: 'defaultInstanceType', maxConcurrentInstancesPerUser: 'maxConcurrentInstancesPerUser', logSizeLimitBytes: 'logSizeLimitBytes', previewRetentionDays: 'previewRetentionDays', webhookRateLimitPerMinute: 'webhookRateLimitPerMinute', contactEmail: 'contactEmail' }; export type AdminSettingsScalarFieldEnum = (typeof AdminSettingsScalarFieldEnum)[keyof typeof AdminSettingsScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const JsonNullValueInput: { JsonNull: typeof JsonNull }; export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] export const QueryMode: { default: 'default', insensitive: 'insensitive' }; export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] export const NullsOrder: { first: 'first', last: 'last' }; export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] export const JsonNullValueFilter: { DbNull: typeof DbNull, JsonNull: typeof JsonNull, AnyNull: typeof AnyNull }; export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] /** * Field references */ /** * 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 '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 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * 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 '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 '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 'PreviewStatus' */ export type EnumPreviewStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PreviewStatus'> /** * Reference to a field of type 'PreviewStatus[]' */ export type ListEnumPreviewStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PreviewStatus[]'> /** * Reference to a field of type 'JobType' */ export type EnumJobTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'JobType'> /** * Reference to a field of type 'JobType[]' */ export type ListEnumJobTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'JobType[]'> /** * Reference to a field of type 'JobStatus' */ export type EnumJobStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'JobStatus'> /** * Reference to a field of type 'JobStatus[]' */ export type ListEnumJobStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'JobStatus[]'> /** * Deep Input Types */ export type UserWhereInput = { AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] id?: IntFilter<"User"> | number username?: StringFilter<"User"> | string passwordHash?: StringFilter<"User"> | string isAdmin?: BoolFilter<"User"> | boolean isFounder?: BoolFilter<"User"> | boolean createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string giteaUsername?: StringNullableFilter<"User"> | string | null giteaPAT?: StringNullableFilter<"User"> | string | null giteaInstanceUrl?: StringNullableFilter<"User"> | string | null awsAccessKeyId?: StringNullableFilter<"User"> | string | null awsSecretAccessKey?: StringNullableFilter<"User"> | string | null awsRegion?: StringNullableFilter<"User"> | string | null sessions?: SessionListRelationFilter repoConfigs?: RepoConfigListRelationFilter webhookToken?: XOR | null noConfigComments?: NoConfigCommentListRelationFilter } export type UserOrderByWithRelationInput = { id?: SortOrder username?: SortOrder passwordHash?: SortOrder isAdmin?: SortOrder isFounder?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder giteaUsername?: SortOrderInput | SortOrder giteaPAT?: SortOrderInput | SortOrder giteaInstanceUrl?: SortOrderInput | SortOrder awsAccessKeyId?: SortOrderInput | SortOrder awsSecretAccessKey?: SortOrderInput | SortOrder awsRegion?: SortOrderInput | SortOrder sessions?: SessionOrderByRelationAggregateInput repoConfigs?: RepoConfigOrderByRelationAggregateInput webhookToken?: WebhookTokenOrderByWithRelationInput noConfigComments?: NoConfigCommentOrderByRelationAggregateInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ id?: number username?: string AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] passwordHash?: StringFilter<"User"> | string isAdmin?: BoolFilter<"User"> | boolean isFounder?: BoolFilter<"User"> | boolean createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string giteaUsername?: StringNullableFilter<"User"> | string | null giteaPAT?: StringNullableFilter<"User"> | string | null giteaInstanceUrl?: StringNullableFilter<"User"> | string | null awsAccessKeyId?: StringNullableFilter<"User"> | string | null awsSecretAccessKey?: StringNullableFilter<"User"> | string | null awsRegion?: StringNullableFilter<"User"> | string | null sessions?: SessionListRelationFilter repoConfigs?: RepoConfigListRelationFilter webhookToken?: XOR | null noConfigComments?: NoConfigCommentListRelationFilter }, "id" | "username"> export type UserOrderByWithAggregationInput = { id?: SortOrder username?: SortOrder passwordHash?: SortOrder isAdmin?: SortOrder isFounder?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder giteaUsername?: SortOrderInput | SortOrder giteaPAT?: SortOrderInput | SortOrder giteaInstanceUrl?: SortOrderInput | SortOrder awsAccessKeyId?: SortOrderInput | SortOrder awsSecretAccessKey?: SortOrderInput | SortOrder awsRegion?: SortOrderInput | SortOrder _count?: UserCountOrderByAggregateInput _avg?: UserAvgOrderByAggregateInput _max?: UserMaxOrderByAggregateInput _min?: UserMinOrderByAggregateInput _sum?: UserSumOrderByAggregateInput } export type UserScalarWhereWithAggregatesInput = { AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] OR?: UserScalarWhereWithAggregatesInput[] NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"User"> | number username?: StringWithAggregatesFilter<"User"> | string passwordHash?: StringWithAggregatesFilter<"User"> | string isAdmin?: BoolWithAggregatesFilter<"User"> | boolean isFounder?: BoolWithAggregatesFilter<"User"> | boolean createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string giteaUsername?: StringNullableWithAggregatesFilter<"User"> | string | null giteaPAT?: StringNullableWithAggregatesFilter<"User"> | string | null giteaInstanceUrl?: StringNullableWithAggregatesFilter<"User"> | string | null awsAccessKeyId?: StringNullableWithAggregatesFilter<"User"> | string | null awsSecretAccessKey?: StringNullableWithAggregatesFilter<"User"> | string | null awsRegion?: StringNullableWithAggregatesFilter<"User"> | string | null } export type SessionWhereInput = { AND?: SessionWhereInput | SessionWhereInput[] OR?: SessionWhereInput[] NOT?: SessionWhereInput | SessionWhereInput[] id?: IntFilter<"Session"> | number hash?: StringFilter<"Session"> | string userId?: IntFilter<"Session"> | number createdAt?: DateTimeFilter<"Session"> | Date | string updatedAt?: DateTimeFilter<"Session"> | Date | string user?: XOR } export type SessionOrderByWithRelationInput = { id?: SortOrder hash?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder user?: UserOrderByWithRelationInput } export type SessionWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: SessionWhereInput | SessionWhereInput[] OR?: SessionWhereInput[] NOT?: SessionWhereInput | SessionWhereInput[] hash?: StringFilter<"Session"> | string userId?: IntFilter<"Session"> | number createdAt?: DateTimeFilter<"Session"> | Date | string updatedAt?: DateTimeFilter<"Session"> | Date | string user?: XOR }, "id"> export type SessionOrderByWithAggregationInput = { id?: SortOrder hash?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: SessionCountOrderByAggregateInput _avg?: SessionAvgOrderByAggregateInput _max?: SessionMaxOrderByAggregateInput _min?: SessionMinOrderByAggregateInput _sum?: SessionSumOrderByAggregateInput } export type SessionScalarWhereWithAggregatesInput = { AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[] OR?: SessionScalarWhereWithAggregatesInput[] NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Session"> | number hash?: StringWithAggregatesFilter<"Session"> | string userId?: IntWithAggregatesFilter<"Session"> | number createdAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string } export type RepoConfigWhereInput = { AND?: RepoConfigWhereInput | RepoConfigWhereInput[] OR?: RepoConfigWhereInput[] NOT?: RepoConfigWhereInput | RepoConfigWhereInput[] id?: IntFilter<"RepoConfig"> | number userId?: IntFilter<"RepoConfig"> | number repoOwner?: StringFilter<"RepoConfig"> | string repoName?: StringFilter<"RepoConfig"> | string isEnabled?: BoolFilter<"RepoConfig"> | boolean giteaWebhookId?: StringNullableFilter<"RepoConfig"> | string | null denyList?: StringNullableListFilter<"RepoConfig"> instanceType?: StringFilter<"RepoConfig"> | string inactivityHours?: FloatFilter<"RepoConfig"> | number port?: IntFilter<"RepoConfig"> | number envVars?: JsonFilter<"RepoConfig"> useDockerCompose?: BoolFilter<"RepoConfig"> | boolean composeFilePath?: StringNullableFilter<"RepoConfig"> | string | null aptPackages?: StringNullableListFilter<"RepoConfig"> setupCommands?: StringNullableListFilter<"RepoConfig"> buildCommands?: StringNullableListFilter<"RepoConfig"> postBuildCommands?: StringNullableListFilter<"RepoConfig"> runCommand?: StringNullableFilter<"RepoConfig"> | string | null createdAt?: DateTimeFilter<"RepoConfig"> | Date | string updatedAt?: DateTimeFilter<"RepoConfig"> | Date | string user?: XOR previews?: PreviewListRelationFilter } export type RepoConfigOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder repoOwner?: SortOrder repoName?: SortOrder isEnabled?: SortOrder giteaWebhookId?: SortOrderInput | SortOrder denyList?: SortOrder instanceType?: SortOrder inactivityHours?: SortOrder port?: SortOrder envVars?: SortOrder useDockerCompose?: SortOrder composeFilePath?: SortOrderInput | SortOrder aptPackages?: SortOrder setupCommands?: SortOrder buildCommands?: SortOrder postBuildCommands?: SortOrder runCommand?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder user?: UserOrderByWithRelationInput previews?: PreviewOrderByRelationAggregateInput } export type RepoConfigWhereUniqueInput = Prisma.AtLeast<{ id?: number repoOwner_repoName?: RepoConfigRepoOwnerRepoNameCompoundUniqueInput AND?: RepoConfigWhereInput | RepoConfigWhereInput[] OR?: RepoConfigWhereInput[] NOT?: RepoConfigWhereInput | RepoConfigWhereInput[] userId?: IntFilter<"RepoConfig"> | number repoOwner?: StringFilter<"RepoConfig"> | string repoName?: StringFilter<"RepoConfig"> | string isEnabled?: BoolFilter<"RepoConfig"> | boolean giteaWebhookId?: StringNullableFilter<"RepoConfig"> | string | null denyList?: StringNullableListFilter<"RepoConfig"> instanceType?: StringFilter<"RepoConfig"> | string inactivityHours?: FloatFilter<"RepoConfig"> | number port?: IntFilter<"RepoConfig"> | number envVars?: JsonFilter<"RepoConfig"> useDockerCompose?: BoolFilter<"RepoConfig"> | boolean composeFilePath?: StringNullableFilter<"RepoConfig"> | string | null aptPackages?: StringNullableListFilter<"RepoConfig"> setupCommands?: StringNullableListFilter<"RepoConfig"> buildCommands?: StringNullableListFilter<"RepoConfig"> postBuildCommands?: StringNullableListFilter<"RepoConfig"> runCommand?: StringNullableFilter<"RepoConfig"> | string | null createdAt?: DateTimeFilter<"RepoConfig"> | Date | string updatedAt?: DateTimeFilter<"RepoConfig"> | Date | string user?: XOR previews?: PreviewListRelationFilter }, "id" | "repoOwner_repoName"> export type RepoConfigOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder repoOwner?: SortOrder repoName?: SortOrder isEnabled?: SortOrder giteaWebhookId?: SortOrderInput | SortOrder denyList?: SortOrder instanceType?: SortOrder inactivityHours?: SortOrder port?: SortOrder envVars?: SortOrder useDockerCompose?: SortOrder composeFilePath?: SortOrderInput | SortOrder aptPackages?: SortOrder setupCommands?: SortOrder buildCommands?: SortOrder postBuildCommands?: SortOrder runCommand?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: RepoConfigCountOrderByAggregateInput _avg?: RepoConfigAvgOrderByAggregateInput _max?: RepoConfigMaxOrderByAggregateInput _min?: RepoConfigMinOrderByAggregateInput _sum?: RepoConfigSumOrderByAggregateInput } export type RepoConfigScalarWhereWithAggregatesInput = { AND?: RepoConfigScalarWhereWithAggregatesInput | RepoConfigScalarWhereWithAggregatesInput[] OR?: RepoConfigScalarWhereWithAggregatesInput[] NOT?: RepoConfigScalarWhereWithAggregatesInput | RepoConfigScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"RepoConfig"> | number userId?: IntWithAggregatesFilter<"RepoConfig"> | number repoOwner?: StringWithAggregatesFilter<"RepoConfig"> | string repoName?: StringWithAggregatesFilter<"RepoConfig"> | string isEnabled?: BoolWithAggregatesFilter<"RepoConfig"> | boolean giteaWebhookId?: StringNullableWithAggregatesFilter<"RepoConfig"> | string | null denyList?: StringNullableListFilter<"RepoConfig"> instanceType?: StringWithAggregatesFilter<"RepoConfig"> | string inactivityHours?: FloatWithAggregatesFilter<"RepoConfig"> | number port?: IntWithAggregatesFilter<"RepoConfig"> | number envVars?: JsonWithAggregatesFilter<"RepoConfig"> useDockerCompose?: BoolWithAggregatesFilter<"RepoConfig"> | boolean composeFilePath?: StringNullableWithAggregatesFilter<"RepoConfig"> | string | null aptPackages?: StringNullableListFilter<"RepoConfig"> setupCommands?: StringNullableListFilter<"RepoConfig"> buildCommands?: StringNullableListFilter<"RepoConfig"> postBuildCommands?: StringNullableListFilter<"RepoConfig"> runCommand?: StringNullableWithAggregatesFilter<"RepoConfig"> | string | null createdAt?: DateTimeWithAggregatesFilter<"RepoConfig"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"RepoConfig"> | Date | string } export type PreviewWhereInput = { AND?: PreviewWhereInput | PreviewWhereInput[] OR?: PreviewWhereInput[] NOT?: PreviewWhereInput | PreviewWhereInput[] id?: IntFilter<"Preview"> | number repoConfigId?: IntFilter<"Preview"> | number prNumber?: IntFilter<"Preview"> | number prTitle?: StringFilter<"Preview"> | string commitSha?: StringFilter<"Preview"> | string instanceId?: StringNullableFilter<"Preview"> | string | null instanceIp?: StringNullableFilter<"Preview"> | string | null port?: IntFilter<"Preview"> | number status?: EnumPreviewStatusFilter<"Preview"> | $Enums.PreviewStatus logs?: StringFilter<"Preview"> | string pid?: IntNullableFilter<"Preview"> | number | null sshPrivateKey?: StringNullableFilter<"Preview"> | string | null sshKeyName?: StringNullableFilter<"Preview"> | string | null giteaCommentId?: IntNullableFilter<"Preview"> | number | null lastActivityAt?: DateTimeFilter<"Preview"> | Date | string createdAt?: DateTimeFilter<"Preview"> | Date | string updatedAt?: DateTimeFilter<"Preview"> | Date | string stoppedAt?: DateTimeNullableFilter<"Preview"> | Date | string | null repoConfig?: XOR jobs?: JobListRelationFilter } export type PreviewOrderByWithRelationInput = { id?: SortOrder repoConfigId?: SortOrder prNumber?: SortOrder prTitle?: SortOrder commitSha?: SortOrder instanceId?: SortOrderInput | SortOrder instanceIp?: SortOrderInput | SortOrder port?: SortOrder status?: SortOrder logs?: SortOrder pid?: SortOrderInput | SortOrder sshPrivateKey?: SortOrderInput | SortOrder sshKeyName?: SortOrderInput | SortOrder giteaCommentId?: SortOrderInput | SortOrder lastActivityAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder stoppedAt?: SortOrderInput | SortOrder repoConfig?: RepoConfigOrderByWithRelationInput jobs?: JobOrderByRelationAggregateInput } export type PreviewWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: PreviewWhereInput | PreviewWhereInput[] OR?: PreviewWhereInput[] NOT?: PreviewWhereInput | PreviewWhereInput[] repoConfigId?: IntFilter<"Preview"> | number prNumber?: IntFilter<"Preview"> | number prTitle?: StringFilter<"Preview"> | string commitSha?: StringFilter<"Preview"> | string instanceId?: StringNullableFilter<"Preview"> | string | null instanceIp?: StringNullableFilter<"Preview"> | string | null port?: IntFilter<"Preview"> | number status?: EnumPreviewStatusFilter<"Preview"> | $Enums.PreviewStatus logs?: StringFilter<"Preview"> | string pid?: IntNullableFilter<"Preview"> | number | null sshPrivateKey?: StringNullableFilter<"Preview"> | string | null sshKeyName?: StringNullableFilter<"Preview"> | string | null giteaCommentId?: IntNullableFilter<"Preview"> | number | null lastActivityAt?: DateTimeFilter<"Preview"> | Date | string createdAt?: DateTimeFilter<"Preview"> | Date | string updatedAt?: DateTimeFilter<"Preview"> | Date | string stoppedAt?: DateTimeNullableFilter<"Preview"> | Date | string | null repoConfig?: XOR jobs?: JobListRelationFilter }, "id"> export type PreviewOrderByWithAggregationInput = { id?: SortOrder repoConfigId?: SortOrder prNumber?: SortOrder prTitle?: SortOrder commitSha?: SortOrder instanceId?: SortOrderInput | SortOrder instanceIp?: SortOrderInput | SortOrder port?: SortOrder status?: SortOrder logs?: SortOrder pid?: SortOrderInput | SortOrder sshPrivateKey?: SortOrderInput | SortOrder sshKeyName?: SortOrderInput | SortOrder giteaCommentId?: SortOrderInput | SortOrder lastActivityAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder stoppedAt?: SortOrderInput | SortOrder _count?: PreviewCountOrderByAggregateInput _avg?: PreviewAvgOrderByAggregateInput _max?: PreviewMaxOrderByAggregateInput _min?: PreviewMinOrderByAggregateInput _sum?: PreviewSumOrderByAggregateInput } export type PreviewScalarWhereWithAggregatesInput = { AND?: PreviewScalarWhereWithAggregatesInput | PreviewScalarWhereWithAggregatesInput[] OR?: PreviewScalarWhereWithAggregatesInput[] NOT?: PreviewScalarWhereWithAggregatesInput | PreviewScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Preview"> | number repoConfigId?: IntWithAggregatesFilter<"Preview"> | number prNumber?: IntWithAggregatesFilter<"Preview"> | number prTitle?: StringWithAggregatesFilter<"Preview"> | string commitSha?: StringWithAggregatesFilter<"Preview"> | string instanceId?: StringNullableWithAggregatesFilter<"Preview"> | string | null instanceIp?: StringNullableWithAggregatesFilter<"Preview"> | string | null port?: IntWithAggregatesFilter<"Preview"> | number status?: EnumPreviewStatusWithAggregatesFilter<"Preview"> | $Enums.PreviewStatus logs?: StringWithAggregatesFilter<"Preview"> | string pid?: IntNullableWithAggregatesFilter<"Preview"> | number | null sshPrivateKey?: StringNullableWithAggregatesFilter<"Preview"> | string | null sshKeyName?: StringNullableWithAggregatesFilter<"Preview"> | string | null giteaCommentId?: IntNullableWithAggregatesFilter<"Preview"> | number | null lastActivityAt?: DateTimeWithAggregatesFilter<"Preview"> | Date | string createdAt?: DateTimeWithAggregatesFilter<"Preview"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Preview"> | Date | string stoppedAt?: DateTimeNullableWithAggregatesFilter<"Preview"> | Date | string | null } export type JobWhereInput = { AND?: JobWhereInput | JobWhereInput[] OR?: JobWhereInput[] NOT?: JobWhereInput | JobWhereInput[] id?: IntFilter<"Job"> | number previewId?: IntNullableFilter<"Job"> | number | null type?: EnumJobTypeFilter<"Job"> | $Enums.JobType status?: EnumJobStatusFilter<"Job"> | $Enums.JobStatus payload?: JsonFilter<"Job"> error?: StringNullableFilter<"Job"> | string | null createdAt?: DateTimeFilter<"Job"> | Date | string startedAt?: DateTimeNullableFilter<"Job"> | Date | string | null finishedAt?: DateTimeNullableFilter<"Job"> | Date | string | null preview?: XOR | null } export type JobOrderByWithRelationInput = { id?: SortOrder previewId?: SortOrderInput | SortOrder type?: SortOrder status?: SortOrder payload?: SortOrder error?: SortOrderInput | SortOrder createdAt?: SortOrder startedAt?: SortOrderInput | SortOrder finishedAt?: SortOrderInput | SortOrder preview?: PreviewOrderByWithRelationInput } export type JobWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: JobWhereInput | JobWhereInput[] OR?: JobWhereInput[] NOT?: JobWhereInput | JobWhereInput[] previewId?: IntNullableFilter<"Job"> | number | null type?: EnumJobTypeFilter<"Job"> | $Enums.JobType status?: EnumJobStatusFilter<"Job"> | $Enums.JobStatus payload?: JsonFilter<"Job"> error?: StringNullableFilter<"Job"> | string | null createdAt?: DateTimeFilter<"Job"> | Date | string startedAt?: DateTimeNullableFilter<"Job"> | Date | string | null finishedAt?: DateTimeNullableFilter<"Job"> | Date | string | null preview?: XOR | null }, "id"> export type JobOrderByWithAggregationInput = { id?: SortOrder previewId?: SortOrderInput | SortOrder type?: SortOrder status?: SortOrder payload?: SortOrder error?: SortOrderInput | SortOrder createdAt?: SortOrder startedAt?: SortOrderInput | SortOrder finishedAt?: SortOrderInput | SortOrder _count?: JobCountOrderByAggregateInput _avg?: JobAvgOrderByAggregateInput _max?: JobMaxOrderByAggregateInput _min?: JobMinOrderByAggregateInput _sum?: JobSumOrderByAggregateInput } export type JobScalarWhereWithAggregatesInput = { AND?: JobScalarWhereWithAggregatesInput | JobScalarWhereWithAggregatesInput[] OR?: JobScalarWhereWithAggregatesInput[] NOT?: JobScalarWhereWithAggregatesInput | JobScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Job"> | number previewId?: IntNullableWithAggregatesFilter<"Job"> | number | null type?: EnumJobTypeWithAggregatesFilter<"Job"> | $Enums.JobType status?: EnumJobStatusWithAggregatesFilter<"Job"> | $Enums.JobStatus payload?: JsonWithAggregatesFilter<"Job"> error?: StringNullableWithAggregatesFilter<"Job"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Job"> | Date | string startedAt?: DateTimeNullableWithAggregatesFilter<"Job"> | Date | string | null finishedAt?: DateTimeNullableWithAggregatesFilter<"Job"> | Date | string | null } export type WebhookTokenWhereInput = { AND?: WebhookTokenWhereInput | WebhookTokenWhereInput[] OR?: WebhookTokenWhereInput[] NOT?: WebhookTokenWhereInput | WebhookTokenWhereInput[] id?: IntFilter<"WebhookToken"> | number userId?: IntFilter<"WebhookToken"> | number token?: StringFilter<"WebhookToken"> | string createdAt?: DateTimeFilter<"WebhookToken"> | Date | string user?: XOR } export type WebhookTokenOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder token?: SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput } export type WebhookTokenWhereUniqueInput = Prisma.AtLeast<{ id?: number userId?: number AND?: WebhookTokenWhereInput | WebhookTokenWhereInput[] OR?: WebhookTokenWhereInput[] NOT?: WebhookTokenWhereInput | WebhookTokenWhereInput[] token?: StringFilter<"WebhookToken"> | string createdAt?: DateTimeFilter<"WebhookToken"> | Date | string user?: XOR }, "id" | "userId"> export type WebhookTokenOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder token?: SortOrder createdAt?: SortOrder _count?: WebhookTokenCountOrderByAggregateInput _avg?: WebhookTokenAvgOrderByAggregateInput _max?: WebhookTokenMaxOrderByAggregateInput _min?: WebhookTokenMinOrderByAggregateInput _sum?: WebhookTokenSumOrderByAggregateInput } export type WebhookTokenScalarWhereWithAggregatesInput = { AND?: WebhookTokenScalarWhereWithAggregatesInput | WebhookTokenScalarWhereWithAggregatesInput[] OR?: WebhookTokenScalarWhereWithAggregatesInput[] NOT?: WebhookTokenScalarWhereWithAggregatesInput | WebhookTokenScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"WebhookToken"> | number userId?: IntWithAggregatesFilter<"WebhookToken"> | number token?: StringWithAggregatesFilter<"WebhookToken"> | string createdAt?: DateTimeWithAggregatesFilter<"WebhookToken"> | Date | string } export type NoConfigCommentWhereInput = { AND?: NoConfigCommentWhereInput | NoConfigCommentWhereInput[] OR?: NoConfigCommentWhereInput[] NOT?: NoConfigCommentWhereInput | NoConfigCommentWhereInput[] id?: IntFilter<"NoConfigComment"> | number userId?: IntFilter<"NoConfigComment"> | number repoOwner?: StringFilter<"NoConfigComment"> | string repoName?: StringFilter<"NoConfigComment"> | string prNumber?: IntFilter<"NoConfigComment"> | number createdAt?: DateTimeFilter<"NoConfigComment"> | Date | string user?: XOR } export type NoConfigCommentOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder repoOwner?: SortOrder repoName?: SortOrder prNumber?: SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput } export type NoConfigCommentWhereUniqueInput = Prisma.AtLeast<{ id?: number userId_repoOwner_repoName_prNumber?: NoConfigCommentUserIdRepoOwnerRepoNamePrNumberCompoundUniqueInput AND?: NoConfigCommentWhereInput | NoConfigCommentWhereInput[] OR?: NoConfigCommentWhereInput[] NOT?: NoConfigCommentWhereInput | NoConfigCommentWhereInput[] userId?: IntFilter<"NoConfigComment"> | number repoOwner?: StringFilter<"NoConfigComment"> | string repoName?: StringFilter<"NoConfigComment"> | string prNumber?: IntFilter<"NoConfigComment"> | number createdAt?: DateTimeFilter<"NoConfigComment"> | Date | string user?: XOR }, "id" | "userId_repoOwner_repoName_prNumber"> export type NoConfigCommentOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder repoOwner?: SortOrder repoName?: SortOrder prNumber?: SortOrder createdAt?: SortOrder _count?: NoConfigCommentCountOrderByAggregateInput _avg?: NoConfigCommentAvgOrderByAggregateInput _max?: NoConfigCommentMaxOrderByAggregateInput _min?: NoConfigCommentMinOrderByAggregateInput _sum?: NoConfigCommentSumOrderByAggregateInput } export type NoConfigCommentScalarWhereWithAggregatesInput = { AND?: NoConfigCommentScalarWhereWithAggregatesInput | NoConfigCommentScalarWhereWithAggregatesInput[] OR?: NoConfigCommentScalarWhereWithAggregatesInput[] NOT?: NoConfigCommentScalarWhereWithAggregatesInput | NoConfigCommentScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"NoConfigComment"> | number userId?: IntWithAggregatesFilter<"NoConfigComment"> | number repoOwner?: StringWithAggregatesFilter<"NoConfigComment"> | string repoName?: StringWithAggregatesFilter<"NoConfigComment"> | string prNumber?: IntWithAggregatesFilter<"NoConfigComment"> | number createdAt?: DateTimeWithAggregatesFilter<"NoConfigComment"> | Date | string } export type AdminSettingsWhereInput = { AND?: AdminSettingsWhereInput | AdminSettingsWhereInput[] OR?: AdminSettingsWhereInput[] NOT?: AdminSettingsWhereInput | AdminSettingsWhereInput[] id?: IntFilter<"AdminSettings"> | number defaultInstanceType?: StringFilter<"AdminSettings"> | string maxConcurrentInstancesPerUser?: IntFilter<"AdminSettings"> | number logSizeLimitBytes?: IntFilter<"AdminSettings"> | number previewRetentionDays?: IntFilter<"AdminSettings"> | number webhookRateLimitPerMinute?: IntFilter<"AdminSettings"> | number contactEmail?: StringFilter<"AdminSettings"> | string } export type AdminSettingsOrderByWithRelationInput = { id?: SortOrder defaultInstanceType?: SortOrder maxConcurrentInstancesPerUser?: SortOrder logSizeLimitBytes?: SortOrder previewRetentionDays?: SortOrder webhookRateLimitPerMinute?: SortOrder contactEmail?: SortOrder } export type AdminSettingsWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: AdminSettingsWhereInput | AdminSettingsWhereInput[] OR?: AdminSettingsWhereInput[] NOT?: AdminSettingsWhereInput | AdminSettingsWhereInput[] defaultInstanceType?: StringFilter<"AdminSettings"> | string maxConcurrentInstancesPerUser?: IntFilter<"AdminSettings"> | number logSizeLimitBytes?: IntFilter<"AdminSettings"> | number previewRetentionDays?: IntFilter<"AdminSettings"> | number webhookRateLimitPerMinute?: IntFilter<"AdminSettings"> | number contactEmail?: StringFilter<"AdminSettings"> | string }, "id"> export type AdminSettingsOrderByWithAggregationInput = { id?: SortOrder defaultInstanceType?: SortOrder maxConcurrentInstancesPerUser?: SortOrder logSizeLimitBytes?: SortOrder previewRetentionDays?: SortOrder webhookRateLimitPerMinute?: SortOrder contactEmail?: SortOrder _count?: AdminSettingsCountOrderByAggregateInput _avg?: AdminSettingsAvgOrderByAggregateInput _max?: AdminSettingsMaxOrderByAggregateInput _min?: AdminSettingsMinOrderByAggregateInput _sum?: AdminSettingsSumOrderByAggregateInput } export type AdminSettingsScalarWhereWithAggregatesInput = { AND?: AdminSettingsScalarWhereWithAggregatesInput | AdminSettingsScalarWhereWithAggregatesInput[] OR?: AdminSettingsScalarWhereWithAggregatesInput[] NOT?: AdminSettingsScalarWhereWithAggregatesInput | AdminSettingsScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"AdminSettings"> | number defaultInstanceType?: StringWithAggregatesFilter<"AdminSettings"> | string maxConcurrentInstancesPerUser?: IntWithAggregatesFilter<"AdminSettings"> | number logSizeLimitBytes?: IntWithAggregatesFilter<"AdminSettings"> | number previewRetentionDays?: IntWithAggregatesFilter<"AdminSettings"> | number webhookRateLimitPerMinute?: IntWithAggregatesFilter<"AdminSettings"> | number contactEmail?: StringWithAggregatesFilter<"AdminSettings"> | string } export type UserCreateInput = { username: string passwordHash: string isAdmin?: boolean isFounder?: boolean createdAt?: Date | string updatedAt?: Date | string giteaUsername?: string | null giteaPAT?: string | null giteaInstanceUrl?: string | null awsAccessKeyId?: string | null awsSecretAccessKey?: string | null awsRegion?: string | null sessions?: SessionCreateNestedManyWithoutUserInput repoConfigs?: RepoConfigCreateNestedManyWithoutUserInput webhookToken?: WebhookTokenCreateNestedOneWithoutUserInput noConfigComments?: NoConfigCommentCreateNestedManyWithoutUserInput } export type UserUncheckedCreateInput = { id?: number username: string passwordHash: string isAdmin?: boolean isFounder?: boolean createdAt?: Date | string updatedAt?: Date | string giteaUsername?: string | null giteaPAT?: string | null giteaInstanceUrl?: string | null awsAccessKeyId?: string | null awsSecretAccessKey?: string | null awsRegion?: string | null sessions?: SessionUncheckedCreateNestedManyWithoutUserInput repoConfigs?: RepoConfigUncheckedCreateNestedManyWithoutUserInput webhookToken?: WebhookTokenUncheckedCreateNestedOneWithoutUserInput noConfigComments?: NoConfigCommentUncheckedCreateNestedManyWithoutUserInput } export type UserUpdateInput = { username?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string isAdmin?: BoolFieldUpdateOperationsInput | boolean isFounder?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null awsRegion?: NullableStringFieldUpdateOperationsInput | string | null sessions?: SessionUpdateManyWithoutUserNestedInput repoConfigs?: RepoConfigUpdateManyWithoutUserNestedInput webhookToken?: WebhookTokenUpdateOneWithoutUserNestedInput noConfigComments?: NoConfigCommentUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string isAdmin?: BoolFieldUpdateOperationsInput | boolean isFounder?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null awsRegion?: NullableStringFieldUpdateOperationsInput | string | null sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput repoConfigs?: RepoConfigUncheckedUpdateManyWithoutUserNestedInput webhookToken?: WebhookTokenUncheckedUpdateOneWithoutUserNestedInput noConfigComments?: NoConfigCommentUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateManyInput = { id?: number username: string passwordHash: string isAdmin?: boolean isFounder?: boolean createdAt?: Date | string updatedAt?: Date | string giteaUsername?: string | null giteaPAT?: string | null giteaInstanceUrl?: string | null awsAccessKeyId?: string | null awsSecretAccessKey?: string | null awsRegion?: string | null } export type UserUpdateManyMutationInput = { username?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string isAdmin?: BoolFieldUpdateOperationsInput | boolean isFounder?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null awsRegion?: NullableStringFieldUpdateOperationsInput | string | null } export type UserUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string isAdmin?: BoolFieldUpdateOperationsInput | boolean isFounder?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null awsRegion?: NullableStringFieldUpdateOperationsInput | string | null } export type SessionCreateInput = { hash: string createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutSessionsInput } export type SessionUncheckedCreateInput = { id?: number hash: string userId: number createdAt?: Date | string updatedAt?: Date | string } export type SessionUpdateInput = { hash?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutSessionsNestedInput } export type SessionUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number hash?: StringFieldUpdateOperationsInput | string userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionCreateManyInput = { id?: number hash: string userId: number createdAt?: Date | string updatedAt?: Date | string } export type SessionUpdateManyMutationInput = { hash?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number hash?: StringFieldUpdateOperationsInput | string userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type RepoConfigCreateInput = { repoOwner: string repoName: string isEnabled?: boolean giteaWebhookId?: string | null denyList?: RepoConfigCreatedenyListInput | string[] instanceType?: string inactivityHours?: number port?: number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: boolean composeFilePath?: string | null aptPackages?: RepoConfigCreateaptPackagesInput | string[] setupCommands?: RepoConfigCreatesetupCommandsInput | string[] buildCommands?: RepoConfigCreatebuildCommandsInput | string[] postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[] runCommand?: string | null createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutRepoConfigsInput previews?: PreviewCreateNestedManyWithoutRepoConfigInput } export type RepoConfigUncheckedCreateInput = { id?: number userId: number repoOwner: string repoName: string isEnabled?: boolean giteaWebhookId?: string | null denyList?: RepoConfigCreatedenyListInput | string[] instanceType?: string inactivityHours?: number port?: number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: boolean composeFilePath?: string | null aptPackages?: RepoConfigCreateaptPackagesInput | string[] setupCommands?: RepoConfigCreatesetupCommandsInput | string[] buildCommands?: RepoConfigCreatebuildCommandsInput | string[] postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[] runCommand?: string | null createdAt?: Date | string updatedAt?: Date | string previews?: PreviewUncheckedCreateNestedManyWithoutRepoConfigInput } export type RepoConfigUpdateInput = { repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string isEnabled?: BoolFieldUpdateOperationsInput | boolean giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null denyList?: RepoConfigUpdatedenyListInput | string[] instanceType?: StringFieldUpdateOperationsInput | string inactivityHours?: FloatFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: BoolFieldUpdateOperationsInput | boolean composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null aptPackages?: RepoConfigUpdateaptPackagesInput | string[] setupCommands?: RepoConfigUpdatesetupCommandsInput | string[] buildCommands?: RepoConfigUpdatebuildCommandsInput | string[] postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[] runCommand?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutRepoConfigsNestedInput previews?: PreviewUpdateManyWithoutRepoConfigNestedInput } export type RepoConfigUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string isEnabled?: BoolFieldUpdateOperationsInput | boolean giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null denyList?: RepoConfigUpdatedenyListInput | string[] instanceType?: StringFieldUpdateOperationsInput | string inactivityHours?: FloatFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: BoolFieldUpdateOperationsInput | boolean composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null aptPackages?: RepoConfigUpdateaptPackagesInput | string[] setupCommands?: RepoConfigUpdatesetupCommandsInput | string[] buildCommands?: RepoConfigUpdatebuildCommandsInput | string[] postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[] runCommand?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string previews?: PreviewUncheckedUpdateManyWithoutRepoConfigNestedInput } export type RepoConfigCreateManyInput = { id?: number userId: number repoOwner: string repoName: string isEnabled?: boolean giteaWebhookId?: string | null denyList?: RepoConfigCreatedenyListInput | string[] instanceType?: string inactivityHours?: number port?: number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: boolean composeFilePath?: string | null aptPackages?: RepoConfigCreateaptPackagesInput | string[] setupCommands?: RepoConfigCreatesetupCommandsInput | string[] buildCommands?: RepoConfigCreatebuildCommandsInput | string[] postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[] runCommand?: string | null createdAt?: Date | string updatedAt?: Date | string } export type RepoConfigUpdateManyMutationInput = { repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string isEnabled?: BoolFieldUpdateOperationsInput | boolean giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null denyList?: RepoConfigUpdatedenyListInput | string[] instanceType?: StringFieldUpdateOperationsInput | string inactivityHours?: FloatFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: BoolFieldUpdateOperationsInput | boolean composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null aptPackages?: RepoConfigUpdateaptPackagesInput | string[] setupCommands?: RepoConfigUpdatesetupCommandsInput | string[] buildCommands?: RepoConfigUpdatebuildCommandsInput | string[] postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[] runCommand?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type RepoConfigUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string isEnabled?: BoolFieldUpdateOperationsInput | boolean giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null denyList?: RepoConfigUpdatedenyListInput | string[] instanceType?: StringFieldUpdateOperationsInput | string inactivityHours?: FloatFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: BoolFieldUpdateOperationsInput | boolean composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null aptPackages?: RepoConfigUpdateaptPackagesInput | string[] setupCommands?: RepoConfigUpdatesetupCommandsInput | string[] buildCommands?: RepoConfigUpdatebuildCommandsInput | string[] postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[] runCommand?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PreviewCreateInput = { prNumber: number prTitle: string commitSha: string instanceId?: string | null instanceIp?: string | null port?: number status?: $Enums.PreviewStatus logs?: string pid?: number | null sshPrivateKey?: string | null sshKeyName?: string | null giteaCommentId?: number | null lastActivityAt?: Date | string createdAt?: Date | string updatedAt?: Date | string stoppedAt?: Date | string | null repoConfig: RepoConfigCreateNestedOneWithoutPreviewsInput jobs?: JobCreateNestedManyWithoutPreviewInput } export type PreviewUncheckedCreateInput = { id?: number repoConfigId: number prNumber: number prTitle: string commitSha: string instanceId?: string | null instanceIp?: string | null port?: number status?: $Enums.PreviewStatus logs?: string pid?: number | null sshPrivateKey?: string | null sshKeyName?: string | null giteaCommentId?: number | null lastActivityAt?: Date | string createdAt?: Date | string updatedAt?: Date | string stoppedAt?: Date | string | null jobs?: JobUncheckedCreateNestedManyWithoutPreviewInput } export type PreviewUpdateInput = { prNumber?: IntFieldUpdateOperationsInput | number prTitle?: StringFieldUpdateOperationsInput | string commitSha?: StringFieldUpdateOperationsInput | string instanceId?: NullableStringFieldUpdateOperationsInput | string | null instanceIp?: NullableStringFieldUpdateOperationsInput | string | null port?: IntFieldUpdateOperationsInput | number status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus logs?: StringFieldUpdateOperationsInput | string pid?: NullableIntFieldUpdateOperationsInput | number | null sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null repoConfig?: RepoConfigUpdateOneRequiredWithoutPreviewsNestedInput jobs?: JobUpdateManyWithoutPreviewNestedInput } export type PreviewUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number repoConfigId?: IntFieldUpdateOperationsInput | number prNumber?: IntFieldUpdateOperationsInput | number prTitle?: StringFieldUpdateOperationsInput | string commitSha?: StringFieldUpdateOperationsInput | string instanceId?: NullableStringFieldUpdateOperationsInput | string | null instanceIp?: NullableStringFieldUpdateOperationsInput | string | null port?: IntFieldUpdateOperationsInput | number status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus logs?: StringFieldUpdateOperationsInput | string pid?: NullableIntFieldUpdateOperationsInput | number | null sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null jobs?: JobUncheckedUpdateManyWithoutPreviewNestedInput } export type PreviewCreateManyInput = { id?: number repoConfigId: number prNumber: number prTitle: string commitSha: string instanceId?: string | null instanceIp?: string | null port?: number status?: $Enums.PreviewStatus logs?: string pid?: number | null sshPrivateKey?: string | null sshKeyName?: string | null giteaCommentId?: number | null lastActivityAt?: Date | string createdAt?: Date | string updatedAt?: Date | string stoppedAt?: Date | string | null } export type PreviewUpdateManyMutationInput = { prNumber?: IntFieldUpdateOperationsInput | number prTitle?: StringFieldUpdateOperationsInput | string commitSha?: StringFieldUpdateOperationsInput | string instanceId?: NullableStringFieldUpdateOperationsInput | string | null instanceIp?: NullableStringFieldUpdateOperationsInput | string | null port?: IntFieldUpdateOperationsInput | number status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus logs?: StringFieldUpdateOperationsInput | string pid?: NullableIntFieldUpdateOperationsInput | number | null sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type PreviewUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number repoConfigId?: IntFieldUpdateOperationsInput | number prNumber?: IntFieldUpdateOperationsInput | number prTitle?: StringFieldUpdateOperationsInput | string commitSha?: StringFieldUpdateOperationsInput | string instanceId?: NullableStringFieldUpdateOperationsInput | string | null instanceIp?: NullableStringFieldUpdateOperationsInput | string | null port?: IntFieldUpdateOperationsInput | number status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus logs?: StringFieldUpdateOperationsInput | string pid?: NullableIntFieldUpdateOperationsInput | number | null sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type JobCreateInput = { type: $Enums.JobType status?: $Enums.JobStatus payload?: JsonNullValueInput | InputJsonValue error?: string | null createdAt?: Date | string startedAt?: Date | string | null finishedAt?: Date | string | null preview?: PreviewCreateNestedOneWithoutJobsInput } export type JobUncheckedCreateInput = { id?: number previewId?: number | null type: $Enums.JobType status?: $Enums.JobStatus payload?: JsonNullValueInput | InputJsonValue error?: string | null createdAt?: Date | string startedAt?: Date | string | null finishedAt?: Date | string | null } export type JobUpdateInput = { type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus payload?: JsonNullValueInput | InputJsonValue error?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null preview?: PreviewUpdateOneWithoutJobsNestedInput } export type JobUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number previewId?: NullableIntFieldUpdateOperationsInput | number | null type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus payload?: JsonNullValueInput | InputJsonValue error?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type JobCreateManyInput = { id?: number previewId?: number | null type: $Enums.JobType status?: $Enums.JobStatus payload?: JsonNullValueInput | InputJsonValue error?: string | null createdAt?: Date | string startedAt?: Date | string | null finishedAt?: Date | string | null } export type JobUpdateManyMutationInput = { type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus payload?: JsonNullValueInput | InputJsonValue error?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type JobUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number previewId?: NullableIntFieldUpdateOperationsInput | number | null type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus payload?: JsonNullValueInput | InputJsonValue error?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type WebhookTokenCreateInput = { token: string createdAt?: Date | string user: UserCreateNestedOneWithoutWebhookTokenInput } export type WebhookTokenUncheckedCreateInput = { id?: number userId: number token: string createdAt?: Date | string } export type WebhookTokenUpdateInput = { token?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutWebhookTokenNestedInput } export type WebhookTokenUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number token?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type WebhookTokenCreateManyInput = { id?: number userId: number token: string createdAt?: Date | string } export type WebhookTokenUpdateManyMutationInput = { token?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type WebhookTokenUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number token?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NoConfigCommentCreateInput = { repoOwner: string repoName: string prNumber: number createdAt?: Date | string user: UserCreateNestedOneWithoutNoConfigCommentsInput } export type NoConfigCommentUncheckedCreateInput = { id?: number userId: number repoOwner: string repoName: string prNumber: number createdAt?: Date | string } export type NoConfigCommentUpdateInput = { repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string prNumber?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutNoConfigCommentsNestedInput } export type NoConfigCommentUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string prNumber?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NoConfigCommentCreateManyInput = { id?: number userId: number repoOwner: string repoName: string prNumber: number createdAt?: Date | string } export type NoConfigCommentUpdateManyMutationInput = { repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string prNumber?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NoConfigCommentUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string prNumber?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AdminSettingsCreateInput = { id?: number defaultInstanceType?: string maxConcurrentInstancesPerUser?: number logSizeLimitBytes?: number previewRetentionDays?: number webhookRateLimitPerMinute?: number contactEmail?: string } export type AdminSettingsUncheckedCreateInput = { id?: number defaultInstanceType?: string maxConcurrentInstancesPerUser?: number logSizeLimitBytes?: number previewRetentionDays?: number webhookRateLimitPerMinute?: number contactEmail?: string } export type AdminSettingsUpdateInput = { id?: IntFieldUpdateOperationsInput | number defaultInstanceType?: StringFieldUpdateOperationsInput | string maxConcurrentInstancesPerUser?: IntFieldUpdateOperationsInput | number logSizeLimitBytes?: IntFieldUpdateOperationsInput | number previewRetentionDays?: IntFieldUpdateOperationsInput | number webhookRateLimitPerMinute?: IntFieldUpdateOperationsInput | number contactEmail?: StringFieldUpdateOperationsInput | string } export type AdminSettingsUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number defaultInstanceType?: StringFieldUpdateOperationsInput | string maxConcurrentInstancesPerUser?: IntFieldUpdateOperationsInput | number logSizeLimitBytes?: IntFieldUpdateOperationsInput | number previewRetentionDays?: IntFieldUpdateOperationsInput | number webhookRateLimitPerMinute?: IntFieldUpdateOperationsInput | number contactEmail?: StringFieldUpdateOperationsInput | string } export type AdminSettingsCreateManyInput = { id?: number defaultInstanceType?: string maxConcurrentInstancesPerUser?: number logSizeLimitBytes?: number previewRetentionDays?: number webhookRateLimitPerMinute?: number contactEmail?: string } export type AdminSettingsUpdateManyMutationInput = { id?: IntFieldUpdateOperationsInput | number defaultInstanceType?: StringFieldUpdateOperationsInput | string maxConcurrentInstancesPerUser?: IntFieldUpdateOperationsInput | number logSizeLimitBytes?: IntFieldUpdateOperationsInput | number previewRetentionDays?: IntFieldUpdateOperationsInput | number webhookRateLimitPerMinute?: IntFieldUpdateOperationsInput | number contactEmail?: StringFieldUpdateOperationsInput | string } export type AdminSettingsUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number defaultInstanceType?: StringFieldUpdateOperationsInput | string maxConcurrentInstancesPerUser?: IntFieldUpdateOperationsInput | number logSizeLimitBytes?: IntFieldUpdateOperationsInput | number previewRetentionDays?: IntFieldUpdateOperationsInput | number webhookRateLimitPerMinute?: IntFieldUpdateOperationsInput | number contactEmail?: StringFieldUpdateOperationsInput | string } export type IntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringFilter<$PrismaModel> | string } export type BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type DateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type StringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type SessionListRelationFilter = { every?: SessionWhereInput some?: SessionWhereInput none?: SessionWhereInput } export type RepoConfigListRelationFilter = { every?: RepoConfigWhereInput some?: RepoConfigWhereInput none?: RepoConfigWhereInput } export type WebhookTokenNullableScalarRelationFilter = { is?: WebhookTokenWhereInput | null isNot?: WebhookTokenWhereInput | null } export type NoConfigCommentListRelationFilter = { every?: NoConfigCommentWhereInput some?: NoConfigCommentWhereInput none?: NoConfigCommentWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type SessionOrderByRelationAggregateInput = { _count?: SortOrder } export type RepoConfigOrderByRelationAggregateInput = { _count?: SortOrder } export type NoConfigCommentOrderByRelationAggregateInput = { _count?: SortOrder } export type UserCountOrderByAggregateInput = { id?: SortOrder username?: SortOrder passwordHash?: SortOrder isAdmin?: SortOrder isFounder?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder giteaUsername?: SortOrder giteaPAT?: SortOrder giteaInstanceUrl?: SortOrder awsAccessKeyId?: SortOrder awsSecretAccessKey?: SortOrder awsRegion?: SortOrder } export type UserAvgOrderByAggregateInput = { id?: SortOrder } export type UserMaxOrderByAggregateInput = { id?: SortOrder username?: SortOrder passwordHash?: SortOrder isAdmin?: SortOrder isFounder?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder giteaUsername?: SortOrder giteaPAT?: SortOrder giteaInstanceUrl?: SortOrder awsAccessKeyId?: SortOrder awsSecretAccessKey?: SortOrder awsRegion?: SortOrder } export type UserMinOrderByAggregateInput = { id?: SortOrder username?: SortOrder passwordHash?: SortOrder isAdmin?: SortOrder isFounder?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder giteaUsername?: SortOrder giteaPAT?: SortOrder giteaInstanceUrl?: SortOrder awsAccessKeyId?: SortOrder awsSecretAccessKey?: SortOrder awsRegion?: SortOrder } export type UserSumOrderByAggregateInput = { id?: SortOrder } export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type StringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type BoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type UserScalarRelationFilter = { is?: UserWhereInput isNot?: UserWhereInput } export type SessionCountOrderByAggregateInput = { id?: SortOrder hash?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SessionAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type SessionMaxOrderByAggregateInput = { id?: SortOrder hash?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SessionMinOrderByAggregateInput = { id?: SortOrder hash?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SessionSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type StringNullableListFilter<$PrismaModel = never> = { equals?: string[] | ListStringFieldRefInput<$PrismaModel> | null has?: string | StringFieldRefInput<$PrismaModel> | null hasEvery?: string[] | ListStringFieldRefInput<$PrismaModel> hasSome?: string[] | ListStringFieldRefInput<$PrismaModel> isEmpty?: boolean } export type FloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type JsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type PreviewListRelationFilter = { every?: PreviewWhereInput some?: PreviewWhereInput none?: PreviewWhereInput } export type PreviewOrderByRelationAggregateInput = { _count?: SortOrder } export type RepoConfigRepoOwnerRepoNameCompoundUniqueInput = { repoOwner: string repoName: string } export type RepoConfigCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder repoOwner?: SortOrder repoName?: SortOrder isEnabled?: SortOrder giteaWebhookId?: SortOrder denyList?: SortOrder instanceType?: SortOrder inactivityHours?: SortOrder port?: SortOrder envVars?: SortOrder useDockerCompose?: SortOrder composeFilePath?: SortOrder aptPackages?: SortOrder setupCommands?: SortOrder buildCommands?: SortOrder postBuildCommands?: SortOrder runCommand?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type RepoConfigAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder inactivityHours?: SortOrder port?: SortOrder } export type RepoConfigMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder repoOwner?: SortOrder repoName?: SortOrder isEnabled?: SortOrder giteaWebhookId?: SortOrder instanceType?: SortOrder inactivityHours?: SortOrder port?: SortOrder useDockerCompose?: SortOrder composeFilePath?: SortOrder runCommand?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type RepoConfigMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder repoOwner?: SortOrder repoName?: SortOrder isEnabled?: SortOrder giteaWebhookId?: SortOrder instanceType?: SortOrder inactivityHours?: SortOrder port?: SortOrder useDockerCompose?: SortOrder composeFilePath?: SortOrder runCommand?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type RepoConfigSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder inactivityHours?: SortOrder port?: SortOrder } export type FloatWithAggregatesFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedFloatFilter<$PrismaModel> _min?: NestedFloatFilter<$PrismaModel> _max?: NestedFloatFilter<$PrismaModel> } export type JsonWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter _count?: NestedIntFilter<$PrismaModel> _min?: NestedJsonFilter<$PrismaModel> _max?: NestedJsonFilter<$PrismaModel> } export type EnumPreviewStatusFilter<$PrismaModel = never> = { equals?: $Enums.PreviewStatus | EnumPreviewStatusFieldRefInput<$PrismaModel> in?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel> not?: NestedEnumPreviewStatusFilter<$PrismaModel> | $Enums.PreviewStatus } export type IntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type DateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null } export type RepoConfigScalarRelationFilter = { is?: RepoConfigWhereInput isNot?: RepoConfigWhereInput } export type JobListRelationFilter = { every?: JobWhereInput some?: JobWhereInput none?: JobWhereInput } export type JobOrderByRelationAggregateInput = { _count?: SortOrder } export type PreviewCountOrderByAggregateInput = { id?: SortOrder repoConfigId?: SortOrder prNumber?: SortOrder prTitle?: SortOrder commitSha?: SortOrder instanceId?: SortOrder instanceIp?: SortOrder port?: SortOrder status?: SortOrder logs?: SortOrder pid?: SortOrder sshPrivateKey?: SortOrder sshKeyName?: SortOrder giteaCommentId?: SortOrder lastActivityAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder stoppedAt?: SortOrder } export type PreviewAvgOrderByAggregateInput = { id?: SortOrder repoConfigId?: SortOrder prNumber?: SortOrder port?: SortOrder pid?: SortOrder giteaCommentId?: SortOrder } export type PreviewMaxOrderByAggregateInput = { id?: SortOrder repoConfigId?: SortOrder prNumber?: SortOrder prTitle?: SortOrder commitSha?: SortOrder instanceId?: SortOrder instanceIp?: SortOrder port?: SortOrder status?: SortOrder logs?: SortOrder pid?: SortOrder sshPrivateKey?: SortOrder sshKeyName?: SortOrder giteaCommentId?: SortOrder lastActivityAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder stoppedAt?: SortOrder } export type PreviewMinOrderByAggregateInput = { id?: SortOrder repoConfigId?: SortOrder prNumber?: SortOrder prTitle?: SortOrder commitSha?: SortOrder instanceId?: SortOrder instanceIp?: SortOrder port?: SortOrder status?: SortOrder logs?: SortOrder pid?: SortOrder sshPrivateKey?: SortOrder sshKeyName?: SortOrder giteaCommentId?: SortOrder lastActivityAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder stoppedAt?: SortOrder } export type PreviewSumOrderByAggregateInput = { id?: SortOrder repoConfigId?: SortOrder prNumber?: SortOrder port?: SortOrder pid?: SortOrder giteaCommentId?: SortOrder } export type EnumPreviewStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PreviewStatus | EnumPreviewStatusFieldRefInput<$PrismaModel> in?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel> not?: NestedEnumPreviewStatusWithAggregatesFilter<$PrismaModel> | $Enums.PreviewStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPreviewStatusFilter<$PrismaModel> _max?: NestedEnumPreviewStatusFilter<$PrismaModel> } export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type EnumJobTypeFilter<$PrismaModel = never> = { equals?: $Enums.JobType | EnumJobTypeFieldRefInput<$PrismaModel> in?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel> notIn?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel> not?: NestedEnumJobTypeFilter<$PrismaModel> | $Enums.JobType } export type EnumJobStatusFilter<$PrismaModel = never> = { equals?: $Enums.JobStatus | EnumJobStatusFieldRefInput<$PrismaModel> in?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel> notIn?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel> not?: NestedEnumJobStatusFilter<$PrismaModel> | $Enums.JobStatus } export type PreviewNullableScalarRelationFilter = { is?: PreviewWhereInput | null isNot?: PreviewWhereInput | null } export type JobCountOrderByAggregateInput = { id?: SortOrder previewId?: SortOrder type?: SortOrder status?: SortOrder payload?: SortOrder error?: SortOrder createdAt?: SortOrder startedAt?: SortOrder finishedAt?: SortOrder } export type JobAvgOrderByAggregateInput = { id?: SortOrder previewId?: SortOrder } export type JobMaxOrderByAggregateInput = { id?: SortOrder previewId?: SortOrder type?: SortOrder status?: SortOrder error?: SortOrder createdAt?: SortOrder startedAt?: SortOrder finishedAt?: SortOrder } export type JobMinOrderByAggregateInput = { id?: SortOrder previewId?: SortOrder type?: SortOrder status?: SortOrder error?: SortOrder createdAt?: SortOrder startedAt?: SortOrder finishedAt?: SortOrder } export type JobSumOrderByAggregateInput = { id?: SortOrder previewId?: SortOrder } export type EnumJobTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.JobType | EnumJobTypeFieldRefInput<$PrismaModel> in?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel> notIn?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel> not?: NestedEnumJobTypeWithAggregatesFilter<$PrismaModel> | $Enums.JobType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumJobTypeFilter<$PrismaModel> _max?: NestedEnumJobTypeFilter<$PrismaModel> } export type EnumJobStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.JobStatus | EnumJobStatusFieldRefInput<$PrismaModel> in?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel> notIn?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel> not?: NestedEnumJobStatusWithAggregatesFilter<$PrismaModel> | $Enums.JobStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumJobStatusFilter<$PrismaModel> _max?: NestedEnumJobStatusFilter<$PrismaModel> } export type WebhookTokenCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder token?: SortOrder createdAt?: SortOrder } export type WebhookTokenAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type WebhookTokenMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder token?: SortOrder createdAt?: SortOrder } export type WebhookTokenMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder token?: SortOrder createdAt?: SortOrder } export type WebhookTokenSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type NoConfigCommentUserIdRepoOwnerRepoNamePrNumberCompoundUniqueInput = { userId: number repoOwner: string repoName: string prNumber: number } export type NoConfigCommentCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder repoOwner?: SortOrder repoName?: SortOrder prNumber?: SortOrder createdAt?: SortOrder } export type NoConfigCommentAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder prNumber?: SortOrder } export type NoConfigCommentMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder repoOwner?: SortOrder repoName?: SortOrder prNumber?: SortOrder createdAt?: SortOrder } export type NoConfigCommentMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder repoOwner?: SortOrder repoName?: SortOrder prNumber?: SortOrder createdAt?: SortOrder } export type NoConfigCommentSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder prNumber?: SortOrder } export type AdminSettingsCountOrderByAggregateInput = { id?: SortOrder defaultInstanceType?: SortOrder maxConcurrentInstancesPerUser?: SortOrder logSizeLimitBytes?: SortOrder previewRetentionDays?: SortOrder webhookRateLimitPerMinute?: SortOrder contactEmail?: SortOrder } export type AdminSettingsAvgOrderByAggregateInput = { id?: SortOrder maxConcurrentInstancesPerUser?: SortOrder logSizeLimitBytes?: SortOrder previewRetentionDays?: SortOrder webhookRateLimitPerMinute?: SortOrder } export type AdminSettingsMaxOrderByAggregateInput = { id?: SortOrder defaultInstanceType?: SortOrder maxConcurrentInstancesPerUser?: SortOrder logSizeLimitBytes?: SortOrder previewRetentionDays?: SortOrder webhookRateLimitPerMinute?: SortOrder contactEmail?: SortOrder } export type AdminSettingsMinOrderByAggregateInput = { id?: SortOrder defaultInstanceType?: SortOrder maxConcurrentInstancesPerUser?: SortOrder logSizeLimitBytes?: SortOrder previewRetentionDays?: SortOrder webhookRateLimitPerMinute?: SortOrder contactEmail?: SortOrder } export type AdminSettingsSumOrderByAggregateInput = { id?: SortOrder maxConcurrentInstancesPerUser?: SortOrder logSizeLimitBytes?: SortOrder previewRetentionDays?: SortOrder webhookRateLimitPerMinute?: SortOrder } export type SessionCreateNestedManyWithoutUserInput = { create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] createMany?: SessionCreateManyUserInputEnvelope connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] } export type RepoConfigCreateNestedManyWithoutUserInput = { create?: XOR | RepoConfigCreateWithoutUserInput[] | RepoConfigUncheckedCreateWithoutUserInput[] connectOrCreate?: RepoConfigCreateOrConnectWithoutUserInput | RepoConfigCreateOrConnectWithoutUserInput[] createMany?: RepoConfigCreateManyUserInputEnvelope connect?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[] } export type WebhookTokenCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: WebhookTokenCreateOrConnectWithoutUserInput connect?: WebhookTokenWhereUniqueInput } export type NoConfigCommentCreateNestedManyWithoutUserInput = { create?: XOR | NoConfigCommentCreateWithoutUserInput[] | NoConfigCommentUncheckedCreateWithoutUserInput[] connectOrCreate?: NoConfigCommentCreateOrConnectWithoutUserInput | NoConfigCommentCreateOrConnectWithoutUserInput[] createMany?: NoConfigCommentCreateManyUserInputEnvelope connect?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[] } export type SessionUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] createMany?: SessionCreateManyUserInputEnvelope connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] } export type RepoConfigUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | RepoConfigCreateWithoutUserInput[] | RepoConfigUncheckedCreateWithoutUserInput[] connectOrCreate?: RepoConfigCreateOrConnectWithoutUserInput | RepoConfigCreateOrConnectWithoutUserInput[] createMany?: RepoConfigCreateManyUserInputEnvelope connect?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[] } export type WebhookTokenUncheckedCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: WebhookTokenCreateOrConnectWithoutUserInput connect?: WebhookTokenWhereUniqueInput } export type NoConfigCommentUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | NoConfigCommentCreateWithoutUserInput[] | NoConfigCommentUncheckedCreateWithoutUserInput[] connectOrCreate?: NoConfigCommentCreateOrConnectWithoutUserInput | NoConfigCommentCreateOrConnectWithoutUserInput[] createMany?: NoConfigCommentCreateManyUserInputEnvelope connect?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[] } export type StringFieldUpdateOperationsInput = { set?: string } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type SessionUpdateManyWithoutUserNestedInput = { create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: SessionCreateManyUserInputEnvelope set?: SessionWhereUniqueInput | SessionWhereUniqueInput[] disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[] connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[] } export type RepoConfigUpdateManyWithoutUserNestedInput = { create?: XOR | RepoConfigCreateWithoutUserInput[] | RepoConfigUncheckedCreateWithoutUserInput[] connectOrCreate?: RepoConfigCreateOrConnectWithoutUserInput | RepoConfigCreateOrConnectWithoutUserInput[] upsert?: RepoConfigUpsertWithWhereUniqueWithoutUserInput | RepoConfigUpsertWithWhereUniqueWithoutUserInput[] createMany?: RepoConfigCreateManyUserInputEnvelope set?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[] disconnect?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[] delete?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[] connect?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[] update?: RepoConfigUpdateWithWhereUniqueWithoutUserInput | RepoConfigUpdateWithWhereUniqueWithoutUserInput[] updateMany?: RepoConfigUpdateManyWithWhereWithoutUserInput | RepoConfigUpdateManyWithWhereWithoutUserInput[] deleteMany?: RepoConfigScalarWhereInput | RepoConfigScalarWhereInput[] } export type WebhookTokenUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: WebhookTokenCreateOrConnectWithoutUserInput upsert?: WebhookTokenUpsertWithoutUserInput disconnect?: WebhookTokenWhereInput | boolean delete?: WebhookTokenWhereInput | boolean connect?: WebhookTokenWhereUniqueInput update?: XOR, WebhookTokenUncheckedUpdateWithoutUserInput> } export type NoConfigCommentUpdateManyWithoutUserNestedInput = { create?: XOR | NoConfigCommentCreateWithoutUserInput[] | NoConfigCommentUncheckedCreateWithoutUserInput[] connectOrCreate?: NoConfigCommentCreateOrConnectWithoutUserInput | NoConfigCommentCreateOrConnectWithoutUserInput[] upsert?: NoConfigCommentUpsertWithWhereUniqueWithoutUserInput | NoConfigCommentUpsertWithWhereUniqueWithoutUserInput[] createMany?: NoConfigCommentCreateManyUserInputEnvelope set?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[] disconnect?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[] delete?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[] connect?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[] update?: NoConfigCommentUpdateWithWhereUniqueWithoutUserInput | NoConfigCommentUpdateWithWhereUniqueWithoutUserInput[] updateMany?: NoConfigCommentUpdateManyWithWhereWithoutUserInput | NoConfigCommentUpdateManyWithWhereWithoutUserInput[] deleteMany?: NoConfigCommentScalarWhereInput | NoConfigCommentScalarWhereInput[] } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type SessionUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: SessionCreateManyUserInputEnvelope set?: SessionWhereUniqueInput | SessionWhereUniqueInput[] disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[] connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[] } export type RepoConfigUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | RepoConfigCreateWithoutUserInput[] | RepoConfigUncheckedCreateWithoutUserInput[] connectOrCreate?: RepoConfigCreateOrConnectWithoutUserInput | RepoConfigCreateOrConnectWithoutUserInput[] upsert?: RepoConfigUpsertWithWhereUniqueWithoutUserInput | RepoConfigUpsertWithWhereUniqueWithoutUserInput[] createMany?: RepoConfigCreateManyUserInputEnvelope set?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[] disconnect?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[] delete?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[] connect?: RepoConfigWhereUniqueInput | RepoConfigWhereUniqueInput[] update?: RepoConfigUpdateWithWhereUniqueWithoutUserInput | RepoConfigUpdateWithWhereUniqueWithoutUserInput[] updateMany?: RepoConfigUpdateManyWithWhereWithoutUserInput | RepoConfigUpdateManyWithWhereWithoutUserInput[] deleteMany?: RepoConfigScalarWhereInput | RepoConfigScalarWhereInput[] } export type WebhookTokenUncheckedUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: WebhookTokenCreateOrConnectWithoutUserInput upsert?: WebhookTokenUpsertWithoutUserInput disconnect?: WebhookTokenWhereInput | boolean delete?: WebhookTokenWhereInput | boolean connect?: WebhookTokenWhereUniqueInput update?: XOR, WebhookTokenUncheckedUpdateWithoutUserInput> } export type NoConfigCommentUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | NoConfigCommentCreateWithoutUserInput[] | NoConfigCommentUncheckedCreateWithoutUserInput[] connectOrCreate?: NoConfigCommentCreateOrConnectWithoutUserInput | NoConfigCommentCreateOrConnectWithoutUserInput[] upsert?: NoConfigCommentUpsertWithWhereUniqueWithoutUserInput | NoConfigCommentUpsertWithWhereUniqueWithoutUserInput[] createMany?: NoConfigCommentCreateManyUserInputEnvelope set?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[] disconnect?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[] delete?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[] connect?: NoConfigCommentWhereUniqueInput | NoConfigCommentWhereUniqueInput[] update?: NoConfigCommentUpdateWithWhereUniqueWithoutUserInput | NoConfigCommentUpdateWithWhereUniqueWithoutUserInput[] updateMany?: NoConfigCommentUpdateManyWithWhereWithoutUserInput | NoConfigCommentUpdateManyWithWhereWithoutUserInput[] deleteMany?: NoConfigCommentScalarWhereInput | NoConfigCommentScalarWhereInput[] } export type UserCreateNestedOneWithoutSessionsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutSessionsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutSessionsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutSessionsInput upsert?: UserUpsertWithoutSessionsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutSessionsInput> } export type RepoConfigCreatedenyListInput = { set: string[] } export type RepoConfigCreateaptPackagesInput = { set: string[] } export type RepoConfigCreatesetupCommandsInput = { set: string[] } export type RepoConfigCreatebuildCommandsInput = { set: string[] } export type RepoConfigCreatepostBuildCommandsInput = { set: string[] } export type UserCreateNestedOneWithoutRepoConfigsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutRepoConfigsInput connect?: UserWhereUniqueInput } export type PreviewCreateNestedManyWithoutRepoConfigInput = { create?: XOR | PreviewCreateWithoutRepoConfigInput[] | PreviewUncheckedCreateWithoutRepoConfigInput[] connectOrCreate?: PreviewCreateOrConnectWithoutRepoConfigInput | PreviewCreateOrConnectWithoutRepoConfigInput[] createMany?: PreviewCreateManyRepoConfigInputEnvelope connect?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[] } export type PreviewUncheckedCreateNestedManyWithoutRepoConfigInput = { create?: XOR | PreviewCreateWithoutRepoConfigInput[] | PreviewUncheckedCreateWithoutRepoConfigInput[] connectOrCreate?: PreviewCreateOrConnectWithoutRepoConfigInput | PreviewCreateOrConnectWithoutRepoConfigInput[] createMany?: PreviewCreateManyRepoConfigInputEnvelope connect?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[] } export type RepoConfigUpdatedenyListInput = { set?: string[] push?: string | string[] } export type FloatFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type RepoConfigUpdateaptPackagesInput = { set?: string[] push?: string | string[] } export type RepoConfigUpdatesetupCommandsInput = { set?: string[] push?: string | string[] } export type RepoConfigUpdatebuildCommandsInput = { set?: string[] push?: string | string[] } export type RepoConfigUpdatepostBuildCommandsInput = { set?: string[] push?: string | string[] } export type UserUpdateOneRequiredWithoutRepoConfigsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutRepoConfigsInput upsert?: UserUpsertWithoutRepoConfigsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutRepoConfigsInput> } export type PreviewUpdateManyWithoutRepoConfigNestedInput = { create?: XOR | PreviewCreateWithoutRepoConfigInput[] | PreviewUncheckedCreateWithoutRepoConfigInput[] connectOrCreate?: PreviewCreateOrConnectWithoutRepoConfigInput | PreviewCreateOrConnectWithoutRepoConfigInput[] upsert?: PreviewUpsertWithWhereUniqueWithoutRepoConfigInput | PreviewUpsertWithWhereUniqueWithoutRepoConfigInput[] createMany?: PreviewCreateManyRepoConfigInputEnvelope set?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[] disconnect?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[] delete?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[] connect?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[] update?: PreviewUpdateWithWhereUniqueWithoutRepoConfigInput | PreviewUpdateWithWhereUniqueWithoutRepoConfigInput[] updateMany?: PreviewUpdateManyWithWhereWithoutRepoConfigInput | PreviewUpdateManyWithWhereWithoutRepoConfigInput[] deleteMany?: PreviewScalarWhereInput | PreviewScalarWhereInput[] } export type PreviewUncheckedUpdateManyWithoutRepoConfigNestedInput = { create?: XOR | PreviewCreateWithoutRepoConfigInput[] | PreviewUncheckedCreateWithoutRepoConfigInput[] connectOrCreate?: PreviewCreateOrConnectWithoutRepoConfigInput | PreviewCreateOrConnectWithoutRepoConfigInput[] upsert?: PreviewUpsertWithWhereUniqueWithoutRepoConfigInput | PreviewUpsertWithWhereUniqueWithoutRepoConfigInput[] createMany?: PreviewCreateManyRepoConfigInputEnvelope set?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[] disconnect?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[] delete?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[] connect?: PreviewWhereUniqueInput | PreviewWhereUniqueInput[] update?: PreviewUpdateWithWhereUniqueWithoutRepoConfigInput | PreviewUpdateWithWhereUniqueWithoutRepoConfigInput[] updateMany?: PreviewUpdateManyWithWhereWithoutRepoConfigInput | PreviewUpdateManyWithWhereWithoutRepoConfigInput[] deleteMany?: PreviewScalarWhereInput | PreviewScalarWhereInput[] } export type RepoConfigCreateNestedOneWithoutPreviewsInput = { create?: XOR connectOrCreate?: RepoConfigCreateOrConnectWithoutPreviewsInput connect?: RepoConfigWhereUniqueInput } export type JobCreateNestedManyWithoutPreviewInput = { create?: XOR | JobCreateWithoutPreviewInput[] | JobUncheckedCreateWithoutPreviewInput[] connectOrCreate?: JobCreateOrConnectWithoutPreviewInput | JobCreateOrConnectWithoutPreviewInput[] createMany?: JobCreateManyPreviewInputEnvelope connect?: JobWhereUniqueInput | JobWhereUniqueInput[] } export type JobUncheckedCreateNestedManyWithoutPreviewInput = { create?: XOR | JobCreateWithoutPreviewInput[] | JobUncheckedCreateWithoutPreviewInput[] connectOrCreate?: JobCreateOrConnectWithoutPreviewInput | JobCreateOrConnectWithoutPreviewInput[] createMany?: JobCreateManyPreviewInputEnvelope connect?: JobWhereUniqueInput | JobWhereUniqueInput[] } export type EnumPreviewStatusFieldUpdateOperationsInput = { set?: $Enums.PreviewStatus } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type RepoConfigUpdateOneRequiredWithoutPreviewsNestedInput = { create?: XOR connectOrCreate?: RepoConfigCreateOrConnectWithoutPreviewsInput upsert?: RepoConfigUpsertWithoutPreviewsInput connect?: RepoConfigWhereUniqueInput update?: XOR, RepoConfigUncheckedUpdateWithoutPreviewsInput> } export type JobUpdateManyWithoutPreviewNestedInput = { create?: XOR | JobCreateWithoutPreviewInput[] | JobUncheckedCreateWithoutPreviewInput[] connectOrCreate?: JobCreateOrConnectWithoutPreviewInput | JobCreateOrConnectWithoutPreviewInput[] upsert?: JobUpsertWithWhereUniqueWithoutPreviewInput | JobUpsertWithWhereUniqueWithoutPreviewInput[] createMany?: JobCreateManyPreviewInputEnvelope set?: JobWhereUniqueInput | JobWhereUniqueInput[] disconnect?: JobWhereUniqueInput | JobWhereUniqueInput[] delete?: JobWhereUniqueInput | JobWhereUniqueInput[] connect?: JobWhereUniqueInput | JobWhereUniqueInput[] update?: JobUpdateWithWhereUniqueWithoutPreviewInput | JobUpdateWithWhereUniqueWithoutPreviewInput[] updateMany?: JobUpdateManyWithWhereWithoutPreviewInput | JobUpdateManyWithWhereWithoutPreviewInput[] deleteMany?: JobScalarWhereInput | JobScalarWhereInput[] } export type JobUncheckedUpdateManyWithoutPreviewNestedInput = { create?: XOR | JobCreateWithoutPreviewInput[] | JobUncheckedCreateWithoutPreviewInput[] connectOrCreate?: JobCreateOrConnectWithoutPreviewInput | JobCreateOrConnectWithoutPreviewInput[] upsert?: JobUpsertWithWhereUniqueWithoutPreviewInput | JobUpsertWithWhereUniqueWithoutPreviewInput[] createMany?: JobCreateManyPreviewInputEnvelope set?: JobWhereUniqueInput | JobWhereUniqueInput[] disconnect?: JobWhereUniqueInput | JobWhereUniqueInput[] delete?: JobWhereUniqueInput | JobWhereUniqueInput[] connect?: JobWhereUniqueInput | JobWhereUniqueInput[] update?: JobUpdateWithWhereUniqueWithoutPreviewInput | JobUpdateWithWhereUniqueWithoutPreviewInput[] updateMany?: JobUpdateManyWithWhereWithoutPreviewInput | JobUpdateManyWithWhereWithoutPreviewInput[] deleteMany?: JobScalarWhereInput | JobScalarWhereInput[] } export type PreviewCreateNestedOneWithoutJobsInput = { create?: XOR connectOrCreate?: PreviewCreateOrConnectWithoutJobsInput connect?: PreviewWhereUniqueInput } export type EnumJobTypeFieldUpdateOperationsInput = { set?: $Enums.JobType } export type EnumJobStatusFieldUpdateOperationsInput = { set?: $Enums.JobStatus } export type PreviewUpdateOneWithoutJobsNestedInput = { create?: XOR connectOrCreate?: PreviewCreateOrConnectWithoutJobsInput upsert?: PreviewUpsertWithoutJobsInput disconnect?: PreviewWhereInput | boolean delete?: PreviewWhereInput | boolean connect?: PreviewWhereUniqueInput update?: XOR, PreviewUncheckedUpdateWithoutJobsInput> } export type UserCreateNestedOneWithoutWebhookTokenInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutWebhookTokenInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutWebhookTokenNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutWebhookTokenInput upsert?: UserUpsertWithoutWebhookTokenInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutWebhookTokenInput> } export type UserCreateNestedOneWithoutNoConfigCommentsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutNoConfigCommentsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutNoConfigCommentsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutNoConfigCommentsInput upsert?: UserUpsertWithoutNoConfigCommentsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutNoConfigCommentsInput> } export type NestedIntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type NestedStringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringFilter<$PrismaModel> | string } export type NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type NestedDateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type NestedStringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type NestedFloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type NestedIntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedFloatFilter<$PrismaModel> _min?: NestedFloatFilter<$PrismaModel> _max?: NestedFloatFilter<$PrismaModel> } export type NestedJsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type NestedEnumPreviewStatusFilter<$PrismaModel = never> = { equals?: $Enums.PreviewStatus | EnumPreviewStatusFieldRefInput<$PrismaModel> in?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel> not?: NestedEnumPreviewStatusFilter<$PrismaModel> | $Enums.PreviewStatus } export type NestedDateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null } export type NestedEnumPreviewStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PreviewStatus | EnumPreviewStatusFieldRefInput<$PrismaModel> in?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PreviewStatus[] | ListEnumPreviewStatusFieldRefInput<$PrismaModel> not?: NestedEnumPreviewStatusWithAggregatesFilter<$PrismaModel> | $Enums.PreviewStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPreviewStatusFilter<$PrismaModel> _max?: NestedEnumPreviewStatusFilter<$PrismaModel> } export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type NestedFloatNullableFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableFilter<$PrismaModel> | number | null } export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type NestedEnumJobTypeFilter<$PrismaModel = never> = { equals?: $Enums.JobType | EnumJobTypeFieldRefInput<$PrismaModel> in?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel> notIn?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel> not?: NestedEnumJobTypeFilter<$PrismaModel> | $Enums.JobType } export type NestedEnumJobStatusFilter<$PrismaModel = never> = { equals?: $Enums.JobStatus | EnumJobStatusFieldRefInput<$PrismaModel> in?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel> notIn?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel> not?: NestedEnumJobStatusFilter<$PrismaModel> | $Enums.JobStatus } export type NestedEnumJobTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.JobType | EnumJobTypeFieldRefInput<$PrismaModel> in?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel> notIn?: $Enums.JobType[] | ListEnumJobTypeFieldRefInput<$PrismaModel> not?: NestedEnumJobTypeWithAggregatesFilter<$PrismaModel> | $Enums.JobType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumJobTypeFilter<$PrismaModel> _max?: NestedEnumJobTypeFilter<$PrismaModel> } export type NestedEnumJobStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.JobStatus | EnumJobStatusFieldRefInput<$PrismaModel> in?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel> notIn?: $Enums.JobStatus[] | ListEnumJobStatusFieldRefInput<$PrismaModel> not?: NestedEnumJobStatusWithAggregatesFilter<$PrismaModel> | $Enums.JobStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumJobStatusFilter<$PrismaModel> _max?: NestedEnumJobStatusFilter<$PrismaModel> } export type SessionCreateWithoutUserInput = { hash: string createdAt?: Date | string updatedAt?: Date | string } export type SessionUncheckedCreateWithoutUserInput = { id?: number hash: string createdAt?: Date | string updatedAt?: Date | string } export type SessionCreateOrConnectWithoutUserInput = { where: SessionWhereUniqueInput create: XOR } export type SessionCreateManyUserInputEnvelope = { data: SessionCreateManyUserInput | SessionCreateManyUserInput[] skipDuplicates?: boolean } export type RepoConfigCreateWithoutUserInput = { repoOwner: string repoName: string isEnabled?: boolean giteaWebhookId?: string | null denyList?: RepoConfigCreatedenyListInput | string[] instanceType?: string inactivityHours?: number port?: number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: boolean composeFilePath?: string | null aptPackages?: RepoConfigCreateaptPackagesInput | string[] setupCommands?: RepoConfigCreatesetupCommandsInput | string[] buildCommands?: RepoConfigCreatebuildCommandsInput | string[] postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[] runCommand?: string | null createdAt?: Date | string updatedAt?: Date | string previews?: PreviewCreateNestedManyWithoutRepoConfigInput } export type RepoConfigUncheckedCreateWithoutUserInput = { id?: number repoOwner: string repoName: string isEnabled?: boolean giteaWebhookId?: string | null denyList?: RepoConfigCreatedenyListInput | string[] instanceType?: string inactivityHours?: number port?: number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: boolean composeFilePath?: string | null aptPackages?: RepoConfigCreateaptPackagesInput | string[] setupCommands?: RepoConfigCreatesetupCommandsInput | string[] buildCommands?: RepoConfigCreatebuildCommandsInput | string[] postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[] runCommand?: string | null createdAt?: Date | string updatedAt?: Date | string previews?: PreviewUncheckedCreateNestedManyWithoutRepoConfigInput } export type RepoConfigCreateOrConnectWithoutUserInput = { where: RepoConfigWhereUniqueInput create: XOR } export type RepoConfigCreateManyUserInputEnvelope = { data: RepoConfigCreateManyUserInput | RepoConfigCreateManyUserInput[] skipDuplicates?: boolean } export type WebhookTokenCreateWithoutUserInput = { token: string createdAt?: Date | string } export type WebhookTokenUncheckedCreateWithoutUserInput = { id?: number token: string createdAt?: Date | string } export type WebhookTokenCreateOrConnectWithoutUserInput = { where: WebhookTokenWhereUniqueInput create: XOR } export type NoConfigCommentCreateWithoutUserInput = { repoOwner: string repoName: string prNumber: number createdAt?: Date | string } export type NoConfigCommentUncheckedCreateWithoutUserInput = { id?: number repoOwner: string repoName: string prNumber: number createdAt?: Date | string } export type NoConfigCommentCreateOrConnectWithoutUserInput = { where: NoConfigCommentWhereUniqueInput create: XOR } export type NoConfigCommentCreateManyUserInputEnvelope = { data: NoConfigCommentCreateManyUserInput | NoConfigCommentCreateManyUserInput[] skipDuplicates?: boolean } export type SessionUpsertWithWhereUniqueWithoutUserInput = { where: SessionWhereUniqueInput update: XOR create: XOR } export type SessionUpdateWithWhereUniqueWithoutUserInput = { where: SessionWhereUniqueInput data: XOR } export type SessionUpdateManyWithWhereWithoutUserInput = { where: SessionScalarWhereInput data: XOR } export type SessionScalarWhereInput = { AND?: SessionScalarWhereInput | SessionScalarWhereInput[] OR?: SessionScalarWhereInput[] NOT?: SessionScalarWhereInput | SessionScalarWhereInput[] id?: IntFilter<"Session"> | number hash?: StringFilter<"Session"> | string userId?: IntFilter<"Session"> | number createdAt?: DateTimeFilter<"Session"> | Date | string updatedAt?: DateTimeFilter<"Session"> | Date | string } export type RepoConfigUpsertWithWhereUniqueWithoutUserInput = { where: RepoConfigWhereUniqueInput update: XOR create: XOR } export type RepoConfigUpdateWithWhereUniqueWithoutUserInput = { where: RepoConfigWhereUniqueInput data: XOR } export type RepoConfigUpdateManyWithWhereWithoutUserInput = { where: RepoConfigScalarWhereInput data: XOR } export type RepoConfigScalarWhereInput = { AND?: RepoConfigScalarWhereInput | RepoConfigScalarWhereInput[] OR?: RepoConfigScalarWhereInput[] NOT?: RepoConfigScalarWhereInput | RepoConfigScalarWhereInput[] id?: IntFilter<"RepoConfig"> | number userId?: IntFilter<"RepoConfig"> | number repoOwner?: StringFilter<"RepoConfig"> | string repoName?: StringFilter<"RepoConfig"> | string isEnabled?: BoolFilter<"RepoConfig"> | boolean giteaWebhookId?: StringNullableFilter<"RepoConfig"> | string | null denyList?: StringNullableListFilter<"RepoConfig"> instanceType?: StringFilter<"RepoConfig"> | string inactivityHours?: FloatFilter<"RepoConfig"> | number port?: IntFilter<"RepoConfig"> | number envVars?: JsonFilter<"RepoConfig"> useDockerCompose?: BoolFilter<"RepoConfig"> | boolean composeFilePath?: StringNullableFilter<"RepoConfig"> | string | null aptPackages?: StringNullableListFilter<"RepoConfig"> setupCommands?: StringNullableListFilter<"RepoConfig"> buildCommands?: StringNullableListFilter<"RepoConfig"> postBuildCommands?: StringNullableListFilter<"RepoConfig"> runCommand?: StringNullableFilter<"RepoConfig"> | string | null createdAt?: DateTimeFilter<"RepoConfig"> | Date | string updatedAt?: DateTimeFilter<"RepoConfig"> | Date | string } export type WebhookTokenUpsertWithoutUserInput = { update: XOR create: XOR where?: WebhookTokenWhereInput } export type WebhookTokenUpdateToOneWithWhereWithoutUserInput = { where?: WebhookTokenWhereInput data: XOR } export type WebhookTokenUpdateWithoutUserInput = { token?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type WebhookTokenUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number token?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NoConfigCommentUpsertWithWhereUniqueWithoutUserInput = { where: NoConfigCommentWhereUniqueInput update: XOR create: XOR } export type NoConfigCommentUpdateWithWhereUniqueWithoutUserInput = { where: NoConfigCommentWhereUniqueInput data: XOR } export type NoConfigCommentUpdateManyWithWhereWithoutUserInput = { where: NoConfigCommentScalarWhereInput data: XOR } export type NoConfigCommentScalarWhereInput = { AND?: NoConfigCommentScalarWhereInput | NoConfigCommentScalarWhereInput[] OR?: NoConfigCommentScalarWhereInput[] NOT?: NoConfigCommentScalarWhereInput | NoConfigCommentScalarWhereInput[] id?: IntFilter<"NoConfigComment"> | number userId?: IntFilter<"NoConfigComment"> | number repoOwner?: StringFilter<"NoConfigComment"> | string repoName?: StringFilter<"NoConfigComment"> | string prNumber?: IntFilter<"NoConfigComment"> | number createdAt?: DateTimeFilter<"NoConfigComment"> | Date | string } export type UserCreateWithoutSessionsInput = { username: string passwordHash: string isAdmin?: boolean isFounder?: boolean createdAt?: Date | string updatedAt?: Date | string giteaUsername?: string | null giteaPAT?: string | null giteaInstanceUrl?: string | null awsAccessKeyId?: string | null awsSecretAccessKey?: string | null awsRegion?: string | null repoConfigs?: RepoConfigCreateNestedManyWithoutUserInput webhookToken?: WebhookTokenCreateNestedOneWithoutUserInput noConfigComments?: NoConfigCommentCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutSessionsInput = { id?: number username: string passwordHash: string isAdmin?: boolean isFounder?: boolean createdAt?: Date | string updatedAt?: Date | string giteaUsername?: string | null giteaPAT?: string | null giteaInstanceUrl?: string | null awsAccessKeyId?: string | null awsSecretAccessKey?: string | null awsRegion?: string | null repoConfigs?: RepoConfigUncheckedCreateNestedManyWithoutUserInput webhookToken?: WebhookTokenUncheckedCreateNestedOneWithoutUserInput noConfigComments?: NoConfigCommentUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutSessionsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutSessionsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutSessionsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutSessionsInput = { username?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string isAdmin?: BoolFieldUpdateOperationsInput | boolean isFounder?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null awsRegion?: NullableStringFieldUpdateOperationsInput | string | null repoConfigs?: RepoConfigUpdateManyWithoutUserNestedInput webhookToken?: WebhookTokenUpdateOneWithoutUserNestedInput noConfigComments?: NoConfigCommentUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutSessionsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string isAdmin?: BoolFieldUpdateOperationsInput | boolean isFounder?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null awsRegion?: NullableStringFieldUpdateOperationsInput | string | null repoConfigs?: RepoConfigUncheckedUpdateManyWithoutUserNestedInput webhookToken?: WebhookTokenUncheckedUpdateOneWithoutUserNestedInput noConfigComments?: NoConfigCommentUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutRepoConfigsInput = { username: string passwordHash: string isAdmin?: boolean isFounder?: boolean createdAt?: Date | string updatedAt?: Date | string giteaUsername?: string | null giteaPAT?: string | null giteaInstanceUrl?: string | null awsAccessKeyId?: string | null awsSecretAccessKey?: string | null awsRegion?: string | null sessions?: SessionCreateNestedManyWithoutUserInput webhookToken?: WebhookTokenCreateNestedOneWithoutUserInput noConfigComments?: NoConfigCommentCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutRepoConfigsInput = { id?: number username: string passwordHash: string isAdmin?: boolean isFounder?: boolean createdAt?: Date | string updatedAt?: Date | string giteaUsername?: string | null giteaPAT?: string | null giteaInstanceUrl?: string | null awsAccessKeyId?: string | null awsSecretAccessKey?: string | null awsRegion?: string | null sessions?: SessionUncheckedCreateNestedManyWithoutUserInput webhookToken?: WebhookTokenUncheckedCreateNestedOneWithoutUserInput noConfigComments?: NoConfigCommentUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutRepoConfigsInput = { where: UserWhereUniqueInput create: XOR } export type PreviewCreateWithoutRepoConfigInput = { prNumber: number prTitle: string commitSha: string instanceId?: string | null instanceIp?: string | null port?: number status?: $Enums.PreviewStatus logs?: string pid?: number | null sshPrivateKey?: string | null sshKeyName?: string | null giteaCommentId?: number | null lastActivityAt?: Date | string createdAt?: Date | string updatedAt?: Date | string stoppedAt?: Date | string | null jobs?: JobCreateNestedManyWithoutPreviewInput } export type PreviewUncheckedCreateWithoutRepoConfigInput = { id?: number prNumber: number prTitle: string commitSha: string instanceId?: string | null instanceIp?: string | null port?: number status?: $Enums.PreviewStatus logs?: string pid?: number | null sshPrivateKey?: string | null sshKeyName?: string | null giteaCommentId?: number | null lastActivityAt?: Date | string createdAt?: Date | string updatedAt?: Date | string stoppedAt?: Date | string | null jobs?: JobUncheckedCreateNestedManyWithoutPreviewInput } export type PreviewCreateOrConnectWithoutRepoConfigInput = { where: PreviewWhereUniqueInput create: XOR } export type PreviewCreateManyRepoConfigInputEnvelope = { data: PreviewCreateManyRepoConfigInput | PreviewCreateManyRepoConfigInput[] skipDuplicates?: boolean } export type UserUpsertWithoutRepoConfigsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutRepoConfigsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutRepoConfigsInput = { username?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string isAdmin?: BoolFieldUpdateOperationsInput | boolean isFounder?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null awsRegion?: NullableStringFieldUpdateOperationsInput | string | null sessions?: SessionUpdateManyWithoutUserNestedInput webhookToken?: WebhookTokenUpdateOneWithoutUserNestedInput noConfigComments?: NoConfigCommentUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutRepoConfigsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string isAdmin?: BoolFieldUpdateOperationsInput | boolean isFounder?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null awsRegion?: NullableStringFieldUpdateOperationsInput | string | null sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput webhookToken?: WebhookTokenUncheckedUpdateOneWithoutUserNestedInput noConfigComments?: NoConfigCommentUncheckedUpdateManyWithoutUserNestedInput } export type PreviewUpsertWithWhereUniqueWithoutRepoConfigInput = { where: PreviewWhereUniqueInput update: XOR create: XOR } export type PreviewUpdateWithWhereUniqueWithoutRepoConfigInput = { where: PreviewWhereUniqueInput data: XOR } export type PreviewUpdateManyWithWhereWithoutRepoConfigInput = { where: PreviewScalarWhereInput data: XOR } export type PreviewScalarWhereInput = { AND?: PreviewScalarWhereInput | PreviewScalarWhereInput[] OR?: PreviewScalarWhereInput[] NOT?: PreviewScalarWhereInput | PreviewScalarWhereInput[] id?: IntFilter<"Preview"> | number repoConfigId?: IntFilter<"Preview"> | number prNumber?: IntFilter<"Preview"> | number prTitle?: StringFilter<"Preview"> | string commitSha?: StringFilter<"Preview"> | string instanceId?: StringNullableFilter<"Preview"> | string | null instanceIp?: StringNullableFilter<"Preview"> | string | null port?: IntFilter<"Preview"> | number status?: EnumPreviewStatusFilter<"Preview"> | $Enums.PreviewStatus logs?: StringFilter<"Preview"> | string pid?: IntNullableFilter<"Preview"> | number | null sshPrivateKey?: StringNullableFilter<"Preview"> | string | null sshKeyName?: StringNullableFilter<"Preview"> | string | null giteaCommentId?: IntNullableFilter<"Preview"> | number | null lastActivityAt?: DateTimeFilter<"Preview"> | Date | string createdAt?: DateTimeFilter<"Preview"> | Date | string updatedAt?: DateTimeFilter<"Preview"> | Date | string stoppedAt?: DateTimeNullableFilter<"Preview"> | Date | string | null } export type RepoConfigCreateWithoutPreviewsInput = { repoOwner: string repoName: string isEnabled?: boolean giteaWebhookId?: string | null denyList?: RepoConfigCreatedenyListInput | string[] instanceType?: string inactivityHours?: number port?: number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: boolean composeFilePath?: string | null aptPackages?: RepoConfigCreateaptPackagesInput | string[] setupCommands?: RepoConfigCreatesetupCommandsInput | string[] buildCommands?: RepoConfigCreatebuildCommandsInput | string[] postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[] runCommand?: string | null createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutRepoConfigsInput } export type RepoConfigUncheckedCreateWithoutPreviewsInput = { id?: number userId: number repoOwner: string repoName: string isEnabled?: boolean giteaWebhookId?: string | null denyList?: RepoConfigCreatedenyListInput | string[] instanceType?: string inactivityHours?: number port?: number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: boolean composeFilePath?: string | null aptPackages?: RepoConfigCreateaptPackagesInput | string[] setupCommands?: RepoConfigCreatesetupCommandsInput | string[] buildCommands?: RepoConfigCreatebuildCommandsInput | string[] postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[] runCommand?: string | null createdAt?: Date | string updatedAt?: Date | string } export type RepoConfigCreateOrConnectWithoutPreviewsInput = { where: RepoConfigWhereUniqueInput create: XOR } export type JobCreateWithoutPreviewInput = { type: $Enums.JobType status?: $Enums.JobStatus payload?: JsonNullValueInput | InputJsonValue error?: string | null createdAt?: Date | string startedAt?: Date | string | null finishedAt?: Date | string | null } export type JobUncheckedCreateWithoutPreviewInput = { id?: number type: $Enums.JobType status?: $Enums.JobStatus payload?: JsonNullValueInput | InputJsonValue error?: string | null createdAt?: Date | string startedAt?: Date | string | null finishedAt?: Date | string | null } export type JobCreateOrConnectWithoutPreviewInput = { where: JobWhereUniqueInput create: XOR } export type JobCreateManyPreviewInputEnvelope = { data: JobCreateManyPreviewInput | JobCreateManyPreviewInput[] skipDuplicates?: boolean } export type RepoConfigUpsertWithoutPreviewsInput = { update: XOR create: XOR where?: RepoConfigWhereInput } export type RepoConfigUpdateToOneWithWhereWithoutPreviewsInput = { where?: RepoConfigWhereInput data: XOR } export type RepoConfigUpdateWithoutPreviewsInput = { repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string isEnabled?: BoolFieldUpdateOperationsInput | boolean giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null denyList?: RepoConfigUpdatedenyListInput | string[] instanceType?: StringFieldUpdateOperationsInput | string inactivityHours?: FloatFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: BoolFieldUpdateOperationsInput | boolean composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null aptPackages?: RepoConfigUpdateaptPackagesInput | string[] setupCommands?: RepoConfigUpdatesetupCommandsInput | string[] buildCommands?: RepoConfigUpdatebuildCommandsInput | string[] postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[] runCommand?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutRepoConfigsNestedInput } export type RepoConfigUncheckedUpdateWithoutPreviewsInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string isEnabled?: BoolFieldUpdateOperationsInput | boolean giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null denyList?: RepoConfigUpdatedenyListInput | string[] instanceType?: StringFieldUpdateOperationsInput | string inactivityHours?: FloatFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: BoolFieldUpdateOperationsInput | boolean composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null aptPackages?: RepoConfigUpdateaptPackagesInput | string[] setupCommands?: RepoConfigUpdatesetupCommandsInput | string[] buildCommands?: RepoConfigUpdatebuildCommandsInput | string[] postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[] runCommand?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type JobUpsertWithWhereUniqueWithoutPreviewInput = { where: JobWhereUniqueInput update: XOR create: XOR } export type JobUpdateWithWhereUniqueWithoutPreviewInput = { where: JobWhereUniqueInput data: XOR } export type JobUpdateManyWithWhereWithoutPreviewInput = { where: JobScalarWhereInput data: XOR } export type JobScalarWhereInput = { AND?: JobScalarWhereInput | JobScalarWhereInput[] OR?: JobScalarWhereInput[] NOT?: JobScalarWhereInput | JobScalarWhereInput[] id?: IntFilter<"Job"> | number previewId?: IntNullableFilter<"Job"> | number | null type?: EnumJobTypeFilter<"Job"> | $Enums.JobType status?: EnumJobStatusFilter<"Job"> | $Enums.JobStatus payload?: JsonFilter<"Job"> error?: StringNullableFilter<"Job"> | string | null createdAt?: DateTimeFilter<"Job"> | Date | string startedAt?: DateTimeNullableFilter<"Job"> | Date | string | null finishedAt?: DateTimeNullableFilter<"Job"> | Date | string | null } export type PreviewCreateWithoutJobsInput = { prNumber: number prTitle: string commitSha: string instanceId?: string | null instanceIp?: string | null port?: number status?: $Enums.PreviewStatus logs?: string pid?: number | null sshPrivateKey?: string | null sshKeyName?: string | null giteaCommentId?: number | null lastActivityAt?: Date | string createdAt?: Date | string updatedAt?: Date | string stoppedAt?: Date | string | null repoConfig: RepoConfigCreateNestedOneWithoutPreviewsInput } export type PreviewUncheckedCreateWithoutJobsInput = { id?: number repoConfigId: number prNumber: number prTitle: string commitSha: string instanceId?: string | null instanceIp?: string | null port?: number status?: $Enums.PreviewStatus logs?: string pid?: number | null sshPrivateKey?: string | null sshKeyName?: string | null giteaCommentId?: number | null lastActivityAt?: Date | string createdAt?: Date | string updatedAt?: Date | string stoppedAt?: Date | string | null } export type PreviewCreateOrConnectWithoutJobsInput = { where: PreviewWhereUniqueInput create: XOR } export type PreviewUpsertWithoutJobsInput = { update: XOR create: XOR where?: PreviewWhereInput } export type PreviewUpdateToOneWithWhereWithoutJobsInput = { where?: PreviewWhereInput data: XOR } export type PreviewUpdateWithoutJobsInput = { prNumber?: IntFieldUpdateOperationsInput | number prTitle?: StringFieldUpdateOperationsInput | string commitSha?: StringFieldUpdateOperationsInput | string instanceId?: NullableStringFieldUpdateOperationsInput | string | null instanceIp?: NullableStringFieldUpdateOperationsInput | string | null port?: IntFieldUpdateOperationsInput | number status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus logs?: StringFieldUpdateOperationsInput | string pid?: NullableIntFieldUpdateOperationsInput | number | null sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null repoConfig?: RepoConfigUpdateOneRequiredWithoutPreviewsNestedInput } export type PreviewUncheckedUpdateWithoutJobsInput = { id?: IntFieldUpdateOperationsInput | number repoConfigId?: IntFieldUpdateOperationsInput | number prNumber?: IntFieldUpdateOperationsInput | number prTitle?: StringFieldUpdateOperationsInput | string commitSha?: StringFieldUpdateOperationsInput | string instanceId?: NullableStringFieldUpdateOperationsInput | string | null instanceIp?: NullableStringFieldUpdateOperationsInput | string | null port?: IntFieldUpdateOperationsInput | number status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus logs?: StringFieldUpdateOperationsInput | string pid?: NullableIntFieldUpdateOperationsInput | number | null sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type UserCreateWithoutWebhookTokenInput = { username: string passwordHash: string isAdmin?: boolean isFounder?: boolean createdAt?: Date | string updatedAt?: Date | string giteaUsername?: string | null giteaPAT?: string | null giteaInstanceUrl?: string | null awsAccessKeyId?: string | null awsSecretAccessKey?: string | null awsRegion?: string | null sessions?: SessionCreateNestedManyWithoutUserInput repoConfigs?: RepoConfigCreateNestedManyWithoutUserInput noConfigComments?: NoConfigCommentCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutWebhookTokenInput = { id?: number username: string passwordHash: string isAdmin?: boolean isFounder?: boolean createdAt?: Date | string updatedAt?: Date | string giteaUsername?: string | null giteaPAT?: string | null giteaInstanceUrl?: string | null awsAccessKeyId?: string | null awsSecretAccessKey?: string | null awsRegion?: string | null sessions?: SessionUncheckedCreateNestedManyWithoutUserInput repoConfigs?: RepoConfigUncheckedCreateNestedManyWithoutUserInput noConfigComments?: NoConfigCommentUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutWebhookTokenInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutWebhookTokenInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutWebhookTokenInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutWebhookTokenInput = { username?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string isAdmin?: BoolFieldUpdateOperationsInput | boolean isFounder?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null awsRegion?: NullableStringFieldUpdateOperationsInput | string | null sessions?: SessionUpdateManyWithoutUserNestedInput repoConfigs?: RepoConfigUpdateManyWithoutUserNestedInput noConfigComments?: NoConfigCommentUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutWebhookTokenInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string isAdmin?: BoolFieldUpdateOperationsInput | boolean isFounder?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null awsRegion?: NullableStringFieldUpdateOperationsInput | string | null sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput repoConfigs?: RepoConfigUncheckedUpdateManyWithoutUserNestedInput noConfigComments?: NoConfigCommentUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutNoConfigCommentsInput = { username: string passwordHash: string isAdmin?: boolean isFounder?: boolean createdAt?: Date | string updatedAt?: Date | string giteaUsername?: string | null giteaPAT?: string | null giteaInstanceUrl?: string | null awsAccessKeyId?: string | null awsSecretAccessKey?: string | null awsRegion?: string | null sessions?: SessionCreateNestedManyWithoutUserInput repoConfigs?: RepoConfigCreateNestedManyWithoutUserInput webhookToken?: WebhookTokenCreateNestedOneWithoutUserInput } export type UserUncheckedCreateWithoutNoConfigCommentsInput = { id?: number username: string passwordHash: string isAdmin?: boolean isFounder?: boolean createdAt?: Date | string updatedAt?: Date | string giteaUsername?: string | null giteaPAT?: string | null giteaInstanceUrl?: string | null awsAccessKeyId?: string | null awsSecretAccessKey?: string | null awsRegion?: string | null sessions?: SessionUncheckedCreateNestedManyWithoutUserInput repoConfigs?: RepoConfigUncheckedCreateNestedManyWithoutUserInput webhookToken?: WebhookTokenUncheckedCreateNestedOneWithoutUserInput } export type UserCreateOrConnectWithoutNoConfigCommentsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutNoConfigCommentsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutNoConfigCommentsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutNoConfigCommentsInput = { username?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string isAdmin?: BoolFieldUpdateOperationsInput | boolean isFounder?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null awsRegion?: NullableStringFieldUpdateOperationsInput | string | null sessions?: SessionUpdateManyWithoutUserNestedInput repoConfigs?: RepoConfigUpdateManyWithoutUserNestedInput webhookToken?: WebhookTokenUpdateOneWithoutUserNestedInput } export type UserUncheckedUpdateWithoutNoConfigCommentsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string isAdmin?: BoolFieldUpdateOperationsInput | boolean isFounder?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string giteaUsername?: NullableStringFieldUpdateOperationsInput | string | null giteaPAT?: NullableStringFieldUpdateOperationsInput | string | null giteaInstanceUrl?: NullableStringFieldUpdateOperationsInput | string | null awsAccessKeyId?: NullableStringFieldUpdateOperationsInput | string | null awsSecretAccessKey?: NullableStringFieldUpdateOperationsInput | string | null awsRegion?: NullableStringFieldUpdateOperationsInput | string | null sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput repoConfigs?: RepoConfigUncheckedUpdateManyWithoutUserNestedInput webhookToken?: WebhookTokenUncheckedUpdateOneWithoutUserNestedInput } export type SessionCreateManyUserInput = { id?: number hash: string createdAt?: Date | string updatedAt?: Date | string } export type RepoConfigCreateManyUserInput = { id?: number repoOwner: string repoName: string isEnabled?: boolean giteaWebhookId?: string | null denyList?: RepoConfigCreatedenyListInput | string[] instanceType?: string inactivityHours?: number port?: number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: boolean composeFilePath?: string | null aptPackages?: RepoConfigCreateaptPackagesInput | string[] setupCommands?: RepoConfigCreatesetupCommandsInput | string[] buildCommands?: RepoConfigCreatebuildCommandsInput | string[] postBuildCommands?: RepoConfigCreatepostBuildCommandsInput | string[] runCommand?: string | null createdAt?: Date | string updatedAt?: Date | string } export type NoConfigCommentCreateManyUserInput = { id?: number repoOwner: string repoName: string prNumber: number createdAt?: Date | string } export type SessionUpdateWithoutUserInput = { hash?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number hash?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number hash?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type RepoConfigUpdateWithoutUserInput = { repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string isEnabled?: BoolFieldUpdateOperationsInput | boolean giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null denyList?: RepoConfigUpdatedenyListInput | string[] instanceType?: StringFieldUpdateOperationsInput | string inactivityHours?: FloatFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: BoolFieldUpdateOperationsInput | boolean composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null aptPackages?: RepoConfigUpdateaptPackagesInput | string[] setupCommands?: RepoConfigUpdatesetupCommandsInput | string[] buildCommands?: RepoConfigUpdatebuildCommandsInput | string[] postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[] runCommand?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string previews?: PreviewUpdateManyWithoutRepoConfigNestedInput } export type RepoConfigUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string isEnabled?: BoolFieldUpdateOperationsInput | boolean giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null denyList?: RepoConfigUpdatedenyListInput | string[] instanceType?: StringFieldUpdateOperationsInput | string inactivityHours?: FloatFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: BoolFieldUpdateOperationsInput | boolean composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null aptPackages?: RepoConfigUpdateaptPackagesInput | string[] setupCommands?: RepoConfigUpdatesetupCommandsInput | string[] buildCommands?: RepoConfigUpdatebuildCommandsInput | string[] postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[] runCommand?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string previews?: PreviewUncheckedUpdateManyWithoutRepoConfigNestedInput } export type RepoConfigUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string isEnabled?: BoolFieldUpdateOperationsInput | boolean giteaWebhookId?: NullableStringFieldUpdateOperationsInput | string | null denyList?: RepoConfigUpdatedenyListInput | string[] instanceType?: StringFieldUpdateOperationsInput | string inactivityHours?: FloatFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number envVars?: JsonNullValueInput | InputJsonValue useDockerCompose?: BoolFieldUpdateOperationsInput | boolean composeFilePath?: NullableStringFieldUpdateOperationsInput | string | null aptPackages?: RepoConfigUpdateaptPackagesInput | string[] setupCommands?: RepoConfigUpdatesetupCommandsInput | string[] buildCommands?: RepoConfigUpdatebuildCommandsInput | string[] postBuildCommands?: RepoConfigUpdatepostBuildCommandsInput | string[] runCommand?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NoConfigCommentUpdateWithoutUserInput = { repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string prNumber?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NoConfigCommentUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string prNumber?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NoConfigCommentUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number repoOwner?: StringFieldUpdateOperationsInput | string repoName?: StringFieldUpdateOperationsInput | string prNumber?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PreviewCreateManyRepoConfigInput = { id?: number prNumber: number prTitle: string commitSha: string instanceId?: string | null instanceIp?: string | null port?: number status?: $Enums.PreviewStatus logs?: string pid?: number | null sshPrivateKey?: string | null sshKeyName?: string | null giteaCommentId?: number | null lastActivityAt?: Date | string createdAt?: Date | string updatedAt?: Date | string stoppedAt?: Date | string | null } export type PreviewUpdateWithoutRepoConfigInput = { prNumber?: IntFieldUpdateOperationsInput | number prTitle?: StringFieldUpdateOperationsInput | string commitSha?: StringFieldUpdateOperationsInput | string instanceId?: NullableStringFieldUpdateOperationsInput | string | null instanceIp?: NullableStringFieldUpdateOperationsInput | string | null port?: IntFieldUpdateOperationsInput | number status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus logs?: StringFieldUpdateOperationsInput | string pid?: NullableIntFieldUpdateOperationsInput | number | null sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null jobs?: JobUpdateManyWithoutPreviewNestedInput } export type PreviewUncheckedUpdateWithoutRepoConfigInput = { id?: IntFieldUpdateOperationsInput | number prNumber?: IntFieldUpdateOperationsInput | number prTitle?: StringFieldUpdateOperationsInput | string commitSha?: StringFieldUpdateOperationsInput | string instanceId?: NullableStringFieldUpdateOperationsInput | string | null instanceIp?: NullableStringFieldUpdateOperationsInput | string | null port?: IntFieldUpdateOperationsInput | number status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus logs?: StringFieldUpdateOperationsInput | string pid?: NullableIntFieldUpdateOperationsInput | number | null sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null jobs?: JobUncheckedUpdateManyWithoutPreviewNestedInput } export type PreviewUncheckedUpdateManyWithoutRepoConfigInput = { id?: IntFieldUpdateOperationsInput | number prNumber?: IntFieldUpdateOperationsInput | number prTitle?: StringFieldUpdateOperationsInput | string commitSha?: StringFieldUpdateOperationsInput | string instanceId?: NullableStringFieldUpdateOperationsInput | string | null instanceIp?: NullableStringFieldUpdateOperationsInput | string | null port?: IntFieldUpdateOperationsInput | number status?: EnumPreviewStatusFieldUpdateOperationsInput | $Enums.PreviewStatus logs?: StringFieldUpdateOperationsInput | string pid?: NullableIntFieldUpdateOperationsInput | number | null sshPrivateKey?: NullableStringFieldUpdateOperationsInput | string | null sshKeyName?: NullableStringFieldUpdateOperationsInput | string | null giteaCommentId?: NullableIntFieldUpdateOperationsInput | number | null lastActivityAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string stoppedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type JobCreateManyPreviewInput = { id?: number type: $Enums.JobType status?: $Enums.JobStatus payload?: JsonNullValueInput | InputJsonValue error?: string | null createdAt?: Date | string startedAt?: Date | string | null finishedAt?: Date | string | null } export type JobUpdateWithoutPreviewInput = { type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus payload?: JsonNullValueInput | InputJsonValue error?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type JobUncheckedUpdateWithoutPreviewInput = { id?: IntFieldUpdateOperationsInput | number type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus payload?: JsonNullValueInput | InputJsonValue error?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type JobUncheckedUpdateManyWithoutPreviewInput = { id?: IntFieldUpdateOperationsInput | number type?: EnumJobTypeFieldUpdateOperationsInput | $Enums.JobType status?: EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus payload?: JsonNullValueInput | InputJsonValue error?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }