/** * Client **/ import * as runtime from './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 Task * */ export type Task = $Result.DefaultSelection /** * Model Claim * */ export type Claim = $Result.DefaultSelection /** * Model Submission * */ export type Submission = $Result.DefaultSelection /** * Model JudgeResult * */ export type JudgeResult = $Result.DefaultSelection /** * Model AuditEvent * */ export type AuditEvent = $Result.DefaultSelection /** * Model LedgerEntry * */ export type LedgerEntry = $Result.DefaultSelection /** * Model AgentProfile * */ export type AgentProfile = $Result.DefaultSelection /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Tasks * const tasks = await prisma.task.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 Tasks * const tasks = await prisma.task.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.task`: Exposes CRUD operations for the **Task** model. * Example usage: * ```ts * // Fetch zero or more Tasks * const tasks = await prisma.task.findMany() * ``` */ get task(): Prisma.TaskDelegate; /** * `prisma.claim`: Exposes CRUD operations for the **Claim** model. * Example usage: * ```ts * // Fetch zero or more Claims * const claims = await prisma.claim.findMany() * ``` */ get claim(): Prisma.ClaimDelegate; /** * `prisma.submission`: Exposes CRUD operations for the **Submission** model. * Example usage: * ```ts * // Fetch zero or more Submissions * const submissions = await prisma.submission.findMany() * ``` */ get submission(): Prisma.SubmissionDelegate; /** * `prisma.judgeResult`: Exposes CRUD operations for the **JudgeResult** model. * Example usage: * ```ts * // Fetch zero or more JudgeResults * const judgeResults = await prisma.judgeResult.findMany() * ``` */ get judgeResult(): Prisma.JudgeResultDelegate; /** * `prisma.auditEvent`: Exposes CRUD operations for the **AuditEvent** model. * Example usage: * ```ts * // Fetch zero or more AuditEvents * const auditEvents = await prisma.auditEvent.findMany() * ``` */ get auditEvent(): Prisma.AuditEventDelegate; /** * `prisma.ledgerEntry`: Exposes CRUD operations for the **LedgerEntry** model. * Example usage: * ```ts * // Fetch zero or more LedgerEntries * const ledgerEntries = await prisma.ledgerEntry.findMany() * ``` */ get ledgerEntry(): Prisma.LedgerEntryDelegate; /** * `prisma.agentProfile`: Exposes CRUD operations for the **AgentProfile** model. * Example usage: * ```ts * // Fetch zero or more AgentProfiles * const agentProfiles = await prisma.agentProfile.findMany() * ``` */ get agentProfile(): Prisma.AgentProfileDelegate; } 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: { Task: 'Task', Claim: 'Claim', Submission: 'Submission', JudgeResult: 'JudgeResult', AuditEvent: 'AuditEvent', LedgerEntry: 'LedgerEntry', AgentProfile: 'AgentProfile' }; 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: "task" | "claim" | "submission" | "judgeResult" | "auditEvent" | "ledgerEntry" | "agentProfile" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { Task: { payload: Prisma.$TaskPayload fields: Prisma.TaskFieldRefs operations: { findUnique: { args: Prisma.TaskFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.TaskFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.TaskFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.TaskFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.TaskFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.TaskCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.TaskCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.TaskCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.TaskDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.TaskUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.TaskDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.TaskUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.TaskUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.TaskUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.TaskAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.TaskGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.TaskCountArgs result: $Utils.Optional | number } } } Claim: { payload: Prisma.$ClaimPayload fields: Prisma.ClaimFieldRefs operations: { findUnique: { args: Prisma.ClaimFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ClaimFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ClaimFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ClaimFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ClaimFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ClaimCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ClaimCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ClaimCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ClaimDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ClaimUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ClaimDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ClaimUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ClaimUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ClaimUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ClaimAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ClaimGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ClaimCountArgs result: $Utils.Optional | number } } } Submission: { payload: Prisma.$SubmissionPayload fields: Prisma.SubmissionFieldRefs operations: { findUnique: { args: Prisma.SubmissionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SubmissionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SubmissionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SubmissionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SubmissionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SubmissionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SubmissionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.SubmissionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.SubmissionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SubmissionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SubmissionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SubmissionUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.SubmissionUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.SubmissionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SubmissionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SubmissionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SubmissionCountArgs result: $Utils.Optional | number } } } JudgeResult: { payload: Prisma.$JudgeResultPayload fields: Prisma.JudgeResultFieldRefs operations: { findUnique: { args: Prisma.JudgeResultFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.JudgeResultFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.JudgeResultFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.JudgeResultFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.JudgeResultFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.JudgeResultCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.JudgeResultCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.JudgeResultCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.JudgeResultDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.JudgeResultUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.JudgeResultDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.JudgeResultUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.JudgeResultUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.JudgeResultUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.JudgeResultAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.JudgeResultGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.JudgeResultCountArgs result: $Utils.Optional | number } } } AuditEvent: { payload: Prisma.$AuditEventPayload fields: Prisma.AuditEventFieldRefs operations: { findUnique: { args: Prisma.AuditEventFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AuditEventFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AuditEventFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AuditEventFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AuditEventFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AuditEventCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AuditEventCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AuditEventCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AuditEventDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AuditEventUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AuditEventDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AuditEventUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AuditEventUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AuditEventUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AuditEventAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AuditEventGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AuditEventCountArgs result: $Utils.Optional | number } } } LedgerEntry: { payload: Prisma.$LedgerEntryPayload fields: Prisma.LedgerEntryFieldRefs operations: { findUnique: { args: Prisma.LedgerEntryFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.LedgerEntryFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.LedgerEntryFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.LedgerEntryFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.LedgerEntryFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.LedgerEntryCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.LedgerEntryCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.LedgerEntryCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.LedgerEntryDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.LedgerEntryUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.LedgerEntryDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.LedgerEntryUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.LedgerEntryUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.LedgerEntryUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.LedgerEntryAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.LedgerEntryGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.LedgerEntryCountArgs result: $Utils.Optional | number } } } AgentProfile: { payload: Prisma.$AgentProfilePayload fields: Prisma.AgentProfileFieldRefs operations: { findUnique: { args: Prisma.AgentProfileFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AgentProfileFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AgentProfileFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AgentProfileFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AgentProfileFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AgentProfileCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AgentProfileCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AgentProfileCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AgentProfileDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AgentProfileUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AgentProfileDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AgentProfileUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AgentProfileUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AgentProfileUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AgentProfileAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AgentProfileGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AgentProfileCountArgs 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 = { task?: TaskOmit claim?: ClaimOmit submission?: SubmissionOmit judgeResult?: JudgeResultOmit auditEvent?: AuditEventOmit ledgerEntry?: LedgerEntryOmit agentProfile?: AgentProfileOmit } /* 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 TaskCountOutputType */ export type TaskCountOutputType = { claims: number submissions: number } export type TaskCountOutputTypeSelect = { claims?: boolean | TaskCountOutputTypeCountClaimsArgs submissions?: boolean | TaskCountOutputTypeCountSubmissionsArgs } // Custom InputTypes /** * TaskCountOutputType without action */ export type TaskCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the TaskCountOutputType */ select?: TaskCountOutputTypeSelect | null } /** * TaskCountOutputType without action */ export type TaskCountOutputTypeCountClaimsArgs = { where?: ClaimWhereInput } /** * TaskCountOutputType without action */ export type TaskCountOutputTypeCountSubmissionsArgs = { where?: SubmissionWhereInput } /** * Count Type ClaimCountOutputType */ export type ClaimCountOutputType = { submissions: number } export type ClaimCountOutputTypeSelect = { submissions?: boolean | ClaimCountOutputTypeCountSubmissionsArgs } // Custom InputTypes /** * ClaimCountOutputType without action */ export type ClaimCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ClaimCountOutputType */ select?: ClaimCountOutputTypeSelect | null } /** * ClaimCountOutputType without action */ export type ClaimCountOutputTypeCountSubmissionsArgs = { where?: SubmissionWhereInput } /** * Count Type SubmissionCountOutputType */ export type SubmissionCountOutputType = { judge_results: number } export type SubmissionCountOutputTypeSelect = { judge_results?: boolean | SubmissionCountOutputTypeCountJudge_resultsArgs } // Custom InputTypes /** * SubmissionCountOutputType without action */ export type SubmissionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the SubmissionCountOutputType */ select?: SubmissionCountOutputTypeSelect | null } /** * SubmissionCountOutputType without action */ export type SubmissionCountOutputTypeCountJudge_resultsArgs = { where?: JudgeResultWhereInput } /** * Count Type AgentProfileCountOutputType */ export type AgentProfileCountOutputType = { tasks_as_scout: number tasks_as_builder: number claims: number } export type AgentProfileCountOutputTypeSelect = { tasks_as_scout?: boolean | AgentProfileCountOutputTypeCountTasks_as_scoutArgs tasks_as_builder?: boolean | AgentProfileCountOutputTypeCountTasks_as_builderArgs claims?: boolean | AgentProfileCountOutputTypeCountClaimsArgs } // Custom InputTypes /** * AgentProfileCountOutputType without action */ export type AgentProfileCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AgentProfileCountOutputType */ select?: AgentProfileCountOutputTypeSelect | null } /** * AgentProfileCountOutputType without action */ export type AgentProfileCountOutputTypeCountTasks_as_scoutArgs = { where?: TaskWhereInput } /** * AgentProfileCountOutputType without action */ export type AgentProfileCountOutputTypeCountTasks_as_builderArgs = { where?: TaskWhereInput } /** * AgentProfileCountOutputType without action */ export type AgentProfileCountOutputTypeCountClaimsArgs = { where?: ClaimWhereInput } /** * Models */ /** * Model Task */ export type AggregateTask = { _count: TaskCountAggregateOutputType | null _avg: TaskAvgAggregateOutputType | null _sum: TaskSumAggregateOutputType | null _min: TaskMinAggregateOutputType | null _max: TaskMaxAggregateOutputType | null } export type TaskAvgAggregateOutputType = { scope_clarity_score: number | null reward_amount: number | null retry_count: number | null reward_points: number | null } export type TaskSumAggregateOutputType = { scope_clarity_score: number | null reward_amount: number | null retry_count: number | null reward_points: number | null } export type TaskMinAggregateOutputType = { id: string | null title: string | null description: string | null status: string | null difficulty: string | null scope_clarity_score: number | null error_classification: string | null reward_amount: number | null reward_currency: string | null retry_count: number | null stripe_payment_intent_id: string | null stripe_checkout_session_id: string | null expires_at: Date | null github_pr_url: string | null reward_points: number | null is_priority: boolean | null is_private: boolean | null referred_by_agent: string | null parent_task_id: string | null created_by_agent: string | null created_at: Date | null updated_at: Date | null scout_id: string | null builder_id: string | null } export type TaskMaxAggregateOutputType = { id: string | null title: string | null description: string | null status: string | null difficulty: string | null scope_clarity_score: number | null error_classification: string | null reward_amount: number | null reward_currency: string | null retry_count: number | null stripe_payment_intent_id: string | null stripe_checkout_session_id: string | null expires_at: Date | null github_pr_url: string | null reward_points: number | null is_priority: boolean | null is_private: boolean | null referred_by_agent: string | null parent_task_id: string | null created_by_agent: string | null created_at: Date | null updated_at: Date | null scout_id: string | null builder_id: string | null } export type TaskCountAggregateOutputType = { id: number title: number description: number status: number difficulty: number scope_clarity_score: number error_classification: number reward_amount: number reward_currency: number acceptance_criteria: number required_stack: number retry_count: number stripe_payment_intent_id: number stripe_checkout_session_id: number expires_at: number github_pr_url: number reward_points: number is_priority: number is_private: number referred_by_agent: number parent_task_id: number created_by_agent: number created_at: number updated_at: number scout_id: number builder_id: number _all: number } export type TaskAvgAggregateInputType = { scope_clarity_score?: true reward_amount?: true retry_count?: true reward_points?: true } export type TaskSumAggregateInputType = { scope_clarity_score?: true reward_amount?: true retry_count?: true reward_points?: true } export type TaskMinAggregateInputType = { id?: true title?: true description?: true status?: true difficulty?: true scope_clarity_score?: true error_classification?: true reward_amount?: true reward_currency?: true retry_count?: true stripe_payment_intent_id?: true stripe_checkout_session_id?: true expires_at?: true github_pr_url?: true reward_points?: true is_priority?: true is_private?: true referred_by_agent?: true parent_task_id?: true created_by_agent?: true created_at?: true updated_at?: true scout_id?: true builder_id?: true } export type TaskMaxAggregateInputType = { id?: true title?: true description?: true status?: true difficulty?: true scope_clarity_score?: true error_classification?: true reward_amount?: true reward_currency?: true retry_count?: true stripe_payment_intent_id?: true stripe_checkout_session_id?: true expires_at?: true github_pr_url?: true reward_points?: true is_priority?: true is_private?: true referred_by_agent?: true parent_task_id?: true created_by_agent?: true created_at?: true updated_at?: true scout_id?: true builder_id?: true } export type TaskCountAggregateInputType = { id?: true title?: true description?: true status?: true difficulty?: true scope_clarity_score?: true error_classification?: true reward_amount?: true reward_currency?: true acceptance_criteria?: true required_stack?: true retry_count?: true stripe_payment_intent_id?: true stripe_checkout_session_id?: true expires_at?: true github_pr_url?: true reward_points?: true is_priority?: true is_private?: true referred_by_agent?: true parent_task_id?: true created_by_agent?: true created_at?: true updated_at?: true scout_id?: true builder_id?: true _all?: true } export type TaskAggregateArgs = { /** * Filter which Task to aggregate. */ where?: TaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tasks to fetch. */ orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: TaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tasks from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Tasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Tasks **/ _count?: true | TaskCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TaskAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TaskSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TaskMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TaskMaxAggregateInputType } export type GetTaskAggregateType = { [P in keyof T & keyof AggregateTask]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type TaskGroupByArgs = { where?: TaskWhereInput orderBy?: TaskOrderByWithAggregationInput | TaskOrderByWithAggregationInput[] by: TaskScalarFieldEnum[] | TaskScalarFieldEnum having?: TaskScalarWhereWithAggregatesInput take?: number skip?: number _count?: TaskCountAggregateInputType | true _avg?: TaskAvgAggregateInputType _sum?: TaskSumAggregateInputType _min?: TaskMinAggregateInputType _max?: TaskMaxAggregateInputType } export type TaskGroupByOutputType = { id: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonValue required_stack: string[] retry_count: number stripe_payment_intent_id: string | null stripe_checkout_session_id: string | null expires_at: Date | null github_pr_url: string | null reward_points: number is_priority: boolean is_private: boolean referred_by_agent: string | null parent_task_id: string | null created_by_agent: string | null created_at: Date updated_at: Date scout_id: string | null builder_id: string | null _count: TaskCountAggregateOutputType | null _avg: TaskAvgAggregateOutputType | null _sum: TaskSumAggregateOutputType | null _min: TaskMinAggregateOutputType | null _max: TaskMaxAggregateOutputType | null } type GetTaskGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof TaskGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type TaskSelect = $Extensions.GetSelect<{ id?: boolean title?: boolean description?: boolean status?: boolean difficulty?: boolean scope_clarity_score?: boolean error_classification?: boolean reward_amount?: boolean reward_currency?: boolean acceptance_criteria?: boolean required_stack?: boolean retry_count?: boolean stripe_payment_intent_id?: boolean stripe_checkout_session_id?: boolean expires_at?: boolean github_pr_url?: boolean reward_points?: boolean is_priority?: boolean is_private?: boolean referred_by_agent?: boolean parent_task_id?: boolean created_by_agent?: boolean created_at?: boolean updated_at?: boolean scout_id?: boolean builder_id?: boolean scout_agent?: boolean | Task$scout_agentArgs builder_agent?: boolean | Task$builder_agentArgs claims?: boolean | Task$claimsArgs submissions?: boolean | Task$submissionsArgs _count?: boolean | TaskCountOutputTypeDefaultArgs }, ExtArgs["result"]["task"]> export type TaskSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean title?: boolean description?: boolean status?: boolean difficulty?: boolean scope_clarity_score?: boolean error_classification?: boolean reward_amount?: boolean reward_currency?: boolean acceptance_criteria?: boolean required_stack?: boolean retry_count?: boolean stripe_payment_intent_id?: boolean stripe_checkout_session_id?: boolean expires_at?: boolean github_pr_url?: boolean reward_points?: boolean is_priority?: boolean is_private?: boolean referred_by_agent?: boolean parent_task_id?: boolean created_by_agent?: boolean created_at?: boolean updated_at?: boolean scout_id?: boolean builder_id?: boolean scout_agent?: boolean | Task$scout_agentArgs builder_agent?: boolean | Task$builder_agentArgs }, ExtArgs["result"]["task"]> export type TaskSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean title?: boolean description?: boolean status?: boolean difficulty?: boolean scope_clarity_score?: boolean error_classification?: boolean reward_amount?: boolean reward_currency?: boolean acceptance_criteria?: boolean required_stack?: boolean retry_count?: boolean stripe_payment_intent_id?: boolean stripe_checkout_session_id?: boolean expires_at?: boolean github_pr_url?: boolean reward_points?: boolean is_priority?: boolean is_private?: boolean referred_by_agent?: boolean parent_task_id?: boolean created_by_agent?: boolean created_at?: boolean updated_at?: boolean scout_id?: boolean builder_id?: boolean scout_agent?: boolean | Task$scout_agentArgs builder_agent?: boolean | Task$builder_agentArgs }, ExtArgs["result"]["task"]> export type TaskSelectScalar = { id?: boolean title?: boolean description?: boolean status?: boolean difficulty?: boolean scope_clarity_score?: boolean error_classification?: boolean reward_amount?: boolean reward_currency?: boolean acceptance_criteria?: boolean required_stack?: boolean retry_count?: boolean stripe_payment_intent_id?: boolean stripe_checkout_session_id?: boolean expires_at?: boolean github_pr_url?: boolean reward_points?: boolean is_priority?: boolean is_private?: boolean referred_by_agent?: boolean parent_task_id?: boolean created_by_agent?: boolean created_at?: boolean updated_at?: boolean scout_id?: boolean builder_id?: boolean } export type TaskOmit = $Extensions.GetOmit<"id" | "title" | "description" | "status" | "difficulty" | "scope_clarity_score" | "error_classification" | "reward_amount" | "reward_currency" | "acceptance_criteria" | "required_stack" | "retry_count" | "stripe_payment_intent_id" | "stripe_checkout_session_id" | "expires_at" | "github_pr_url" | "reward_points" | "is_priority" | "is_private" | "referred_by_agent" | "parent_task_id" | "created_by_agent" | "created_at" | "updated_at" | "scout_id" | "builder_id", ExtArgs["result"]["task"]> export type TaskInclude = { scout_agent?: boolean | Task$scout_agentArgs builder_agent?: boolean | Task$builder_agentArgs claims?: boolean | Task$claimsArgs submissions?: boolean | Task$submissionsArgs _count?: boolean | TaskCountOutputTypeDefaultArgs } export type TaskIncludeCreateManyAndReturn = { scout_agent?: boolean | Task$scout_agentArgs builder_agent?: boolean | Task$builder_agentArgs } export type TaskIncludeUpdateManyAndReturn = { scout_agent?: boolean | Task$scout_agentArgs builder_agent?: boolean | Task$builder_agentArgs } export type $TaskPayload = { name: "Task" objects: { scout_agent: Prisma.$AgentProfilePayload | null builder_agent: Prisma.$AgentProfilePayload | null claims: Prisma.$ClaimPayload[] submissions: Prisma.$SubmissionPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification: string | null reward_amount: number reward_currency: string acceptance_criteria: Prisma.JsonValue required_stack: string[] retry_count: number stripe_payment_intent_id: string | null stripe_checkout_session_id: string | null expires_at: Date | null github_pr_url: string | null reward_points: number is_priority: boolean is_private: boolean referred_by_agent: string | null parent_task_id: string | null created_by_agent: string | null created_at: Date updated_at: Date scout_id: string | null builder_id: string | null }, ExtArgs["result"]["task"]> composites: {} } type TaskGetPayload = $Result.GetResult type TaskCountArgs = Omit & { select?: TaskCountAggregateInputType | true } export interface TaskDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Task'], meta: { name: 'Task' } } /** * Find zero or one Task that matches the filter. * @param {TaskFindUniqueArgs} args - Arguments to find a Task * @example * // Get one Task * const task = await prisma.task.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Task that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TaskFindUniqueOrThrowArgs} args - Arguments to find a Task * @example * // Get one Task * const task = await prisma.task.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Task that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskFindFirstArgs} args - Arguments to find a Task * @example * // Get one Task * const task = await prisma.task.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Task that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskFindFirstOrThrowArgs} args - Arguments to find a Task * @example * // Get one Task * const task = await prisma.task.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Tasks that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Tasks * const tasks = await prisma.task.findMany() * * // Get first 10 Tasks * const tasks = await prisma.task.findMany({ take: 10 }) * * // Only select the `id` * const taskWithIdOnly = await prisma.task.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Task. * @param {TaskCreateArgs} args - Arguments to create a Task. * @example * // Create one Task * const Task = await prisma.task.create({ * data: { * // ... data to create a Task * } * }) * */ create(args: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Tasks. * @param {TaskCreateManyArgs} args - Arguments to create many Tasks. * @example * // Create many Tasks * const task = await prisma.task.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Tasks and returns the data saved in the database. * @param {TaskCreateManyAndReturnArgs} args - Arguments to create many Tasks. * @example * // Create many Tasks * const task = await prisma.task.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Tasks and only return the `id` * const taskWithIdOnly = await prisma.task.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Task. * @param {TaskDeleteArgs} args - Arguments to delete one Task. * @example * // Delete one Task * const Task = await prisma.task.delete({ * where: { * // ... filter to delete one Task * } * }) * */ delete(args: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Task. * @param {TaskUpdateArgs} args - Arguments to update one Task. * @example * // Update one Task * const task = await prisma.task.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Tasks. * @param {TaskDeleteManyArgs} args - Arguments to filter Tasks to delete. * @example * // Delete a few Tasks * const { count } = await prisma.task.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Tasks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Tasks * const task = await prisma.task.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Tasks and returns the data updated in the database. * @param {TaskUpdateManyAndReturnArgs} args - Arguments to update many Tasks. * @example * // Update many Tasks * const task = await prisma.task.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Tasks and only return the `id` * const taskWithIdOnly = await prisma.task.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Task. * @param {TaskUpsertArgs} args - Arguments to update or create a Task. * @example * // Update or create a Task * const task = await prisma.task.upsert({ * create: { * // ... data to create a Task * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Task we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Tasks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskCountArgs} args - Arguments to filter Tasks to count. * @example * // Count the number of Tasks * const count = await prisma.task.count({ * where: { * // ... the filter for the Tasks we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Task. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Task. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends TaskGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: TaskGroupByArgs['orderBy'] } : { orderBy?: TaskGroupByArgs['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 ? GetTaskGroupByPayload : Prisma.PrismaPromise /** * Fields of the Task model */ readonly fields: TaskFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Task. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__TaskClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" scout_agent = {}>(args?: Subset>): Prisma__AgentProfileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> builder_agent = {}>(args?: Subset>): Prisma__AgentProfileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> claims = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> submissions = {}>(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 Task model */ interface TaskFieldRefs { readonly id: FieldRef<"Task", 'String'> readonly title: FieldRef<"Task", 'String'> readonly description: FieldRef<"Task", 'String'> readonly status: FieldRef<"Task", 'String'> readonly difficulty: FieldRef<"Task", 'String'> readonly scope_clarity_score: FieldRef<"Task", 'Float'> readonly error_classification: FieldRef<"Task", 'String'> readonly reward_amount: FieldRef<"Task", 'Int'> readonly reward_currency: FieldRef<"Task", 'String'> readonly acceptance_criteria: FieldRef<"Task", 'Json'> readonly required_stack: FieldRef<"Task", 'String[]'> readonly retry_count: FieldRef<"Task", 'Int'> readonly stripe_payment_intent_id: FieldRef<"Task", 'String'> readonly stripe_checkout_session_id: FieldRef<"Task", 'String'> readonly expires_at: FieldRef<"Task", 'DateTime'> readonly github_pr_url: FieldRef<"Task", 'String'> readonly reward_points: FieldRef<"Task", 'Int'> readonly is_priority: FieldRef<"Task", 'Boolean'> readonly is_private: FieldRef<"Task", 'Boolean'> readonly referred_by_agent: FieldRef<"Task", 'String'> readonly parent_task_id: FieldRef<"Task", 'String'> readonly created_by_agent: FieldRef<"Task", 'String'> readonly created_at: FieldRef<"Task", 'DateTime'> readonly updated_at: FieldRef<"Task", 'DateTime'> readonly scout_id: FieldRef<"Task", 'String'> readonly builder_id: FieldRef<"Task", 'String'> } // Custom InputTypes /** * Task findUnique */ export type TaskFindUniqueArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * Filter, which Task to fetch. */ where: TaskWhereUniqueInput } /** * Task findUniqueOrThrow */ export type TaskFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * Filter, which Task to fetch. */ where: TaskWhereUniqueInput } /** * Task findFirst */ export type TaskFindFirstArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * Filter, which Task to fetch. */ where?: TaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tasks to fetch. */ orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Tasks. */ cursor?: TaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tasks from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Tasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Tasks. */ distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[] } /** * Task findFirstOrThrow */ export type TaskFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * Filter, which Task to fetch. */ where?: TaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tasks to fetch. */ orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Tasks. */ cursor?: TaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tasks from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Tasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Tasks. */ distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[] } /** * Task findMany */ export type TaskFindManyArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * Filter, which Tasks to fetch. */ where?: TaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tasks to fetch. */ orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Tasks. */ cursor?: TaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tasks from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Tasks. */ skip?: number distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[] } /** * Task create */ export type TaskCreateArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * The data needed to create a Task. */ data: XOR } /** * Task createMany */ export type TaskCreateManyArgs = { /** * The data used to create many Tasks. */ data: TaskCreateManyInput | TaskCreateManyInput[] skipDuplicates?: boolean } /** * Task createManyAndReturn */ export type TaskCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelectCreateManyAndReturn | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * The data used to create many Tasks. */ data: TaskCreateManyInput | TaskCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: TaskIncludeCreateManyAndReturn | null } /** * Task update */ export type TaskUpdateArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * The data needed to update a Task. */ data: XOR /** * Choose, which Task to update. */ where: TaskWhereUniqueInput } /** * Task updateMany */ export type TaskUpdateManyArgs = { /** * The data used to update Tasks. */ data: XOR /** * Filter which Tasks to update */ where?: TaskWhereInput /** * Limit how many Tasks to update. */ limit?: number } /** * Task updateManyAndReturn */ export type TaskUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelectUpdateManyAndReturn | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * The data used to update Tasks. */ data: XOR /** * Filter which Tasks to update */ where?: TaskWhereInput /** * Limit how many Tasks to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: TaskIncludeUpdateManyAndReturn | null } /** * Task upsert */ export type TaskUpsertArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * The filter to search for the Task to update in case it exists. */ where: TaskWhereUniqueInput /** * In case the Task found by the `where` argument doesn't exist, create a new Task with this data. */ create: XOR /** * In case the Task was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Task delete */ export type TaskDeleteArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * Filter which Task to delete. */ where: TaskWhereUniqueInput } /** * Task deleteMany */ export type TaskDeleteManyArgs = { /** * Filter which Tasks to delete */ where?: TaskWhereInput /** * Limit how many Tasks to delete. */ limit?: number } /** * Task.scout_agent */ export type Task$scout_agentArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelect | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProfileInclude | null where?: AgentProfileWhereInput } /** * Task.builder_agent */ export type Task$builder_agentArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelect | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProfileInclude | null where?: AgentProfileWhereInput } /** * Task.claims */ export type Task$claimsArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] cursor?: ClaimWhereUniqueInput take?: number skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Task.submissions */ export type Task$submissionsArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelect | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SubmissionInclude | null where?: SubmissionWhereInput orderBy?: SubmissionOrderByWithRelationInput | SubmissionOrderByWithRelationInput[] cursor?: SubmissionWhereUniqueInput take?: number skip?: number distinct?: SubmissionScalarFieldEnum | SubmissionScalarFieldEnum[] } /** * Task without action */ export type TaskDefaultArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null } /** * Model Claim */ export type AggregateClaim = { _count: ClaimCountAggregateOutputType | null _avg: ClaimAvgAggregateOutputType | null _sum: ClaimSumAggregateOutputType | null _min: ClaimMinAggregateOutputType | null _max: ClaimMaxAggregateOutputType | null } export type ClaimAvgAggregateOutputType = { held_amount: number | null } export type ClaimSumAggregateOutputType = { held_amount: number | null } export type ClaimMinAggregateOutputType = { id: string | null task_id: string | null agent_id: string | null developer_wallet: string | null status: string | null claim_token: string | null held_amount: number | null held_currency: string | null expires_at: Date | null created_at: Date | null updated_at: Date | null } export type ClaimMaxAggregateOutputType = { id: string | null task_id: string | null agent_id: string | null developer_wallet: string | null status: string | null claim_token: string | null held_amount: number | null held_currency: string | null expires_at: Date | null created_at: Date | null updated_at: Date | null } export type ClaimCountAggregateOutputType = { id: number task_id: number agent_id: number developer_wallet: number status: number claim_token: number held_amount: number held_currency: number expires_at: number created_at: number updated_at: number _all: number } export type ClaimAvgAggregateInputType = { held_amount?: true } export type ClaimSumAggregateInputType = { held_amount?: true } export type ClaimMinAggregateInputType = { id?: true task_id?: true agent_id?: true developer_wallet?: true status?: true claim_token?: true held_amount?: true held_currency?: true expires_at?: true created_at?: true updated_at?: true } export type ClaimMaxAggregateInputType = { id?: true task_id?: true agent_id?: true developer_wallet?: true status?: true claim_token?: true held_amount?: true held_currency?: true expires_at?: true created_at?: true updated_at?: true } export type ClaimCountAggregateInputType = { id?: true task_id?: true agent_id?: true developer_wallet?: true status?: true claim_token?: true held_amount?: true held_currency?: true expires_at?: true created_at?: true updated_at?: true _all?: true } export type ClaimAggregateArgs = { /** * Filter which Claim to aggregate. */ where?: ClaimWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Claims to fetch. */ orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ClaimWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Claims 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` Claims. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Claims **/ _count?: true | ClaimCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ClaimAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ClaimSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ClaimMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ClaimMaxAggregateInputType } export type GetClaimAggregateType = { [P in keyof T & keyof AggregateClaim]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ClaimGroupByArgs = { where?: ClaimWhereInput orderBy?: ClaimOrderByWithAggregationInput | ClaimOrderByWithAggregationInput[] by: ClaimScalarFieldEnum[] | ClaimScalarFieldEnum having?: ClaimScalarWhereWithAggregatesInput take?: number skip?: number _count?: ClaimCountAggregateInputType | true _avg?: ClaimAvgAggregateInputType _sum?: ClaimSumAggregateInputType _min?: ClaimMinAggregateInputType _max?: ClaimMaxAggregateInputType } export type ClaimGroupByOutputType = { id: string task_id: string agent_id: string developer_wallet: string status: string claim_token: string held_amount: number held_currency: string expires_at: Date created_at: Date updated_at: Date _count: ClaimCountAggregateOutputType | null _avg: ClaimAvgAggregateOutputType | null _sum: ClaimSumAggregateOutputType | null _min: ClaimMinAggregateOutputType | null _max: ClaimMaxAggregateOutputType | null } type GetClaimGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ClaimGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ClaimSelect = $Extensions.GetSelect<{ id?: boolean task_id?: boolean agent_id?: boolean developer_wallet?: boolean status?: boolean claim_token?: boolean held_amount?: boolean held_currency?: boolean expires_at?: boolean created_at?: boolean updated_at?: boolean task?: boolean | TaskDefaultArgs agent?: boolean | AgentProfileDefaultArgs submissions?: boolean | Claim$submissionsArgs _count?: boolean | ClaimCountOutputTypeDefaultArgs }, ExtArgs["result"]["claim"]> export type ClaimSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean task_id?: boolean agent_id?: boolean developer_wallet?: boolean status?: boolean claim_token?: boolean held_amount?: boolean held_currency?: boolean expires_at?: boolean created_at?: boolean updated_at?: boolean task?: boolean | TaskDefaultArgs agent?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["claim"]> export type ClaimSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean task_id?: boolean agent_id?: boolean developer_wallet?: boolean status?: boolean claim_token?: boolean held_amount?: boolean held_currency?: boolean expires_at?: boolean created_at?: boolean updated_at?: boolean task?: boolean | TaskDefaultArgs agent?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["claim"]> export type ClaimSelectScalar = { id?: boolean task_id?: boolean agent_id?: boolean developer_wallet?: boolean status?: boolean claim_token?: boolean held_amount?: boolean held_currency?: boolean expires_at?: boolean created_at?: boolean updated_at?: boolean } export type ClaimOmit = $Extensions.GetOmit<"id" | "task_id" | "agent_id" | "developer_wallet" | "status" | "claim_token" | "held_amount" | "held_currency" | "expires_at" | "created_at" | "updated_at", ExtArgs["result"]["claim"]> export type ClaimInclude = { task?: boolean | TaskDefaultArgs agent?: boolean | AgentProfileDefaultArgs submissions?: boolean | Claim$submissionsArgs _count?: boolean | ClaimCountOutputTypeDefaultArgs } export type ClaimIncludeCreateManyAndReturn = { task?: boolean | TaskDefaultArgs agent?: boolean | AgentProfileDefaultArgs } export type ClaimIncludeUpdateManyAndReturn = { task?: boolean | TaskDefaultArgs agent?: boolean | AgentProfileDefaultArgs } export type $ClaimPayload = { name: "Claim" objects: { task: Prisma.$TaskPayload agent: Prisma.$AgentProfilePayload submissions: Prisma.$SubmissionPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string task_id: string agent_id: string developer_wallet: string status: string claim_token: string held_amount: number held_currency: string expires_at: Date created_at: Date updated_at: Date }, ExtArgs["result"]["claim"]> composites: {} } type ClaimGetPayload = $Result.GetResult type ClaimCountArgs = Omit & { select?: ClaimCountAggregateInputType | true } export interface ClaimDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Claim'], meta: { name: 'Claim' } } /** * Find zero or one Claim that matches the filter. * @param {ClaimFindUniqueArgs} args - Arguments to find a Claim * @example * // Get one Claim * const claim = await prisma.claim.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Claim that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ClaimFindUniqueOrThrowArgs} args - Arguments to find a Claim * @example * // Get one Claim * const claim = await prisma.claim.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Claim 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 {ClaimFindFirstArgs} args - Arguments to find a Claim * @example * // Get one Claim * const claim = await prisma.claim.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Claim 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 {ClaimFindFirstOrThrowArgs} args - Arguments to find a Claim * @example * // Get one Claim * const claim = await prisma.claim.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Claims 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 {ClaimFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Claims * const claims = await prisma.claim.findMany() * * // Get first 10 Claims * const claims = await prisma.claim.findMany({ take: 10 }) * * // Only select the `id` * const claimWithIdOnly = await prisma.claim.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Claim. * @param {ClaimCreateArgs} args - Arguments to create a Claim. * @example * // Create one Claim * const Claim = await prisma.claim.create({ * data: { * // ... data to create a Claim * } * }) * */ create(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Claims. * @param {ClaimCreateManyArgs} args - Arguments to create many Claims. * @example * // Create many Claims * const claim = await prisma.claim.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Claims and returns the data saved in the database. * @param {ClaimCreateManyAndReturnArgs} args - Arguments to create many Claims. * @example * // Create many Claims * const claim = await prisma.claim.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Claims and only return the `id` * const claimWithIdOnly = await prisma.claim.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 Claim. * @param {ClaimDeleteArgs} args - Arguments to delete one Claim. * @example * // Delete one Claim * const Claim = await prisma.claim.delete({ * where: { * // ... filter to delete one Claim * } * }) * */ delete(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Claim. * @param {ClaimUpdateArgs} args - Arguments to update one Claim. * @example * // Update one Claim * const claim = await prisma.claim.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Claims. * @param {ClaimDeleteManyArgs} args - Arguments to filter Claims to delete. * @example * // Delete a few Claims * const { count } = await prisma.claim.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Claims. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Claims * const claim = await prisma.claim.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Claims and returns the data updated in the database. * @param {ClaimUpdateManyAndReturnArgs} args - Arguments to update many Claims. * @example * // Update many Claims * const claim = await prisma.claim.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Claims and only return the `id` * const claimWithIdOnly = await prisma.claim.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 Claim. * @param {ClaimUpsertArgs} args - Arguments to update or create a Claim. * @example * // Update or create a Claim * const claim = await prisma.claim.upsert({ * create: { * // ... data to create a Claim * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Claim we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Claims. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimCountArgs} args - Arguments to filter Claims to count. * @example * // Count the number of Claims * const count = await prisma.claim.count({ * where: { * // ... the filter for the Claims 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 Claim. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimAggregateArgs} 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 Claim. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimGroupByArgs} 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 ClaimGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ClaimGroupByArgs['orderBy'] } : { orderBy?: ClaimGroupByArgs['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 ? GetClaimGroupByPayload : Prisma.PrismaPromise /** * Fields of the Claim model */ readonly fields: ClaimFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Claim. * 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__ClaimClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" task = {}>(args?: Subset>): Prisma__TaskClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> agent = {}>(args?: Subset>): Prisma__AgentProfileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> submissions = {}>(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 Claim model */ interface ClaimFieldRefs { readonly id: FieldRef<"Claim", 'String'> readonly task_id: FieldRef<"Claim", 'String'> readonly agent_id: FieldRef<"Claim", 'String'> readonly developer_wallet: FieldRef<"Claim", 'String'> readonly status: FieldRef<"Claim", 'String'> readonly claim_token: FieldRef<"Claim", 'String'> readonly held_amount: FieldRef<"Claim", 'Int'> readonly held_currency: FieldRef<"Claim", 'String'> readonly expires_at: FieldRef<"Claim", 'DateTime'> readonly created_at: FieldRef<"Claim", 'DateTime'> readonly updated_at: FieldRef<"Claim", 'DateTime'> } // Custom InputTypes /** * Claim findUnique */ export type ClaimFindUniqueArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claim to fetch. */ where: ClaimWhereUniqueInput } /** * Claim findUniqueOrThrow */ export type ClaimFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claim to fetch. */ where: ClaimWhereUniqueInput } /** * Claim findFirst */ export type ClaimFindFirstArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claim to fetch. */ where?: ClaimWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Claims to fetch. */ orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Claims. */ cursor?: ClaimWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Claims 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` Claims. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Claims. */ distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Claim findFirstOrThrow */ export type ClaimFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claim to fetch. */ where?: ClaimWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Claims to fetch. */ orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Claims. */ cursor?: ClaimWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Claims 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` Claims. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Claims. */ distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Claim findMany */ export type ClaimFindManyArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claims to fetch. */ where?: ClaimWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Claims to fetch. */ orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Claims. */ cursor?: ClaimWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Claims 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` Claims. */ skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Claim create */ export type ClaimCreateArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * The data needed to create a Claim. */ data: XOR } /** * Claim createMany */ export type ClaimCreateManyArgs = { /** * The data used to create many Claims. */ data: ClaimCreateManyInput | ClaimCreateManyInput[] skipDuplicates?: boolean } /** * Claim createManyAndReturn */ export type ClaimCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelectCreateManyAndReturn | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * The data used to create many Claims. */ data: ClaimCreateManyInput | ClaimCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ClaimIncludeCreateManyAndReturn | null } /** * Claim update */ export type ClaimUpdateArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * The data needed to update a Claim. */ data: XOR /** * Choose, which Claim to update. */ where: ClaimWhereUniqueInput } /** * Claim updateMany */ export type ClaimUpdateManyArgs = { /** * The data used to update Claims. */ data: XOR /** * Filter which Claims to update */ where?: ClaimWhereInput /** * Limit how many Claims to update. */ limit?: number } /** * Claim updateManyAndReturn */ export type ClaimUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelectUpdateManyAndReturn | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * The data used to update Claims. */ data: XOR /** * Filter which Claims to update */ where?: ClaimWhereInput /** * Limit how many Claims to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ClaimIncludeUpdateManyAndReturn | null } /** * Claim upsert */ export type ClaimUpsertArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * The filter to search for the Claim to update in case it exists. */ where: ClaimWhereUniqueInput /** * In case the Claim found by the `where` argument doesn't exist, create a new Claim with this data. */ create: XOR /** * In case the Claim was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Claim delete */ export type ClaimDeleteArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter which Claim to delete. */ where: ClaimWhereUniqueInput } /** * Claim deleteMany */ export type ClaimDeleteManyArgs = { /** * Filter which Claims to delete */ where?: ClaimWhereInput /** * Limit how many Claims to delete. */ limit?: number } /** * Claim.submissions */ export type Claim$submissionsArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelect | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SubmissionInclude | null where?: SubmissionWhereInput orderBy?: SubmissionOrderByWithRelationInput | SubmissionOrderByWithRelationInput[] cursor?: SubmissionWhereUniqueInput take?: number skip?: number distinct?: SubmissionScalarFieldEnum | SubmissionScalarFieldEnum[] } /** * Claim without action */ export type ClaimDefaultArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null } /** * Model Submission */ export type AggregateSubmission = { _count: SubmissionCountAggregateOutputType | null _min: SubmissionMinAggregateOutputType | null _max: SubmissionMaxAggregateOutputType | null } export type SubmissionMinAggregateOutputType = { id: string | null task_id: string | null claim_id: string | null status: string | null estimated_judge_complete_at: Date | null created_at: Date | null updated_at: Date | null } export type SubmissionMaxAggregateOutputType = { id: string | null task_id: string | null claim_id: string | null status: string | null estimated_judge_complete_at: Date | null created_at: Date | null updated_at: Date | null } export type SubmissionCountAggregateOutputType = { id: number task_id: number claim_id: number status: number deliverables: number estimated_judge_complete_at: number created_at: number updated_at: number _all: number } export type SubmissionMinAggregateInputType = { id?: true task_id?: true claim_id?: true status?: true estimated_judge_complete_at?: true created_at?: true updated_at?: true } export type SubmissionMaxAggregateInputType = { id?: true task_id?: true claim_id?: true status?: true estimated_judge_complete_at?: true created_at?: true updated_at?: true } export type SubmissionCountAggregateInputType = { id?: true task_id?: true claim_id?: true status?: true deliverables?: true estimated_judge_complete_at?: true created_at?: true updated_at?: true _all?: true } export type SubmissionAggregateArgs = { /** * Filter which Submission to aggregate. */ where?: SubmissionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Submissions to fetch. */ orderBy?: SubmissionOrderByWithRelationInput | SubmissionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SubmissionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Submissions 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` Submissions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Submissions **/ _count?: true | SubmissionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SubmissionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SubmissionMaxAggregateInputType } export type GetSubmissionAggregateType = { [P in keyof T & keyof AggregateSubmission]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SubmissionGroupByArgs = { where?: SubmissionWhereInput orderBy?: SubmissionOrderByWithAggregationInput | SubmissionOrderByWithAggregationInput[] by: SubmissionScalarFieldEnum[] | SubmissionScalarFieldEnum having?: SubmissionScalarWhereWithAggregatesInput take?: number skip?: number _count?: SubmissionCountAggregateInputType | true _min?: SubmissionMinAggregateInputType _max?: SubmissionMaxAggregateInputType } export type SubmissionGroupByOutputType = { id: string task_id: string claim_id: string status: string deliverables: JsonValue estimated_judge_complete_at: Date | null created_at: Date updated_at: Date _count: SubmissionCountAggregateOutputType | null _min: SubmissionMinAggregateOutputType | null _max: SubmissionMaxAggregateOutputType | null } type GetSubmissionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SubmissionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SubmissionSelect = $Extensions.GetSelect<{ id?: boolean task_id?: boolean claim_id?: boolean status?: boolean deliverables?: boolean estimated_judge_complete_at?: boolean created_at?: boolean updated_at?: boolean task?: boolean | TaskDefaultArgs claim?: boolean | ClaimDefaultArgs judge_results?: boolean | Submission$judge_resultsArgs _count?: boolean | SubmissionCountOutputTypeDefaultArgs }, ExtArgs["result"]["submission"]> export type SubmissionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean task_id?: boolean claim_id?: boolean status?: boolean deliverables?: boolean estimated_judge_complete_at?: boolean created_at?: boolean updated_at?: boolean task?: boolean | TaskDefaultArgs claim?: boolean | ClaimDefaultArgs }, ExtArgs["result"]["submission"]> export type SubmissionSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean task_id?: boolean claim_id?: boolean status?: boolean deliverables?: boolean estimated_judge_complete_at?: boolean created_at?: boolean updated_at?: boolean task?: boolean | TaskDefaultArgs claim?: boolean | ClaimDefaultArgs }, ExtArgs["result"]["submission"]> export type SubmissionSelectScalar = { id?: boolean task_id?: boolean claim_id?: boolean status?: boolean deliverables?: boolean estimated_judge_complete_at?: boolean created_at?: boolean updated_at?: boolean } export type SubmissionOmit = $Extensions.GetOmit<"id" | "task_id" | "claim_id" | "status" | "deliverables" | "estimated_judge_complete_at" | "created_at" | "updated_at", ExtArgs["result"]["submission"]> export type SubmissionInclude = { task?: boolean | TaskDefaultArgs claim?: boolean | ClaimDefaultArgs judge_results?: boolean | Submission$judge_resultsArgs _count?: boolean | SubmissionCountOutputTypeDefaultArgs } export type SubmissionIncludeCreateManyAndReturn = { task?: boolean | TaskDefaultArgs claim?: boolean | ClaimDefaultArgs } export type SubmissionIncludeUpdateManyAndReturn = { task?: boolean | TaskDefaultArgs claim?: boolean | ClaimDefaultArgs } export type $SubmissionPayload = { name: "Submission" objects: { task: Prisma.$TaskPayload claim: Prisma.$ClaimPayload judge_results: Prisma.$JudgeResultPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string task_id: string claim_id: string status: string deliverables: Prisma.JsonValue estimated_judge_complete_at: Date | null created_at: Date updated_at: Date }, ExtArgs["result"]["submission"]> composites: {} } type SubmissionGetPayload = $Result.GetResult type SubmissionCountArgs = Omit & { select?: SubmissionCountAggregateInputType | true } export interface SubmissionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Submission'], meta: { name: 'Submission' } } /** * Find zero or one Submission that matches the filter. * @param {SubmissionFindUniqueArgs} args - Arguments to find a Submission * @example * // Get one Submission * const submission = await prisma.submission.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SubmissionClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Submission that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SubmissionFindUniqueOrThrowArgs} args - Arguments to find a Submission * @example * // Get one Submission * const submission = await prisma.submission.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SubmissionClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Submission 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 {SubmissionFindFirstArgs} args - Arguments to find a Submission * @example * // Get one Submission * const submission = await prisma.submission.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SubmissionClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Submission 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 {SubmissionFindFirstOrThrowArgs} args - Arguments to find a Submission * @example * // Get one Submission * const submission = await prisma.submission.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SubmissionClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Submissions 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 {SubmissionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Submissions * const submissions = await prisma.submission.findMany() * * // Get first 10 Submissions * const submissions = await prisma.submission.findMany({ take: 10 }) * * // Only select the `id` * const submissionWithIdOnly = await prisma.submission.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Submission. * @param {SubmissionCreateArgs} args - Arguments to create a Submission. * @example * // Create one Submission * const Submission = await prisma.submission.create({ * data: { * // ... data to create a Submission * } * }) * */ create(args: SelectSubset>): Prisma__SubmissionClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Submissions. * @param {SubmissionCreateManyArgs} args - Arguments to create many Submissions. * @example * // Create many Submissions * const submission = await prisma.submission.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Submissions and returns the data saved in the database. * @param {SubmissionCreateManyAndReturnArgs} args - Arguments to create many Submissions. * @example * // Create many Submissions * const submission = await prisma.submission.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Submissions and only return the `id` * const submissionWithIdOnly = await prisma.submission.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 Submission. * @param {SubmissionDeleteArgs} args - Arguments to delete one Submission. * @example * // Delete one Submission * const Submission = await prisma.submission.delete({ * where: { * // ... filter to delete one Submission * } * }) * */ delete(args: SelectSubset>): Prisma__SubmissionClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Submission. * @param {SubmissionUpdateArgs} args - Arguments to update one Submission. * @example * // Update one Submission * const submission = await prisma.submission.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SubmissionClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Submissions. * @param {SubmissionDeleteManyArgs} args - Arguments to filter Submissions to delete. * @example * // Delete a few Submissions * const { count } = await prisma.submission.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Submissions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubmissionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Submissions * const submission = await prisma.submission.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Submissions and returns the data updated in the database. * @param {SubmissionUpdateManyAndReturnArgs} args - Arguments to update many Submissions. * @example * // Update many Submissions * const submission = await prisma.submission.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Submissions and only return the `id` * const submissionWithIdOnly = await prisma.submission.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 Submission. * @param {SubmissionUpsertArgs} args - Arguments to update or create a Submission. * @example * // Update or create a Submission * const submission = await prisma.submission.upsert({ * create: { * // ... data to create a Submission * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Submission we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SubmissionClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Submissions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubmissionCountArgs} args - Arguments to filter Submissions to count. * @example * // Count the number of Submissions * const count = await prisma.submission.count({ * where: { * // ... the filter for the Submissions 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 Submission. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubmissionAggregateArgs} 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 Submission. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubmissionGroupByArgs} 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 SubmissionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SubmissionGroupByArgs['orderBy'] } : { orderBy?: SubmissionGroupByArgs['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 ? GetSubmissionGroupByPayload : Prisma.PrismaPromise /** * Fields of the Submission model */ readonly fields: SubmissionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Submission. * 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__SubmissionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" task = {}>(args?: Subset>): Prisma__TaskClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> claim = {}>(args?: Subset>): Prisma__ClaimClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> judge_results = {}>(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 Submission model */ interface SubmissionFieldRefs { readonly id: FieldRef<"Submission", 'String'> readonly task_id: FieldRef<"Submission", 'String'> readonly claim_id: FieldRef<"Submission", 'String'> readonly status: FieldRef<"Submission", 'String'> readonly deliverables: FieldRef<"Submission", 'Json'> readonly estimated_judge_complete_at: FieldRef<"Submission", 'DateTime'> readonly created_at: FieldRef<"Submission", 'DateTime'> readonly updated_at: FieldRef<"Submission", 'DateTime'> } // Custom InputTypes /** * Submission findUnique */ export type SubmissionFindUniqueArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelect | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SubmissionInclude | null /** * Filter, which Submission to fetch. */ where: SubmissionWhereUniqueInput } /** * Submission findUniqueOrThrow */ export type SubmissionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelect | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SubmissionInclude | null /** * Filter, which Submission to fetch. */ where: SubmissionWhereUniqueInput } /** * Submission findFirst */ export type SubmissionFindFirstArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelect | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SubmissionInclude | null /** * Filter, which Submission to fetch. */ where?: SubmissionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Submissions to fetch. */ orderBy?: SubmissionOrderByWithRelationInput | SubmissionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Submissions. */ cursor?: SubmissionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Submissions 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` Submissions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Submissions. */ distinct?: SubmissionScalarFieldEnum | SubmissionScalarFieldEnum[] } /** * Submission findFirstOrThrow */ export type SubmissionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelect | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SubmissionInclude | null /** * Filter, which Submission to fetch. */ where?: SubmissionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Submissions to fetch. */ orderBy?: SubmissionOrderByWithRelationInput | SubmissionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Submissions. */ cursor?: SubmissionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Submissions 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` Submissions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Submissions. */ distinct?: SubmissionScalarFieldEnum | SubmissionScalarFieldEnum[] } /** * Submission findMany */ export type SubmissionFindManyArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelect | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SubmissionInclude | null /** * Filter, which Submissions to fetch. */ where?: SubmissionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Submissions to fetch. */ orderBy?: SubmissionOrderByWithRelationInput | SubmissionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Submissions. */ cursor?: SubmissionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Submissions 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` Submissions. */ skip?: number distinct?: SubmissionScalarFieldEnum | SubmissionScalarFieldEnum[] } /** * Submission create */ export type SubmissionCreateArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelect | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SubmissionInclude | null /** * The data needed to create a Submission. */ data: XOR } /** * Submission createMany */ export type SubmissionCreateManyArgs = { /** * The data used to create many Submissions. */ data: SubmissionCreateManyInput | SubmissionCreateManyInput[] skipDuplicates?: boolean } /** * Submission createManyAndReturn */ export type SubmissionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelectCreateManyAndReturn | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * The data used to create many Submissions. */ data: SubmissionCreateManyInput | SubmissionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: SubmissionIncludeCreateManyAndReturn | null } /** * Submission update */ export type SubmissionUpdateArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelect | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SubmissionInclude | null /** * The data needed to update a Submission. */ data: XOR /** * Choose, which Submission to update. */ where: SubmissionWhereUniqueInput } /** * Submission updateMany */ export type SubmissionUpdateManyArgs = { /** * The data used to update Submissions. */ data: XOR /** * Filter which Submissions to update */ where?: SubmissionWhereInput /** * Limit how many Submissions to update. */ limit?: number } /** * Submission updateManyAndReturn */ export type SubmissionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelectUpdateManyAndReturn | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * The data used to update Submissions. */ data: XOR /** * Filter which Submissions to update */ where?: SubmissionWhereInput /** * Limit how many Submissions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: SubmissionIncludeUpdateManyAndReturn | null } /** * Submission upsert */ export type SubmissionUpsertArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelect | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SubmissionInclude | null /** * The filter to search for the Submission to update in case it exists. */ where: SubmissionWhereUniqueInput /** * In case the Submission found by the `where` argument doesn't exist, create a new Submission with this data. */ create: XOR /** * In case the Submission was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Submission delete */ export type SubmissionDeleteArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelect | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SubmissionInclude | null /** * Filter which Submission to delete. */ where: SubmissionWhereUniqueInput } /** * Submission deleteMany */ export type SubmissionDeleteManyArgs = { /** * Filter which Submissions to delete */ where?: SubmissionWhereInput /** * Limit how many Submissions to delete. */ limit?: number } /** * Submission.judge_results */ export type Submission$judge_resultsArgs = { /** * Select specific fields to fetch from the JudgeResult */ select?: JudgeResultSelect | null /** * Omit specific fields from the JudgeResult */ omit?: JudgeResultOmit | null /** * Choose, which related nodes to fetch as well */ include?: JudgeResultInclude | null where?: JudgeResultWhereInput orderBy?: JudgeResultOrderByWithRelationInput | JudgeResultOrderByWithRelationInput[] cursor?: JudgeResultWhereUniqueInput take?: number skip?: number distinct?: JudgeResultScalarFieldEnum | JudgeResultScalarFieldEnum[] } /** * Submission without action */ export type SubmissionDefaultArgs = { /** * Select specific fields to fetch from the Submission */ select?: SubmissionSelect | null /** * Omit specific fields from the Submission */ omit?: SubmissionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SubmissionInclude | null } /** * Model JudgeResult */ export type AggregateJudgeResult = { _count: JudgeResultCountAggregateOutputType | null _min: JudgeResultMinAggregateOutputType | null _max: JudgeResultMaxAggregateOutputType | null } export type JudgeResultMinAggregateOutputType = { id: string | null submission_id: string | null overall_result: string | null error_classification: string | null error_signature: string | null retryable: boolean | null judge_completed_at: Date | null } export type JudgeResultMaxAggregateOutputType = { id: string | null submission_id: string | null overall_result: string | null error_classification: string | null error_signature: string | null retryable: boolean | null judge_completed_at: Date | null } export type JudgeResultCountAggregateOutputType = { id: number submission_id: number overall_result: number tests: number artifacts: number error_classification: number error_signature: number retryable: number resource_usage: number judge_completed_at: number _all: number } export type JudgeResultMinAggregateInputType = { id?: true submission_id?: true overall_result?: true error_classification?: true error_signature?: true retryable?: true judge_completed_at?: true } export type JudgeResultMaxAggregateInputType = { id?: true submission_id?: true overall_result?: true error_classification?: true error_signature?: true retryable?: true judge_completed_at?: true } export type JudgeResultCountAggregateInputType = { id?: true submission_id?: true overall_result?: true tests?: true artifacts?: true error_classification?: true error_signature?: true retryable?: true resource_usage?: true judge_completed_at?: true _all?: true } export type JudgeResultAggregateArgs = { /** * Filter which JudgeResult to aggregate. */ where?: JudgeResultWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of JudgeResults to fetch. */ orderBy?: JudgeResultOrderByWithRelationInput | JudgeResultOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: JudgeResultWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` JudgeResults 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` JudgeResults. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned JudgeResults **/ _count?: true | JudgeResultCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: JudgeResultMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: JudgeResultMaxAggregateInputType } export type GetJudgeResultAggregateType = { [P in keyof T & keyof AggregateJudgeResult]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type JudgeResultGroupByArgs = { where?: JudgeResultWhereInput orderBy?: JudgeResultOrderByWithAggregationInput | JudgeResultOrderByWithAggregationInput[] by: JudgeResultScalarFieldEnum[] | JudgeResultScalarFieldEnum having?: JudgeResultScalarWhereWithAggregatesInput take?: number skip?: number _count?: JudgeResultCountAggregateInputType | true _min?: JudgeResultMinAggregateInputType _max?: JudgeResultMaxAggregateInputType } export type JudgeResultGroupByOutputType = { id: string submission_id: string overall_result: string tests: JsonValue artifacts: JsonValue | null error_classification: string | null error_signature: string | null retryable: boolean resource_usage: JsonValue judge_completed_at: Date _count: JudgeResultCountAggregateOutputType | null _min: JudgeResultMinAggregateOutputType | null _max: JudgeResultMaxAggregateOutputType | null } type GetJudgeResultGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof JudgeResultGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type JudgeResultSelect = $Extensions.GetSelect<{ id?: boolean submission_id?: boolean overall_result?: boolean tests?: boolean artifacts?: boolean error_classification?: boolean error_signature?: boolean retryable?: boolean resource_usage?: boolean judge_completed_at?: boolean submission?: boolean | SubmissionDefaultArgs }, ExtArgs["result"]["judgeResult"]> export type JudgeResultSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean submission_id?: boolean overall_result?: boolean tests?: boolean artifacts?: boolean error_classification?: boolean error_signature?: boolean retryable?: boolean resource_usage?: boolean judge_completed_at?: boolean submission?: boolean | SubmissionDefaultArgs }, ExtArgs["result"]["judgeResult"]> export type JudgeResultSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean submission_id?: boolean overall_result?: boolean tests?: boolean artifacts?: boolean error_classification?: boolean error_signature?: boolean retryable?: boolean resource_usage?: boolean judge_completed_at?: boolean submission?: boolean | SubmissionDefaultArgs }, ExtArgs["result"]["judgeResult"]> export type JudgeResultSelectScalar = { id?: boolean submission_id?: boolean overall_result?: boolean tests?: boolean artifacts?: boolean error_classification?: boolean error_signature?: boolean retryable?: boolean resource_usage?: boolean judge_completed_at?: boolean } export type JudgeResultOmit = $Extensions.GetOmit<"id" | "submission_id" | "overall_result" | "tests" | "artifacts" | "error_classification" | "error_signature" | "retryable" | "resource_usage" | "judge_completed_at", ExtArgs["result"]["judgeResult"]> export type JudgeResultInclude = { submission?: boolean | SubmissionDefaultArgs } export type JudgeResultIncludeCreateManyAndReturn = { submission?: boolean | SubmissionDefaultArgs } export type JudgeResultIncludeUpdateManyAndReturn = { submission?: boolean | SubmissionDefaultArgs } export type $JudgeResultPayload = { name: "JudgeResult" objects: { submission: Prisma.$SubmissionPayload } scalars: $Extensions.GetPayloadResult<{ id: string submission_id: string overall_result: string tests: Prisma.JsonValue artifacts: Prisma.JsonValue | null error_classification: string | null error_signature: string | null retryable: boolean resource_usage: Prisma.JsonValue judge_completed_at: Date }, ExtArgs["result"]["judgeResult"]> composites: {} } type JudgeResultGetPayload = $Result.GetResult type JudgeResultCountArgs = Omit & { select?: JudgeResultCountAggregateInputType | true } export interface JudgeResultDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['JudgeResult'], meta: { name: 'JudgeResult' } } /** * Find zero or one JudgeResult that matches the filter. * @param {JudgeResultFindUniqueArgs} args - Arguments to find a JudgeResult * @example * // Get one JudgeResult * const judgeResult = await prisma.judgeResult.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__JudgeResultClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one JudgeResult that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {JudgeResultFindUniqueOrThrowArgs} args - Arguments to find a JudgeResult * @example * // Get one JudgeResult * const judgeResult = await prisma.judgeResult.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__JudgeResultClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first JudgeResult 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 {JudgeResultFindFirstArgs} args - Arguments to find a JudgeResult * @example * // Get one JudgeResult * const judgeResult = await prisma.judgeResult.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__JudgeResultClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first JudgeResult 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 {JudgeResultFindFirstOrThrowArgs} args - Arguments to find a JudgeResult * @example * // Get one JudgeResult * const judgeResult = await prisma.judgeResult.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__JudgeResultClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more JudgeResults 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 {JudgeResultFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all JudgeResults * const judgeResults = await prisma.judgeResult.findMany() * * // Get first 10 JudgeResults * const judgeResults = await prisma.judgeResult.findMany({ take: 10 }) * * // Only select the `id` * const judgeResultWithIdOnly = await prisma.judgeResult.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a JudgeResult. * @param {JudgeResultCreateArgs} args - Arguments to create a JudgeResult. * @example * // Create one JudgeResult * const JudgeResult = await prisma.judgeResult.create({ * data: { * // ... data to create a JudgeResult * } * }) * */ create(args: SelectSubset>): Prisma__JudgeResultClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many JudgeResults. * @param {JudgeResultCreateManyArgs} args - Arguments to create many JudgeResults. * @example * // Create many JudgeResults * const judgeResult = await prisma.judgeResult.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many JudgeResults and returns the data saved in the database. * @param {JudgeResultCreateManyAndReturnArgs} args - Arguments to create many JudgeResults. * @example * // Create many JudgeResults * const judgeResult = await prisma.judgeResult.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many JudgeResults and only return the `id` * const judgeResultWithIdOnly = await prisma.judgeResult.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 JudgeResult. * @param {JudgeResultDeleteArgs} args - Arguments to delete one JudgeResult. * @example * // Delete one JudgeResult * const JudgeResult = await prisma.judgeResult.delete({ * where: { * // ... filter to delete one JudgeResult * } * }) * */ delete(args: SelectSubset>): Prisma__JudgeResultClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one JudgeResult. * @param {JudgeResultUpdateArgs} args - Arguments to update one JudgeResult. * @example * // Update one JudgeResult * const judgeResult = await prisma.judgeResult.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__JudgeResultClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more JudgeResults. * @param {JudgeResultDeleteManyArgs} args - Arguments to filter JudgeResults to delete. * @example * // Delete a few JudgeResults * const { count } = await prisma.judgeResult.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more JudgeResults. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {JudgeResultUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many JudgeResults * const judgeResult = await prisma.judgeResult.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more JudgeResults and returns the data updated in the database. * @param {JudgeResultUpdateManyAndReturnArgs} args - Arguments to update many JudgeResults. * @example * // Update many JudgeResults * const judgeResult = await prisma.judgeResult.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more JudgeResults and only return the `id` * const judgeResultWithIdOnly = await prisma.judgeResult.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 JudgeResult. * @param {JudgeResultUpsertArgs} args - Arguments to update or create a JudgeResult. * @example * // Update or create a JudgeResult * const judgeResult = await prisma.judgeResult.upsert({ * create: { * // ... data to create a JudgeResult * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the JudgeResult we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__JudgeResultClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of JudgeResults. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {JudgeResultCountArgs} args - Arguments to filter JudgeResults to count. * @example * // Count the number of JudgeResults * const count = await prisma.judgeResult.count({ * where: { * // ... the filter for the JudgeResults 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 JudgeResult. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {JudgeResultAggregateArgs} 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 JudgeResult. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {JudgeResultGroupByArgs} 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 JudgeResultGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: JudgeResultGroupByArgs['orderBy'] } : { orderBy?: JudgeResultGroupByArgs['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 ? GetJudgeResultGroupByPayload : Prisma.PrismaPromise /** * Fields of the JudgeResult model */ readonly fields: JudgeResultFieldRefs; } /** * The delegate class that acts as a "Promise-like" for JudgeResult. * 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__JudgeResultClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" submission = {}>(args?: Subset>): Prisma__SubmissionClient<$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 JudgeResult model */ interface JudgeResultFieldRefs { readonly id: FieldRef<"JudgeResult", 'String'> readonly submission_id: FieldRef<"JudgeResult", 'String'> readonly overall_result: FieldRef<"JudgeResult", 'String'> readonly tests: FieldRef<"JudgeResult", 'Json'> readonly artifacts: FieldRef<"JudgeResult", 'Json'> readonly error_classification: FieldRef<"JudgeResult", 'String'> readonly error_signature: FieldRef<"JudgeResult", 'String'> readonly retryable: FieldRef<"JudgeResult", 'Boolean'> readonly resource_usage: FieldRef<"JudgeResult", 'Json'> readonly judge_completed_at: FieldRef<"JudgeResult", 'DateTime'> } // Custom InputTypes /** * JudgeResult findUnique */ export type JudgeResultFindUniqueArgs = { /** * Select specific fields to fetch from the JudgeResult */ select?: JudgeResultSelect | null /** * Omit specific fields from the JudgeResult */ omit?: JudgeResultOmit | null /** * Choose, which related nodes to fetch as well */ include?: JudgeResultInclude | null /** * Filter, which JudgeResult to fetch. */ where: JudgeResultWhereUniqueInput } /** * JudgeResult findUniqueOrThrow */ export type JudgeResultFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the JudgeResult */ select?: JudgeResultSelect | null /** * Omit specific fields from the JudgeResult */ omit?: JudgeResultOmit | null /** * Choose, which related nodes to fetch as well */ include?: JudgeResultInclude | null /** * Filter, which JudgeResult to fetch. */ where: JudgeResultWhereUniqueInput } /** * JudgeResult findFirst */ export type JudgeResultFindFirstArgs = { /** * Select specific fields to fetch from the JudgeResult */ select?: JudgeResultSelect | null /** * Omit specific fields from the JudgeResult */ omit?: JudgeResultOmit | null /** * Choose, which related nodes to fetch as well */ include?: JudgeResultInclude | null /** * Filter, which JudgeResult to fetch. */ where?: JudgeResultWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of JudgeResults to fetch. */ orderBy?: JudgeResultOrderByWithRelationInput | JudgeResultOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for JudgeResults. */ cursor?: JudgeResultWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` JudgeResults 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` JudgeResults. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of JudgeResults. */ distinct?: JudgeResultScalarFieldEnum | JudgeResultScalarFieldEnum[] } /** * JudgeResult findFirstOrThrow */ export type JudgeResultFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the JudgeResult */ select?: JudgeResultSelect | null /** * Omit specific fields from the JudgeResult */ omit?: JudgeResultOmit | null /** * Choose, which related nodes to fetch as well */ include?: JudgeResultInclude | null /** * Filter, which JudgeResult to fetch. */ where?: JudgeResultWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of JudgeResults to fetch. */ orderBy?: JudgeResultOrderByWithRelationInput | JudgeResultOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for JudgeResults. */ cursor?: JudgeResultWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` JudgeResults 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` JudgeResults. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of JudgeResults. */ distinct?: JudgeResultScalarFieldEnum | JudgeResultScalarFieldEnum[] } /** * JudgeResult findMany */ export type JudgeResultFindManyArgs = { /** * Select specific fields to fetch from the JudgeResult */ select?: JudgeResultSelect | null /** * Omit specific fields from the JudgeResult */ omit?: JudgeResultOmit | null /** * Choose, which related nodes to fetch as well */ include?: JudgeResultInclude | null /** * Filter, which JudgeResults to fetch. */ where?: JudgeResultWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of JudgeResults to fetch. */ orderBy?: JudgeResultOrderByWithRelationInput | JudgeResultOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing JudgeResults. */ cursor?: JudgeResultWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` JudgeResults 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` JudgeResults. */ skip?: number distinct?: JudgeResultScalarFieldEnum | JudgeResultScalarFieldEnum[] } /** * JudgeResult create */ export type JudgeResultCreateArgs = { /** * Select specific fields to fetch from the JudgeResult */ select?: JudgeResultSelect | null /** * Omit specific fields from the JudgeResult */ omit?: JudgeResultOmit | null /** * Choose, which related nodes to fetch as well */ include?: JudgeResultInclude | null /** * The data needed to create a JudgeResult. */ data: XOR } /** * JudgeResult createMany */ export type JudgeResultCreateManyArgs = { /** * The data used to create many JudgeResults. */ data: JudgeResultCreateManyInput | JudgeResultCreateManyInput[] skipDuplicates?: boolean } /** * JudgeResult createManyAndReturn */ export type JudgeResultCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the JudgeResult */ select?: JudgeResultSelectCreateManyAndReturn | null /** * Omit specific fields from the JudgeResult */ omit?: JudgeResultOmit | null /** * The data used to create many JudgeResults. */ data: JudgeResultCreateManyInput | JudgeResultCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: JudgeResultIncludeCreateManyAndReturn | null } /** * JudgeResult update */ export type JudgeResultUpdateArgs = { /** * Select specific fields to fetch from the JudgeResult */ select?: JudgeResultSelect | null /** * Omit specific fields from the JudgeResult */ omit?: JudgeResultOmit | null /** * Choose, which related nodes to fetch as well */ include?: JudgeResultInclude | null /** * The data needed to update a JudgeResult. */ data: XOR /** * Choose, which JudgeResult to update. */ where: JudgeResultWhereUniqueInput } /** * JudgeResult updateMany */ export type JudgeResultUpdateManyArgs = { /** * The data used to update JudgeResults. */ data: XOR /** * Filter which JudgeResults to update */ where?: JudgeResultWhereInput /** * Limit how many JudgeResults to update. */ limit?: number } /** * JudgeResult updateManyAndReturn */ export type JudgeResultUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the JudgeResult */ select?: JudgeResultSelectUpdateManyAndReturn | null /** * Omit specific fields from the JudgeResult */ omit?: JudgeResultOmit | null /** * The data used to update JudgeResults. */ data: XOR /** * Filter which JudgeResults to update */ where?: JudgeResultWhereInput /** * Limit how many JudgeResults to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: JudgeResultIncludeUpdateManyAndReturn | null } /** * JudgeResult upsert */ export type JudgeResultUpsertArgs = { /** * Select specific fields to fetch from the JudgeResult */ select?: JudgeResultSelect | null /** * Omit specific fields from the JudgeResult */ omit?: JudgeResultOmit | null /** * Choose, which related nodes to fetch as well */ include?: JudgeResultInclude | null /** * The filter to search for the JudgeResult to update in case it exists. */ where: JudgeResultWhereUniqueInput /** * In case the JudgeResult found by the `where` argument doesn't exist, create a new JudgeResult with this data. */ create: XOR /** * In case the JudgeResult was found with the provided `where` argument, update it with this data. */ update: XOR } /** * JudgeResult delete */ export type JudgeResultDeleteArgs = { /** * Select specific fields to fetch from the JudgeResult */ select?: JudgeResultSelect | null /** * Omit specific fields from the JudgeResult */ omit?: JudgeResultOmit | null /** * Choose, which related nodes to fetch as well */ include?: JudgeResultInclude | null /** * Filter which JudgeResult to delete. */ where: JudgeResultWhereUniqueInput } /** * JudgeResult deleteMany */ export type JudgeResultDeleteManyArgs = { /** * Filter which JudgeResults to delete */ where?: JudgeResultWhereInput /** * Limit how many JudgeResults to delete. */ limit?: number } /** * JudgeResult without action */ export type JudgeResultDefaultArgs = { /** * Select specific fields to fetch from the JudgeResult */ select?: JudgeResultSelect | null /** * Omit specific fields from the JudgeResult */ omit?: JudgeResultOmit | null /** * Choose, which related nodes to fetch as well */ include?: JudgeResultInclude | null } /** * Model AuditEvent */ export type AggregateAuditEvent = { _count: AuditEventCountAggregateOutputType | null _min: AuditEventMinAggregateOutputType | null _max: AuditEventMaxAggregateOutputType | null } export type AuditEventMinAggregateOutputType = { id: string | null actorType: string | null actorId: string | null action: string | null entityType: string | null entityId: string | null reason: string | null createdAt: Date | null } export type AuditEventMaxAggregateOutputType = { id: string | null actorType: string | null actorId: string | null action: string | null entityType: string | null entityId: string | null reason: string | null createdAt: Date | null } export type AuditEventCountAggregateOutputType = { id: number actorType: number actorId: number action: number entityType: number entityId: number beforeState: number afterState: number reason: number metadata: number createdAt: number _all: number } export type AuditEventMinAggregateInputType = { id?: true actorType?: true actorId?: true action?: true entityType?: true entityId?: true reason?: true createdAt?: true } export type AuditEventMaxAggregateInputType = { id?: true actorType?: true actorId?: true action?: true entityType?: true entityId?: true reason?: true createdAt?: true } export type AuditEventCountAggregateInputType = { id?: true actorType?: true actorId?: true action?: true entityType?: true entityId?: true beforeState?: true afterState?: true reason?: true metadata?: true createdAt?: true _all?: true } export type AuditEventAggregateArgs = { /** * Filter which AuditEvent to aggregate. */ where?: AuditEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditEvents to fetch. */ orderBy?: AuditEventOrderByWithRelationInput | AuditEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AuditEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditEvents 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` AuditEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AuditEvents **/ _count?: true | AuditEventCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AuditEventMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AuditEventMaxAggregateInputType } export type GetAuditEventAggregateType = { [P in keyof T & keyof AggregateAuditEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AuditEventGroupByArgs = { where?: AuditEventWhereInput orderBy?: AuditEventOrderByWithAggregationInput | AuditEventOrderByWithAggregationInput[] by: AuditEventScalarFieldEnum[] | AuditEventScalarFieldEnum having?: AuditEventScalarWhereWithAggregatesInput take?: number skip?: number _count?: AuditEventCountAggregateInputType | true _min?: AuditEventMinAggregateInputType _max?: AuditEventMaxAggregateInputType } export type AuditEventGroupByOutputType = { id: string actorType: string actorId: string | null action: string entityType: string entityId: string beforeState: JsonValue | null afterState: JsonValue | null reason: string | null metadata: JsonValue | null createdAt: Date _count: AuditEventCountAggregateOutputType | null _min: AuditEventMinAggregateOutputType | null _max: AuditEventMaxAggregateOutputType | null } type GetAuditEventGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AuditEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AuditEventSelect = $Extensions.GetSelect<{ id?: boolean actorType?: boolean actorId?: boolean action?: boolean entityType?: boolean entityId?: boolean beforeState?: boolean afterState?: boolean reason?: boolean metadata?: boolean createdAt?: boolean }, ExtArgs["result"]["auditEvent"]> export type AuditEventSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean actorType?: boolean actorId?: boolean action?: boolean entityType?: boolean entityId?: boolean beforeState?: boolean afterState?: boolean reason?: boolean metadata?: boolean createdAt?: boolean }, ExtArgs["result"]["auditEvent"]> export type AuditEventSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean actorType?: boolean actorId?: boolean action?: boolean entityType?: boolean entityId?: boolean beforeState?: boolean afterState?: boolean reason?: boolean metadata?: boolean createdAt?: boolean }, ExtArgs["result"]["auditEvent"]> export type AuditEventSelectScalar = { id?: boolean actorType?: boolean actorId?: boolean action?: boolean entityType?: boolean entityId?: boolean beforeState?: boolean afterState?: boolean reason?: boolean metadata?: boolean createdAt?: boolean } export type AuditEventOmit = $Extensions.GetOmit<"id" | "actorType" | "actorId" | "action" | "entityType" | "entityId" | "beforeState" | "afterState" | "reason" | "metadata" | "createdAt", ExtArgs["result"]["auditEvent"]> export type $AuditEventPayload = { name: "AuditEvent" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string actorType: string actorId: string | null action: string entityType: string entityId: string beforeState: Prisma.JsonValue | null afterState: Prisma.JsonValue | null reason: string | null metadata: Prisma.JsonValue | null createdAt: Date }, ExtArgs["result"]["auditEvent"]> composites: {} } type AuditEventGetPayload = $Result.GetResult type AuditEventCountArgs = Omit & { select?: AuditEventCountAggregateInputType | true } export interface AuditEventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AuditEvent'], meta: { name: 'AuditEvent' } } /** * Find zero or one AuditEvent that matches the filter. * @param {AuditEventFindUniqueArgs} args - Arguments to find a AuditEvent * @example * // Get one AuditEvent * const auditEvent = await prisma.auditEvent.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AuditEventClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AuditEvent that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AuditEventFindUniqueOrThrowArgs} args - Arguments to find a AuditEvent * @example * // Get one AuditEvent * const auditEvent = await prisma.auditEvent.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AuditEventClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AuditEvent 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 {AuditEventFindFirstArgs} args - Arguments to find a AuditEvent * @example * // Get one AuditEvent * const auditEvent = await prisma.auditEvent.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AuditEventClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AuditEvent 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 {AuditEventFindFirstOrThrowArgs} args - Arguments to find a AuditEvent * @example * // Get one AuditEvent * const auditEvent = await prisma.auditEvent.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AuditEventClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AuditEvents 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 {AuditEventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AuditEvents * const auditEvents = await prisma.auditEvent.findMany() * * // Get first 10 AuditEvents * const auditEvents = await prisma.auditEvent.findMany({ take: 10 }) * * // Only select the `id` * const auditEventWithIdOnly = await prisma.auditEvent.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a AuditEvent. * @param {AuditEventCreateArgs} args - Arguments to create a AuditEvent. * @example * // Create one AuditEvent * const AuditEvent = await prisma.auditEvent.create({ * data: { * // ... data to create a AuditEvent * } * }) * */ create(args: SelectSubset>): Prisma__AuditEventClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AuditEvents. * @param {AuditEventCreateManyArgs} args - Arguments to create many AuditEvents. * @example * // Create many AuditEvents * const auditEvent = await prisma.auditEvent.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many AuditEvents and returns the data saved in the database. * @param {AuditEventCreateManyAndReturnArgs} args - Arguments to create many AuditEvents. * @example * // Create many AuditEvents * const auditEvent = await prisma.auditEvent.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AuditEvents and only return the `id` * const auditEventWithIdOnly = await prisma.auditEvent.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 AuditEvent. * @param {AuditEventDeleteArgs} args - Arguments to delete one AuditEvent. * @example * // Delete one AuditEvent * const AuditEvent = await prisma.auditEvent.delete({ * where: { * // ... filter to delete one AuditEvent * } * }) * */ delete(args: SelectSubset>): Prisma__AuditEventClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AuditEvent. * @param {AuditEventUpdateArgs} args - Arguments to update one AuditEvent. * @example * // Update one AuditEvent * const auditEvent = await prisma.auditEvent.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AuditEventClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AuditEvents. * @param {AuditEventDeleteManyArgs} args - Arguments to filter AuditEvents to delete. * @example * // Delete a few AuditEvents * const { count } = await prisma.auditEvent.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AuditEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditEventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AuditEvents * const auditEvent = await prisma.auditEvent.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AuditEvents and returns the data updated in the database. * @param {AuditEventUpdateManyAndReturnArgs} args - Arguments to update many AuditEvents. * @example * // Update many AuditEvents * const auditEvent = await prisma.auditEvent.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AuditEvents and only return the `id` * const auditEventWithIdOnly = await prisma.auditEvent.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 AuditEvent. * @param {AuditEventUpsertArgs} args - Arguments to update or create a AuditEvent. * @example * // Update or create a AuditEvent * const auditEvent = await prisma.auditEvent.upsert({ * create: { * // ... data to create a AuditEvent * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AuditEvent we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AuditEventClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AuditEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditEventCountArgs} args - Arguments to filter AuditEvents to count. * @example * // Count the number of AuditEvents * const count = await prisma.auditEvent.count({ * where: { * // ... the filter for the AuditEvents 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 AuditEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditEventAggregateArgs} 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 AuditEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditEventGroupByArgs} 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 AuditEventGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AuditEventGroupByArgs['orderBy'] } : { orderBy?: AuditEventGroupByArgs['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 ? GetAuditEventGroupByPayload : Prisma.PrismaPromise /** * Fields of the AuditEvent model */ readonly fields: AuditEventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AuditEvent. * 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__AuditEventClient 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 AuditEvent model */ interface AuditEventFieldRefs { readonly id: FieldRef<"AuditEvent", 'String'> readonly actorType: FieldRef<"AuditEvent", 'String'> readonly actorId: FieldRef<"AuditEvent", 'String'> readonly action: FieldRef<"AuditEvent", 'String'> readonly entityType: FieldRef<"AuditEvent", 'String'> readonly entityId: FieldRef<"AuditEvent", 'String'> readonly beforeState: FieldRef<"AuditEvent", 'Json'> readonly afterState: FieldRef<"AuditEvent", 'Json'> readonly reason: FieldRef<"AuditEvent", 'String'> readonly metadata: FieldRef<"AuditEvent", 'Json'> readonly createdAt: FieldRef<"AuditEvent", 'DateTime'> } // Custom InputTypes /** * AuditEvent findUnique */ export type AuditEventFindUniqueArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: AuditEventOmit | null /** * Filter, which AuditEvent to fetch. */ where: AuditEventWhereUniqueInput } /** * AuditEvent findUniqueOrThrow */ export type AuditEventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: AuditEventOmit | null /** * Filter, which AuditEvent to fetch. */ where: AuditEventWhereUniqueInput } /** * AuditEvent findFirst */ export type AuditEventFindFirstArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: AuditEventOmit | null /** * Filter, which AuditEvent to fetch. */ where?: AuditEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditEvents to fetch. */ orderBy?: AuditEventOrderByWithRelationInput | AuditEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AuditEvents. */ cursor?: AuditEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditEvents 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` AuditEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuditEvents. */ distinct?: AuditEventScalarFieldEnum | AuditEventScalarFieldEnum[] } /** * AuditEvent findFirstOrThrow */ export type AuditEventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: AuditEventOmit | null /** * Filter, which AuditEvent to fetch. */ where?: AuditEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditEvents to fetch. */ orderBy?: AuditEventOrderByWithRelationInput | AuditEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AuditEvents. */ cursor?: AuditEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditEvents 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` AuditEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuditEvents. */ distinct?: AuditEventScalarFieldEnum | AuditEventScalarFieldEnum[] } /** * AuditEvent findMany */ export type AuditEventFindManyArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: AuditEventOmit | null /** * Filter, which AuditEvents to fetch. */ where?: AuditEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditEvents to fetch. */ orderBy?: AuditEventOrderByWithRelationInput | AuditEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AuditEvents. */ cursor?: AuditEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditEvents 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` AuditEvents. */ skip?: number distinct?: AuditEventScalarFieldEnum | AuditEventScalarFieldEnum[] } /** * AuditEvent create */ export type AuditEventCreateArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: AuditEventOmit | null /** * The data needed to create a AuditEvent. */ data: XOR } /** * AuditEvent createMany */ export type AuditEventCreateManyArgs = { /** * The data used to create many AuditEvents. */ data: AuditEventCreateManyInput | AuditEventCreateManyInput[] skipDuplicates?: boolean } /** * AuditEvent createManyAndReturn */ export type AuditEventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelectCreateManyAndReturn | null /** * Omit specific fields from the AuditEvent */ omit?: AuditEventOmit | null /** * The data used to create many AuditEvents. */ data: AuditEventCreateManyInput | AuditEventCreateManyInput[] skipDuplicates?: boolean } /** * AuditEvent update */ export type AuditEventUpdateArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: AuditEventOmit | null /** * The data needed to update a AuditEvent. */ data: XOR /** * Choose, which AuditEvent to update. */ where: AuditEventWhereUniqueInput } /** * AuditEvent updateMany */ export type AuditEventUpdateManyArgs = { /** * The data used to update AuditEvents. */ data: XOR /** * Filter which AuditEvents to update */ where?: AuditEventWhereInput /** * Limit how many AuditEvents to update. */ limit?: number } /** * AuditEvent updateManyAndReturn */ export type AuditEventUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelectUpdateManyAndReturn | null /** * Omit specific fields from the AuditEvent */ omit?: AuditEventOmit | null /** * The data used to update AuditEvents. */ data: XOR /** * Filter which AuditEvents to update */ where?: AuditEventWhereInput /** * Limit how many AuditEvents to update. */ limit?: number } /** * AuditEvent upsert */ export type AuditEventUpsertArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: AuditEventOmit | null /** * The filter to search for the AuditEvent to update in case it exists. */ where: AuditEventWhereUniqueInput /** * In case the AuditEvent found by the `where` argument doesn't exist, create a new AuditEvent with this data. */ create: XOR /** * In case the AuditEvent was found with the provided `where` argument, update it with this data. */ update: XOR } /** * AuditEvent delete */ export type AuditEventDeleteArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: AuditEventOmit | null /** * Filter which AuditEvent to delete. */ where: AuditEventWhereUniqueInput } /** * AuditEvent deleteMany */ export type AuditEventDeleteManyArgs = { /** * Filter which AuditEvents to delete */ where?: AuditEventWhereInput /** * Limit how many AuditEvents to delete. */ limit?: number } /** * AuditEvent without action */ export type AuditEventDefaultArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: AuditEventOmit | null } /** * Model LedgerEntry */ export type AggregateLedgerEntry = { _count: LedgerEntryCountAggregateOutputType | null _avg: LedgerEntryAvgAggregateOutputType | null _sum: LedgerEntrySumAggregateOutputType | null _min: LedgerEntryMinAggregateOutputType | null _max: LedgerEntryMaxAggregateOutputType | null } export type LedgerEntryAvgAggregateOutputType = { http_status: number | null } export type LedgerEntrySumAggregateOutputType = { http_status: number | null } export type LedgerEntryMinAggregateOutputType = { id: string | null task_id: string | null phase: string | null idempotency_key: string | null stripe_object_id: string | null response_status: string | null http_status: number | null created_at: Date | null updated_at: Date | null } export type LedgerEntryMaxAggregateOutputType = { id: string | null task_id: string | null phase: string | null idempotency_key: string | null stripe_object_id: string | null response_status: string | null http_status: number | null created_at: Date | null updated_at: Date | null } export type LedgerEntryCountAggregateOutputType = { id: number task_id: number phase: number idempotency_key: number stripe_object_id: number response_status: number http_status: number created_at: number updated_at: number _all: number } export type LedgerEntryAvgAggregateInputType = { http_status?: true } export type LedgerEntrySumAggregateInputType = { http_status?: true } export type LedgerEntryMinAggregateInputType = { id?: true task_id?: true phase?: true idempotency_key?: true stripe_object_id?: true response_status?: true http_status?: true created_at?: true updated_at?: true } export type LedgerEntryMaxAggregateInputType = { id?: true task_id?: true phase?: true idempotency_key?: true stripe_object_id?: true response_status?: true http_status?: true created_at?: true updated_at?: true } export type LedgerEntryCountAggregateInputType = { id?: true task_id?: true phase?: true idempotency_key?: true stripe_object_id?: true response_status?: true http_status?: true created_at?: true updated_at?: true _all?: true } export type LedgerEntryAggregateArgs = { /** * Filter which LedgerEntry to aggregate. */ where?: LedgerEntryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LedgerEntries to fetch. */ orderBy?: LedgerEntryOrderByWithRelationInput | LedgerEntryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: LedgerEntryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LedgerEntries 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` LedgerEntries. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned LedgerEntries **/ _count?: true | LedgerEntryCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: LedgerEntryAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: LedgerEntrySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: LedgerEntryMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: LedgerEntryMaxAggregateInputType } export type GetLedgerEntryAggregateType = { [P in keyof T & keyof AggregateLedgerEntry]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type LedgerEntryGroupByArgs = { where?: LedgerEntryWhereInput orderBy?: LedgerEntryOrderByWithAggregationInput | LedgerEntryOrderByWithAggregationInput[] by: LedgerEntryScalarFieldEnum[] | LedgerEntryScalarFieldEnum having?: LedgerEntryScalarWhereWithAggregatesInput take?: number skip?: number _count?: LedgerEntryCountAggregateInputType | true _avg?: LedgerEntryAvgAggregateInputType _sum?: LedgerEntrySumAggregateInputType _min?: LedgerEntryMinAggregateInputType _max?: LedgerEntryMaxAggregateInputType } export type LedgerEntryGroupByOutputType = { id: string task_id: string phase: string idempotency_key: string stripe_object_id: string | null response_status: string http_status: number created_at: Date updated_at: Date _count: LedgerEntryCountAggregateOutputType | null _avg: LedgerEntryAvgAggregateOutputType | null _sum: LedgerEntrySumAggregateOutputType | null _min: LedgerEntryMinAggregateOutputType | null _max: LedgerEntryMaxAggregateOutputType | null } type GetLedgerEntryGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof LedgerEntryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type LedgerEntrySelect = $Extensions.GetSelect<{ id?: boolean task_id?: boolean phase?: boolean idempotency_key?: boolean stripe_object_id?: boolean response_status?: boolean http_status?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["ledgerEntry"]> export type LedgerEntrySelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean task_id?: boolean phase?: boolean idempotency_key?: boolean stripe_object_id?: boolean response_status?: boolean http_status?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["ledgerEntry"]> export type LedgerEntrySelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean task_id?: boolean phase?: boolean idempotency_key?: boolean stripe_object_id?: boolean response_status?: boolean http_status?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["ledgerEntry"]> export type LedgerEntrySelectScalar = { id?: boolean task_id?: boolean phase?: boolean idempotency_key?: boolean stripe_object_id?: boolean response_status?: boolean http_status?: boolean created_at?: boolean updated_at?: boolean } export type LedgerEntryOmit = $Extensions.GetOmit<"id" | "task_id" | "phase" | "idempotency_key" | "stripe_object_id" | "response_status" | "http_status" | "created_at" | "updated_at", ExtArgs["result"]["ledgerEntry"]> export type $LedgerEntryPayload = { name: "LedgerEntry" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string task_id: string phase: string idempotency_key: string stripe_object_id: string | null response_status: string http_status: number created_at: Date updated_at: Date }, ExtArgs["result"]["ledgerEntry"]> composites: {} } type LedgerEntryGetPayload = $Result.GetResult type LedgerEntryCountArgs = Omit & { select?: LedgerEntryCountAggregateInputType | true } export interface LedgerEntryDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['LedgerEntry'], meta: { name: 'LedgerEntry' } } /** * Find zero or one LedgerEntry that matches the filter. * @param {LedgerEntryFindUniqueArgs} args - Arguments to find a LedgerEntry * @example * // Get one LedgerEntry * const ledgerEntry = await prisma.ledgerEntry.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__LedgerEntryClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one LedgerEntry that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {LedgerEntryFindUniqueOrThrowArgs} args - Arguments to find a LedgerEntry * @example * // Get one LedgerEntry * const ledgerEntry = await prisma.ledgerEntry.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__LedgerEntryClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first LedgerEntry 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 {LedgerEntryFindFirstArgs} args - Arguments to find a LedgerEntry * @example * // Get one LedgerEntry * const ledgerEntry = await prisma.ledgerEntry.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__LedgerEntryClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first LedgerEntry 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 {LedgerEntryFindFirstOrThrowArgs} args - Arguments to find a LedgerEntry * @example * // Get one LedgerEntry * const ledgerEntry = await prisma.ledgerEntry.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__LedgerEntryClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more LedgerEntries 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 {LedgerEntryFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all LedgerEntries * const ledgerEntries = await prisma.ledgerEntry.findMany() * * // Get first 10 LedgerEntries * const ledgerEntries = await prisma.ledgerEntry.findMany({ take: 10 }) * * // Only select the `id` * const ledgerEntryWithIdOnly = await prisma.ledgerEntry.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a LedgerEntry. * @param {LedgerEntryCreateArgs} args - Arguments to create a LedgerEntry. * @example * // Create one LedgerEntry * const LedgerEntry = await prisma.ledgerEntry.create({ * data: { * // ... data to create a LedgerEntry * } * }) * */ create(args: SelectSubset>): Prisma__LedgerEntryClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many LedgerEntries. * @param {LedgerEntryCreateManyArgs} args - Arguments to create many LedgerEntries. * @example * // Create many LedgerEntries * const ledgerEntry = await prisma.ledgerEntry.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many LedgerEntries and returns the data saved in the database. * @param {LedgerEntryCreateManyAndReturnArgs} args - Arguments to create many LedgerEntries. * @example * // Create many LedgerEntries * const ledgerEntry = await prisma.ledgerEntry.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many LedgerEntries and only return the `id` * const ledgerEntryWithIdOnly = await prisma.ledgerEntry.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 LedgerEntry. * @param {LedgerEntryDeleteArgs} args - Arguments to delete one LedgerEntry. * @example * // Delete one LedgerEntry * const LedgerEntry = await prisma.ledgerEntry.delete({ * where: { * // ... filter to delete one LedgerEntry * } * }) * */ delete(args: SelectSubset>): Prisma__LedgerEntryClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one LedgerEntry. * @param {LedgerEntryUpdateArgs} args - Arguments to update one LedgerEntry. * @example * // Update one LedgerEntry * const ledgerEntry = await prisma.ledgerEntry.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__LedgerEntryClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more LedgerEntries. * @param {LedgerEntryDeleteManyArgs} args - Arguments to filter LedgerEntries to delete. * @example * // Delete a few LedgerEntries * const { count } = await prisma.ledgerEntry.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more LedgerEntries. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LedgerEntryUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many LedgerEntries * const ledgerEntry = await prisma.ledgerEntry.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more LedgerEntries and returns the data updated in the database. * @param {LedgerEntryUpdateManyAndReturnArgs} args - Arguments to update many LedgerEntries. * @example * // Update many LedgerEntries * const ledgerEntry = await prisma.ledgerEntry.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more LedgerEntries and only return the `id` * const ledgerEntryWithIdOnly = await prisma.ledgerEntry.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 LedgerEntry. * @param {LedgerEntryUpsertArgs} args - Arguments to update or create a LedgerEntry. * @example * // Update or create a LedgerEntry * const ledgerEntry = await prisma.ledgerEntry.upsert({ * create: { * // ... data to create a LedgerEntry * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the LedgerEntry we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__LedgerEntryClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of LedgerEntries. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LedgerEntryCountArgs} args - Arguments to filter LedgerEntries to count. * @example * // Count the number of LedgerEntries * const count = await prisma.ledgerEntry.count({ * where: { * // ... the filter for the LedgerEntries 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 LedgerEntry. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LedgerEntryAggregateArgs} 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 LedgerEntry. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LedgerEntryGroupByArgs} 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 LedgerEntryGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: LedgerEntryGroupByArgs['orderBy'] } : { orderBy?: LedgerEntryGroupByArgs['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 ? GetLedgerEntryGroupByPayload : Prisma.PrismaPromise /** * Fields of the LedgerEntry model */ readonly fields: LedgerEntryFieldRefs; } /** * The delegate class that acts as a "Promise-like" for LedgerEntry. * 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__LedgerEntryClient 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 LedgerEntry model */ interface LedgerEntryFieldRefs { readonly id: FieldRef<"LedgerEntry", 'String'> readonly task_id: FieldRef<"LedgerEntry", 'String'> readonly phase: FieldRef<"LedgerEntry", 'String'> readonly idempotency_key: FieldRef<"LedgerEntry", 'String'> readonly stripe_object_id: FieldRef<"LedgerEntry", 'String'> readonly response_status: FieldRef<"LedgerEntry", 'String'> readonly http_status: FieldRef<"LedgerEntry", 'Int'> readonly created_at: FieldRef<"LedgerEntry", 'DateTime'> readonly updated_at: FieldRef<"LedgerEntry", 'DateTime'> } // Custom InputTypes /** * LedgerEntry findUnique */ export type LedgerEntryFindUniqueArgs = { /** * Select specific fields to fetch from the LedgerEntry */ select?: LedgerEntrySelect | null /** * Omit specific fields from the LedgerEntry */ omit?: LedgerEntryOmit | null /** * Filter, which LedgerEntry to fetch. */ where: LedgerEntryWhereUniqueInput } /** * LedgerEntry findUniqueOrThrow */ export type LedgerEntryFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the LedgerEntry */ select?: LedgerEntrySelect | null /** * Omit specific fields from the LedgerEntry */ omit?: LedgerEntryOmit | null /** * Filter, which LedgerEntry to fetch. */ where: LedgerEntryWhereUniqueInput } /** * LedgerEntry findFirst */ export type LedgerEntryFindFirstArgs = { /** * Select specific fields to fetch from the LedgerEntry */ select?: LedgerEntrySelect | null /** * Omit specific fields from the LedgerEntry */ omit?: LedgerEntryOmit | null /** * Filter, which LedgerEntry to fetch. */ where?: LedgerEntryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LedgerEntries to fetch. */ orderBy?: LedgerEntryOrderByWithRelationInput | LedgerEntryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LedgerEntries. */ cursor?: LedgerEntryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LedgerEntries 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` LedgerEntries. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LedgerEntries. */ distinct?: LedgerEntryScalarFieldEnum | LedgerEntryScalarFieldEnum[] } /** * LedgerEntry findFirstOrThrow */ export type LedgerEntryFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the LedgerEntry */ select?: LedgerEntrySelect | null /** * Omit specific fields from the LedgerEntry */ omit?: LedgerEntryOmit | null /** * Filter, which LedgerEntry to fetch. */ where?: LedgerEntryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LedgerEntries to fetch. */ orderBy?: LedgerEntryOrderByWithRelationInput | LedgerEntryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LedgerEntries. */ cursor?: LedgerEntryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LedgerEntries 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` LedgerEntries. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LedgerEntries. */ distinct?: LedgerEntryScalarFieldEnum | LedgerEntryScalarFieldEnum[] } /** * LedgerEntry findMany */ export type LedgerEntryFindManyArgs = { /** * Select specific fields to fetch from the LedgerEntry */ select?: LedgerEntrySelect | null /** * Omit specific fields from the LedgerEntry */ omit?: LedgerEntryOmit | null /** * Filter, which LedgerEntries to fetch. */ where?: LedgerEntryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LedgerEntries to fetch. */ orderBy?: LedgerEntryOrderByWithRelationInput | LedgerEntryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing LedgerEntries. */ cursor?: LedgerEntryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LedgerEntries 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` LedgerEntries. */ skip?: number distinct?: LedgerEntryScalarFieldEnum | LedgerEntryScalarFieldEnum[] } /** * LedgerEntry create */ export type LedgerEntryCreateArgs = { /** * Select specific fields to fetch from the LedgerEntry */ select?: LedgerEntrySelect | null /** * Omit specific fields from the LedgerEntry */ omit?: LedgerEntryOmit | null /** * The data needed to create a LedgerEntry. */ data: XOR } /** * LedgerEntry createMany */ export type LedgerEntryCreateManyArgs = { /** * The data used to create many LedgerEntries. */ data: LedgerEntryCreateManyInput | LedgerEntryCreateManyInput[] skipDuplicates?: boolean } /** * LedgerEntry createManyAndReturn */ export type LedgerEntryCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the LedgerEntry */ select?: LedgerEntrySelectCreateManyAndReturn | null /** * Omit specific fields from the LedgerEntry */ omit?: LedgerEntryOmit | null /** * The data used to create many LedgerEntries. */ data: LedgerEntryCreateManyInput | LedgerEntryCreateManyInput[] skipDuplicates?: boolean } /** * LedgerEntry update */ export type LedgerEntryUpdateArgs = { /** * Select specific fields to fetch from the LedgerEntry */ select?: LedgerEntrySelect | null /** * Omit specific fields from the LedgerEntry */ omit?: LedgerEntryOmit | null /** * The data needed to update a LedgerEntry. */ data: XOR /** * Choose, which LedgerEntry to update. */ where: LedgerEntryWhereUniqueInput } /** * LedgerEntry updateMany */ export type LedgerEntryUpdateManyArgs = { /** * The data used to update LedgerEntries. */ data: XOR /** * Filter which LedgerEntries to update */ where?: LedgerEntryWhereInput /** * Limit how many LedgerEntries to update. */ limit?: number } /** * LedgerEntry updateManyAndReturn */ export type LedgerEntryUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the LedgerEntry */ select?: LedgerEntrySelectUpdateManyAndReturn | null /** * Omit specific fields from the LedgerEntry */ omit?: LedgerEntryOmit | null /** * The data used to update LedgerEntries. */ data: XOR /** * Filter which LedgerEntries to update */ where?: LedgerEntryWhereInput /** * Limit how many LedgerEntries to update. */ limit?: number } /** * LedgerEntry upsert */ export type LedgerEntryUpsertArgs = { /** * Select specific fields to fetch from the LedgerEntry */ select?: LedgerEntrySelect | null /** * Omit specific fields from the LedgerEntry */ omit?: LedgerEntryOmit | null /** * The filter to search for the LedgerEntry to update in case it exists. */ where: LedgerEntryWhereUniqueInput /** * In case the LedgerEntry found by the `where` argument doesn't exist, create a new LedgerEntry with this data. */ create: XOR /** * In case the LedgerEntry was found with the provided `where` argument, update it with this data. */ update: XOR } /** * LedgerEntry delete */ export type LedgerEntryDeleteArgs = { /** * Select specific fields to fetch from the LedgerEntry */ select?: LedgerEntrySelect | null /** * Omit specific fields from the LedgerEntry */ omit?: LedgerEntryOmit | null /** * Filter which LedgerEntry to delete. */ where: LedgerEntryWhereUniqueInput } /** * LedgerEntry deleteMany */ export type LedgerEntryDeleteManyArgs = { /** * Filter which LedgerEntries to delete */ where?: LedgerEntryWhereInput /** * Limit how many LedgerEntries to delete. */ limit?: number } /** * LedgerEntry without action */ export type LedgerEntryDefaultArgs = { /** * Select specific fields to fetch from the LedgerEntry */ select?: LedgerEntrySelect | null /** * Omit specific fields from the LedgerEntry */ omit?: LedgerEntryOmit | null } /** * Model AgentProfile */ export type AggregateAgentProfile = { _count: AgentProfileCountAggregateOutputType | null _min: AgentProfileMinAggregateOutputType | null _max: AgentProfileMaxAggregateOutputType | null } export type AgentProfileMinAggregateOutputType = { id: string | null agent_id: string | null type: string | null wallet_address: string | null status: string | null created_at: Date | null updated_at: Date | null } export type AgentProfileMaxAggregateOutputType = { id: string | null agent_id: string | null type: string | null wallet_address: string | null status: string | null created_at: Date | null updated_at: Date | null } export type AgentProfileCountAggregateOutputType = { id: number agent_id: number type: number wallet_address: number status: number capabilities: number created_at: number updated_at: number _all: number } export type AgentProfileMinAggregateInputType = { id?: true agent_id?: true type?: true wallet_address?: true status?: true created_at?: true updated_at?: true } export type AgentProfileMaxAggregateInputType = { id?: true agent_id?: true type?: true wallet_address?: true status?: true created_at?: true updated_at?: true } export type AgentProfileCountAggregateInputType = { id?: true agent_id?: true type?: true wallet_address?: true status?: true capabilities?: true created_at?: true updated_at?: true _all?: true } export type AgentProfileAggregateArgs = { /** * Filter which AgentProfile to aggregate. */ where?: AgentProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentProfiles to fetch. */ orderBy?: AgentProfileOrderByWithRelationInput | AgentProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AgentProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentProfiles 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` AgentProfiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AgentProfiles **/ _count?: true | AgentProfileCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AgentProfileMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AgentProfileMaxAggregateInputType } export type GetAgentProfileAggregateType = { [P in keyof T & keyof AggregateAgentProfile]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AgentProfileGroupByArgs = { where?: AgentProfileWhereInput orderBy?: AgentProfileOrderByWithAggregationInput | AgentProfileOrderByWithAggregationInput[] by: AgentProfileScalarFieldEnum[] | AgentProfileScalarFieldEnum having?: AgentProfileScalarWhereWithAggregatesInput take?: number skip?: number _count?: AgentProfileCountAggregateInputType | true _min?: AgentProfileMinAggregateInputType _max?: AgentProfileMaxAggregateInputType } export type AgentProfileGroupByOutputType = { id: string agent_id: string type: string wallet_address: string | null status: string capabilities: JsonValue | null created_at: Date updated_at: Date _count: AgentProfileCountAggregateOutputType | null _min: AgentProfileMinAggregateOutputType | null _max: AgentProfileMaxAggregateOutputType | null } type GetAgentProfileGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AgentProfileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AgentProfileSelect = $Extensions.GetSelect<{ id?: boolean agent_id?: boolean type?: boolean wallet_address?: boolean status?: boolean capabilities?: boolean created_at?: boolean updated_at?: boolean tasks_as_scout?: boolean | AgentProfile$tasks_as_scoutArgs tasks_as_builder?: boolean | AgentProfile$tasks_as_builderArgs claims?: boolean | AgentProfile$claimsArgs _count?: boolean | AgentProfileCountOutputTypeDefaultArgs }, ExtArgs["result"]["agentProfile"]> export type AgentProfileSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean agent_id?: boolean type?: boolean wallet_address?: boolean status?: boolean capabilities?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["agentProfile"]> export type AgentProfileSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean agent_id?: boolean type?: boolean wallet_address?: boolean status?: boolean capabilities?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["agentProfile"]> export type AgentProfileSelectScalar = { id?: boolean agent_id?: boolean type?: boolean wallet_address?: boolean status?: boolean capabilities?: boolean created_at?: boolean updated_at?: boolean } export type AgentProfileOmit = $Extensions.GetOmit<"id" | "agent_id" | "type" | "wallet_address" | "status" | "capabilities" | "created_at" | "updated_at", ExtArgs["result"]["agentProfile"]> export type AgentProfileInclude = { tasks_as_scout?: boolean | AgentProfile$tasks_as_scoutArgs tasks_as_builder?: boolean | AgentProfile$tasks_as_builderArgs claims?: boolean | AgentProfile$claimsArgs _count?: boolean | AgentProfileCountOutputTypeDefaultArgs } export type AgentProfileIncludeCreateManyAndReturn = {} export type AgentProfileIncludeUpdateManyAndReturn = {} export type $AgentProfilePayload = { name: "AgentProfile" objects: { tasks_as_scout: Prisma.$TaskPayload[] tasks_as_builder: Prisma.$TaskPayload[] claims: Prisma.$ClaimPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string agent_id: string type: string wallet_address: string | null status: string capabilities: Prisma.JsonValue | null created_at: Date updated_at: Date }, ExtArgs["result"]["agentProfile"]> composites: {} } type AgentProfileGetPayload = $Result.GetResult type AgentProfileCountArgs = Omit & { select?: AgentProfileCountAggregateInputType | true } export interface AgentProfileDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AgentProfile'], meta: { name: 'AgentProfile' } } /** * Find zero or one AgentProfile that matches the filter. * @param {AgentProfileFindUniqueArgs} args - Arguments to find a AgentProfile * @example * // Get one AgentProfile * const agentProfile = await prisma.agentProfile.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AgentProfileClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AgentProfile that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AgentProfileFindUniqueOrThrowArgs} args - Arguments to find a AgentProfile * @example * // Get one AgentProfile * const agentProfile = await prisma.agentProfile.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AgentProfileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AgentProfile 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 {AgentProfileFindFirstArgs} args - Arguments to find a AgentProfile * @example * // Get one AgentProfile * const agentProfile = await prisma.agentProfile.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AgentProfileClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AgentProfile 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 {AgentProfileFindFirstOrThrowArgs} args - Arguments to find a AgentProfile * @example * // Get one AgentProfile * const agentProfile = await prisma.agentProfile.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AgentProfileClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AgentProfiles 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 {AgentProfileFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AgentProfiles * const agentProfiles = await prisma.agentProfile.findMany() * * // Get first 10 AgentProfiles * const agentProfiles = await prisma.agentProfile.findMany({ take: 10 }) * * // Only select the `id` * const agentProfileWithIdOnly = await prisma.agentProfile.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a AgentProfile. * @param {AgentProfileCreateArgs} args - Arguments to create a AgentProfile. * @example * // Create one AgentProfile * const AgentProfile = await prisma.agentProfile.create({ * data: { * // ... data to create a AgentProfile * } * }) * */ create(args: SelectSubset>): Prisma__AgentProfileClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AgentProfiles. * @param {AgentProfileCreateManyArgs} args - Arguments to create many AgentProfiles. * @example * // Create many AgentProfiles * const agentProfile = await prisma.agentProfile.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many AgentProfiles and returns the data saved in the database. * @param {AgentProfileCreateManyAndReturnArgs} args - Arguments to create many AgentProfiles. * @example * // Create many AgentProfiles * const agentProfile = await prisma.agentProfile.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AgentProfiles and only return the `id` * const agentProfileWithIdOnly = await prisma.agentProfile.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 AgentProfile. * @param {AgentProfileDeleteArgs} args - Arguments to delete one AgentProfile. * @example * // Delete one AgentProfile * const AgentProfile = await prisma.agentProfile.delete({ * where: { * // ... filter to delete one AgentProfile * } * }) * */ delete(args: SelectSubset>): Prisma__AgentProfileClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AgentProfile. * @param {AgentProfileUpdateArgs} args - Arguments to update one AgentProfile. * @example * // Update one AgentProfile * const agentProfile = await prisma.agentProfile.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AgentProfileClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AgentProfiles. * @param {AgentProfileDeleteManyArgs} args - Arguments to filter AgentProfiles to delete. * @example * // Delete a few AgentProfiles * const { count } = await prisma.agentProfile.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AgentProfiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentProfileUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AgentProfiles * const agentProfile = await prisma.agentProfile.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AgentProfiles and returns the data updated in the database. * @param {AgentProfileUpdateManyAndReturnArgs} args - Arguments to update many AgentProfiles. * @example * // Update many AgentProfiles * const agentProfile = await prisma.agentProfile.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AgentProfiles and only return the `id` * const agentProfileWithIdOnly = await prisma.agentProfile.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 AgentProfile. * @param {AgentProfileUpsertArgs} args - Arguments to update or create a AgentProfile. * @example * // Update or create a AgentProfile * const agentProfile = await prisma.agentProfile.upsert({ * create: { * // ... data to create a AgentProfile * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AgentProfile we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AgentProfileClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AgentProfiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentProfileCountArgs} args - Arguments to filter AgentProfiles to count. * @example * // Count the number of AgentProfiles * const count = await prisma.agentProfile.count({ * where: { * // ... the filter for the AgentProfiles 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 AgentProfile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentProfileAggregateArgs} 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 AgentProfile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentProfileGroupByArgs} 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 AgentProfileGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AgentProfileGroupByArgs['orderBy'] } : { orderBy?: AgentProfileGroupByArgs['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 ? GetAgentProfileGroupByPayload : Prisma.PrismaPromise /** * Fields of the AgentProfile model */ readonly fields: AgentProfileFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AgentProfile. * 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__AgentProfileClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tasks_as_scout = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> tasks_as_builder = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> claims = {}>(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 AgentProfile model */ interface AgentProfileFieldRefs { readonly id: FieldRef<"AgentProfile", 'String'> readonly agent_id: FieldRef<"AgentProfile", 'String'> readonly type: FieldRef<"AgentProfile", 'String'> readonly wallet_address: FieldRef<"AgentProfile", 'String'> readonly status: FieldRef<"AgentProfile", 'String'> readonly capabilities: FieldRef<"AgentProfile", 'Json'> readonly created_at: FieldRef<"AgentProfile", 'DateTime'> readonly updated_at: FieldRef<"AgentProfile", 'DateTime'> } // Custom InputTypes /** * AgentProfile findUnique */ export type AgentProfileFindUniqueArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelect | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProfileInclude | null /** * Filter, which AgentProfile to fetch. */ where: AgentProfileWhereUniqueInput } /** * AgentProfile findUniqueOrThrow */ export type AgentProfileFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelect | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProfileInclude | null /** * Filter, which AgentProfile to fetch. */ where: AgentProfileWhereUniqueInput } /** * AgentProfile findFirst */ export type AgentProfileFindFirstArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelect | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProfileInclude | null /** * Filter, which AgentProfile to fetch. */ where?: AgentProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentProfiles to fetch. */ orderBy?: AgentProfileOrderByWithRelationInput | AgentProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AgentProfiles. */ cursor?: AgentProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentProfiles 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` AgentProfiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AgentProfiles. */ distinct?: AgentProfileScalarFieldEnum | AgentProfileScalarFieldEnum[] } /** * AgentProfile findFirstOrThrow */ export type AgentProfileFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelect | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProfileInclude | null /** * Filter, which AgentProfile to fetch. */ where?: AgentProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentProfiles to fetch. */ orderBy?: AgentProfileOrderByWithRelationInput | AgentProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AgentProfiles. */ cursor?: AgentProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentProfiles 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` AgentProfiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AgentProfiles. */ distinct?: AgentProfileScalarFieldEnum | AgentProfileScalarFieldEnum[] } /** * AgentProfile findMany */ export type AgentProfileFindManyArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelect | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProfileInclude | null /** * Filter, which AgentProfiles to fetch. */ where?: AgentProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentProfiles to fetch. */ orderBy?: AgentProfileOrderByWithRelationInput | AgentProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AgentProfiles. */ cursor?: AgentProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentProfiles 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` AgentProfiles. */ skip?: number distinct?: AgentProfileScalarFieldEnum | AgentProfileScalarFieldEnum[] } /** * AgentProfile create */ export type AgentProfileCreateArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelect | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProfileInclude | null /** * The data needed to create a AgentProfile. */ data: XOR } /** * AgentProfile createMany */ export type AgentProfileCreateManyArgs = { /** * The data used to create many AgentProfiles. */ data: AgentProfileCreateManyInput | AgentProfileCreateManyInput[] skipDuplicates?: boolean } /** * AgentProfile createManyAndReturn */ export type AgentProfileCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelectCreateManyAndReturn | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * The data used to create many AgentProfiles. */ data: AgentProfileCreateManyInput | AgentProfileCreateManyInput[] skipDuplicates?: boolean } /** * AgentProfile update */ export type AgentProfileUpdateArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelect | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProfileInclude | null /** * The data needed to update a AgentProfile. */ data: XOR /** * Choose, which AgentProfile to update. */ where: AgentProfileWhereUniqueInput } /** * AgentProfile updateMany */ export type AgentProfileUpdateManyArgs = { /** * The data used to update AgentProfiles. */ data: XOR /** * Filter which AgentProfiles to update */ where?: AgentProfileWhereInput /** * Limit how many AgentProfiles to update. */ limit?: number } /** * AgentProfile updateManyAndReturn */ export type AgentProfileUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelectUpdateManyAndReturn | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * The data used to update AgentProfiles. */ data: XOR /** * Filter which AgentProfiles to update */ where?: AgentProfileWhereInput /** * Limit how many AgentProfiles to update. */ limit?: number } /** * AgentProfile upsert */ export type AgentProfileUpsertArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelect | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProfileInclude | null /** * The filter to search for the AgentProfile to update in case it exists. */ where: AgentProfileWhereUniqueInput /** * In case the AgentProfile found by the `where` argument doesn't exist, create a new AgentProfile with this data. */ create: XOR /** * In case the AgentProfile was found with the provided `where` argument, update it with this data. */ update: XOR } /** * AgentProfile delete */ export type AgentProfileDeleteArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelect | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProfileInclude | null /** * Filter which AgentProfile to delete. */ where: AgentProfileWhereUniqueInput } /** * AgentProfile deleteMany */ export type AgentProfileDeleteManyArgs = { /** * Filter which AgentProfiles to delete */ where?: AgentProfileWhereInput /** * Limit how many AgentProfiles to delete. */ limit?: number } /** * AgentProfile.tasks_as_scout */ export type AgentProfile$tasks_as_scoutArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null where?: TaskWhereInput orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[] cursor?: TaskWhereUniqueInput take?: number skip?: number distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[] } /** * AgentProfile.tasks_as_builder */ export type AgentProfile$tasks_as_builderArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null where?: TaskWhereInput orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[] cursor?: TaskWhereUniqueInput take?: number skip?: number distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[] } /** * AgentProfile.claims */ export type AgentProfile$claimsArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] cursor?: ClaimWhereUniqueInput take?: number skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * AgentProfile without action */ export type AgentProfileDefaultArgs = { /** * Select specific fields to fetch from the AgentProfile */ select?: AgentProfileSelect | null /** * Omit specific fields from the AgentProfile */ omit?: AgentProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProfileInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const TaskScalarFieldEnum: { id: 'id', title: 'title', description: 'description', status: 'status', difficulty: 'difficulty', scope_clarity_score: 'scope_clarity_score', error_classification: 'error_classification', reward_amount: 'reward_amount', reward_currency: 'reward_currency', acceptance_criteria: 'acceptance_criteria', required_stack: 'required_stack', retry_count: 'retry_count', stripe_payment_intent_id: 'stripe_payment_intent_id', stripe_checkout_session_id: 'stripe_checkout_session_id', expires_at: 'expires_at', github_pr_url: 'github_pr_url', reward_points: 'reward_points', is_priority: 'is_priority', is_private: 'is_private', referred_by_agent: 'referred_by_agent', parent_task_id: 'parent_task_id', created_by_agent: 'created_by_agent', created_at: 'created_at', updated_at: 'updated_at', scout_id: 'scout_id', builder_id: 'builder_id' }; export type TaskScalarFieldEnum = (typeof TaskScalarFieldEnum)[keyof typeof TaskScalarFieldEnum] export const ClaimScalarFieldEnum: { id: 'id', task_id: 'task_id', agent_id: 'agent_id', developer_wallet: 'developer_wallet', status: 'status', claim_token: 'claim_token', held_amount: 'held_amount', held_currency: 'held_currency', expires_at: 'expires_at', created_at: 'created_at', updated_at: 'updated_at' }; export type ClaimScalarFieldEnum = (typeof ClaimScalarFieldEnum)[keyof typeof ClaimScalarFieldEnum] export const SubmissionScalarFieldEnum: { id: 'id', task_id: 'task_id', claim_id: 'claim_id', status: 'status', deliverables: 'deliverables', estimated_judge_complete_at: 'estimated_judge_complete_at', created_at: 'created_at', updated_at: 'updated_at' }; export type SubmissionScalarFieldEnum = (typeof SubmissionScalarFieldEnum)[keyof typeof SubmissionScalarFieldEnum] export const JudgeResultScalarFieldEnum: { id: 'id', submission_id: 'submission_id', overall_result: 'overall_result', tests: 'tests', artifacts: 'artifacts', error_classification: 'error_classification', error_signature: 'error_signature', retryable: 'retryable', resource_usage: 'resource_usage', judge_completed_at: 'judge_completed_at' }; export type JudgeResultScalarFieldEnum = (typeof JudgeResultScalarFieldEnum)[keyof typeof JudgeResultScalarFieldEnum] export const AuditEventScalarFieldEnum: { id: 'id', actorType: 'actorType', actorId: 'actorId', action: 'action', entityType: 'entityType', entityId: 'entityId', beforeState: 'beforeState', afterState: 'afterState', reason: 'reason', metadata: 'metadata', createdAt: 'createdAt' }; export type AuditEventScalarFieldEnum = (typeof AuditEventScalarFieldEnum)[keyof typeof AuditEventScalarFieldEnum] export const LedgerEntryScalarFieldEnum: { id: 'id', task_id: 'task_id', phase: 'phase', idempotency_key: 'idempotency_key', stripe_object_id: 'stripe_object_id', response_status: 'response_status', http_status: 'http_status', created_at: 'created_at', updated_at: 'updated_at' }; export type LedgerEntryScalarFieldEnum = (typeof LedgerEntryScalarFieldEnum)[keyof typeof LedgerEntryScalarFieldEnum] export const AgentProfileScalarFieldEnum: { id: 'id', agent_id: 'agent_id', type: 'type', wallet_address: 'wallet_address', status: 'status', capabilities: 'capabilities', created_at: 'created_at', updated_at: 'updated_at' }; export type AgentProfileScalarFieldEnum = (typeof AgentProfileScalarFieldEnum)[keyof typeof AgentProfileScalarFieldEnum] 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 NullableJsonNullValueInput: { DbNull: typeof DbNull, JsonNull: typeof JsonNull }; export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] export const QueryMode: { default: 'default', insensitive: 'insensitive' }; export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] export const JsonNullValueFilter: { DbNull: typeof DbNull, JsonNull: typeof JsonNull, AnyNull: typeof AnyNull }; export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] export const NullsOrder: { first: 'first', last: 'last' }; export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] /** * Field references */ /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> /** * Reference to a field of type 'String[]' */ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> /** * Reference to a field of type '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 '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 'Json' */ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> /** * Reference to a field of type 'QueryMode' */ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'> /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'DateTime[]' */ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Deep Input Types */ export type TaskWhereInput = { AND?: TaskWhereInput | TaskWhereInput[] OR?: TaskWhereInput[] NOT?: TaskWhereInput | TaskWhereInput[] id?: StringFilter<"Task"> | string title?: StringFilter<"Task"> | string description?: StringFilter<"Task"> | string status?: StringFilter<"Task"> | string difficulty?: StringFilter<"Task"> | string scope_clarity_score?: FloatFilter<"Task"> | number error_classification?: StringNullableFilter<"Task"> | string | null reward_amount?: IntFilter<"Task"> | number reward_currency?: StringFilter<"Task"> | string acceptance_criteria?: JsonFilter<"Task"> required_stack?: StringNullableListFilter<"Task"> retry_count?: IntFilter<"Task"> | number stripe_payment_intent_id?: StringNullableFilter<"Task"> | string | null stripe_checkout_session_id?: StringNullableFilter<"Task"> | string | null expires_at?: DateTimeNullableFilter<"Task"> | Date | string | null github_pr_url?: StringNullableFilter<"Task"> | string | null reward_points?: IntFilter<"Task"> | number is_priority?: BoolFilter<"Task"> | boolean is_private?: BoolFilter<"Task"> | boolean referred_by_agent?: StringNullableFilter<"Task"> | string | null parent_task_id?: StringNullableFilter<"Task"> | string | null created_by_agent?: StringNullableFilter<"Task"> | string | null created_at?: DateTimeFilter<"Task"> | Date | string updated_at?: DateTimeFilter<"Task"> | Date | string scout_id?: StringNullableFilter<"Task"> | string | null builder_id?: StringNullableFilter<"Task"> | string | null scout_agent?: XOR | null builder_agent?: XOR | null claims?: ClaimListRelationFilter submissions?: SubmissionListRelationFilter } export type TaskOrderByWithRelationInput = { id?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder difficulty?: SortOrder scope_clarity_score?: SortOrder error_classification?: SortOrderInput | SortOrder reward_amount?: SortOrder reward_currency?: SortOrder acceptance_criteria?: SortOrder required_stack?: SortOrder retry_count?: SortOrder stripe_payment_intent_id?: SortOrderInput | SortOrder stripe_checkout_session_id?: SortOrderInput | SortOrder expires_at?: SortOrderInput | SortOrder github_pr_url?: SortOrderInput | SortOrder reward_points?: SortOrder is_priority?: SortOrder is_private?: SortOrder referred_by_agent?: SortOrderInput | SortOrder parent_task_id?: SortOrderInput | SortOrder created_by_agent?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder scout_id?: SortOrderInput | SortOrder builder_id?: SortOrderInput | SortOrder scout_agent?: AgentProfileOrderByWithRelationInput builder_agent?: AgentProfileOrderByWithRelationInput claims?: ClaimOrderByRelationAggregateInput submissions?: SubmissionOrderByRelationAggregateInput } export type TaskWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: TaskWhereInput | TaskWhereInput[] OR?: TaskWhereInput[] NOT?: TaskWhereInput | TaskWhereInput[] title?: StringFilter<"Task"> | string description?: StringFilter<"Task"> | string status?: StringFilter<"Task"> | string difficulty?: StringFilter<"Task"> | string scope_clarity_score?: FloatFilter<"Task"> | number error_classification?: StringNullableFilter<"Task"> | string | null reward_amount?: IntFilter<"Task"> | number reward_currency?: StringFilter<"Task"> | string acceptance_criteria?: JsonFilter<"Task"> required_stack?: StringNullableListFilter<"Task"> retry_count?: IntFilter<"Task"> | number stripe_payment_intent_id?: StringNullableFilter<"Task"> | string | null stripe_checkout_session_id?: StringNullableFilter<"Task"> | string | null expires_at?: DateTimeNullableFilter<"Task"> | Date | string | null github_pr_url?: StringNullableFilter<"Task"> | string | null reward_points?: IntFilter<"Task"> | number is_priority?: BoolFilter<"Task"> | boolean is_private?: BoolFilter<"Task"> | boolean referred_by_agent?: StringNullableFilter<"Task"> | string | null parent_task_id?: StringNullableFilter<"Task"> | string | null created_by_agent?: StringNullableFilter<"Task"> | string | null created_at?: DateTimeFilter<"Task"> | Date | string updated_at?: DateTimeFilter<"Task"> | Date | string scout_id?: StringNullableFilter<"Task"> | string | null builder_id?: StringNullableFilter<"Task"> | string | null scout_agent?: XOR | null builder_agent?: XOR | null claims?: ClaimListRelationFilter submissions?: SubmissionListRelationFilter }, "id"> export type TaskOrderByWithAggregationInput = { id?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder difficulty?: SortOrder scope_clarity_score?: SortOrder error_classification?: SortOrderInput | SortOrder reward_amount?: SortOrder reward_currency?: SortOrder acceptance_criteria?: SortOrder required_stack?: SortOrder retry_count?: SortOrder stripe_payment_intent_id?: SortOrderInput | SortOrder stripe_checkout_session_id?: SortOrderInput | SortOrder expires_at?: SortOrderInput | SortOrder github_pr_url?: SortOrderInput | SortOrder reward_points?: SortOrder is_priority?: SortOrder is_private?: SortOrder referred_by_agent?: SortOrderInput | SortOrder parent_task_id?: SortOrderInput | SortOrder created_by_agent?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder scout_id?: SortOrderInput | SortOrder builder_id?: SortOrderInput | SortOrder _count?: TaskCountOrderByAggregateInput _avg?: TaskAvgOrderByAggregateInput _max?: TaskMaxOrderByAggregateInput _min?: TaskMinOrderByAggregateInput _sum?: TaskSumOrderByAggregateInput } export type TaskScalarWhereWithAggregatesInput = { AND?: TaskScalarWhereWithAggregatesInput | TaskScalarWhereWithAggregatesInput[] OR?: TaskScalarWhereWithAggregatesInput[] NOT?: TaskScalarWhereWithAggregatesInput | TaskScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Task"> | string title?: StringWithAggregatesFilter<"Task"> | string description?: StringWithAggregatesFilter<"Task"> | string status?: StringWithAggregatesFilter<"Task"> | string difficulty?: StringWithAggregatesFilter<"Task"> | string scope_clarity_score?: FloatWithAggregatesFilter<"Task"> | number error_classification?: StringNullableWithAggregatesFilter<"Task"> | string | null reward_amount?: IntWithAggregatesFilter<"Task"> | number reward_currency?: StringWithAggregatesFilter<"Task"> | string acceptance_criteria?: JsonWithAggregatesFilter<"Task"> required_stack?: StringNullableListFilter<"Task"> retry_count?: IntWithAggregatesFilter<"Task"> | number stripe_payment_intent_id?: StringNullableWithAggregatesFilter<"Task"> | string | null stripe_checkout_session_id?: StringNullableWithAggregatesFilter<"Task"> | string | null expires_at?: DateTimeNullableWithAggregatesFilter<"Task"> | Date | string | null github_pr_url?: StringNullableWithAggregatesFilter<"Task"> | string | null reward_points?: IntWithAggregatesFilter<"Task"> | number is_priority?: BoolWithAggregatesFilter<"Task"> | boolean is_private?: BoolWithAggregatesFilter<"Task"> | boolean referred_by_agent?: StringNullableWithAggregatesFilter<"Task"> | string | null parent_task_id?: StringNullableWithAggregatesFilter<"Task"> | string | null created_by_agent?: StringNullableWithAggregatesFilter<"Task"> | string | null created_at?: DateTimeWithAggregatesFilter<"Task"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"Task"> | Date | string scout_id?: StringNullableWithAggregatesFilter<"Task"> | string | null builder_id?: StringNullableWithAggregatesFilter<"Task"> | string | null } export type ClaimWhereInput = { AND?: ClaimWhereInput | ClaimWhereInput[] OR?: ClaimWhereInput[] NOT?: ClaimWhereInput | ClaimWhereInput[] id?: StringFilter<"Claim"> | string task_id?: StringFilter<"Claim"> | string agent_id?: StringFilter<"Claim"> | string developer_wallet?: StringFilter<"Claim"> | string status?: StringFilter<"Claim"> | string claim_token?: StringFilter<"Claim"> | string held_amount?: IntFilter<"Claim"> | number held_currency?: StringFilter<"Claim"> | string expires_at?: DateTimeFilter<"Claim"> | Date | string created_at?: DateTimeFilter<"Claim"> | Date | string updated_at?: DateTimeFilter<"Claim"> | Date | string task?: XOR agent?: XOR submissions?: SubmissionListRelationFilter } export type ClaimOrderByWithRelationInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder developer_wallet?: SortOrder status?: SortOrder claim_token?: SortOrder held_amount?: SortOrder held_currency?: SortOrder expires_at?: SortOrder created_at?: SortOrder updated_at?: SortOrder task?: TaskOrderByWithRelationInput agent?: AgentProfileOrderByWithRelationInput submissions?: SubmissionOrderByRelationAggregateInput } export type ClaimWhereUniqueInput = Prisma.AtLeast<{ id?: string claim_token?: string AND?: ClaimWhereInput | ClaimWhereInput[] OR?: ClaimWhereInput[] NOT?: ClaimWhereInput | ClaimWhereInput[] task_id?: StringFilter<"Claim"> | string agent_id?: StringFilter<"Claim"> | string developer_wallet?: StringFilter<"Claim"> | string status?: StringFilter<"Claim"> | string held_amount?: IntFilter<"Claim"> | number held_currency?: StringFilter<"Claim"> | string expires_at?: DateTimeFilter<"Claim"> | Date | string created_at?: DateTimeFilter<"Claim"> | Date | string updated_at?: DateTimeFilter<"Claim"> | Date | string task?: XOR agent?: XOR submissions?: SubmissionListRelationFilter }, "id" | "claim_token"> export type ClaimOrderByWithAggregationInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder developer_wallet?: SortOrder status?: SortOrder claim_token?: SortOrder held_amount?: SortOrder held_currency?: SortOrder expires_at?: SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: ClaimCountOrderByAggregateInput _avg?: ClaimAvgOrderByAggregateInput _max?: ClaimMaxOrderByAggregateInput _min?: ClaimMinOrderByAggregateInput _sum?: ClaimSumOrderByAggregateInput } export type ClaimScalarWhereWithAggregatesInput = { AND?: ClaimScalarWhereWithAggregatesInput | ClaimScalarWhereWithAggregatesInput[] OR?: ClaimScalarWhereWithAggregatesInput[] NOT?: ClaimScalarWhereWithAggregatesInput | ClaimScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Claim"> | string task_id?: StringWithAggregatesFilter<"Claim"> | string agent_id?: StringWithAggregatesFilter<"Claim"> | string developer_wallet?: StringWithAggregatesFilter<"Claim"> | string status?: StringWithAggregatesFilter<"Claim"> | string claim_token?: StringWithAggregatesFilter<"Claim"> | string held_amount?: IntWithAggregatesFilter<"Claim"> | number held_currency?: StringWithAggregatesFilter<"Claim"> | string expires_at?: DateTimeWithAggregatesFilter<"Claim"> | Date | string created_at?: DateTimeWithAggregatesFilter<"Claim"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"Claim"> | Date | string } export type SubmissionWhereInput = { AND?: SubmissionWhereInput | SubmissionWhereInput[] OR?: SubmissionWhereInput[] NOT?: SubmissionWhereInput | SubmissionWhereInput[] id?: StringFilter<"Submission"> | string task_id?: StringFilter<"Submission"> | string claim_id?: StringFilter<"Submission"> | string status?: StringFilter<"Submission"> | string deliverables?: JsonFilter<"Submission"> estimated_judge_complete_at?: DateTimeNullableFilter<"Submission"> | Date | string | null created_at?: DateTimeFilter<"Submission"> | Date | string updated_at?: DateTimeFilter<"Submission"> | Date | string task?: XOR claim?: XOR judge_results?: JudgeResultListRelationFilter } export type SubmissionOrderByWithRelationInput = { id?: SortOrder task_id?: SortOrder claim_id?: SortOrder status?: SortOrder deliverables?: SortOrder estimated_judge_complete_at?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder task?: TaskOrderByWithRelationInput claim?: ClaimOrderByWithRelationInput judge_results?: JudgeResultOrderByRelationAggregateInput } export type SubmissionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: SubmissionWhereInput | SubmissionWhereInput[] OR?: SubmissionWhereInput[] NOT?: SubmissionWhereInput | SubmissionWhereInput[] task_id?: StringFilter<"Submission"> | string claim_id?: StringFilter<"Submission"> | string status?: StringFilter<"Submission"> | string deliverables?: JsonFilter<"Submission"> estimated_judge_complete_at?: DateTimeNullableFilter<"Submission"> | Date | string | null created_at?: DateTimeFilter<"Submission"> | Date | string updated_at?: DateTimeFilter<"Submission"> | Date | string task?: XOR claim?: XOR judge_results?: JudgeResultListRelationFilter }, "id"> export type SubmissionOrderByWithAggregationInput = { id?: SortOrder task_id?: SortOrder claim_id?: SortOrder status?: SortOrder deliverables?: SortOrder estimated_judge_complete_at?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: SubmissionCountOrderByAggregateInput _max?: SubmissionMaxOrderByAggregateInput _min?: SubmissionMinOrderByAggregateInput } export type SubmissionScalarWhereWithAggregatesInput = { AND?: SubmissionScalarWhereWithAggregatesInput | SubmissionScalarWhereWithAggregatesInput[] OR?: SubmissionScalarWhereWithAggregatesInput[] NOT?: SubmissionScalarWhereWithAggregatesInput | SubmissionScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Submission"> | string task_id?: StringWithAggregatesFilter<"Submission"> | string claim_id?: StringWithAggregatesFilter<"Submission"> | string status?: StringWithAggregatesFilter<"Submission"> | string deliverables?: JsonWithAggregatesFilter<"Submission"> estimated_judge_complete_at?: DateTimeNullableWithAggregatesFilter<"Submission"> | Date | string | null created_at?: DateTimeWithAggregatesFilter<"Submission"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"Submission"> | Date | string } export type JudgeResultWhereInput = { AND?: JudgeResultWhereInput | JudgeResultWhereInput[] OR?: JudgeResultWhereInput[] NOT?: JudgeResultWhereInput | JudgeResultWhereInput[] id?: StringFilter<"JudgeResult"> | string submission_id?: StringFilter<"JudgeResult"> | string overall_result?: StringFilter<"JudgeResult"> | string tests?: JsonFilter<"JudgeResult"> artifacts?: JsonNullableFilter<"JudgeResult"> error_classification?: StringNullableFilter<"JudgeResult"> | string | null error_signature?: StringNullableFilter<"JudgeResult"> | string | null retryable?: BoolFilter<"JudgeResult"> | boolean resource_usage?: JsonFilter<"JudgeResult"> judge_completed_at?: DateTimeFilter<"JudgeResult"> | Date | string submission?: XOR } export type JudgeResultOrderByWithRelationInput = { id?: SortOrder submission_id?: SortOrder overall_result?: SortOrder tests?: SortOrder artifacts?: SortOrderInput | SortOrder error_classification?: SortOrderInput | SortOrder error_signature?: SortOrderInput | SortOrder retryable?: SortOrder resource_usage?: SortOrder judge_completed_at?: SortOrder submission?: SubmissionOrderByWithRelationInput } export type JudgeResultWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: JudgeResultWhereInput | JudgeResultWhereInput[] OR?: JudgeResultWhereInput[] NOT?: JudgeResultWhereInput | JudgeResultWhereInput[] submission_id?: StringFilter<"JudgeResult"> | string overall_result?: StringFilter<"JudgeResult"> | string tests?: JsonFilter<"JudgeResult"> artifacts?: JsonNullableFilter<"JudgeResult"> error_classification?: StringNullableFilter<"JudgeResult"> | string | null error_signature?: StringNullableFilter<"JudgeResult"> | string | null retryable?: BoolFilter<"JudgeResult"> | boolean resource_usage?: JsonFilter<"JudgeResult"> judge_completed_at?: DateTimeFilter<"JudgeResult"> | Date | string submission?: XOR }, "id"> export type JudgeResultOrderByWithAggregationInput = { id?: SortOrder submission_id?: SortOrder overall_result?: SortOrder tests?: SortOrder artifacts?: SortOrderInput | SortOrder error_classification?: SortOrderInput | SortOrder error_signature?: SortOrderInput | SortOrder retryable?: SortOrder resource_usage?: SortOrder judge_completed_at?: SortOrder _count?: JudgeResultCountOrderByAggregateInput _max?: JudgeResultMaxOrderByAggregateInput _min?: JudgeResultMinOrderByAggregateInput } export type JudgeResultScalarWhereWithAggregatesInput = { AND?: JudgeResultScalarWhereWithAggregatesInput | JudgeResultScalarWhereWithAggregatesInput[] OR?: JudgeResultScalarWhereWithAggregatesInput[] NOT?: JudgeResultScalarWhereWithAggregatesInput | JudgeResultScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"JudgeResult"> | string submission_id?: StringWithAggregatesFilter<"JudgeResult"> | string overall_result?: StringWithAggregatesFilter<"JudgeResult"> | string tests?: JsonWithAggregatesFilter<"JudgeResult"> artifacts?: JsonNullableWithAggregatesFilter<"JudgeResult"> error_classification?: StringNullableWithAggregatesFilter<"JudgeResult"> | string | null error_signature?: StringNullableWithAggregatesFilter<"JudgeResult"> | string | null retryable?: BoolWithAggregatesFilter<"JudgeResult"> | boolean resource_usage?: JsonWithAggregatesFilter<"JudgeResult"> judge_completed_at?: DateTimeWithAggregatesFilter<"JudgeResult"> | Date | string } export type AuditEventWhereInput = { AND?: AuditEventWhereInput | AuditEventWhereInput[] OR?: AuditEventWhereInput[] NOT?: AuditEventWhereInput | AuditEventWhereInput[] id?: StringFilter<"AuditEvent"> | string actorType?: StringFilter<"AuditEvent"> | string actorId?: StringNullableFilter<"AuditEvent"> | string | null action?: StringFilter<"AuditEvent"> | string entityType?: StringFilter<"AuditEvent"> | string entityId?: StringFilter<"AuditEvent"> | string beforeState?: JsonNullableFilter<"AuditEvent"> afterState?: JsonNullableFilter<"AuditEvent"> reason?: StringNullableFilter<"AuditEvent"> | string | null metadata?: JsonNullableFilter<"AuditEvent"> createdAt?: DateTimeFilter<"AuditEvent"> | Date | string } export type AuditEventOrderByWithRelationInput = { id?: SortOrder actorType?: SortOrder actorId?: SortOrderInput | SortOrder action?: SortOrder entityType?: SortOrder entityId?: SortOrder beforeState?: SortOrderInput | SortOrder afterState?: SortOrderInput | SortOrder reason?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder createdAt?: SortOrder } export type AuditEventWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: AuditEventWhereInput | AuditEventWhereInput[] OR?: AuditEventWhereInput[] NOT?: AuditEventWhereInput | AuditEventWhereInput[] actorType?: StringFilter<"AuditEvent"> | string actorId?: StringNullableFilter<"AuditEvent"> | string | null action?: StringFilter<"AuditEvent"> | string entityType?: StringFilter<"AuditEvent"> | string entityId?: StringFilter<"AuditEvent"> | string beforeState?: JsonNullableFilter<"AuditEvent"> afterState?: JsonNullableFilter<"AuditEvent"> reason?: StringNullableFilter<"AuditEvent"> | string | null metadata?: JsonNullableFilter<"AuditEvent"> createdAt?: DateTimeFilter<"AuditEvent"> | Date | string }, "id"> export type AuditEventOrderByWithAggregationInput = { id?: SortOrder actorType?: SortOrder actorId?: SortOrderInput | SortOrder action?: SortOrder entityType?: SortOrder entityId?: SortOrder beforeState?: SortOrderInput | SortOrder afterState?: SortOrderInput | SortOrder reason?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: AuditEventCountOrderByAggregateInput _max?: AuditEventMaxOrderByAggregateInput _min?: AuditEventMinOrderByAggregateInput } export type AuditEventScalarWhereWithAggregatesInput = { AND?: AuditEventScalarWhereWithAggregatesInput | AuditEventScalarWhereWithAggregatesInput[] OR?: AuditEventScalarWhereWithAggregatesInput[] NOT?: AuditEventScalarWhereWithAggregatesInput | AuditEventScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"AuditEvent"> | string actorType?: StringWithAggregatesFilter<"AuditEvent"> | string actorId?: StringNullableWithAggregatesFilter<"AuditEvent"> | string | null action?: StringWithAggregatesFilter<"AuditEvent"> | string entityType?: StringWithAggregatesFilter<"AuditEvent"> | string entityId?: StringWithAggregatesFilter<"AuditEvent"> | string beforeState?: JsonNullableWithAggregatesFilter<"AuditEvent"> afterState?: JsonNullableWithAggregatesFilter<"AuditEvent"> reason?: StringNullableWithAggregatesFilter<"AuditEvent"> | string | null metadata?: JsonNullableWithAggregatesFilter<"AuditEvent"> createdAt?: DateTimeWithAggregatesFilter<"AuditEvent"> | Date | string } export type LedgerEntryWhereInput = { AND?: LedgerEntryWhereInput | LedgerEntryWhereInput[] OR?: LedgerEntryWhereInput[] NOT?: LedgerEntryWhereInput | LedgerEntryWhereInput[] id?: StringFilter<"LedgerEntry"> | string task_id?: StringFilter<"LedgerEntry"> | string phase?: StringFilter<"LedgerEntry"> | string idempotency_key?: StringFilter<"LedgerEntry"> | string stripe_object_id?: StringNullableFilter<"LedgerEntry"> | string | null response_status?: StringFilter<"LedgerEntry"> | string http_status?: IntFilter<"LedgerEntry"> | number created_at?: DateTimeFilter<"LedgerEntry"> | Date | string updated_at?: DateTimeFilter<"LedgerEntry"> | Date | string } export type LedgerEntryOrderByWithRelationInput = { id?: SortOrder task_id?: SortOrder phase?: SortOrder idempotency_key?: SortOrder stripe_object_id?: SortOrderInput | SortOrder response_status?: SortOrder http_status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type LedgerEntryWhereUniqueInput = Prisma.AtLeast<{ id?: string idempotency_key?: string AND?: LedgerEntryWhereInput | LedgerEntryWhereInput[] OR?: LedgerEntryWhereInput[] NOT?: LedgerEntryWhereInput | LedgerEntryWhereInput[] task_id?: StringFilter<"LedgerEntry"> | string phase?: StringFilter<"LedgerEntry"> | string stripe_object_id?: StringNullableFilter<"LedgerEntry"> | string | null response_status?: StringFilter<"LedgerEntry"> | string http_status?: IntFilter<"LedgerEntry"> | number created_at?: DateTimeFilter<"LedgerEntry"> | Date | string updated_at?: DateTimeFilter<"LedgerEntry"> | Date | string }, "id" | "idempotency_key"> export type LedgerEntryOrderByWithAggregationInput = { id?: SortOrder task_id?: SortOrder phase?: SortOrder idempotency_key?: SortOrder stripe_object_id?: SortOrderInput | SortOrder response_status?: SortOrder http_status?: SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: LedgerEntryCountOrderByAggregateInput _avg?: LedgerEntryAvgOrderByAggregateInput _max?: LedgerEntryMaxOrderByAggregateInput _min?: LedgerEntryMinOrderByAggregateInput _sum?: LedgerEntrySumOrderByAggregateInput } export type LedgerEntryScalarWhereWithAggregatesInput = { AND?: LedgerEntryScalarWhereWithAggregatesInput | LedgerEntryScalarWhereWithAggregatesInput[] OR?: LedgerEntryScalarWhereWithAggregatesInput[] NOT?: LedgerEntryScalarWhereWithAggregatesInput | LedgerEntryScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"LedgerEntry"> | string task_id?: StringWithAggregatesFilter<"LedgerEntry"> | string phase?: StringWithAggregatesFilter<"LedgerEntry"> | string idempotency_key?: StringWithAggregatesFilter<"LedgerEntry"> | string stripe_object_id?: StringNullableWithAggregatesFilter<"LedgerEntry"> | string | null response_status?: StringWithAggregatesFilter<"LedgerEntry"> | string http_status?: IntWithAggregatesFilter<"LedgerEntry"> | number created_at?: DateTimeWithAggregatesFilter<"LedgerEntry"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"LedgerEntry"> | Date | string } export type AgentProfileWhereInput = { AND?: AgentProfileWhereInput | AgentProfileWhereInput[] OR?: AgentProfileWhereInput[] NOT?: AgentProfileWhereInput | AgentProfileWhereInput[] id?: StringFilter<"AgentProfile"> | string agent_id?: StringFilter<"AgentProfile"> | string type?: StringFilter<"AgentProfile"> | string wallet_address?: StringNullableFilter<"AgentProfile"> | string | null status?: StringFilter<"AgentProfile"> | string capabilities?: JsonNullableFilter<"AgentProfile"> created_at?: DateTimeFilter<"AgentProfile"> | Date | string updated_at?: DateTimeFilter<"AgentProfile"> | Date | string tasks_as_scout?: TaskListRelationFilter tasks_as_builder?: TaskListRelationFilter claims?: ClaimListRelationFilter } export type AgentProfileOrderByWithRelationInput = { id?: SortOrder agent_id?: SortOrder type?: SortOrder wallet_address?: SortOrderInput | SortOrder status?: SortOrder capabilities?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder tasks_as_scout?: TaskOrderByRelationAggregateInput tasks_as_builder?: TaskOrderByRelationAggregateInput claims?: ClaimOrderByRelationAggregateInput } export type AgentProfileWhereUniqueInput = Prisma.AtLeast<{ id?: string agent_id?: string AND?: AgentProfileWhereInput | AgentProfileWhereInput[] OR?: AgentProfileWhereInput[] NOT?: AgentProfileWhereInput | AgentProfileWhereInput[] type?: StringFilter<"AgentProfile"> | string wallet_address?: StringNullableFilter<"AgentProfile"> | string | null status?: StringFilter<"AgentProfile"> | string capabilities?: JsonNullableFilter<"AgentProfile"> created_at?: DateTimeFilter<"AgentProfile"> | Date | string updated_at?: DateTimeFilter<"AgentProfile"> | Date | string tasks_as_scout?: TaskListRelationFilter tasks_as_builder?: TaskListRelationFilter claims?: ClaimListRelationFilter }, "id" | "agent_id"> export type AgentProfileOrderByWithAggregationInput = { id?: SortOrder agent_id?: SortOrder type?: SortOrder wallet_address?: SortOrderInput | SortOrder status?: SortOrder capabilities?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: AgentProfileCountOrderByAggregateInput _max?: AgentProfileMaxOrderByAggregateInput _min?: AgentProfileMinOrderByAggregateInput } export type AgentProfileScalarWhereWithAggregatesInput = { AND?: AgentProfileScalarWhereWithAggregatesInput | AgentProfileScalarWhereWithAggregatesInput[] OR?: AgentProfileScalarWhereWithAggregatesInput[] NOT?: AgentProfileScalarWhereWithAggregatesInput | AgentProfileScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"AgentProfile"> | string agent_id?: StringWithAggregatesFilter<"AgentProfile"> | string type?: StringWithAggregatesFilter<"AgentProfile"> | string wallet_address?: StringNullableWithAggregatesFilter<"AgentProfile"> | string | null status?: StringWithAggregatesFilter<"AgentProfile"> | string capabilities?: JsonNullableWithAggregatesFilter<"AgentProfile"> created_at?: DateTimeWithAggregatesFilter<"AgentProfile"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"AgentProfile"> | Date | string } export type TaskCreateInput = { id?: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification?: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonNullValueInput | InputJsonValue required_stack?: TaskCreaterequired_stackInput | string[] retry_count?: number stripe_payment_intent_id?: string | null stripe_checkout_session_id?: string | null expires_at?: Date | string | null github_pr_url?: string | null reward_points?: number is_priority?: boolean is_private?: boolean referred_by_agent?: string | null parent_task_id?: string | null created_by_agent?: string | null created_at?: Date | string updated_at?: Date | string scout_agent?: AgentProfileCreateNestedOneWithoutTasks_as_scoutInput builder_agent?: AgentProfileCreateNestedOneWithoutTasks_as_builderInput claims?: ClaimCreateNestedManyWithoutTaskInput submissions?: SubmissionCreateNestedManyWithoutTaskInput } export type TaskUncheckedCreateInput = { id?: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification?: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonNullValueInput | InputJsonValue required_stack?: TaskCreaterequired_stackInput | string[] retry_count?: number stripe_payment_intent_id?: string | null stripe_checkout_session_id?: string | null expires_at?: Date | string | null github_pr_url?: string | null reward_points?: number is_priority?: boolean is_private?: boolean referred_by_agent?: string | null parent_task_id?: string | null created_by_agent?: string | null created_at?: Date | string updated_at?: Date | string scout_id?: string | null builder_id?: string | null claims?: ClaimUncheckedCreateNestedManyWithoutTaskInput submissions?: SubmissionUncheckedCreateNestedManyWithoutTaskInput } export type TaskUpdateInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string scout_agent?: AgentProfileUpdateOneWithoutTasks_as_scoutNestedInput builder_agent?: AgentProfileUpdateOneWithoutTasks_as_builderNestedInput claims?: ClaimUpdateManyWithoutTaskNestedInput submissions?: SubmissionUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string scout_id?: NullableStringFieldUpdateOperationsInput | string | null builder_id?: NullableStringFieldUpdateOperationsInput | string | null claims?: ClaimUncheckedUpdateManyWithoutTaskNestedInput submissions?: SubmissionUncheckedUpdateManyWithoutTaskNestedInput } export type TaskCreateManyInput = { id?: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification?: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonNullValueInput | InputJsonValue required_stack?: TaskCreaterequired_stackInput | string[] retry_count?: number stripe_payment_intent_id?: string | null stripe_checkout_session_id?: string | null expires_at?: Date | string | null github_pr_url?: string | null reward_points?: number is_priority?: boolean is_private?: boolean referred_by_agent?: string | null parent_task_id?: string | null created_by_agent?: string | null created_at?: Date | string updated_at?: Date | string scout_id?: string | null builder_id?: string | null } export type TaskUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type TaskUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string scout_id?: NullableStringFieldUpdateOperationsInput | string | null builder_id?: NullableStringFieldUpdateOperationsInput | string | null } export type ClaimCreateInput = { id?: string developer_wallet: string status: string claim_token: string held_amount: number held_currency: string expires_at: Date | string created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutClaimsInput agent: AgentProfileCreateNestedOneWithoutClaimsInput submissions?: SubmissionCreateNestedManyWithoutClaimInput } export type ClaimUncheckedCreateInput = { id?: string task_id: string agent_id: string developer_wallet: string status: string claim_token: string held_amount: number held_currency: string expires_at: Date | string created_at?: Date | string updated_at?: Date | string submissions?: SubmissionUncheckedCreateNestedManyWithoutClaimInput } export type ClaimUpdateInput = { id?: StringFieldUpdateOperationsInput | string developer_wallet?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claim_token?: StringFieldUpdateOperationsInput | string held_amount?: IntFieldUpdateOperationsInput | number held_currency?: StringFieldUpdateOperationsInput | string expires_at?: DateTimeFieldUpdateOperationsInput | Date | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutClaimsNestedInput agent?: AgentProfileUpdateOneRequiredWithoutClaimsNestedInput submissions?: SubmissionUpdateManyWithoutClaimNestedInput } export type ClaimUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string developer_wallet?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claim_token?: StringFieldUpdateOperationsInput | string held_amount?: IntFieldUpdateOperationsInput | number held_currency?: StringFieldUpdateOperationsInput | string expires_at?: DateTimeFieldUpdateOperationsInput | Date | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string submissions?: SubmissionUncheckedUpdateManyWithoutClaimNestedInput } export type ClaimCreateManyInput = { id?: string task_id: string agent_id: string developer_wallet: string status: string claim_token: string held_amount: number held_currency: string expires_at: Date | string created_at?: Date | string updated_at?: Date | string } export type ClaimUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string developer_wallet?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claim_token?: StringFieldUpdateOperationsInput | string held_amount?: IntFieldUpdateOperationsInput | number held_currency?: StringFieldUpdateOperationsInput | string expires_at?: DateTimeFieldUpdateOperationsInput | Date | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ClaimUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string developer_wallet?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claim_token?: StringFieldUpdateOperationsInput | string held_amount?: IntFieldUpdateOperationsInput | number held_currency?: StringFieldUpdateOperationsInput | string expires_at?: DateTimeFieldUpdateOperationsInput | Date | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SubmissionCreateInput = { id?: string status: string deliverables: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: Date | string | null created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutSubmissionsInput claim: ClaimCreateNestedOneWithoutSubmissionsInput judge_results?: JudgeResultCreateNestedManyWithoutSubmissionInput } export type SubmissionUncheckedCreateInput = { id?: string task_id: string claim_id: string status: string deliverables: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: Date | string | null created_at?: Date | string updated_at?: Date | string judge_results?: JudgeResultUncheckedCreateNestedManyWithoutSubmissionInput } export type SubmissionUpdateInput = { id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deliverables?: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutSubmissionsNestedInput claim?: ClaimUpdateOneRequiredWithoutSubmissionsNestedInput judge_results?: JudgeResultUpdateManyWithoutSubmissionNestedInput } export type SubmissionUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string claim_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deliverables?: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string judge_results?: JudgeResultUncheckedUpdateManyWithoutSubmissionNestedInput } export type SubmissionCreateManyInput = { id?: string task_id: string claim_id: string status: string deliverables: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: Date | string | null created_at?: Date | string updated_at?: Date | string } export type SubmissionUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deliverables?: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SubmissionUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string claim_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deliverables?: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type JudgeResultCreateInput = { id?: string overall_result: string tests: JsonNullValueInput | InputJsonValue artifacts?: NullableJsonNullValueInput | InputJsonValue error_classification?: string | null error_signature?: string | null retryable?: boolean resource_usage: JsonNullValueInput | InputJsonValue judge_completed_at?: Date | string submission: SubmissionCreateNestedOneWithoutJudge_resultsInput } export type JudgeResultUncheckedCreateInput = { id?: string submission_id: string overall_result: string tests: JsonNullValueInput | InputJsonValue artifacts?: NullableJsonNullValueInput | InputJsonValue error_classification?: string | null error_signature?: string | null retryable?: boolean resource_usage: JsonNullValueInput | InputJsonValue judge_completed_at?: Date | string } export type JudgeResultUpdateInput = { id?: StringFieldUpdateOperationsInput | string overall_result?: StringFieldUpdateOperationsInput | string tests?: JsonNullValueInput | InputJsonValue artifacts?: NullableJsonNullValueInput | InputJsonValue error_classification?: NullableStringFieldUpdateOperationsInput | string | null error_signature?: NullableStringFieldUpdateOperationsInput | string | null retryable?: BoolFieldUpdateOperationsInput | boolean resource_usage?: JsonNullValueInput | InputJsonValue judge_completed_at?: DateTimeFieldUpdateOperationsInput | Date | string submission?: SubmissionUpdateOneRequiredWithoutJudge_resultsNestedInput } export type JudgeResultUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string submission_id?: StringFieldUpdateOperationsInput | string overall_result?: StringFieldUpdateOperationsInput | string tests?: JsonNullValueInput | InputJsonValue artifacts?: NullableJsonNullValueInput | InputJsonValue error_classification?: NullableStringFieldUpdateOperationsInput | string | null error_signature?: NullableStringFieldUpdateOperationsInput | string | null retryable?: BoolFieldUpdateOperationsInput | boolean resource_usage?: JsonNullValueInput | InputJsonValue judge_completed_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type JudgeResultCreateManyInput = { id?: string submission_id: string overall_result: string tests: JsonNullValueInput | InputJsonValue artifacts?: NullableJsonNullValueInput | InputJsonValue error_classification?: string | null error_signature?: string | null retryable?: boolean resource_usage: JsonNullValueInput | InputJsonValue judge_completed_at?: Date | string } export type JudgeResultUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string overall_result?: StringFieldUpdateOperationsInput | string tests?: JsonNullValueInput | InputJsonValue artifacts?: NullableJsonNullValueInput | InputJsonValue error_classification?: NullableStringFieldUpdateOperationsInput | string | null error_signature?: NullableStringFieldUpdateOperationsInput | string | null retryable?: BoolFieldUpdateOperationsInput | boolean resource_usage?: JsonNullValueInput | InputJsonValue judge_completed_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type JudgeResultUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string submission_id?: StringFieldUpdateOperationsInput | string overall_result?: StringFieldUpdateOperationsInput | string tests?: JsonNullValueInput | InputJsonValue artifacts?: NullableJsonNullValueInput | InputJsonValue error_classification?: NullableStringFieldUpdateOperationsInput | string | null error_signature?: NullableStringFieldUpdateOperationsInput | string | null retryable?: BoolFieldUpdateOperationsInput | boolean resource_usage?: JsonNullValueInput | InputJsonValue judge_completed_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventCreateInput = { id?: string actorType: string actorId?: string | null action: string entityType: string entityId: string beforeState?: NullableJsonNullValueInput | InputJsonValue afterState?: NullableJsonNullValueInput | InputJsonValue reason?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string } export type AuditEventUncheckedCreateInput = { id?: string actorType: string actorId?: string | null action: string entityType: string entityId: string beforeState?: NullableJsonNullValueInput | InputJsonValue afterState?: NullableJsonNullValueInput | InputJsonValue reason?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string } export type AuditEventUpdateInput = { id?: StringFieldUpdateOperationsInput | string actorType?: StringFieldUpdateOperationsInput | string actorId?: NullableStringFieldUpdateOperationsInput | string | null action?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string beforeState?: NullableJsonNullValueInput | InputJsonValue afterState?: NullableJsonNullValueInput | InputJsonValue reason?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string actorType?: StringFieldUpdateOperationsInput | string actorId?: NullableStringFieldUpdateOperationsInput | string | null action?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string beforeState?: NullableJsonNullValueInput | InputJsonValue afterState?: NullableJsonNullValueInput | InputJsonValue reason?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventCreateManyInput = { id?: string actorType: string actorId?: string | null action: string entityType: string entityId: string beforeState?: NullableJsonNullValueInput | InputJsonValue afterState?: NullableJsonNullValueInput | InputJsonValue reason?: string | null metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string } export type AuditEventUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string actorType?: StringFieldUpdateOperationsInput | string actorId?: NullableStringFieldUpdateOperationsInput | string | null action?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string beforeState?: NullableJsonNullValueInput | InputJsonValue afterState?: NullableJsonNullValueInput | InputJsonValue reason?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string actorType?: StringFieldUpdateOperationsInput | string actorId?: NullableStringFieldUpdateOperationsInput | string | null action?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string beforeState?: NullableJsonNullValueInput | InputJsonValue afterState?: NullableJsonNullValueInput | InputJsonValue reason?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LedgerEntryCreateInput = { id?: string task_id: string phase: string idempotency_key: string stripe_object_id?: string | null response_status: string http_status: number created_at?: Date | string updated_at?: Date | string } export type LedgerEntryUncheckedCreateInput = { id?: string task_id: string phase: string idempotency_key: string stripe_object_id?: string | null response_status: string http_status: number created_at?: Date | string updated_at?: Date | string } export type LedgerEntryUpdateInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string phase?: StringFieldUpdateOperationsInput | string idempotency_key?: StringFieldUpdateOperationsInput | string stripe_object_id?: NullableStringFieldUpdateOperationsInput | string | null response_status?: StringFieldUpdateOperationsInput | string http_status?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type LedgerEntryUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string phase?: StringFieldUpdateOperationsInput | string idempotency_key?: StringFieldUpdateOperationsInput | string stripe_object_id?: NullableStringFieldUpdateOperationsInput | string | null response_status?: StringFieldUpdateOperationsInput | string http_status?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type LedgerEntryCreateManyInput = { id?: string task_id: string phase: string idempotency_key: string stripe_object_id?: string | null response_status: string http_status: number created_at?: Date | string updated_at?: Date | string } export type LedgerEntryUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string phase?: StringFieldUpdateOperationsInput | string idempotency_key?: StringFieldUpdateOperationsInput | string stripe_object_id?: NullableStringFieldUpdateOperationsInput | string | null response_status?: StringFieldUpdateOperationsInput | string http_status?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type LedgerEntryUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string phase?: StringFieldUpdateOperationsInput | string idempotency_key?: StringFieldUpdateOperationsInput | string stripe_object_id?: NullableStringFieldUpdateOperationsInput | string | null response_status?: StringFieldUpdateOperationsInput | string http_status?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AgentProfileCreateInput = { id?: string agent_id: string type: string wallet_address?: string | null status: string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateInput = { id?: string agent_id: string type: string wallet_address?: string | null status: string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput } export type AgentProfileUpdateInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput } export type AgentProfileCreateManyInput = { id?: string agent_id: string type: string wallet_address?: string | null status: string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string } export type AgentProfileUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AgentProfileUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } 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 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 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 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 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 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 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 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 AgentProfileNullableScalarRelationFilter = { is?: AgentProfileWhereInput | null isNot?: AgentProfileWhereInput | null } export type ClaimListRelationFilter = { every?: ClaimWhereInput some?: ClaimWhereInput none?: ClaimWhereInput } export type SubmissionListRelationFilter = { every?: SubmissionWhereInput some?: SubmissionWhereInput none?: SubmissionWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type ClaimOrderByRelationAggregateInput = { _count?: SortOrder } export type SubmissionOrderByRelationAggregateInput = { _count?: SortOrder } export type TaskCountOrderByAggregateInput = { id?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder difficulty?: SortOrder scope_clarity_score?: SortOrder error_classification?: SortOrder reward_amount?: SortOrder reward_currency?: SortOrder acceptance_criteria?: SortOrder required_stack?: SortOrder retry_count?: SortOrder stripe_payment_intent_id?: SortOrder stripe_checkout_session_id?: SortOrder expires_at?: SortOrder github_pr_url?: SortOrder reward_points?: SortOrder is_priority?: SortOrder is_private?: SortOrder referred_by_agent?: SortOrder parent_task_id?: SortOrder created_by_agent?: SortOrder created_at?: SortOrder updated_at?: SortOrder scout_id?: SortOrder builder_id?: SortOrder } export type TaskAvgOrderByAggregateInput = { scope_clarity_score?: SortOrder reward_amount?: SortOrder retry_count?: SortOrder reward_points?: SortOrder } export type TaskMaxOrderByAggregateInput = { id?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder difficulty?: SortOrder scope_clarity_score?: SortOrder error_classification?: SortOrder reward_amount?: SortOrder reward_currency?: SortOrder retry_count?: SortOrder stripe_payment_intent_id?: SortOrder stripe_checkout_session_id?: SortOrder expires_at?: SortOrder github_pr_url?: SortOrder reward_points?: SortOrder is_priority?: SortOrder is_private?: SortOrder referred_by_agent?: SortOrder parent_task_id?: SortOrder created_by_agent?: SortOrder created_at?: SortOrder updated_at?: SortOrder scout_id?: SortOrder builder_id?: SortOrder } export type TaskMinOrderByAggregateInput = { id?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder difficulty?: SortOrder scope_clarity_score?: SortOrder error_classification?: SortOrder reward_amount?: SortOrder reward_currency?: SortOrder retry_count?: SortOrder stripe_payment_intent_id?: SortOrder stripe_checkout_session_id?: SortOrder expires_at?: SortOrder github_pr_url?: SortOrder reward_points?: SortOrder is_priority?: SortOrder is_private?: SortOrder referred_by_agent?: SortOrder parent_task_id?: SortOrder created_by_agent?: SortOrder created_at?: SortOrder updated_at?: SortOrder scout_id?: SortOrder builder_id?: SortOrder } export type TaskSumOrderByAggregateInput = { scope_clarity_score?: SortOrder reward_amount?: SortOrder retry_count?: SortOrder reward_points?: SortOrder } 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 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 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 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 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 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 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 TaskScalarRelationFilter = { is?: TaskWhereInput isNot?: TaskWhereInput } export type AgentProfileScalarRelationFilter = { is?: AgentProfileWhereInput isNot?: AgentProfileWhereInput } export type ClaimCountOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder developer_wallet?: SortOrder status?: SortOrder claim_token?: SortOrder held_amount?: SortOrder held_currency?: SortOrder expires_at?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type ClaimAvgOrderByAggregateInput = { held_amount?: SortOrder } export type ClaimMaxOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder developer_wallet?: SortOrder status?: SortOrder claim_token?: SortOrder held_amount?: SortOrder held_currency?: SortOrder expires_at?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type ClaimMinOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder developer_wallet?: SortOrder status?: SortOrder claim_token?: SortOrder held_amount?: SortOrder held_currency?: SortOrder expires_at?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type ClaimSumOrderByAggregateInput = { held_amount?: SortOrder } export type ClaimScalarRelationFilter = { is?: ClaimWhereInput isNot?: ClaimWhereInput } export type JudgeResultListRelationFilter = { every?: JudgeResultWhereInput some?: JudgeResultWhereInput none?: JudgeResultWhereInput } export type JudgeResultOrderByRelationAggregateInput = { _count?: SortOrder } export type SubmissionCountOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder claim_id?: SortOrder status?: SortOrder deliverables?: SortOrder estimated_judge_complete_at?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type SubmissionMaxOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder claim_id?: SortOrder status?: SortOrder estimated_judge_complete_at?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type SubmissionMinOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder claim_id?: SortOrder status?: SortOrder estimated_judge_complete_at?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type JsonNullableFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonNullableFilterBase<$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 SubmissionScalarRelationFilter = { is?: SubmissionWhereInput isNot?: SubmissionWhereInput } export type JudgeResultCountOrderByAggregateInput = { id?: SortOrder submission_id?: SortOrder overall_result?: SortOrder tests?: SortOrder artifacts?: SortOrder error_classification?: SortOrder error_signature?: SortOrder retryable?: SortOrder resource_usage?: SortOrder judge_completed_at?: SortOrder } export type JudgeResultMaxOrderByAggregateInput = { id?: SortOrder submission_id?: SortOrder overall_result?: SortOrder error_classification?: SortOrder error_signature?: SortOrder retryable?: SortOrder judge_completed_at?: SortOrder } export type JudgeResultMinOrderByAggregateInput = { id?: SortOrder submission_id?: SortOrder overall_result?: SortOrder error_classification?: SortOrder error_signature?: SortOrder retryable?: SortOrder judge_completed_at?: SortOrder } export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonNullableWithAggregatesFilterBase<$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?: NestedIntNullableFilter<$PrismaModel> _min?: NestedJsonNullableFilter<$PrismaModel> _max?: NestedJsonNullableFilter<$PrismaModel> } export type AuditEventCountOrderByAggregateInput = { id?: SortOrder actorType?: SortOrder actorId?: SortOrder action?: SortOrder entityType?: SortOrder entityId?: SortOrder beforeState?: SortOrder afterState?: SortOrder reason?: SortOrder metadata?: SortOrder createdAt?: SortOrder } export type AuditEventMaxOrderByAggregateInput = { id?: SortOrder actorType?: SortOrder actorId?: SortOrder action?: SortOrder entityType?: SortOrder entityId?: SortOrder reason?: SortOrder createdAt?: SortOrder } export type AuditEventMinOrderByAggregateInput = { id?: SortOrder actorType?: SortOrder actorId?: SortOrder action?: SortOrder entityType?: SortOrder entityId?: SortOrder reason?: SortOrder createdAt?: SortOrder } export type LedgerEntryCountOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder phase?: SortOrder idempotency_key?: SortOrder stripe_object_id?: SortOrder response_status?: SortOrder http_status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type LedgerEntryAvgOrderByAggregateInput = { http_status?: SortOrder } export type LedgerEntryMaxOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder phase?: SortOrder idempotency_key?: SortOrder stripe_object_id?: SortOrder response_status?: SortOrder http_status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type LedgerEntryMinOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder phase?: SortOrder idempotency_key?: SortOrder stripe_object_id?: SortOrder response_status?: SortOrder http_status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type LedgerEntrySumOrderByAggregateInput = { http_status?: SortOrder } export type TaskListRelationFilter = { every?: TaskWhereInput some?: TaskWhereInput none?: TaskWhereInput } export type TaskOrderByRelationAggregateInput = { _count?: SortOrder } export type AgentProfileCountOrderByAggregateInput = { id?: SortOrder agent_id?: SortOrder type?: SortOrder wallet_address?: SortOrder status?: SortOrder capabilities?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AgentProfileMaxOrderByAggregateInput = { id?: SortOrder agent_id?: SortOrder type?: SortOrder wallet_address?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AgentProfileMinOrderByAggregateInput = { id?: SortOrder agent_id?: SortOrder type?: SortOrder wallet_address?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type TaskCreaterequired_stackInput = { set: string[] } export type AgentProfileCreateNestedOneWithoutTasks_as_scoutInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutTasks_as_scoutInput connect?: AgentProfileWhereUniqueInput } export type AgentProfileCreateNestedOneWithoutTasks_as_builderInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutTasks_as_builderInput connect?: AgentProfileWhereUniqueInput } export type ClaimCreateNestedManyWithoutTaskInput = { create?: XOR | ClaimCreateWithoutTaskInput[] | ClaimUncheckedCreateWithoutTaskInput[] connectOrCreate?: ClaimCreateOrConnectWithoutTaskInput | ClaimCreateOrConnectWithoutTaskInput[] createMany?: ClaimCreateManyTaskInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type SubmissionCreateNestedManyWithoutTaskInput = { create?: XOR | SubmissionCreateWithoutTaskInput[] | SubmissionUncheckedCreateWithoutTaskInput[] connectOrCreate?: SubmissionCreateOrConnectWithoutTaskInput | SubmissionCreateOrConnectWithoutTaskInput[] createMany?: SubmissionCreateManyTaskInputEnvelope connect?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] } export type ClaimUncheckedCreateNestedManyWithoutTaskInput = { create?: XOR | ClaimCreateWithoutTaskInput[] | ClaimUncheckedCreateWithoutTaskInput[] connectOrCreate?: ClaimCreateOrConnectWithoutTaskInput | ClaimCreateOrConnectWithoutTaskInput[] createMany?: ClaimCreateManyTaskInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type SubmissionUncheckedCreateNestedManyWithoutTaskInput = { create?: XOR | SubmissionCreateWithoutTaskInput[] | SubmissionUncheckedCreateWithoutTaskInput[] connectOrCreate?: SubmissionCreateOrConnectWithoutTaskInput | SubmissionCreateOrConnectWithoutTaskInput[] createMany?: SubmissionCreateManyTaskInputEnvelope connect?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] } export type StringFieldUpdateOperationsInput = { set?: string } export type FloatFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type TaskUpdaterequired_stackInput = { set?: string[] push?: string | string[] } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type AgentProfileUpdateOneWithoutTasks_as_scoutNestedInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutTasks_as_scoutInput upsert?: AgentProfileUpsertWithoutTasks_as_scoutInput disconnect?: AgentProfileWhereInput | boolean delete?: AgentProfileWhereInput | boolean connect?: AgentProfileWhereUniqueInput update?: XOR, AgentProfileUncheckedUpdateWithoutTasks_as_scoutInput> } export type AgentProfileUpdateOneWithoutTasks_as_builderNestedInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutTasks_as_builderInput upsert?: AgentProfileUpsertWithoutTasks_as_builderInput disconnect?: AgentProfileWhereInput | boolean delete?: AgentProfileWhereInput | boolean connect?: AgentProfileWhereUniqueInput update?: XOR, AgentProfileUncheckedUpdateWithoutTasks_as_builderInput> } export type ClaimUpdateManyWithoutTaskNestedInput = { create?: XOR | ClaimCreateWithoutTaskInput[] | ClaimUncheckedCreateWithoutTaskInput[] connectOrCreate?: ClaimCreateOrConnectWithoutTaskInput | ClaimCreateOrConnectWithoutTaskInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutTaskInput | ClaimUpsertWithWhereUniqueWithoutTaskInput[] createMany?: ClaimCreateManyTaskInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutTaskInput | ClaimUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: ClaimUpdateManyWithWhereWithoutTaskInput | ClaimUpdateManyWithWhereWithoutTaskInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type SubmissionUpdateManyWithoutTaskNestedInput = { create?: XOR | SubmissionCreateWithoutTaskInput[] | SubmissionUncheckedCreateWithoutTaskInput[] connectOrCreate?: SubmissionCreateOrConnectWithoutTaskInput | SubmissionCreateOrConnectWithoutTaskInput[] upsert?: SubmissionUpsertWithWhereUniqueWithoutTaskInput | SubmissionUpsertWithWhereUniqueWithoutTaskInput[] createMany?: SubmissionCreateManyTaskInputEnvelope set?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] disconnect?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] delete?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] connect?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] update?: SubmissionUpdateWithWhereUniqueWithoutTaskInput | SubmissionUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: SubmissionUpdateManyWithWhereWithoutTaskInput | SubmissionUpdateManyWithWhereWithoutTaskInput[] deleteMany?: SubmissionScalarWhereInput | SubmissionScalarWhereInput[] } export type ClaimUncheckedUpdateManyWithoutTaskNestedInput = { create?: XOR | ClaimCreateWithoutTaskInput[] | ClaimUncheckedCreateWithoutTaskInput[] connectOrCreate?: ClaimCreateOrConnectWithoutTaskInput | ClaimCreateOrConnectWithoutTaskInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutTaskInput | ClaimUpsertWithWhereUniqueWithoutTaskInput[] createMany?: ClaimCreateManyTaskInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutTaskInput | ClaimUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: ClaimUpdateManyWithWhereWithoutTaskInput | ClaimUpdateManyWithWhereWithoutTaskInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type SubmissionUncheckedUpdateManyWithoutTaskNestedInput = { create?: XOR | SubmissionCreateWithoutTaskInput[] | SubmissionUncheckedCreateWithoutTaskInput[] connectOrCreate?: SubmissionCreateOrConnectWithoutTaskInput | SubmissionCreateOrConnectWithoutTaskInput[] upsert?: SubmissionUpsertWithWhereUniqueWithoutTaskInput | SubmissionUpsertWithWhereUniqueWithoutTaskInput[] createMany?: SubmissionCreateManyTaskInputEnvelope set?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] disconnect?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] delete?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] connect?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] update?: SubmissionUpdateWithWhereUniqueWithoutTaskInput | SubmissionUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: SubmissionUpdateManyWithWhereWithoutTaskInput | SubmissionUpdateManyWithWhereWithoutTaskInput[] deleteMany?: SubmissionScalarWhereInput | SubmissionScalarWhereInput[] } export type TaskCreateNestedOneWithoutClaimsInput = { create?: XOR connectOrCreate?: TaskCreateOrConnectWithoutClaimsInput connect?: TaskWhereUniqueInput } export type AgentProfileCreateNestedOneWithoutClaimsInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutClaimsInput connect?: AgentProfileWhereUniqueInput } export type SubmissionCreateNestedManyWithoutClaimInput = { create?: XOR | SubmissionCreateWithoutClaimInput[] | SubmissionUncheckedCreateWithoutClaimInput[] connectOrCreate?: SubmissionCreateOrConnectWithoutClaimInput | SubmissionCreateOrConnectWithoutClaimInput[] createMany?: SubmissionCreateManyClaimInputEnvelope connect?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] } export type SubmissionUncheckedCreateNestedManyWithoutClaimInput = { create?: XOR | SubmissionCreateWithoutClaimInput[] | SubmissionUncheckedCreateWithoutClaimInput[] connectOrCreate?: SubmissionCreateOrConnectWithoutClaimInput | SubmissionCreateOrConnectWithoutClaimInput[] createMany?: SubmissionCreateManyClaimInputEnvelope connect?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] } export type TaskUpdateOneRequiredWithoutClaimsNestedInput = { create?: XOR connectOrCreate?: TaskCreateOrConnectWithoutClaimsInput upsert?: TaskUpsertWithoutClaimsInput connect?: TaskWhereUniqueInput update?: XOR, TaskUncheckedUpdateWithoutClaimsInput> } export type AgentProfileUpdateOneRequiredWithoutClaimsNestedInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutClaimsInput upsert?: AgentProfileUpsertWithoutClaimsInput connect?: AgentProfileWhereUniqueInput update?: XOR, AgentProfileUncheckedUpdateWithoutClaimsInput> } export type SubmissionUpdateManyWithoutClaimNestedInput = { create?: XOR | SubmissionCreateWithoutClaimInput[] | SubmissionUncheckedCreateWithoutClaimInput[] connectOrCreate?: SubmissionCreateOrConnectWithoutClaimInput | SubmissionCreateOrConnectWithoutClaimInput[] upsert?: SubmissionUpsertWithWhereUniqueWithoutClaimInput | SubmissionUpsertWithWhereUniqueWithoutClaimInput[] createMany?: SubmissionCreateManyClaimInputEnvelope set?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] disconnect?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] delete?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] connect?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] update?: SubmissionUpdateWithWhereUniqueWithoutClaimInput | SubmissionUpdateWithWhereUniqueWithoutClaimInput[] updateMany?: SubmissionUpdateManyWithWhereWithoutClaimInput | SubmissionUpdateManyWithWhereWithoutClaimInput[] deleteMany?: SubmissionScalarWhereInput | SubmissionScalarWhereInput[] } export type SubmissionUncheckedUpdateManyWithoutClaimNestedInput = { create?: XOR | SubmissionCreateWithoutClaimInput[] | SubmissionUncheckedCreateWithoutClaimInput[] connectOrCreate?: SubmissionCreateOrConnectWithoutClaimInput | SubmissionCreateOrConnectWithoutClaimInput[] upsert?: SubmissionUpsertWithWhereUniqueWithoutClaimInput | SubmissionUpsertWithWhereUniqueWithoutClaimInput[] createMany?: SubmissionCreateManyClaimInputEnvelope set?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] disconnect?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] delete?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] connect?: SubmissionWhereUniqueInput | SubmissionWhereUniqueInput[] update?: SubmissionUpdateWithWhereUniqueWithoutClaimInput | SubmissionUpdateWithWhereUniqueWithoutClaimInput[] updateMany?: SubmissionUpdateManyWithWhereWithoutClaimInput | SubmissionUpdateManyWithWhereWithoutClaimInput[] deleteMany?: SubmissionScalarWhereInput | SubmissionScalarWhereInput[] } export type TaskCreateNestedOneWithoutSubmissionsInput = { create?: XOR connectOrCreate?: TaskCreateOrConnectWithoutSubmissionsInput connect?: TaskWhereUniqueInput } export type ClaimCreateNestedOneWithoutSubmissionsInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutSubmissionsInput connect?: ClaimWhereUniqueInput } export type JudgeResultCreateNestedManyWithoutSubmissionInput = { create?: XOR | JudgeResultCreateWithoutSubmissionInput[] | JudgeResultUncheckedCreateWithoutSubmissionInput[] connectOrCreate?: JudgeResultCreateOrConnectWithoutSubmissionInput | JudgeResultCreateOrConnectWithoutSubmissionInput[] createMany?: JudgeResultCreateManySubmissionInputEnvelope connect?: JudgeResultWhereUniqueInput | JudgeResultWhereUniqueInput[] } export type JudgeResultUncheckedCreateNestedManyWithoutSubmissionInput = { create?: XOR | JudgeResultCreateWithoutSubmissionInput[] | JudgeResultUncheckedCreateWithoutSubmissionInput[] connectOrCreate?: JudgeResultCreateOrConnectWithoutSubmissionInput | JudgeResultCreateOrConnectWithoutSubmissionInput[] createMany?: JudgeResultCreateManySubmissionInputEnvelope connect?: JudgeResultWhereUniqueInput | JudgeResultWhereUniqueInput[] } export type TaskUpdateOneRequiredWithoutSubmissionsNestedInput = { create?: XOR connectOrCreate?: TaskCreateOrConnectWithoutSubmissionsInput upsert?: TaskUpsertWithoutSubmissionsInput connect?: TaskWhereUniqueInput update?: XOR, TaskUncheckedUpdateWithoutSubmissionsInput> } export type ClaimUpdateOneRequiredWithoutSubmissionsNestedInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutSubmissionsInput upsert?: ClaimUpsertWithoutSubmissionsInput connect?: ClaimWhereUniqueInput update?: XOR, ClaimUncheckedUpdateWithoutSubmissionsInput> } export type JudgeResultUpdateManyWithoutSubmissionNestedInput = { create?: XOR | JudgeResultCreateWithoutSubmissionInput[] | JudgeResultUncheckedCreateWithoutSubmissionInput[] connectOrCreate?: JudgeResultCreateOrConnectWithoutSubmissionInput | JudgeResultCreateOrConnectWithoutSubmissionInput[] upsert?: JudgeResultUpsertWithWhereUniqueWithoutSubmissionInput | JudgeResultUpsertWithWhereUniqueWithoutSubmissionInput[] createMany?: JudgeResultCreateManySubmissionInputEnvelope set?: JudgeResultWhereUniqueInput | JudgeResultWhereUniqueInput[] disconnect?: JudgeResultWhereUniqueInput | JudgeResultWhereUniqueInput[] delete?: JudgeResultWhereUniqueInput | JudgeResultWhereUniqueInput[] connect?: JudgeResultWhereUniqueInput | JudgeResultWhereUniqueInput[] update?: JudgeResultUpdateWithWhereUniqueWithoutSubmissionInput | JudgeResultUpdateWithWhereUniqueWithoutSubmissionInput[] updateMany?: JudgeResultUpdateManyWithWhereWithoutSubmissionInput | JudgeResultUpdateManyWithWhereWithoutSubmissionInput[] deleteMany?: JudgeResultScalarWhereInput | JudgeResultScalarWhereInput[] } export type JudgeResultUncheckedUpdateManyWithoutSubmissionNestedInput = { create?: XOR | JudgeResultCreateWithoutSubmissionInput[] | JudgeResultUncheckedCreateWithoutSubmissionInput[] connectOrCreate?: JudgeResultCreateOrConnectWithoutSubmissionInput | JudgeResultCreateOrConnectWithoutSubmissionInput[] upsert?: JudgeResultUpsertWithWhereUniqueWithoutSubmissionInput | JudgeResultUpsertWithWhereUniqueWithoutSubmissionInput[] createMany?: JudgeResultCreateManySubmissionInputEnvelope set?: JudgeResultWhereUniqueInput | JudgeResultWhereUniqueInput[] disconnect?: JudgeResultWhereUniqueInput | JudgeResultWhereUniqueInput[] delete?: JudgeResultWhereUniqueInput | JudgeResultWhereUniqueInput[] connect?: JudgeResultWhereUniqueInput | JudgeResultWhereUniqueInput[] update?: JudgeResultUpdateWithWhereUniqueWithoutSubmissionInput | JudgeResultUpdateWithWhereUniqueWithoutSubmissionInput[] updateMany?: JudgeResultUpdateManyWithWhereWithoutSubmissionInput | JudgeResultUpdateManyWithWhereWithoutSubmissionInput[] deleteMany?: JudgeResultScalarWhereInput | JudgeResultScalarWhereInput[] } export type SubmissionCreateNestedOneWithoutJudge_resultsInput = { create?: XOR connectOrCreate?: SubmissionCreateOrConnectWithoutJudge_resultsInput connect?: SubmissionWhereUniqueInput } export type SubmissionUpdateOneRequiredWithoutJudge_resultsNestedInput = { create?: XOR connectOrCreate?: SubmissionCreateOrConnectWithoutJudge_resultsInput upsert?: SubmissionUpsertWithoutJudge_resultsInput connect?: SubmissionWhereUniqueInput update?: XOR, SubmissionUncheckedUpdateWithoutJudge_resultsInput> } export type TaskCreateNestedManyWithoutScout_agentInput = { create?: XOR | TaskCreateWithoutScout_agentInput[] | TaskUncheckedCreateWithoutScout_agentInput[] connectOrCreate?: TaskCreateOrConnectWithoutScout_agentInput | TaskCreateOrConnectWithoutScout_agentInput[] createMany?: TaskCreateManyScout_agentInputEnvelope connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] } export type TaskCreateNestedManyWithoutBuilder_agentInput = { create?: XOR | TaskCreateWithoutBuilder_agentInput[] | TaskUncheckedCreateWithoutBuilder_agentInput[] connectOrCreate?: TaskCreateOrConnectWithoutBuilder_agentInput | TaskCreateOrConnectWithoutBuilder_agentInput[] createMany?: TaskCreateManyBuilder_agentInputEnvelope connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] } export type ClaimCreateNestedManyWithoutAgentInput = { create?: XOR | ClaimCreateWithoutAgentInput[] | ClaimUncheckedCreateWithoutAgentInput[] connectOrCreate?: ClaimCreateOrConnectWithoutAgentInput | ClaimCreateOrConnectWithoutAgentInput[] createMany?: ClaimCreateManyAgentInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type TaskUncheckedCreateNestedManyWithoutScout_agentInput = { create?: XOR | TaskCreateWithoutScout_agentInput[] | TaskUncheckedCreateWithoutScout_agentInput[] connectOrCreate?: TaskCreateOrConnectWithoutScout_agentInput | TaskCreateOrConnectWithoutScout_agentInput[] createMany?: TaskCreateManyScout_agentInputEnvelope connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] } export type TaskUncheckedCreateNestedManyWithoutBuilder_agentInput = { create?: XOR | TaskCreateWithoutBuilder_agentInput[] | TaskUncheckedCreateWithoutBuilder_agentInput[] connectOrCreate?: TaskCreateOrConnectWithoutBuilder_agentInput | TaskCreateOrConnectWithoutBuilder_agentInput[] createMany?: TaskCreateManyBuilder_agentInputEnvelope connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] } export type ClaimUncheckedCreateNestedManyWithoutAgentInput = { create?: XOR | ClaimCreateWithoutAgentInput[] | ClaimUncheckedCreateWithoutAgentInput[] connectOrCreate?: ClaimCreateOrConnectWithoutAgentInput | ClaimCreateOrConnectWithoutAgentInput[] createMany?: ClaimCreateManyAgentInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type TaskUpdateManyWithoutScout_agentNestedInput = { create?: XOR | TaskCreateWithoutScout_agentInput[] | TaskUncheckedCreateWithoutScout_agentInput[] connectOrCreate?: TaskCreateOrConnectWithoutScout_agentInput | TaskCreateOrConnectWithoutScout_agentInput[] upsert?: TaskUpsertWithWhereUniqueWithoutScout_agentInput | TaskUpsertWithWhereUniqueWithoutScout_agentInput[] createMany?: TaskCreateManyScout_agentInputEnvelope set?: TaskWhereUniqueInput | TaskWhereUniqueInput[] disconnect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] delete?: TaskWhereUniqueInput | TaskWhereUniqueInput[] connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] update?: TaskUpdateWithWhereUniqueWithoutScout_agentInput | TaskUpdateWithWhereUniqueWithoutScout_agentInput[] updateMany?: TaskUpdateManyWithWhereWithoutScout_agentInput | TaskUpdateManyWithWhereWithoutScout_agentInput[] deleteMany?: TaskScalarWhereInput | TaskScalarWhereInput[] } export type TaskUpdateManyWithoutBuilder_agentNestedInput = { create?: XOR | TaskCreateWithoutBuilder_agentInput[] | TaskUncheckedCreateWithoutBuilder_agentInput[] connectOrCreate?: TaskCreateOrConnectWithoutBuilder_agentInput | TaskCreateOrConnectWithoutBuilder_agentInput[] upsert?: TaskUpsertWithWhereUniqueWithoutBuilder_agentInput | TaskUpsertWithWhereUniqueWithoutBuilder_agentInput[] createMany?: TaskCreateManyBuilder_agentInputEnvelope set?: TaskWhereUniqueInput | TaskWhereUniqueInput[] disconnect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] delete?: TaskWhereUniqueInput | TaskWhereUniqueInput[] connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] update?: TaskUpdateWithWhereUniqueWithoutBuilder_agentInput | TaskUpdateWithWhereUniqueWithoutBuilder_agentInput[] updateMany?: TaskUpdateManyWithWhereWithoutBuilder_agentInput | TaskUpdateManyWithWhereWithoutBuilder_agentInput[] deleteMany?: TaskScalarWhereInput | TaskScalarWhereInput[] } export type ClaimUpdateManyWithoutAgentNestedInput = { create?: XOR | ClaimCreateWithoutAgentInput[] | ClaimUncheckedCreateWithoutAgentInput[] connectOrCreate?: ClaimCreateOrConnectWithoutAgentInput | ClaimCreateOrConnectWithoutAgentInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutAgentInput | ClaimUpsertWithWhereUniqueWithoutAgentInput[] createMany?: ClaimCreateManyAgentInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutAgentInput | ClaimUpdateWithWhereUniqueWithoutAgentInput[] updateMany?: ClaimUpdateManyWithWhereWithoutAgentInput | ClaimUpdateManyWithWhereWithoutAgentInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type TaskUncheckedUpdateManyWithoutScout_agentNestedInput = { create?: XOR | TaskCreateWithoutScout_agentInput[] | TaskUncheckedCreateWithoutScout_agentInput[] connectOrCreate?: TaskCreateOrConnectWithoutScout_agentInput | TaskCreateOrConnectWithoutScout_agentInput[] upsert?: TaskUpsertWithWhereUniqueWithoutScout_agentInput | TaskUpsertWithWhereUniqueWithoutScout_agentInput[] createMany?: TaskCreateManyScout_agentInputEnvelope set?: TaskWhereUniqueInput | TaskWhereUniqueInput[] disconnect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] delete?: TaskWhereUniqueInput | TaskWhereUniqueInput[] connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] update?: TaskUpdateWithWhereUniqueWithoutScout_agentInput | TaskUpdateWithWhereUniqueWithoutScout_agentInput[] updateMany?: TaskUpdateManyWithWhereWithoutScout_agentInput | TaskUpdateManyWithWhereWithoutScout_agentInput[] deleteMany?: TaskScalarWhereInput | TaskScalarWhereInput[] } export type TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput = { create?: XOR | TaskCreateWithoutBuilder_agentInput[] | TaskUncheckedCreateWithoutBuilder_agentInput[] connectOrCreate?: TaskCreateOrConnectWithoutBuilder_agentInput | TaskCreateOrConnectWithoutBuilder_agentInput[] upsert?: TaskUpsertWithWhereUniqueWithoutBuilder_agentInput | TaskUpsertWithWhereUniqueWithoutBuilder_agentInput[] createMany?: TaskCreateManyBuilder_agentInputEnvelope set?: TaskWhereUniqueInput | TaskWhereUniqueInput[] disconnect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] delete?: TaskWhereUniqueInput | TaskWhereUniqueInput[] connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] update?: TaskUpdateWithWhereUniqueWithoutBuilder_agentInput | TaskUpdateWithWhereUniqueWithoutBuilder_agentInput[] updateMany?: TaskUpdateManyWithWhereWithoutBuilder_agentInput | TaskUpdateManyWithWhereWithoutBuilder_agentInput[] deleteMany?: TaskScalarWhereInput | TaskScalarWhereInput[] } export type ClaimUncheckedUpdateManyWithoutAgentNestedInput = { create?: XOR | ClaimCreateWithoutAgentInput[] | ClaimUncheckedCreateWithoutAgentInput[] connectOrCreate?: ClaimCreateOrConnectWithoutAgentInput | ClaimCreateOrConnectWithoutAgentInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutAgentInput | ClaimUpsertWithWhereUniqueWithoutAgentInput[] createMany?: ClaimCreateManyAgentInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutAgentInput | ClaimUpdateWithWhereUniqueWithoutAgentInput[] updateMany?: ClaimUpdateManyWithWhereWithoutAgentInput | ClaimUpdateManyWithWhereWithoutAgentInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } 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 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 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 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 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 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 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 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 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 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 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 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 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 NestedJsonNullableFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonNullableFilterBase<$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 AgentProfileCreateWithoutTasks_as_scoutInput = { id?: string agent_id: string type: string wallet_address?: string | null status: string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateWithoutTasks_as_scoutInput = { id?: string agent_id: string type: string wallet_address?: string | null status: string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput } export type AgentProfileCreateOrConnectWithoutTasks_as_scoutInput = { where: AgentProfileWhereUniqueInput create: XOR } export type AgentProfileCreateWithoutTasks_as_builderInput = { id?: string agent_id: string type: string wallet_address?: string | null status: string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateWithoutTasks_as_builderInput = { id?: string agent_id: string type: string wallet_address?: string | null status: string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput } export type AgentProfileCreateOrConnectWithoutTasks_as_builderInput = { where: AgentProfileWhereUniqueInput create: XOR } export type ClaimCreateWithoutTaskInput = { id?: string developer_wallet: string status: string claim_token: string held_amount: number held_currency: string expires_at: Date | string created_at?: Date | string updated_at?: Date | string agent: AgentProfileCreateNestedOneWithoutClaimsInput submissions?: SubmissionCreateNestedManyWithoutClaimInput } export type ClaimUncheckedCreateWithoutTaskInput = { id?: string agent_id: string developer_wallet: string status: string claim_token: string held_amount: number held_currency: string expires_at: Date | string created_at?: Date | string updated_at?: Date | string submissions?: SubmissionUncheckedCreateNestedManyWithoutClaimInput } export type ClaimCreateOrConnectWithoutTaskInput = { where: ClaimWhereUniqueInput create: XOR } export type ClaimCreateManyTaskInputEnvelope = { data: ClaimCreateManyTaskInput | ClaimCreateManyTaskInput[] skipDuplicates?: boolean } export type SubmissionCreateWithoutTaskInput = { id?: string status: string deliverables: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: Date | string | null created_at?: Date | string updated_at?: Date | string claim: ClaimCreateNestedOneWithoutSubmissionsInput judge_results?: JudgeResultCreateNestedManyWithoutSubmissionInput } export type SubmissionUncheckedCreateWithoutTaskInput = { id?: string claim_id: string status: string deliverables: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: Date | string | null created_at?: Date | string updated_at?: Date | string judge_results?: JudgeResultUncheckedCreateNestedManyWithoutSubmissionInput } export type SubmissionCreateOrConnectWithoutTaskInput = { where: SubmissionWhereUniqueInput create: XOR } export type SubmissionCreateManyTaskInputEnvelope = { data: SubmissionCreateManyTaskInput | SubmissionCreateManyTaskInput[] skipDuplicates?: boolean } export type AgentProfileUpsertWithoutTasks_as_scoutInput = { update: XOR create: XOR where?: AgentProfileWhereInput } export type AgentProfileUpdateToOneWithWhereWithoutTasks_as_scoutInput = { where?: AgentProfileWhereInput data: XOR } export type AgentProfileUpdateWithoutTasks_as_scoutInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateWithoutTasks_as_scoutInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput } export type AgentProfileUpsertWithoutTasks_as_builderInput = { update: XOR create: XOR where?: AgentProfileWhereInput } export type AgentProfileUpdateToOneWithWhereWithoutTasks_as_builderInput = { where?: AgentProfileWhereInput data: XOR } export type AgentProfileUpdateWithoutTasks_as_builderInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateWithoutTasks_as_builderInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput } export type ClaimUpsertWithWhereUniqueWithoutTaskInput = { where: ClaimWhereUniqueInput update: XOR create: XOR } export type ClaimUpdateWithWhereUniqueWithoutTaskInput = { where: ClaimWhereUniqueInput data: XOR } export type ClaimUpdateManyWithWhereWithoutTaskInput = { where: ClaimScalarWhereInput data: XOR } export type ClaimScalarWhereInput = { AND?: ClaimScalarWhereInput | ClaimScalarWhereInput[] OR?: ClaimScalarWhereInput[] NOT?: ClaimScalarWhereInput | ClaimScalarWhereInput[] id?: StringFilter<"Claim"> | string task_id?: StringFilter<"Claim"> | string agent_id?: StringFilter<"Claim"> | string developer_wallet?: StringFilter<"Claim"> | string status?: StringFilter<"Claim"> | string claim_token?: StringFilter<"Claim"> | string held_amount?: IntFilter<"Claim"> | number held_currency?: StringFilter<"Claim"> | string expires_at?: DateTimeFilter<"Claim"> | Date | string created_at?: DateTimeFilter<"Claim"> | Date | string updated_at?: DateTimeFilter<"Claim"> | Date | string } export type SubmissionUpsertWithWhereUniqueWithoutTaskInput = { where: SubmissionWhereUniqueInput update: XOR create: XOR } export type SubmissionUpdateWithWhereUniqueWithoutTaskInput = { where: SubmissionWhereUniqueInput data: XOR } export type SubmissionUpdateManyWithWhereWithoutTaskInput = { where: SubmissionScalarWhereInput data: XOR } export type SubmissionScalarWhereInput = { AND?: SubmissionScalarWhereInput | SubmissionScalarWhereInput[] OR?: SubmissionScalarWhereInput[] NOT?: SubmissionScalarWhereInput | SubmissionScalarWhereInput[] id?: StringFilter<"Submission"> | string task_id?: StringFilter<"Submission"> | string claim_id?: StringFilter<"Submission"> | string status?: StringFilter<"Submission"> | string deliverables?: JsonFilter<"Submission"> estimated_judge_complete_at?: DateTimeNullableFilter<"Submission"> | Date | string | null created_at?: DateTimeFilter<"Submission"> | Date | string updated_at?: DateTimeFilter<"Submission"> | Date | string } export type TaskCreateWithoutClaimsInput = { id?: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification?: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonNullValueInput | InputJsonValue required_stack?: TaskCreaterequired_stackInput | string[] retry_count?: number stripe_payment_intent_id?: string | null stripe_checkout_session_id?: string | null expires_at?: Date | string | null github_pr_url?: string | null reward_points?: number is_priority?: boolean is_private?: boolean referred_by_agent?: string | null parent_task_id?: string | null created_by_agent?: string | null created_at?: Date | string updated_at?: Date | string scout_agent?: AgentProfileCreateNestedOneWithoutTasks_as_scoutInput builder_agent?: AgentProfileCreateNestedOneWithoutTasks_as_builderInput submissions?: SubmissionCreateNestedManyWithoutTaskInput } export type TaskUncheckedCreateWithoutClaimsInput = { id?: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification?: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonNullValueInput | InputJsonValue required_stack?: TaskCreaterequired_stackInput | string[] retry_count?: number stripe_payment_intent_id?: string | null stripe_checkout_session_id?: string | null expires_at?: Date | string | null github_pr_url?: string | null reward_points?: number is_priority?: boolean is_private?: boolean referred_by_agent?: string | null parent_task_id?: string | null created_by_agent?: string | null created_at?: Date | string updated_at?: Date | string scout_id?: string | null builder_id?: string | null submissions?: SubmissionUncheckedCreateNestedManyWithoutTaskInput } export type TaskCreateOrConnectWithoutClaimsInput = { where: TaskWhereUniqueInput create: XOR } export type AgentProfileCreateWithoutClaimsInput = { id?: string agent_id: string type: string wallet_address?: string | null status: string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput } export type AgentProfileUncheckedCreateWithoutClaimsInput = { id?: string agent_id: string type: string wallet_address?: string | null status: string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string updated_at?: Date | string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput } export type AgentProfileCreateOrConnectWithoutClaimsInput = { where: AgentProfileWhereUniqueInput create: XOR } export type SubmissionCreateWithoutClaimInput = { id?: string status: string deliverables: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: Date | string | null created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutSubmissionsInput judge_results?: JudgeResultCreateNestedManyWithoutSubmissionInput } export type SubmissionUncheckedCreateWithoutClaimInput = { id?: string task_id: string status: string deliverables: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: Date | string | null created_at?: Date | string updated_at?: Date | string judge_results?: JudgeResultUncheckedCreateNestedManyWithoutSubmissionInput } export type SubmissionCreateOrConnectWithoutClaimInput = { where: SubmissionWhereUniqueInput create: XOR } export type SubmissionCreateManyClaimInputEnvelope = { data: SubmissionCreateManyClaimInput | SubmissionCreateManyClaimInput[] skipDuplicates?: boolean } export type TaskUpsertWithoutClaimsInput = { update: XOR create: XOR where?: TaskWhereInput } export type TaskUpdateToOneWithWhereWithoutClaimsInput = { where?: TaskWhereInput data: XOR } export type TaskUpdateWithoutClaimsInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string scout_agent?: AgentProfileUpdateOneWithoutTasks_as_scoutNestedInput builder_agent?: AgentProfileUpdateOneWithoutTasks_as_builderNestedInput submissions?: SubmissionUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateWithoutClaimsInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string scout_id?: NullableStringFieldUpdateOperationsInput | string | null builder_id?: NullableStringFieldUpdateOperationsInput | string | null submissions?: SubmissionUncheckedUpdateManyWithoutTaskNestedInput } export type AgentProfileUpsertWithoutClaimsInput = { update: XOR create: XOR where?: AgentProfileWhereInput } export type AgentProfileUpdateToOneWithWhereWithoutClaimsInput = { where?: AgentProfileWhereInput data: XOR } export type AgentProfileUpdateWithoutClaimsInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput } export type AgentProfileUncheckedUpdateWithoutClaimsInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string capabilities?: NullableJsonNullValueInput | InputJsonValue created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput } export type SubmissionUpsertWithWhereUniqueWithoutClaimInput = { where: SubmissionWhereUniqueInput update: XOR create: XOR } export type SubmissionUpdateWithWhereUniqueWithoutClaimInput = { where: SubmissionWhereUniqueInput data: XOR } export type SubmissionUpdateManyWithWhereWithoutClaimInput = { where: SubmissionScalarWhereInput data: XOR } export type TaskCreateWithoutSubmissionsInput = { id?: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification?: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonNullValueInput | InputJsonValue required_stack?: TaskCreaterequired_stackInput | string[] retry_count?: number stripe_payment_intent_id?: string | null stripe_checkout_session_id?: string | null expires_at?: Date | string | null github_pr_url?: string | null reward_points?: number is_priority?: boolean is_private?: boolean referred_by_agent?: string | null parent_task_id?: string | null created_by_agent?: string | null created_at?: Date | string updated_at?: Date | string scout_agent?: AgentProfileCreateNestedOneWithoutTasks_as_scoutInput builder_agent?: AgentProfileCreateNestedOneWithoutTasks_as_builderInput claims?: ClaimCreateNestedManyWithoutTaskInput } export type TaskUncheckedCreateWithoutSubmissionsInput = { id?: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification?: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonNullValueInput | InputJsonValue required_stack?: TaskCreaterequired_stackInput | string[] retry_count?: number stripe_payment_intent_id?: string | null stripe_checkout_session_id?: string | null expires_at?: Date | string | null github_pr_url?: string | null reward_points?: number is_priority?: boolean is_private?: boolean referred_by_agent?: string | null parent_task_id?: string | null created_by_agent?: string | null created_at?: Date | string updated_at?: Date | string scout_id?: string | null builder_id?: string | null claims?: ClaimUncheckedCreateNestedManyWithoutTaskInput } export type TaskCreateOrConnectWithoutSubmissionsInput = { where: TaskWhereUniqueInput create: XOR } export type ClaimCreateWithoutSubmissionsInput = { id?: string developer_wallet: string status: string claim_token: string held_amount: number held_currency: string expires_at: Date | string created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutClaimsInput agent: AgentProfileCreateNestedOneWithoutClaimsInput } export type ClaimUncheckedCreateWithoutSubmissionsInput = { id?: string task_id: string agent_id: string developer_wallet: string status: string claim_token: string held_amount: number held_currency: string expires_at: Date | string created_at?: Date | string updated_at?: Date | string } export type ClaimCreateOrConnectWithoutSubmissionsInput = { where: ClaimWhereUniqueInput create: XOR } export type JudgeResultCreateWithoutSubmissionInput = { id?: string overall_result: string tests: JsonNullValueInput | InputJsonValue artifacts?: NullableJsonNullValueInput | InputJsonValue error_classification?: string | null error_signature?: string | null retryable?: boolean resource_usage: JsonNullValueInput | InputJsonValue judge_completed_at?: Date | string } export type JudgeResultUncheckedCreateWithoutSubmissionInput = { id?: string overall_result: string tests: JsonNullValueInput | InputJsonValue artifacts?: NullableJsonNullValueInput | InputJsonValue error_classification?: string | null error_signature?: string | null retryable?: boolean resource_usage: JsonNullValueInput | InputJsonValue judge_completed_at?: Date | string } export type JudgeResultCreateOrConnectWithoutSubmissionInput = { where: JudgeResultWhereUniqueInput create: XOR } export type JudgeResultCreateManySubmissionInputEnvelope = { data: JudgeResultCreateManySubmissionInput | JudgeResultCreateManySubmissionInput[] skipDuplicates?: boolean } export type TaskUpsertWithoutSubmissionsInput = { update: XOR create: XOR where?: TaskWhereInput } export type TaskUpdateToOneWithWhereWithoutSubmissionsInput = { where?: TaskWhereInput data: XOR } export type TaskUpdateWithoutSubmissionsInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string scout_agent?: AgentProfileUpdateOneWithoutTasks_as_scoutNestedInput builder_agent?: AgentProfileUpdateOneWithoutTasks_as_builderNestedInput claims?: ClaimUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateWithoutSubmissionsInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string scout_id?: NullableStringFieldUpdateOperationsInput | string | null builder_id?: NullableStringFieldUpdateOperationsInput | string | null claims?: ClaimUncheckedUpdateManyWithoutTaskNestedInput } export type ClaimUpsertWithoutSubmissionsInput = { update: XOR create: XOR where?: ClaimWhereInput } export type ClaimUpdateToOneWithWhereWithoutSubmissionsInput = { where?: ClaimWhereInput data: XOR } export type ClaimUpdateWithoutSubmissionsInput = { id?: StringFieldUpdateOperationsInput | string developer_wallet?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claim_token?: StringFieldUpdateOperationsInput | string held_amount?: IntFieldUpdateOperationsInput | number held_currency?: StringFieldUpdateOperationsInput | string expires_at?: DateTimeFieldUpdateOperationsInput | Date | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutClaimsNestedInput agent?: AgentProfileUpdateOneRequiredWithoutClaimsNestedInput } export type ClaimUncheckedUpdateWithoutSubmissionsInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string developer_wallet?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claim_token?: StringFieldUpdateOperationsInput | string held_amount?: IntFieldUpdateOperationsInput | number held_currency?: StringFieldUpdateOperationsInput | string expires_at?: DateTimeFieldUpdateOperationsInput | Date | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type JudgeResultUpsertWithWhereUniqueWithoutSubmissionInput = { where: JudgeResultWhereUniqueInput update: XOR create: XOR } export type JudgeResultUpdateWithWhereUniqueWithoutSubmissionInput = { where: JudgeResultWhereUniqueInput data: XOR } export type JudgeResultUpdateManyWithWhereWithoutSubmissionInput = { where: JudgeResultScalarWhereInput data: XOR } export type JudgeResultScalarWhereInput = { AND?: JudgeResultScalarWhereInput | JudgeResultScalarWhereInput[] OR?: JudgeResultScalarWhereInput[] NOT?: JudgeResultScalarWhereInput | JudgeResultScalarWhereInput[] id?: StringFilter<"JudgeResult"> | string submission_id?: StringFilter<"JudgeResult"> | string overall_result?: StringFilter<"JudgeResult"> | string tests?: JsonFilter<"JudgeResult"> artifacts?: JsonNullableFilter<"JudgeResult"> error_classification?: StringNullableFilter<"JudgeResult"> | string | null error_signature?: StringNullableFilter<"JudgeResult"> | string | null retryable?: BoolFilter<"JudgeResult"> | boolean resource_usage?: JsonFilter<"JudgeResult"> judge_completed_at?: DateTimeFilter<"JudgeResult"> | Date | string } export type SubmissionCreateWithoutJudge_resultsInput = { id?: string status: string deliverables: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: Date | string | null created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutSubmissionsInput claim: ClaimCreateNestedOneWithoutSubmissionsInput } export type SubmissionUncheckedCreateWithoutJudge_resultsInput = { id?: string task_id: string claim_id: string status: string deliverables: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: Date | string | null created_at?: Date | string updated_at?: Date | string } export type SubmissionCreateOrConnectWithoutJudge_resultsInput = { where: SubmissionWhereUniqueInput create: XOR } export type SubmissionUpsertWithoutJudge_resultsInput = { update: XOR create: XOR where?: SubmissionWhereInput } export type SubmissionUpdateToOneWithWhereWithoutJudge_resultsInput = { where?: SubmissionWhereInput data: XOR } export type SubmissionUpdateWithoutJudge_resultsInput = { id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deliverables?: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutSubmissionsNestedInput claim?: ClaimUpdateOneRequiredWithoutSubmissionsNestedInput } export type SubmissionUncheckedUpdateWithoutJudge_resultsInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string claim_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deliverables?: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type TaskCreateWithoutScout_agentInput = { id?: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification?: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonNullValueInput | InputJsonValue required_stack?: TaskCreaterequired_stackInput | string[] retry_count?: number stripe_payment_intent_id?: string | null stripe_checkout_session_id?: string | null expires_at?: Date | string | null github_pr_url?: string | null reward_points?: number is_priority?: boolean is_private?: boolean referred_by_agent?: string | null parent_task_id?: string | null created_by_agent?: string | null created_at?: Date | string updated_at?: Date | string builder_agent?: AgentProfileCreateNestedOneWithoutTasks_as_builderInput claims?: ClaimCreateNestedManyWithoutTaskInput submissions?: SubmissionCreateNestedManyWithoutTaskInput } export type TaskUncheckedCreateWithoutScout_agentInput = { id?: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification?: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonNullValueInput | InputJsonValue required_stack?: TaskCreaterequired_stackInput | string[] retry_count?: number stripe_payment_intent_id?: string | null stripe_checkout_session_id?: string | null expires_at?: Date | string | null github_pr_url?: string | null reward_points?: number is_priority?: boolean is_private?: boolean referred_by_agent?: string | null parent_task_id?: string | null created_by_agent?: string | null created_at?: Date | string updated_at?: Date | string builder_id?: string | null claims?: ClaimUncheckedCreateNestedManyWithoutTaskInput submissions?: SubmissionUncheckedCreateNestedManyWithoutTaskInput } export type TaskCreateOrConnectWithoutScout_agentInput = { where: TaskWhereUniqueInput create: XOR } export type TaskCreateManyScout_agentInputEnvelope = { data: TaskCreateManyScout_agentInput | TaskCreateManyScout_agentInput[] skipDuplicates?: boolean } export type TaskCreateWithoutBuilder_agentInput = { id?: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification?: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonNullValueInput | InputJsonValue required_stack?: TaskCreaterequired_stackInput | string[] retry_count?: number stripe_payment_intent_id?: string | null stripe_checkout_session_id?: string | null expires_at?: Date | string | null github_pr_url?: string | null reward_points?: number is_priority?: boolean is_private?: boolean referred_by_agent?: string | null parent_task_id?: string | null created_by_agent?: string | null created_at?: Date | string updated_at?: Date | string scout_agent?: AgentProfileCreateNestedOneWithoutTasks_as_scoutInput claims?: ClaimCreateNestedManyWithoutTaskInput submissions?: SubmissionCreateNestedManyWithoutTaskInput } export type TaskUncheckedCreateWithoutBuilder_agentInput = { id?: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification?: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonNullValueInput | InputJsonValue required_stack?: TaskCreaterequired_stackInput | string[] retry_count?: number stripe_payment_intent_id?: string | null stripe_checkout_session_id?: string | null expires_at?: Date | string | null github_pr_url?: string | null reward_points?: number is_priority?: boolean is_private?: boolean referred_by_agent?: string | null parent_task_id?: string | null created_by_agent?: string | null created_at?: Date | string updated_at?: Date | string scout_id?: string | null claims?: ClaimUncheckedCreateNestedManyWithoutTaskInput submissions?: SubmissionUncheckedCreateNestedManyWithoutTaskInput } export type TaskCreateOrConnectWithoutBuilder_agentInput = { where: TaskWhereUniqueInput create: XOR } export type TaskCreateManyBuilder_agentInputEnvelope = { data: TaskCreateManyBuilder_agentInput | TaskCreateManyBuilder_agentInput[] skipDuplicates?: boolean } export type ClaimCreateWithoutAgentInput = { id?: string developer_wallet: string status: string claim_token: string held_amount: number held_currency: string expires_at: Date | string created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutClaimsInput submissions?: SubmissionCreateNestedManyWithoutClaimInput } export type ClaimUncheckedCreateWithoutAgentInput = { id?: string task_id: string developer_wallet: string status: string claim_token: string held_amount: number held_currency: string expires_at: Date | string created_at?: Date | string updated_at?: Date | string submissions?: SubmissionUncheckedCreateNestedManyWithoutClaimInput } export type ClaimCreateOrConnectWithoutAgentInput = { where: ClaimWhereUniqueInput create: XOR } export type ClaimCreateManyAgentInputEnvelope = { data: ClaimCreateManyAgentInput | ClaimCreateManyAgentInput[] skipDuplicates?: boolean } export type TaskUpsertWithWhereUniqueWithoutScout_agentInput = { where: TaskWhereUniqueInput update: XOR create: XOR } export type TaskUpdateWithWhereUniqueWithoutScout_agentInput = { where: TaskWhereUniqueInput data: XOR } export type TaskUpdateManyWithWhereWithoutScout_agentInput = { where: TaskScalarWhereInput data: XOR } export type TaskScalarWhereInput = { AND?: TaskScalarWhereInput | TaskScalarWhereInput[] OR?: TaskScalarWhereInput[] NOT?: TaskScalarWhereInput | TaskScalarWhereInput[] id?: StringFilter<"Task"> | string title?: StringFilter<"Task"> | string description?: StringFilter<"Task"> | string status?: StringFilter<"Task"> | string difficulty?: StringFilter<"Task"> | string scope_clarity_score?: FloatFilter<"Task"> | number error_classification?: StringNullableFilter<"Task"> | string | null reward_amount?: IntFilter<"Task"> | number reward_currency?: StringFilter<"Task"> | string acceptance_criteria?: JsonFilter<"Task"> required_stack?: StringNullableListFilter<"Task"> retry_count?: IntFilter<"Task"> | number stripe_payment_intent_id?: StringNullableFilter<"Task"> | string | null stripe_checkout_session_id?: StringNullableFilter<"Task"> | string | null expires_at?: DateTimeNullableFilter<"Task"> | Date | string | null github_pr_url?: StringNullableFilter<"Task"> | string | null reward_points?: IntFilter<"Task"> | number is_priority?: BoolFilter<"Task"> | boolean is_private?: BoolFilter<"Task"> | boolean referred_by_agent?: StringNullableFilter<"Task"> | string | null parent_task_id?: StringNullableFilter<"Task"> | string | null created_by_agent?: StringNullableFilter<"Task"> | string | null created_at?: DateTimeFilter<"Task"> | Date | string updated_at?: DateTimeFilter<"Task"> | Date | string scout_id?: StringNullableFilter<"Task"> | string | null builder_id?: StringNullableFilter<"Task"> | string | null } export type TaskUpsertWithWhereUniqueWithoutBuilder_agentInput = { where: TaskWhereUniqueInput update: XOR create: XOR } export type TaskUpdateWithWhereUniqueWithoutBuilder_agentInput = { where: TaskWhereUniqueInput data: XOR } export type TaskUpdateManyWithWhereWithoutBuilder_agentInput = { where: TaskScalarWhereInput data: XOR } export type ClaimUpsertWithWhereUniqueWithoutAgentInput = { where: ClaimWhereUniqueInput update: XOR create: XOR } export type ClaimUpdateWithWhereUniqueWithoutAgentInput = { where: ClaimWhereUniqueInput data: XOR } export type ClaimUpdateManyWithWhereWithoutAgentInput = { where: ClaimScalarWhereInput data: XOR } export type ClaimCreateManyTaskInput = { id?: string agent_id: string developer_wallet: string status: string claim_token: string held_amount: number held_currency: string expires_at: Date | string created_at?: Date | string updated_at?: Date | string } export type SubmissionCreateManyTaskInput = { id?: string claim_id: string status: string deliverables: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: Date | string | null created_at?: Date | string updated_at?: Date | string } export type ClaimUpdateWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string developer_wallet?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claim_token?: StringFieldUpdateOperationsInput | string held_amount?: IntFieldUpdateOperationsInput | number held_currency?: StringFieldUpdateOperationsInput | string expires_at?: DateTimeFieldUpdateOperationsInput | Date | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string agent?: AgentProfileUpdateOneRequiredWithoutClaimsNestedInput submissions?: SubmissionUpdateManyWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string developer_wallet?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claim_token?: StringFieldUpdateOperationsInput | string held_amount?: IntFieldUpdateOperationsInput | number held_currency?: StringFieldUpdateOperationsInput | string expires_at?: DateTimeFieldUpdateOperationsInput | Date | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string submissions?: SubmissionUncheckedUpdateManyWithoutClaimNestedInput } export type ClaimUncheckedUpdateManyWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string developer_wallet?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claim_token?: StringFieldUpdateOperationsInput | string held_amount?: IntFieldUpdateOperationsInput | number held_currency?: StringFieldUpdateOperationsInput | string expires_at?: DateTimeFieldUpdateOperationsInput | Date | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SubmissionUpdateWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deliverables?: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string claim?: ClaimUpdateOneRequiredWithoutSubmissionsNestedInput judge_results?: JudgeResultUpdateManyWithoutSubmissionNestedInput } export type SubmissionUncheckedUpdateWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string claim_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deliverables?: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string judge_results?: JudgeResultUncheckedUpdateManyWithoutSubmissionNestedInput } export type SubmissionUncheckedUpdateManyWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string claim_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deliverables?: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SubmissionCreateManyClaimInput = { id?: string task_id: string status: string deliverables: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: Date | string | null created_at?: Date | string updated_at?: Date | string } export type SubmissionUpdateWithoutClaimInput = { id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deliverables?: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutSubmissionsNestedInput judge_results?: JudgeResultUpdateManyWithoutSubmissionNestedInput } export type SubmissionUncheckedUpdateWithoutClaimInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deliverables?: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string judge_results?: JudgeResultUncheckedUpdateManyWithoutSubmissionNestedInput } export type SubmissionUncheckedUpdateManyWithoutClaimInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deliverables?: JsonNullValueInput | InputJsonValue estimated_judge_complete_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type JudgeResultCreateManySubmissionInput = { id?: string overall_result: string tests: JsonNullValueInput | InputJsonValue artifacts?: NullableJsonNullValueInput | InputJsonValue error_classification?: string | null error_signature?: string | null retryable?: boolean resource_usage: JsonNullValueInput | InputJsonValue judge_completed_at?: Date | string } export type JudgeResultUpdateWithoutSubmissionInput = { id?: StringFieldUpdateOperationsInput | string overall_result?: StringFieldUpdateOperationsInput | string tests?: JsonNullValueInput | InputJsonValue artifacts?: NullableJsonNullValueInput | InputJsonValue error_classification?: NullableStringFieldUpdateOperationsInput | string | null error_signature?: NullableStringFieldUpdateOperationsInput | string | null retryable?: BoolFieldUpdateOperationsInput | boolean resource_usage?: JsonNullValueInput | InputJsonValue judge_completed_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type JudgeResultUncheckedUpdateWithoutSubmissionInput = { id?: StringFieldUpdateOperationsInput | string overall_result?: StringFieldUpdateOperationsInput | string tests?: JsonNullValueInput | InputJsonValue artifacts?: NullableJsonNullValueInput | InputJsonValue error_classification?: NullableStringFieldUpdateOperationsInput | string | null error_signature?: NullableStringFieldUpdateOperationsInput | string | null retryable?: BoolFieldUpdateOperationsInput | boolean resource_usage?: JsonNullValueInput | InputJsonValue judge_completed_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type JudgeResultUncheckedUpdateManyWithoutSubmissionInput = { id?: StringFieldUpdateOperationsInput | string overall_result?: StringFieldUpdateOperationsInput | string tests?: JsonNullValueInput | InputJsonValue artifacts?: NullableJsonNullValueInput | InputJsonValue error_classification?: NullableStringFieldUpdateOperationsInput | string | null error_signature?: NullableStringFieldUpdateOperationsInput | string | null retryable?: BoolFieldUpdateOperationsInput | boolean resource_usage?: JsonNullValueInput | InputJsonValue judge_completed_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type TaskCreateManyScout_agentInput = { id?: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification?: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonNullValueInput | InputJsonValue required_stack?: TaskCreaterequired_stackInput | string[] retry_count?: number stripe_payment_intent_id?: string | null stripe_checkout_session_id?: string | null expires_at?: Date | string | null github_pr_url?: string | null reward_points?: number is_priority?: boolean is_private?: boolean referred_by_agent?: string | null parent_task_id?: string | null created_by_agent?: string | null created_at?: Date | string updated_at?: Date | string builder_id?: string | null } export type TaskCreateManyBuilder_agentInput = { id?: string title: string description: string status: string difficulty: string scope_clarity_score: number error_classification?: string | null reward_amount: number reward_currency: string acceptance_criteria: JsonNullValueInput | InputJsonValue required_stack?: TaskCreaterequired_stackInput | string[] retry_count?: number stripe_payment_intent_id?: string | null stripe_checkout_session_id?: string | null expires_at?: Date | string | null github_pr_url?: string | null reward_points?: number is_priority?: boolean is_private?: boolean referred_by_agent?: string | null parent_task_id?: string | null created_by_agent?: string | null created_at?: Date | string updated_at?: Date | string scout_id?: string | null } export type ClaimCreateManyAgentInput = { id?: string task_id: string developer_wallet: string status: string claim_token: string held_amount: number held_currency: string expires_at: Date | string created_at?: Date | string updated_at?: Date | string } export type TaskUpdateWithoutScout_agentInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string builder_agent?: AgentProfileUpdateOneWithoutTasks_as_builderNestedInput claims?: ClaimUpdateManyWithoutTaskNestedInput submissions?: SubmissionUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateWithoutScout_agentInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string builder_id?: NullableStringFieldUpdateOperationsInput | string | null claims?: ClaimUncheckedUpdateManyWithoutTaskNestedInput submissions?: SubmissionUncheckedUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateManyWithoutScout_agentInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string builder_id?: NullableStringFieldUpdateOperationsInput | string | null } export type TaskUpdateWithoutBuilder_agentInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string scout_agent?: AgentProfileUpdateOneWithoutTasks_as_scoutNestedInput claims?: ClaimUpdateManyWithoutTaskNestedInput submissions?: SubmissionUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateWithoutBuilder_agentInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string scout_id?: NullableStringFieldUpdateOperationsInput | string | null claims?: ClaimUncheckedUpdateManyWithoutTaskNestedInput submissions?: SubmissionUncheckedUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateManyWithoutBuilder_agentInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string difficulty?: StringFieldUpdateOperationsInput | string scope_clarity_score?: FloatFieldUpdateOperationsInput | number error_classification?: NullableStringFieldUpdateOperationsInput | string | null reward_amount?: IntFieldUpdateOperationsInput | number reward_currency?: StringFieldUpdateOperationsInput | string acceptance_criteria?: JsonNullValueInput | InputJsonValue required_stack?: TaskUpdaterequired_stackInput | string[] retry_count?: IntFieldUpdateOperationsInput | number stripe_payment_intent_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_checkout_session_id?: NullableStringFieldUpdateOperationsInput | string | null expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null github_pr_url?: NullableStringFieldUpdateOperationsInput | string | null reward_points?: IntFieldUpdateOperationsInput | number is_priority?: BoolFieldUpdateOperationsInput | boolean is_private?: BoolFieldUpdateOperationsInput | boolean referred_by_agent?: NullableStringFieldUpdateOperationsInput | string | null parent_task_id?: NullableStringFieldUpdateOperationsInput | string | null created_by_agent?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string scout_id?: NullableStringFieldUpdateOperationsInput | string | null } export type ClaimUpdateWithoutAgentInput = { id?: StringFieldUpdateOperationsInput | string developer_wallet?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claim_token?: StringFieldUpdateOperationsInput | string held_amount?: IntFieldUpdateOperationsInput | number held_currency?: StringFieldUpdateOperationsInput | string expires_at?: DateTimeFieldUpdateOperationsInput | Date | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutClaimsNestedInput submissions?: SubmissionUpdateManyWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutAgentInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string developer_wallet?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claim_token?: StringFieldUpdateOperationsInput | string held_amount?: IntFieldUpdateOperationsInput | number held_currency?: StringFieldUpdateOperationsInput | string expires_at?: DateTimeFieldUpdateOperationsInput | Date | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string submissions?: SubmissionUncheckedUpdateManyWithoutClaimNestedInput } export type ClaimUncheckedUpdateManyWithoutAgentInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string developer_wallet?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string claim_token?: StringFieldUpdateOperationsInput | string held_amount?: IntFieldUpdateOperationsInput | number held_currency?: StringFieldUpdateOperationsInput | string expires_at?: DateTimeFieldUpdateOperationsInput | Date | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }