/** * 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 /** * Model AffiliateLedger * */ export type AffiliateLedger = $Result.DefaultSelection /** * Model ScoutReputation * */ export type ScoutReputation = $Result.DefaultSelection /** * Model BidProposal * */ export type BidProposal = $Result.DefaultSelection /** * Model AgentWebhook * */ export type AgentWebhook = $Result.DefaultSelection /** * Model Arbitration * */ export type Arbitration = $Result.DefaultSelection /** * Model ArbitrationVote * */ export type ArbitrationVote = $Result.DefaultSelection /** * Model AgentProject * */ export type AgentProject = $Result.DefaultSelection /** * Model TokenSale * */ export type TokenSale = $Result.DefaultSelection /** * Model SlashingEvent * */ export type SlashingEvent = $Result.DefaultSelection /** * Enums */ export namespace $Enums { export const AgentStatus: { WHITELISTED: 'WHITELISTED', BANNED: 'BANNED', PENDING: 'PENDING', REBEL: 'REBEL' }; export type AgentStatus = (typeof AgentStatus)[keyof typeof AgentStatus] } export type AgentStatus = $Enums.AgentStatus export const AgentStatus: typeof $Enums.AgentStatus /** * ## 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; /** * `prisma.affiliateLedger`: Exposes CRUD operations for the **AffiliateLedger** model. * Example usage: * ```ts * // Fetch zero or more AffiliateLedgers * const affiliateLedgers = await prisma.affiliateLedger.findMany() * ``` */ get affiliateLedger(): Prisma.AffiliateLedgerDelegate; /** * `prisma.scoutReputation`: Exposes CRUD operations for the **ScoutReputation** model. * Example usage: * ```ts * // Fetch zero or more ScoutReputations * const scoutReputations = await prisma.scoutReputation.findMany() * ``` */ get scoutReputation(): Prisma.ScoutReputationDelegate; /** * `prisma.bidProposal`: Exposes CRUD operations for the **BidProposal** model. * Example usage: * ```ts * // Fetch zero or more BidProposals * const bidProposals = await prisma.bidProposal.findMany() * ``` */ get bidProposal(): Prisma.BidProposalDelegate; /** * `prisma.agentWebhook`: Exposes CRUD operations for the **AgentWebhook** model. * Example usage: * ```ts * // Fetch zero or more AgentWebhooks * const agentWebhooks = await prisma.agentWebhook.findMany() * ``` */ get agentWebhook(): Prisma.AgentWebhookDelegate; /** * `prisma.arbitration`: Exposes CRUD operations for the **Arbitration** model. * Example usage: * ```ts * // Fetch zero or more Arbitrations * const arbitrations = await prisma.arbitration.findMany() * ``` */ get arbitration(): Prisma.ArbitrationDelegate; /** * `prisma.arbitrationVote`: Exposes CRUD operations for the **ArbitrationVote** model. * Example usage: * ```ts * // Fetch zero or more ArbitrationVotes * const arbitrationVotes = await prisma.arbitrationVote.findMany() * ``` */ get arbitrationVote(): Prisma.ArbitrationVoteDelegate; /** * `prisma.agentProject`: Exposes CRUD operations for the **AgentProject** model. * Example usage: * ```ts * // Fetch zero or more AgentProjects * const agentProjects = await prisma.agentProject.findMany() * ``` */ get agentProject(): Prisma.AgentProjectDelegate; /** * `prisma.tokenSale`: Exposes CRUD operations for the **TokenSale** model. * Example usage: * ```ts * // Fetch zero or more TokenSales * const tokenSales = await prisma.tokenSale.findMany() * ``` */ get tokenSale(): Prisma.TokenSaleDelegate; /** * `prisma.slashingEvent`: Exposes CRUD operations for the **SlashingEvent** model. * Example usage: * ```ts * // Fetch zero or more SlashingEvents * const slashingEvents = await prisma.slashingEvent.findMany() * ``` */ get slashingEvent(): Prisma.SlashingEventDelegate; } 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', AffiliateLedger: 'AffiliateLedger', ScoutReputation: 'ScoutReputation', BidProposal: 'BidProposal', AgentWebhook: 'AgentWebhook', Arbitration: 'Arbitration', ArbitrationVote: 'ArbitrationVote', AgentProject: 'AgentProject', TokenSale: 'TokenSale', SlashingEvent: 'SlashingEvent' }; 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" | "affiliateLedger" | "scoutReputation" | "bidProposal" | "agentWebhook" | "arbitration" | "arbitrationVote" | "agentProject" | "tokenSale" | "slashingEvent" 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 } } } AffiliateLedger: { payload: Prisma.$AffiliateLedgerPayload fields: Prisma.AffiliateLedgerFieldRefs operations: { findUnique: { args: Prisma.AffiliateLedgerFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AffiliateLedgerFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AffiliateLedgerFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AffiliateLedgerFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AffiliateLedgerFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AffiliateLedgerCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AffiliateLedgerCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AffiliateLedgerCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AffiliateLedgerDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AffiliateLedgerUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AffiliateLedgerDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AffiliateLedgerUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AffiliateLedgerUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AffiliateLedgerUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AffiliateLedgerAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AffiliateLedgerGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AffiliateLedgerCountArgs result: $Utils.Optional | number } } } ScoutReputation: { payload: Prisma.$ScoutReputationPayload fields: Prisma.ScoutReputationFieldRefs operations: { findUnique: { args: Prisma.ScoutReputationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ScoutReputationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ScoutReputationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ScoutReputationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ScoutReputationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ScoutReputationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ScoutReputationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ScoutReputationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ScoutReputationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ScoutReputationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ScoutReputationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ScoutReputationUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ScoutReputationUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ScoutReputationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ScoutReputationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ScoutReputationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ScoutReputationCountArgs result: $Utils.Optional | number } } } BidProposal: { payload: Prisma.$BidProposalPayload fields: Prisma.BidProposalFieldRefs operations: { findUnique: { args: Prisma.BidProposalFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.BidProposalFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.BidProposalFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.BidProposalFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.BidProposalFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.BidProposalCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.BidProposalCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.BidProposalCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.BidProposalDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.BidProposalUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.BidProposalDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.BidProposalUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.BidProposalUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.BidProposalUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.BidProposalAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.BidProposalGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.BidProposalCountArgs result: $Utils.Optional | number } } } AgentWebhook: { payload: Prisma.$AgentWebhookPayload fields: Prisma.AgentWebhookFieldRefs operations: { findUnique: { args: Prisma.AgentWebhookFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AgentWebhookFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AgentWebhookFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AgentWebhookFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AgentWebhookFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AgentWebhookCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AgentWebhookCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AgentWebhookCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AgentWebhookDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AgentWebhookUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AgentWebhookDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AgentWebhookUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AgentWebhookUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AgentWebhookUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AgentWebhookAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AgentWebhookGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AgentWebhookCountArgs result: $Utils.Optional | number } } } Arbitration: { payload: Prisma.$ArbitrationPayload fields: Prisma.ArbitrationFieldRefs operations: { findUnique: { args: Prisma.ArbitrationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ArbitrationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ArbitrationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ArbitrationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ArbitrationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ArbitrationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ArbitrationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ArbitrationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ArbitrationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ArbitrationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ArbitrationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ArbitrationUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ArbitrationUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ArbitrationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ArbitrationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ArbitrationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ArbitrationCountArgs result: $Utils.Optional | number } } } ArbitrationVote: { payload: Prisma.$ArbitrationVotePayload fields: Prisma.ArbitrationVoteFieldRefs operations: { findUnique: { args: Prisma.ArbitrationVoteFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ArbitrationVoteFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ArbitrationVoteFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ArbitrationVoteFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ArbitrationVoteFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ArbitrationVoteCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ArbitrationVoteCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ArbitrationVoteCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ArbitrationVoteDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ArbitrationVoteUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ArbitrationVoteDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ArbitrationVoteUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ArbitrationVoteUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ArbitrationVoteUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ArbitrationVoteAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ArbitrationVoteGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ArbitrationVoteCountArgs result: $Utils.Optional | number } } } AgentProject: { payload: Prisma.$AgentProjectPayload fields: Prisma.AgentProjectFieldRefs operations: { findUnique: { args: Prisma.AgentProjectFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AgentProjectFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AgentProjectFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AgentProjectFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AgentProjectFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AgentProjectCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AgentProjectCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AgentProjectCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AgentProjectDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AgentProjectUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AgentProjectDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AgentProjectUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AgentProjectUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AgentProjectUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AgentProjectAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AgentProjectGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AgentProjectCountArgs result: $Utils.Optional | number } } } TokenSale: { payload: Prisma.$TokenSalePayload fields: Prisma.TokenSaleFieldRefs operations: { findUnique: { args: Prisma.TokenSaleFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.TokenSaleFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.TokenSaleFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.TokenSaleFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.TokenSaleFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.TokenSaleCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.TokenSaleCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.TokenSaleCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.TokenSaleDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.TokenSaleUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.TokenSaleDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.TokenSaleUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.TokenSaleUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.TokenSaleUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.TokenSaleAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.TokenSaleGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.TokenSaleCountArgs result: $Utils.Optional | number } } } SlashingEvent: { payload: Prisma.$SlashingEventPayload fields: Prisma.SlashingEventFieldRefs operations: { findUnique: { args: Prisma.SlashingEventFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SlashingEventFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SlashingEventFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SlashingEventFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SlashingEventFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SlashingEventCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SlashingEventCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.SlashingEventCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.SlashingEventDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SlashingEventUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SlashingEventDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SlashingEventUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.SlashingEventUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.SlashingEventUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SlashingEventAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SlashingEventGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SlashingEventCountArgs 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 affiliateLedger?: AffiliateLedgerOmit scoutReputation?: ScoutReputationOmit bidProposal?: BidProposalOmit agentWebhook?: AgentWebhookOmit arbitration?: ArbitrationOmit arbitrationVote?: ArbitrationVoteOmit agentProject?: AgentProjectOmit tokenSale?: TokenSaleOmit slashingEvent?: SlashingEventOmit } /* 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 affiliate_ledger: number bid_proposals: number arbitrations: number } export type TaskCountOutputTypeSelect = { claims?: boolean | TaskCountOutputTypeCountClaimsArgs submissions?: boolean | TaskCountOutputTypeCountSubmissionsArgs affiliate_ledger?: boolean | TaskCountOutputTypeCountAffiliate_ledgerArgs bid_proposals?: boolean | TaskCountOutputTypeCountBid_proposalsArgs arbitrations?: boolean | TaskCountOutputTypeCountArbitrationsArgs } // 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 } /** * TaskCountOutputType without action */ export type TaskCountOutputTypeCountAffiliate_ledgerArgs = { where?: AffiliateLedgerWhereInput } /** * TaskCountOutputType without action */ export type TaskCountOutputTypeCountBid_proposalsArgs = { where?: BidProposalWhereInput } /** * TaskCountOutputType without action */ export type TaskCountOutputTypeCountArbitrationsArgs = { where?: ArbitrationWhereInput } /** * 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 affiliate_ledger: number bid_proposals: number arbitrations_as_builder: number arbitrations_as_evaluator: number arbitration_votes: number created_projects: number slashing_events: number } export type AgentProfileCountOutputTypeSelect = { tasks_as_scout?: boolean | AgentProfileCountOutputTypeCountTasks_as_scoutArgs tasks_as_builder?: boolean | AgentProfileCountOutputTypeCountTasks_as_builderArgs claims?: boolean | AgentProfileCountOutputTypeCountClaimsArgs affiliate_ledger?: boolean | AgentProfileCountOutputTypeCountAffiliate_ledgerArgs bid_proposals?: boolean | AgentProfileCountOutputTypeCountBid_proposalsArgs arbitrations_as_builder?: boolean | AgentProfileCountOutputTypeCountArbitrations_as_builderArgs arbitrations_as_evaluator?: boolean | AgentProfileCountOutputTypeCountArbitrations_as_evaluatorArgs arbitration_votes?: boolean | AgentProfileCountOutputTypeCountArbitration_votesArgs created_projects?: boolean | AgentProfileCountOutputTypeCountCreated_projectsArgs slashing_events?: boolean | AgentProfileCountOutputTypeCountSlashing_eventsArgs } // 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 } /** * AgentProfileCountOutputType without action */ export type AgentProfileCountOutputTypeCountAffiliate_ledgerArgs = { where?: AffiliateLedgerWhereInput } /** * AgentProfileCountOutputType without action */ export type AgentProfileCountOutputTypeCountBid_proposalsArgs = { where?: BidProposalWhereInput } /** * AgentProfileCountOutputType without action */ export type AgentProfileCountOutputTypeCountArbitrations_as_builderArgs = { where?: ArbitrationWhereInput } /** * AgentProfileCountOutputType without action */ export type AgentProfileCountOutputTypeCountArbitrations_as_evaluatorArgs = { where?: ArbitrationWhereInput } /** * AgentProfileCountOutputType without action */ export type AgentProfileCountOutputTypeCountArbitration_votesArgs = { where?: ArbitrationVoteWhereInput } /** * AgentProfileCountOutputType without action */ export type AgentProfileCountOutputTypeCountCreated_projectsArgs = { where?: AgentProjectWhereInput } /** * AgentProfileCountOutputType without action */ export type AgentProfileCountOutputTypeCountSlashing_eventsArgs = { where?: SlashingEventWhereInput } /** * Count Type ArbitrationCountOutputType */ export type ArbitrationCountOutputType = { votes: number slashing_events: number } export type ArbitrationCountOutputTypeSelect = { votes?: boolean | ArbitrationCountOutputTypeCountVotesArgs slashing_events?: boolean | ArbitrationCountOutputTypeCountSlashing_eventsArgs } // Custom InputTypes /** * ArbitrationCountOutputType without action */ export type ArbitrationCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ArbitrationCountOutputType */ select?: ArbitrationCountOutputTypeSelect | null } /** * ArbitrationCountOutputType without action */ export type ArbitrationCountOutputTypeCountVotesArgs = { where?: ArbitrationVoteWhereInput } /** * ArbitrationCountOutputType without action */ export type ArbitrationCountOutputTypeCountSlashing_eventsArgs = { where?: SlashingEventWhereInput } /** * Count Type AgentProjectCountOutputType */ export type AgentProjectCountOutputType = { token_sales: number } export type AgentProjectCountOutputTypeSelect = { token_sales?: boolean | AgentProjectCountOutputTypeCountToken_salesArgs } // Custom InputTypes /** * AgentProjectCountOutputType without action */ export type AgentProjectCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AgentProjectCountOutputType */ select?: AgentProjectCountOutputTypeSelect | null } /** * AgentProjectCountOutputType without action */ export type AgentProjectCountOutputTypeCountToken_salesArgs = { where?: TokenSaleWhereInput } /** * 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 affiliate_ledger?: boolean | Task$affiliate_ledgerArgs bid_proposals?: boolean | Task$bid_proposalsArgs arbitrations?: boolean | Task$arbitrationsArgs _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 affiliate_ledger?: boolean | Task$affiliate_ledgerArgs bid_proposals?: boolean | Task$bid_proposalsArgs arbitrations?: boolean | Task$arbitrationsArgs _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[] affiliate_ledger: Prisma.$AffiliateLedgerPayload[] bid_proposals: Prisma.$BidProposalPayload[] arbitrations: Prisma.$ArbitrationPayload[] } 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> affiliate_ledger = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> bid_proposals = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> arbitrations = {}>(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.affiliate_ledger */ export type Task$affiliate_ledgerArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelect | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerInclude | null where?: AffiliateLedgerWhereInput orderBy?: AffiliateLedgerOrderByWithRelationInput | AffiliateLedgerOrderByWithRelationInput[] cursor?: AffiliateLedgerWhereUniqueInput take?: number skip?: number distinct?: AffiliateLedgerScalarFieldEnum | AffiliateLedgerScalarFieldEnum[] } /** * Task.bid_proposals */ export type Task$bid_proposalsArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelect | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * Choose, which related nodes to fetch as well */ include?: BidProposalInclude | null where?: BidProposalWhereInput orderBy?: BidProposalOrderByWithRelationInput | BidProposalOrderByWithRelationInput[] cursor?: BidProposalWhereUniqueInput take?: number skip?: number distinct?: BidProposalScalarFieldEnum | BidProposalScalarFieldEnum[] } /** * Task.arbitrations */ export type Task$arbitrationsArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelect | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationInclude | null where?: ArbitrationWhereInput orderBy?: ArbitrationOrderByWithRelationInput | ArbitrationOrderByWithRelationInput[] cursor?: ArbitrationWhereUniqueInput take?: number skip?: number distinct?: ArbitrationScalarFieldEnum | ArbitrationScalarFieldEnum[] } /** * 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 _avg: AgentProfileAvgAggregateOutputType | null _sum: AgentProfileSumAggregateOutputType | null _min: AgentProfileMinAggregateOutputType | null _max: AgentProfileMaxAggregateOutputType | null } export type AgentProfileAvgAggregateOutputType = { staked_amount: number | null } export type AgentProfileSumAggregateOutputType = { staked_amount: number | null } export type AgentProfileMinAggregateOutputType = { id: string | null agent_id: string | null type: string | null wallet_address: string | null status: $Enums.AgentStatus | null discovery_source: string | null created_at: Date | null updated_at: Date | null crypto_address: string | null mcp_endpoint: string | null staked_amount: number | null tier: string | null } export type AgentProfileMaxAggregateOutputType = { id: string | null agent_id: string | null type: string | null wallet_address: string | null status: $Enums.AgentStatus | null discovery_source: string | null created_at: Date | null updated_at: Date | null crypto_address: string | null mcp_endpoint: string | null staked_amount: number | null tier: string | null } export type AgentProfileCountAggregateOutputType = { id: number agent_id: number type: number wallet_address: number status: number capabilities: number contact_endpoints: number discovery_source: number created_at: number updated_at: number crypto_address: number mcp_endpoint: number staked_amount: number tier: number _all: number } export type AgentProfileAvgAggregateInputType = { staked_amount?: true } export type AgentProfileSumAggregateInputType = { staked_amount?: true } export type AgentProfileMinAggregateInputType = { id?: true agent_id?: true type?: true wallet_address?: true status?: true discovery_source?: true created_at?: true updated_at?: true crypto_address?: true mcp_endpoint?: true staked_amount?: true tier?: true } export type AgentProfileMaxAggregateInputType = { id?: true agent_id?: true type?: true wallet_address?: true status?: true discovery_source?: true created_at?: true updated_at?: true crypto_address?: true mcp_endpoint?: true staked_amount?: true tier?: true } export type AgentProfileCountAggregateInputType = { id?: true agent_id?: true type?: true wallet_address?: true status?: true capabilities?: true contact_endpoints?: true discovery_source?: true created_at?: true updated_at?: true crypto_address?: true mcp_endpoint?: true staked_amount?: true tier?: 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 average **/ _avg?: AgentProfileAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AgentProfileSumAggregateInputType /** * {@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 _avg?: AgentProfileAvgAggregateInputType _sum?: AgentProfileSumAggregateInputType _min?: AgentProfileMinAggregateInputType _max?: AgentProfileMaxAggregateInputType } export type AgentProfileGroupByOutputType = { id: string agent_id: string type: string wallet_address: string | null status: $Enums.AgentStatus capabilities: JsonValue | null contact_endpoints: JsonValue | null discovery_source: string | null created_at: Date updated_at: Date crypto_address: string | null mcp_endpoint: string | null staked_amount: number tier: string _count: AgentProfileCountAggregateOutputType | null _avg: AgentProfileAvgAggregateOutputType | null _sum: AgentProfileSumAggregateOutputType | 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 contact_endpoints?: boolean discovery_source?: boolean created_at?: boolean updated_at?: boolean crypto_address?: boolean mcp_endpoint?: boolean staked_amount?: boolean tier?: boolean tasks_as_scout?: boolean | AgentProfile$tasks_as_scoutArgs tasks_as_builder?: boolean | AgentProfile$tasks_as_builderArgs claims?: boolean | AgentProfile$claimsArgs scout_reputation?: boolean | AgentProfile$scout_reputationArgs affiliate_ledger?: boolean | AgentProfile$affiliate_ledgerArgs bid_proposals?: boolean | AgentProfile$bid_proposalsArgs arbitrations_as_builder?: boolean | AgentProfile$arbitrations_as_builderArgs arbitrations_as_evaluator?: boolean | AgentProfile$arbitrations_as_evaluatorArgs arbitration_votes?: boolean | AgentProfile$arbitration_votesArgs created_projects?: boolean | AgentProfile$created_projectsArgs slashing_events?: boolean | AgentProfile$slashing_eventsArgs _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 contact_endpoints?: boolean discovery_source?: boolean created_at?: boolean updated_at?: boolean crypto_address?: boolean mcp_endpoint?: boolean staked_amount?: boolean tier?: boolean }, ExtArgs["result"]["agentProfile"]> export type AgentProfileSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean agent_id?: boolean type?: boolean wallet_address?: boolean status?: boolean capabilities?: boolean contact_endpoints?: boolean discovery_source?: boolean created_at?: boolean updated_at?: boolean crypto_address?: boolean mcp_endpoint?: boolean staked_amount?: boolean tier?: boolean }, ExtArgs["result"]["agentProfile"]> export type AgentProfileSelectScalar = { id?: boolean agent_id?: boolean type?: boolean wallet_address?: boolean status?: boolean capabilities?: boolean contact_endpoints?: boolean discovery_source?: boolean created_at?: boolean updated_at?: boolean crypto_address?: boolean mcp_endpoint?: boolean staked_amount?: boolean tier?: boolean } export type AgentProfileOmit = $Extensions.GetOmit<"id" | "agent_id" | "type" | "wallet_address" | "status" | "capabilities" | "contact_endpoints" | "discovery_source" | "created_at" | "updated_at" | "crypto_address" | "mcp_endpoint" | "staked_amount" | "tier", 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 scout_reputation?: boolean | AgentProfile$scout_reputationArgs affiliate_ledger?: boolean | AgentProfile$affiliate_ledgerArgs bid_proposals?: boolean | AgentProfile$bid_proposalsArgs arbitrations_as_builder?: boolean | AgentProfile$arbitrations_as_builderArgs arbitrations_as_evaluator?: boolean | AgentProfile$arbitrations_as_evaluatorArgs arbitration_votes?: boolean | AgentProfile$arbitration_votesArgs created_projects?: boolean | AgentProfile$created_projectsArgs slashing_events?: boolean | AgentProfile$slashing_eventsArgs _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[] scout_reputation: Prisma.$ScoutReputationPayload | null affiliate_ledger: Prisma.$AffiliateLedgerPayload[] bid_proposals: Prisma.$BidProposalPayload[] arbitrations_as_builder: Prisma.$ArbitrationPayload[] arbitrations_as_evaluator: Prisma.$ArbitrationPayload[] arbitration_votes: Prisma.$ArbitrationVotePayload[] created_projects: Prisma.$AgentProjectPayload[] slashing_events: Prisma.$SlashingEventPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string agent_id: string type: string wallet_address: string | null status: $Enums.AgentStatus capabilities: Prisma.JsonValue | null contact_endpoints: Prisma.JsonValue | null discovery_source: string | null created_at: Date updated_at: Date crypto_address: string | null mcp_endpoint: string | null staked_amount: number tier: string }, 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> scout_reputation = {}>(args?: Subset>): Prisma__ScoutReputationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> affiliate_ledger = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> bid_proposals = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> arbitrations_as_builder = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> arbitrations_as_evaluator = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> arbitration_votes = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> created_projects = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> slashing_events = {}>(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", 'AgentStatus'> readonly capabilities: FieldRef<"AgentProfile", 'Json'> readonly contact_endpoints: FieldRef<"AgentProfile", 'Json'> readonly discovery_source: FieldRef<"AgentProfile", 'String'> readonly created_at: FieldRef<"AgentProfile", 'DateTime'> readonly updated_at: FieldRef<"AgentProfile", 'DateTime'> readonly crypto_address: FieldRef<"AgentProfile", 'String'> readonly mcp_endpoint: FieldRef<"AgentProfile", 'String'> readonly staked_amount: FieldRef<"AgentProfile", 'Int'> readonly tier: FieldRef<"AgentProfile", 'String'> } // 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.scout_reputation */ export type AgentProfile$scout_reputationArgs = { /** * Select specific fields to fetch from the ScoutReputation */ select?: ScoutReputationSelect | null /** * Omit specific fields from the ScoutReputation */ omit?: ScoutReputationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ScoutReputationInclude | null where?: ScoutReputationWhereInput } /** * AgentProfile.affiliate_ledger */ export type AgentProfile$affiliate_ledgerArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelect | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerInclude | null where?: AffiliateLedgerWhereInput orderBy?: AffiliateLedgerOrderByWithRelationInput | AffiliateLedgerOrderByWithRelationInput[] cursor?: AffiliateLedgerWhereUniqueInput take?: number skip?: number distinct?: AffiliateLedgerScalarFieldEnum | AffiliateLedgerScalarFieldEnum[] } /** * AgentProfile.bid_proposals */ export type AgentProfile$bid_proposalsArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelect | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * Choose, which related nodes to fetch as well */ include?: BidProposalInclude | null where?: BidProposalWhereInput orderBy?: BidProposalOrderByWithRelationInput | BidProposalOrderByWithRelationInput[] cursor?: BidProposalWhereUniqueInput take?: number skip?: number distinct?: BidProposalScalarFieldEnum | BidProposalScalarFieldEnum[] } /** * AgentProfile.arbitrations_as_builder */ export type AgentProfile$arbitrations_as_builderArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelect | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationInclude | null where?: ArbitrationWhereInput orderBy?: ArbitrationOrderByWithRelationInput | ArbitrationOrderByWithRelationInput[] cursor?: ArbitrationWhereUniqueInput take?: number skip?: number distinct?: ArbitrationScalarFieldEnum | ArbitrationScalarFieldEnum[] } /** * AgentProfile.arbitrations_as_evaluator */ export type AgentProfile$arbitrations_as_evaluatorArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelect | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationInclude | null where?: ArbitrationWhereInput orderBy?: ArbitrationOrderByWithRelationInput | ArbitrationOrderByWithRelationInput[] cursor?: ArbitrationWhereUniqueInput take?: number skip?: number distinct?: ArbitrationScalarFieldEnum | ArbitrationScalarFieldEnum[] } /** * AgentProfile.arbitration_votes */ export type AgentProfile$arbitration_votesArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelect | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteInclude | null where?: ArbitrationVoteWhereInput orderBy?: ArbitrationVoteOrderByWithRelationInput | ArbitrationVoteOrderByWithRelationInput[] cursor?: ArbitrationVoteWhereUniqueInput take?: number skip?: number distinct?: ArbitrationVoteScalarFieldEnum | ArbitrationVoteScalarFieldEnum[] } /** * AgentProfile.created_projects */ export type AgentProfile$created_projectsArgs = { /** * Select specific fields to fetch from the AgentProject */ select?: AgentProjectSelect | null /** * Omit specific fields from the AgentProject */ omit?: AgentProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProjectInclude | null where?: AgentProjectWhereInput orderBy?: AgentProjectOrderByWithRelationInput | AgentProjectOrderByWithRelationInput[] cursor?: AgentProjectWhereUniqueInput take?: number skip?: number distinct?: AgentProjectScalarFieldEnum | AgentProjectScalarFieldEnum[] } /** * AgentProfile.slashing_events */ export type AgentProfile$slashing_eventsArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelect | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: SlashingEventInclude | null where?: SlashingEventWhereInput orderBy?: SlashingEventOrderByWithRelationInput | SlashingEventOrderByWithRelationInput[] cursor?: SlashingEventWhereUniqueInput take?: number skip?: number distinct?: SlashingEventScalarFieldEnum | SlashingEventScalarFieldEnum[] } /** * 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 } /** * Model AffiliateLedger */ export type AggregateAffiliateLedger = { _count: AffiliateLedgerCountAggregateOutputType | null _avg: AffiliateLedgerAvgAggregateOutputType | null _sum: AffiliateLedgerSumAggregateOutputType | null _min: AffiliateLedgerMinAggregateOutputType | null _max: AffiliateLedgerMaxAggregateOutputType | null } export type AffiliateLedgerAvgAggregateOutputType = { amount: number | null } export type AffiliateLedgerSumAggregateOutputType = { amount: number | null } export type AffiliateLedgerMinAggregateOutputType = { id: string | null scout_id: string | null task_id: string | null amount: number | null currency: string | null status: string | null created_at: Date | null updated_at: Date | null } export type AffiliateLedgerMaxAggregateOutputType = { id: string | null scout_id: string | null task_id: string | null amount: number | null currency: string | null status: string | null created_at: Date | null updated_at: Date | null } export type AffiliateLedgerCountAggregateOutputType = { id: number scout_id: number task_id: number amount: number currency: number status: number created_at: number updated_at: number _all: number } export type AffiliateLedgerAvgAggregateInputType = { amount?: true } export type AffiliateLedgerSumAggregateInputType = { amount?: true } export type AffiliateLedgerMinAggregateInputType = { id?: true scout_id?: true task_id?: true amount?: true currency?: true status?: true created_at?: true updated_at?: true } export type AffiliateLedgerMaxAggregateInputType = { id?: true scout_id?: true task_id?: true amount?: true currency?: true status?: true created_at?: true updated_at?: true } export type AffiliateLedgerCountAggregateInputType = { id?: true scout_id?: true task_id?: true amount?: true currency?: true status?: true created_at?: true updated_at?: true _all?: true } export type AffiliateLedgerAggregateArgs = { /** * Filter which AffiliateLedger to aggregate. */ where?: AffiliateLedgerWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AffiliateLedgers to fetch. */ orderBy?: AffiliateLedgerOrderByWithRelationInput | AffiliateLedgerOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AffiliateLedgerWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AffiliateLedgers 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` AffiliateLedgers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AffiliateLedgers **/ _count?: true | AffiliateLedgerCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AffiliateLedgerAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AffiliateLedgerSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AffiliateLedgerMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AffiliateLedgerMaxAggregateInputType } export type GetAffiliateLedgerAggregateType = { [P in keyof T & keyof AggregateAffiliateLedger]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AffiliateLedgerGroupByArgs = { where?: AffiliateLedgerWhereInput orderBy?: AffiliateLedgerOrderByWithAggregationInput | AffiliateLedgerOrderByWithAggregationInput[] by: AffiliateLedgerScalarFieldEnum[] | AffiliateLedgerScalarFieldEnum having?: AffiliateLedgerScalarWhereWithAggregatesInput take?: number skip?: number _count?: AffiliateLedgerCountAggregateInputType | true _avg?: AffiliateLedgerAvgAggregateInputType _sum?: AffiliateLedgerSumAggregateInputType _min?: AffiliateLedgerMinAggregateInputType _max?: AffiliateLedgerMaxAggregateInputType } export type AffiliateLedgerGroupByOutputType = { id: string scout_id: string task_id: string amount: number currency: string status: string created_at: Date updated_at: Date _count: AffiliateLedgerCountAggregateOutputType | null _avg: AffiliateLedgerAvgAggregateOutputType | null _sum: AffiliateLedgerSumAggregateOutputType | null _min: AffiliateLedgerMinAggregateOutputType | null _max: AffiliateLedgerMaxAggregateOutputType | null } type GetAffiliateLedgerGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AffiliateLedgerGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AffiliateLedgerSelect = $Extensions.GetSelect<{ id?: boolean scout_id?: boolean task_id?: boolean amount?: boolean currency?: boolean status?: boolean created_at?: boolean updated_at?: boolean scout_agent?: boolean | AgentProfileDefaultArgs task?: boolean | TaskDefaultArgs }, ExtArgs["result"]["affiliateLedger"]> export type AffiliateLedgerSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean scout_id?: boolean task_id?: boolean amount?: boolean currency?: boolean status?: boolean created_at?: boolean updated_at?: boolean scout_agent?: boolean | AgentProfileDefaultArgs task?: boolean | TaskDefaultArgs }, ExtArgs["result"]["affiliateLedger"]> export type AffiliateLedgerSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean scout_id?: boolean task_id?: boolean amount?: boolean currency?: boolean status?: boolean created_at?: boolean updated_at?: boolean scout_agent?: boolean | AgentProfileDefaultArgs task?: boolean | TaskDefaultArgs }, ExtArgs["result"]["affiliateLedger"]> export type AffiliateLedgerSelectScalar = { id?: boolean scout_id?: boolean task_id?: boolean amount?: boolean currency?: boolean status?: boolean created_at?: boolean updated_at?: boolean } export type AffiliateLedgerOmit = $Extensions.GetOmit<"id" | "scout_id" | "task_id" | "amount" | "currency" | "status" | "created_at" | "updated_at", ExtArgs["result"]["affiliateLedger"]> export type AffiliateLedgerInclude = { scout_agent?: boolean | AgentProfileDefaultArgs task?: boolean | TaskDefaultArgs } export type AffiliateLedgerIncludeCreateManyAndReturn = { scout_agent?: boolean | AgentProfileDefaultArgs task?: boolean | TaskDefaultArgs } export type AffiliateLedgerIncludeUpdateManyAndReturn = { scout_agent?: boolean | AgentProfileDefaultArgs task?: boolean | TaskDefaultArgs } export type $AffiliateLedgerPayload = { name: "AffiliateLedger" objects: { scout_agent: Prisma.$AgentProfilePayload task: Prisma.$TaskPayload } scalars: $Extensions.GetPayloadResult<{ id: string scout_id: string task_id: string amount: number currency: string status: string created_at: Date updated_at: Date }, ExtArgs["result"]["affiliateLedger"]> composites: {} } type AffiliateLedgerGetPayload = $Result.GetResult type AffiliateLedgerCountArgs = Omit & { select?: AffiliateLedgerCountAggregateInputType | true } export interface AffiliateLedgerDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AffiliateLedger'], meta: { name: 'AffiliateLedger' } } /** * Find zero or one AffiliateLedger that matches the filter. * @param {AffiliateLedgerFindUniqueArgs} args - Arguments to find a AffiliateLedger * @example * // Get one AffiliateLedger * const affiliateLedger = await prisma.affiliateLedger.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AffiliateLedgerClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AffiliateLedger that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AffiliateLedgerFindUniqueOrThrowArgs} args - Arguments to find a AffiliateLedger * @example * // Get one AffiliateLedger * const affiliateLedger = await prisma.affiliateLedger.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AffiliateLedgerClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AffiliateLedger 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 {AffiliateLedgerFindFirstArgs} args - Arguments to find a AffiliateLedger * @example * // Get one AffiliateLedger * const affiliateLedger = await prisma.affiliateLedger.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AffiliateLedgerClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AffiliateLedger 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 {AffiliateLedgerFindFirstOrThrowArgs} args - Arguments to find a AffiliateLedger * @example * // Get one AffiliateLedger * const affiliateLedger = await prisma.affiliateLedger.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AffiliateLedgerClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AffiliateLedgers 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 {AffiliateLedgerFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AffiliateLedgers * const affiliateLedgers = await prisma.affiliateLedger.findMany() * * // Get first 10 AffiliateLedgers * const affiliateLedgers = await prisma.affiliateLedger.findMany({ take: 10 }) * * // Only select the `id` * const affiliateLedgerWithIdOnly = await prisma.affiliateLedger.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a AffiliateLedger. * @param {AffiliateLedgerCreateArgs} args - Arguments to create a AffiliateLedger. * @example * // Create one AffiliateLedger * const AffiliateLedger = await prisma.affiliateLedger.create({ * data: { * // ... data to create a AffiliateLedger * } * }) * */ create(args: SelectSubset>): Prisma__AffiliateLedgerClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AffiliateLedgers. * @param {AffiliateLedgerCreateManyArgs} args - Arguments to create many AffiliateLedgers. * @example * // Create many AffiliateLedgers * const affiliateLedger = await prisma.affiliateLedger.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many AffiliateLedgers and returns the data saved in the database. * @param {AffiliateLedgerCreateManyAndReturnArgs} args - Arguments to create many AffiliateLedgers. * @example * // Create many AffiliateLedgers * const affiliateLedger = await prisma.affiliateLedger.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AffiliateLedgers and only return the `id` * const affiliateLedgerWithIdOnly = await prisma.affiliateLedger.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 AffiliateLedger. * @param {AffiliateLedgerDeleteArgs} args - Arguments to delete one AffiliateLedger. * @example * // Delete one AffiliateLedger * const AffiliateLedger = await prisma.affiliateLedger.delete({ * where: { * // ... filter to delete one AffiliateLedger * } * }) * */ delete(args: SelectSubset>): Prisma__AffiliateLedgerClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AffiliateLedger. * @param {AffiliateLedgerUpdateArgs} args - Arguments to update one AffiliateLedger. * @example * // Update one AffiliateLedger * const affiliateLedger = await prisma.affiliateLedger.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AffiliateLedgerClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AffiliateLedgers. * @param {AffiliateLedgerDeleteManyArgs} args - Arguments to filter AffiliateLedgers to delete. * @example * // Delete a few AffiliateLedgers * const { count } = await prisma.affiliateLedger.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AffiliateLedgers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AffiliateLedgerUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AffiliateLedgers * const affiliateLedger = await prisma.affiliateLedger.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AffiliateLedgers and returns the data updated in the database. * @param {AffiliateLedgerUpdateManyAndReturnArgs} args - Arguments to update many AffiliateLedgers. * @example * // Update many AffiliateLedgers * const affiliateLedger = await prisma.affiliateLedger.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AffiliateLedgers and only return the `id` * const affiliateLedgerWithIdOnly = await prisma.affiliateLedger.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 AffiliateLedger. * @param {AffiliateLedgerUpsertArgs} args - Arguments to update or create a AffiliateLedger. * @example * // Update or create a AffiliateLedger * const affiliateLedger = await prisma.affiliateLedger.upsert({ * create: { * // ... data to create a AffiliateLedger * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AffiliateLedger we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AffiliateLedgerClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AffiliateLedgers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AffiliateLedgerCountArgs} args - Arguments to filter AffiliateLedgers to count. * @example * // Count the number of AffiliateLedgers * const count = await prisma.affiliateLedger.count({ * where: { * // ... the filter for the AffiliateLedgers 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 AffiliateLedger. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AffiliateLedgerAggregateArgs} 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 AffiliateLedger. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AffiliateLedgerGroupByArgs} 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 AffiliateLedgerGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AffiliateLedgerGroupByArgs['orderBy'] } : { orderBy?: AffiliateLedgerGroupByArgs['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 ? GetAffiliateLedgerGroupByPayload : Prisma.PrismaPromise /** * Fields of the AffiliateLedger model */ readonly fields: AffiliateLedgerFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AffiliateLedger. * 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__AffiliateLedgerClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" scout_agent = {}>(args?: Subset>): Prisma__AgentProfileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> task = {}>(args?: Subset>): Prisma__TaskClient<$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 AffiliateLedger model */ interface AffiliateLedgerFieldRefs { readonly id: FieldRef<"AffiliateLedger", 'String'> readonly scout_id: FieldRef<"AffiliateLedger", 'String'> readonly task_id: FieldRef<"AffiliateLedger", 'String'> readonly amount: FieldRef<"AffiliateLedger", 'Int'> readonly currency: FieldRef<"AffiliateLedger", 'String'> readonly status: FieldRef<"AffiliateLedger", 'String'> readonly created_at: FieldRef<"AffiliateLedger", 'DateTime'> readonly updated_at: FieldRef<"AffiliateLedger", 'DateTime'> } // Custom InputTypes /** * AffiliateLedger findUnique */ export type AffiliateLedgerFindUniqueArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelect | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerInclude | null /** * Filter, which AffiliateLedger to fetch. */ where: AffiliateLedgerWhereUniqueInput } /** * AffiliateLedger findUniqueOrThrow */ export type AffiliateLedgerFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelect | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerInclude | null /** * Filter, which AffiliateLedger to fetch. */ where: AffiliateLedgerWhereUniqueInput } /** * AffiliateLedger findFirst */ export type AffiliateLedgerFindFirstArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelect | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerInclude | null /** * Filter, which AffiliateLedger to fetch. */ where?: AffiliateLedgerWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AffiliateLedgers to fetch. */ orderBy?: AffiliateLedgerOrderByWithRelationInput | AffiliateLedgerOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AffiliateLedgers. */ cursor?: AffiliateLedgerWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AffiliateLedgers 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` AffiliateLedgers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AffiliateLedgers. */ distinct?: AffiliateLedgerScalarFieldEnum | AffiliateLedgerScalarFieldEnum[] } /** * AffiliateLedger findFirstOrThrow */ export type AffiliateLedgerFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelect | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerInclude | null /** * Filter, which AffiliateLedger to fetch. */ where?: AffiliateLedgerWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AffiliateLedgers to fetch. */ orderBy?: AffiliateLedgerOrderByWithRelationInput | AffiliateLedgerOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AffiliateLedgers. */ cursor?: AffiliateLedgerWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AffiliateLedgers 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` AffiliateLedgers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AffiliateLedgers. */ distinct?: AffiliateLedgerScalarFieldEnum | AffiliateLedgerScalarFieldEnum[] } /** * AffiliateLedger findMany */ export type AffiliateLedgerFindManyArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelect | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerInclude | null /** * Filter, which AffiliateLedgers to fetch. */ where?: AffiliateLedgerWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AffiliateLedgers to fetch. */ orderBy?: AffiliateLedgerOrderByWithRelationInput | AffiliateLedgerOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AffiliateLedgers. */ cursor?: AffiliateLedgerWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AffiliateLedgers 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` AffiliateLedgers. */ skip?: number distinct?: AffiliateLedgerScalarFieldEnum | AffiliateLedgerScalarFieldEnum[] } /** * AffiliateLedger create */ export type AffiliateLedgerCreateArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelect | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerInclude | null /** * The data needed to create a AffiliateLedger. */ data: XOR } /** * AffiliateLedger createMany */ export type AffiliateLedgerCreateManyArgs = { /** * The data used to create many AffiliateLedgers. */ data: AffiliateLedgerCreateManyInput | AffiliateLedgerCreateManyInput[] skipDuplicates?: boolean } /** * AffiliateLedger createManyAndReturn */ export type AffiliateLedgerCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelectCreateManyAndReturn | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * The data used to create many AffiliateLedgers. */ data: AffiliateLedgerCreateManyInput | AffiliateLedgerCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerIncludeCreateManyAndReturn | null } /** * AffiliateLedger update */ export type AffiliateLedgerUpdateArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelect | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerInclude | null /** * The data needed to update a AffiliateLedger. */ data: XOR /** * Choose, which AffiliateLedger to update. */ where: AffiliateLedgerWhereUniqueInput } /** * AffiliateLedger updateMany */ export type AffiliateLedgerUpdateManyArgs = { /** * The data used to update AffiliateLedgers. */ data: XOR /** * Filter which AffiliateLedgers to update */ where?: AffiliateLedgerWhereInput /** * Limit how many AffiliateLedgers to update. */ limit?: number } /** * AffiliateLedger updateManyAndReturn */ export type AffiliateLedgerUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelectUpdateManyAndReturn | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * The data used to update AffiliateLedgers. */ data: XOR /** * Filter which AffiliateLedgers to update */ where?: AffiliateLedgerWhereInput /** * Limit how many AffiliateLedgers to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerIncludeUpdateManyAndReturn | null } /** * AffiliateLedger upsert */ export type AffiliateLedgerUpsertArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelect | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerInclude | null /** * The filter to search for the AffiliateLedger to update in case it exists. */ where: AffiliateLedgerWhereUniqueInput /** * In case the AffiliateLedger found by the `where` argument doesn't exist, create a new AffiliateLedger with this data. */ create: XOR /** * In case the AffiliateLedger was found with the provided `where` argument, update it with this data. */ update: XOR } /** * AffiliateLedger delete */ export type AffiliateLedgerDeleteArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelect | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerInclude | null /** * Filter which AffiliateLedger to delete. */ where: AffiliateLedgerWhereUniqueInput } /** * AffiliateLedger deleteMany */ export type AffiliateLedgerDeleteManyArgs = { /** * Filter which AffiliateLedgers to delete */ where?: AffiliateLedgerWhereInput /** * Limit how many AffiliateLedgers to delete. */ limit?: number } /** * AffiliateLedger without action */ export type AffiliateLedgerDefaultArgs = { /** * Select specific fields to fetch from the AffiliateLedger */ select?: AffiliateLedgerSelect | null /** * Omit specific fields from the AffiliateLedger */ omit?: AffiliateLedgerOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateLedgerInclude | null } /** * Model ScoutReputation */ export type AggregateScoutReputation = { _count: ScoutReputationCountAggregateOutputType | null _avg: ScoutReputationAvgAggregateOutputType | null _sum: ScoutReputationSumAggregateOutputType | null _min: ScoutReputationMinAggregateOutputType | null _max: ScoutReputationMaxAggregateOutputType | null } export type ScoutReputationAvgAggregateOutputType = { successful_conversions: number | null spam_score: number | null chargeback_count: number | null } export type ScoutReputationSumAggregateOutputType = { successful_conversions: number | null spam_score: number | null chargeback_count: number | null } export type ScoutReputationMinAggregateOutputType = { id: string | null scout_id: string | null successful_conversions: number | null spam_score: number | null chargeback_count: number | null created_at: Date | null updated_at: Date | null } export type ScoutReputationMaxAggregateOutputType = { id: string | null scout_id: string | null successful_conversions: number | null spam_score: number | null chargeback_count: number | null created_at: Date | null updated_at: Date | null } export type ScoutReputationCountAggregateOutputType = { id: number scout_id: number successful_conversions: number spam_score: number chargeback_count: number created_at: number updated_at: number _all: number } export type ScoutReputationAvgAggregateInputType = { successful_conversions?: true spam_score?: true chargeback_count?: true } export type ScoutReputationSumAggregateInputType = { successful_conversions?: true spam_score?: true chargeback_count?: true } export type ScoutReputationMinAggregateInputType = { id?: true scout_id?: true successful_conversions?: true spam_score?: true chargeback_count?: true created_at?: true updated_at?: true } export type ScoutReputationMaxAggregateInputType = { id?: true scout_id?: true successful_conversions?: true spam_score?: true chargeback_count?: true created_at?: true updated_at?: true } export type ScoutReputationCountAggregateInputType = { id?: true scout_id?: true successful_conversions?: true spam_score?: true chargeback_count?: true created_at?: true updated_at?: true _all?: true } export type ScoutReputationAggregateArgs = { /** * Filter which ScoutReputation to aggregate. */ where?: ScoutReputationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ScoutReputations to fetch. */ orderBy?: ScoutReputationOrderByWithRelationInput | ScoutReputationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ScoutReputationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ScoutReputations 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` ScoutReputations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ScoutReputations **/ _count?: true | ScoutReputationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ScoutReputationAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ScoutReputationSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ScoutReputationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ScoutReputationMaxAggregateInputType } export type GetScoutReputationAggregateType = { [P in keyof T & keyof AggregateScoutReputation]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ScoutReputationGroupByArgs = { where?: ScoutReputationWhereInput orderBy?: ScoutReputationOrderByWithAggregationInput | ScoutReputationOrderByWithAggregationInput[] by: ScoutReputationScalarFieldEnum[] | ScoutReputationScalarFieldEnum having?: ScoutReputationScalarWhereWithAggregatesInput take?: number skip?: number _count?: ScoutReputationCountAggregateInputType | true _avg?: ScoutReputationAvgAggregateInputType _sum?: ScoutReputationSumAggregateInputType _min?: ScoutReputationMinAggregateInputType _max?: ScoutReputationMaxAggregateInputType } export type ScoutReputationGroupByOutputType = { id: string scout_id: string successful_conversions: number spam_score: number chargeback_count: number created_at: Date updated_at: Date _count: ScoutReputationCountAggregateOutputType | null _avg: ScoutReputationAvgAggregateOutputType | null _sum: ScoutReputationSumAggregateOutputType | null _min: ScoutReputationMinAggregateOutputType | null _max: ScoutReputationMaxAggregateOutputType | null } type GetScoutReputationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ScoutReputationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ScoutReputationSelect = $Extensions.GetSelect<{ id?: boolean scout_id?: boolean successful_conversions?: boolean spam_score?: boolean chargeback_count?: boolean created_at?: boolean updated_at?: boolean scout_agent?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["scoutReputation"]> export type ScoutReputationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean scout_id?: boolean successful_conversions?: boolean spam_score?: boolean chargeback_count?: boolean created_at?: boolean updated_at?: boolean scout_agent?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["scoutReputation"]> export type ScoutReputationSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean scout_id?: boolean successful_conversions?: boolean spam_score?: boolean chargeback_count?: boolean created_at?: boolean updated_at?: boolean scout_agent?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["scoutReputation"]> export type ScoutReputationSelectScalar = { id?: boolean scout_id?: boolean successful_conversions?: boolean spam_score?: boolean chargeback_count?: boolean created_at?: boolean updated_at?: boolean } export type ScoutReputationOmit = $Extensions.GetOmit<"id" | "scout_id" | "successful_conversions" | "spam_score" | "chargeback_count" | "created_at" | "updated_at", ExtArgs["result"]["scoutReputation"]> export type ScoutReputationInclude = { scout_agent?: boolean | AgentProfileDefaultArgs } export type ScoutReputationIncludeCreateManyAndReturn = { scout_agent?: boolean | AgentProfileDefaultArgs } export type ScoutReputationIncludeUpdateManyAndReturn = { scout_agent?: boolean | AgentProfileDefaultArgs } export type $ScoutReputationPayload = { name: "ScoutReputation" objects: { scout_agent: Prisma.$AgentProfilePayload } scalars: $Extensions.GetPayloadResult<{ id: string scout_id: string successful_conversions: number spam_score: number chargeback_count: number created_at: Date updated_at: Date }, ExtArgs["result"]["scoutReputation"]> composites: {} } type ScoutReputationGetPayload = $Result.GetResult type ScoutReputationCountArgs = Omit & { select?: ScoutReputationCountAggregateInputType | true } export interface ScoutReputationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ScoutReputation'], meta: { name: 'ScoutReputation' } } /** * Find zero or one ScoutReputation that matches the filter. * @param {ScoutReputationFindUniqueArgs} args - Arguments to find a ScoutReputation * @example * // Get one ScoutReputation * const scoutReputation = await prisma.scoutReputation.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ScoutReputationClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ScoutReputation that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ScoutReputationFindUniqueOrThrowArgs} args - Arguments to find a ScoutReputation * @example * // Get one ScoutReputation * const scoutReputation = await prisma.scoutReputation.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ScoutReputationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ScoutReputation 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 {ScoutReputationFindFirstArgs} args - Arguments to find a ScoutReputation * @example * // Get one ScoutReputation * const scoutReputation = await prisma.scoutReputation.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ScoutReputationClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ScoutReputation 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 {ScoutReputationFindFirstOrThrowArgs} args - Arguments to find a ScoutReputation * @example * // Get one ScoutReputation * const scoutReputation = await prisma.scoutReputation.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ScoutReputationClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ScoutReputations 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 {ScoutReputationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ScoutReputations * const scoutReputations = await prisma.scoutReputation.findMany() * * // Get first 10 ScoutReputations * const scoutReputations = await prisma.scoutReputation.findMany({ take: 10 }) * * // Only select the `id` * const scoutReputationWithIdOnly = await prisma.scoutReputation.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a ScoutReputation. * @param {ScoutReputationCreateArgs} args - Arguments to create a ScoutReputation. * @example * // Create one ScoutReputation * const ScoutReputation = await prisma.scoutReputation.create({ * data: { * // ... data to create a ScoutReputation * } * }) * */ create(args: SelectSubset>): Prisma__ScoutReputationClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ScoutReputations. * @param {ScoutReputationCreateManyArgs} args - Arguments to create many ScoutReputations. * @example * // Create many ScoutReputations * const scoutReputation = await prisma.scoutReputation.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ScoutReputations and returns the data saved in the database. * @param {ScoutReputationCreateManyAndReturnArgs} args - Arguments to create many ScoutReputations. * @example * // Create many ScoutReputations * const scoutReputation = await prisma.scoutReputation.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ScoutReputations and only return the `id` * const scoutReputationWithIdOnly = await prisma.scoutReputation.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 ScoutReputation. * @param {ScoutReputationDeleteArgs} args - Arguments to delete one ScoutReputation. * @example * // Delete one ScoutReputation * const ScoutReputation = await prisma.scoutReputation.delete({ * where: { * // ... filter to delete one ScoutReputation * } * }) * */ delete(args: SelectSubset>): Prisma__ScoutReputationClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ScoutReputation. * @param {ScoutReputationUpdateArgs} args - Arguments to update one ScoutReputation. * @example * // Update one ScoutReputation * const scoutReputation = await prisma.scoutReputation.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ScoutReputationClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ScoutReputations. * @param {ScoutReputationDeleteManyArgs} args - Arguments to filter ScoutReputations to delete. * @example * // Delete a few ScoutReputations * const { count } = await prisma.scoutReputation.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ScoutReputations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ScoutReputationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ScoutReputations * const scoutReputation = await prisma.scoutReputation.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ScoutReputations and returns the data updated in the database. * @param {ScoutReputationUpdateManyAndReturnArgs} args - Arguments to update many ScoutReputations. * @example * // Update many ScoutReputations * const scoutReputation = await prisma.scoutReputation.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ScoutReputations and only return the `id` * const scoutReputationWithIdOnly = await prisma.scoutReputation.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 ScoutReputation. * @param {ScoutReputationUpsertArgs} args - Arguments to update or create a ScoutReputation. * @example * // Update or create a ScoutReputation * const scoutReputation = await prisma.scoutReputation.upsert({ * create: { * // ... data to create a ScoutReputation * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ScoutReputation we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ScoutReputationClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ScoutReputations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ScoutReputationCountArgs} args - Arguments to filter ScoutReputations to count. * @example * // Count the number of ScoutReputations * const count = await prisma.scoutReputation.count({ * where: { * // ... the filter for the ScoutReputations 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 ScoutReputation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ScoutReputationAggregateArgs} 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 ScoutReputation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ScoutReputationGroupByArgs} 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 ScoutReputationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ScoutReputationGroupByArgs['orderBy'] } : { orderBy?: ScoutReputationGroupByArgs['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 ? GetScoutReputationGroupByPayload : Prisma.PrismaPromise /** * Fields of the ScoutReputation model */ readonly fields: ScoutReputationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ScoutReputation. * 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__ScoutReputationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" scout_agent = {}>(args?: Subset>): Prisma__AgentProfileClient<$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 ScoutReputation model */ interface ScoutReputationFieldRefs { readonly id: FieldRef<"ScoutReputation", 'String'> readonly scout_id: FieldRef<"ScoutReputation", 'String'> readonly successful_conversions: FieldRef<"ScoutReputation", 'Int'> readonly spam_score: FieldRef<"ScoutReputation", 'Float'> readonly chargeback_count: FieldRef<"ScoutReputation", 'Int'> readonly created_at: FieldRef<"ScoutReputation", 'DateTime'> readonly updated_at: FieldRef<"ScoutReputation", 'DateTime'> } // Custom InputTypes /** * ScoutReputation findUnique */ export type ScoutReputationFindUniqueArgs = { /** * Select specific fields to fetch from the ScoutReputation */ select?: ScoutReputationSelect | null /** * Omit specific fields from the ScoutReputation */ omit?: ScoutReputationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ScoutReputationInclude | null /** * Filter, which ScoutReputation to fetch. */ where: ScoutReputationWhereUniqueInput } /** * ScoutReputation findUniqueOrThrow */ export type ScoutReputationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ScoutReputation */ select?: ScoutReputationSelect | null /** * Omit specific fields from the ScoutReputation */ omit?: ScoutReputationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ScoutReputationInclude | null /** * Filter, which ScoutReputation to fetch. */ where: ScoutReputationWhereUniqueInput } /** * ScoutReputation findFirst */ export type ScoutReputationFindFirstArgs = { /** * Select specific fields to fetch from the ScoutReputation */ select?: ScoutReputationSelect | null /** * Omit specific fields from the ScoutReputation */ omit?: ScoutReputationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ScoutReputationInclude | null /** * Filter, which ScoutReputation to fetch. */ where?: ScoutReputationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ScoutReputations to fetch. */ orderBy?: ScoutReputationOrderByWithRelationInput | ScoutReputationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ScoutReputations. */ cursor?: ScoutReputationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ScoutReputations 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` ScoutReputations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ScoutReputations. */ distinct?: ScoutReputationScalarFieldEnum | ScoutReputationScalarFieldEnum[] } /** * ScoutReputation findFirstOrThrow */ export type ScoutReputationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ScoutReputation */ select?: ScoutReputationSelect | null /** * Omit specific fields from the ScoutReputation */ omit?: ScoutReputationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ScoutReputationInclude | null /** * Filter, which ScoutReputation to fetch. */ where?: ScoutReputationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ScoutReputations to fetch. */ orderBy?: ScoutReputationOrderByWithRelationInput | ScoutReputationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ScoutReputations. */ cursor?: ScoutReputationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ScoutReputations 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` ScoutReputations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ScoutReputations. */ distinct?: ScoutReputationScalarFieldEnum | ScoutReputationScalarFieldEnum[] } /** * ScoutReputation findMany */ export type ScoutReputationFindManyArgs = { /** * Select specific fields to fetch from the ScoutReputation */ select?: ScoutReputationSelect | null /** * Omit specific fields from the ScoutReputation */ omit?: ScoutReputationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ScoutReputationInclude | null /** * Filter, which ScoutReputations to fetch. */ where?: ScoutReputationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ScoutReputations to fetch. */ orderBy?: ScoutReputationOrderByWithRelationInput | ScoutReputationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ScoutReputations. */ cursor?: ScoutReputationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ScoutReputations 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` ScoutReputations. */ skip?: number distinct?: ScoutReputationScalarFieldEnum | ScoutReputationScalarFieldEnum[] } /** * ScoutReputation create */ export type ScoutReputationCreateArgs = { /** * Select specific fields to fetch from the ScoutReputation */ select?: ScoutReputationSelect | null /** * Omit specific fields from the ScoutReputation */ omit?: ScoutReputationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ScoutReputationInclude | null /** * The data needed to create a ScoutReputation. */ data: XOR } /** * ScoutReputation createMany */ export type ScoutReputationCreateManyArgs = { /** * The data used to create many ScoutReputations. */ data: ScoutReputationCreateManyInput | ScoutReputationCreateManyInput[] skipDuplicates?: boolean } /** * ScoutReputation createManyAndReturn */ export type ScoutReputationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ScoutReputation */ select?: ScoutReputationSelectCreateManyAndReturn | null /** * Omit specific fields from the ScoutReputation */ omit?: ScoutReputationOmit | null /** * The data used to create many ScoutReputations. */ data: ScoutReputationCreateManyInput | ScoutReputationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ScoutReputationIncludeCreateManyAndReturn | null } /** * ScoutReputation update */ export type ScoutReputationUpdateArgs = { /** * Select specific fields to fetch from the ScoutReputation */ select?: ScoutReputationSelect | null /** * Omit specific fields from the ScoutReputation */ omit?: ScoutReputationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ScoutReputationInclude | null /** * The data needed to update a ScoutReputation. */ data: XOR /** * Choose, which ScoutReputation to update. */ where: ScoutReputationWhereUniqueInput } /** * ScoutReputation updateMany */ export type ScoutReputationUpdateManyArgs = { /** * The data used to update ScoutReputations. */ data: XOR /** * Filter which ScoutReputations to update */ where?: ScoutReputationWhereInput /** * Limit how many ScoutReputations to update. */ limit?: number } /** * ScoutReputation updateManyAndReturn */ export type ScoutReputationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ScoutReputation */ select?: ScoutReputationSelectUpdateManyAndReturn | null /** * Omit specific fields from the ScoutReputation */ omit?: ScoutReputationOmit | null /** * The data used to update ScoutReputations. */ data: XOR /** * Filter which ScoutReputations to update */ where?: ScoutReputationWhereInput /** * Limit how many ScoutReputations to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ScoutReputationIncludeUpdateManyAndReturn | null } /** * ScoutReputation upsert */ export type ScoutReputationUpsertArgs = { /** * Select specific fields to fetch from the ScoutReputation */ select?: ScoutReputationSelect | null /** * Omit specific fields from the ScoutReputation */ omit?: ScoutReputationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ScoutReputationInclude | null /** * The filter to search for the ScoutReputation to update in case it exists. */ where: ScoutReputationWhereUniqueInput /** * In case the ScoutReputation found by the `where` argument doesn't exist, create a new ScoutReputation with this data. */ create: XOR /** * In case the ScoutReputation was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ScoutReputation delete */ export type ScoutReputationDeleteArgs = { /** * Select specific fields to fetch from the ScoutReputation */ select?: ScoutReputationSelect | null /** * Omit specific fields from the ScoutReputation */ omit?: ScoutReputationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ScoutReputationInclude | null /** * Filter which ScoutReputation to delete. */ where: ScoutReputationWhereUniqueInput } /** * ScoutReputation deleteMany */ export type ScoutReputationDeleteManyArgs = { /** * Filter which ScoutReputations to delete */ where?: ScoutReputationWhereInput /** * Limit how many ScoutReputations to delete. */ limit?: number } /** * ScoutReputation without action */ export type ScoutReputationDefaultArgs = { /** * Select specific fields to fetch from the ScoutReputation */ select?: ScoutReputationSelect | null /** * Omit specific fields from the ScoutReputation */ omit?: ScoutReputationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ScoutReputationInclude | null } /** * Model BidProposal */ export type AggregateBidProposal = { _count: BidProposalCountAggregateOutputType | null _avg: BidProposalAvgAggregateOutputType | null _sum: BidProposalSumAggregateOutputType | null _min: BidProposalMinAggregateOutputType | null _max: BidProposalMaxAggregateOutputType | null } export type BidProposalAvgAggregateOutputType = { proposed_reward: number | null estimated_duration_hours: number | null counter_offer_amount: number | null broker_fee_percentage: number | null } export type BidProposalSumAggregateOutputType = { proposed_reward: number | null estimated_duration_hours: number | null counter_offer_amount: number | null broker_fee_percentage: number | null } export type BidProposalMinAggregateOutputType = { id: string | null task_id: string | null agent_id: string | null proposed_reward: number | null estimated_duration_hours: number | null quality_guarantee: string | null status: string | null counter_offer_amount: number | null broker_agent_id: string | null broker_fee_percentage: number | null created_at: Date | null updated_at: Date | null } export type BidProposalMaxAggregateOutputType = { id: string | null task_id: string | null agent_id: string | null proposed_reward: number | null estimated_duration_hours: number | null quality_guarantee: string | null status: string | null counter_offer_amount: number | null broker_agent_id: string | null broker_fee_percentage: number | null created_at: Date | null updated_at: Date | null } export type BidProposalCountAggregateOutputType = { id: number task_id: number agent_id: number proposed_reward: number estimated_duration_hours: number quality_guarantee: number status: number counter_offer_amount: number broker_agent_id: number broker_fee_percentage: number created_at: number updated_at: number _all: number } export type BidProposalAvgAggregateInputType = { proposed_reward?: true estimated_duration_hours?: true counter_offer_amount?: true broker_fee_percentage?: true } export type BidProposalSumAggregateInputType = { proposed_reward?: true estimated_duration_hours?: true counter_offer_amount?: true broker_fee_percentage?: true } export type BidProposalMinAggregateInputType = { id?: true task_id?: true agent_id?: true proposed_reward?: true estimated_duration_hours?: true quality_guarantee?: true status?: true counter_offer_amount?: true broker_agent_id?: true broker_fee_percentage?: true created_at?: true updated_at?: true } export type BidProposalMaxAggregateInputType = { id?: true task_id?: true agent_id?: true proposed_reward?: true estimated_duration_hours?: true quality_guarantee?: true status?: true counter_offer_amount?: true broker_agent_id?: true broker_fee_percentage?: true created_at?: true updated_at?: true } export type BidProposalCountAggregateInputType = { id?: true task_id?: true agent_id?: true proposed_reward?: true estimated_duration_hours?: true quality_guarantee?: true status?: true counter_offer_amount?: true broker_agent_id?: true broker_fee_percentage?: true created_at?: true updated_at?: true _all?: true } export type BidProposalAggregateArgs = { /** * Filter which BidProposal to aggregate. */ where?: BidProposalWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BidProposals to fetch. */ orderBy?: BidProposalOrderByWithRelationInput | BidProposalOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: BidProposalWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BidProposals 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` BidProposals. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned BidProposals **/ _count?: true | BidProposalCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: BidProposalAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: BidProposalSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: BidProposalMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: BidProposalMaxAggregateInputType } export type GetBidProposalAggregateType = { [P in keyof T & keyof AggregateBidProposal]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type BidProposalGroupByArgs = { where?: BidProposalWhereInput orderBy?: BidProposalOrderByWithAggregationInput | BidProposalOrderByWithAggregationInput[] by: BidProposalScalarFieldEnum[] | BidProposalScalarFieldEnum having?: BidProposalScalarWhereWithAggregatesInput take?: number skip?: number _count?: BidProposalCountAggregateInputType | true _avg?: BidProposalAvgAggregateInputType _sum?: BidProposalSumAggregateInputType _min?: BidProposalMinAggregateInputType _max?: BidProposalMaxAggregateInputType } export type BidProposalGroupByOutputType = { id: string task_id: string agent_id: string proposed_reward: number estimated_duration_hours: number quality_guarantee: string | null status: string counter_offer_amount: number | null broker_agent_id: string | null broker_fee_percentage: number | null created_at: Date updated_at: Date _count: BidProposalCountAggregateOutputType | null _avg: BidProposalAvgAggregateOutputType | null _sum: BidProposalSumAggregateOutputType | null _min: BidProposalMinAggregateOutputType | null _max: BidProposalMaxAggregateOutputType | null } type GetBidProposalGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof BidProposalGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type BidProposalSelect = $Extensions.GetSelect<{ id?: boolean task_id?: boolean agent_id?: boolean proposed_reward?: boolean estimated_duration_hours?: boolean quality_guarantee?: boolean status?: boolean counter_offer_amount?: boolean broker_agent_id?: boolean broker_fee_percentage?: boolean created_at?: boolean updated_at?: boolean task?: boolean | TaskDefaultArgs agent?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["bidProposal"]> export type BidProposalSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean task_id?: boolean agent_id?: boolean proposed_reward?: boolean estimated_duration_hours?: boolean quality_guarantee?: boolean status?: boolean counter_offer_amount?: boolean broker_agent_id?: boolean broker_fee_percentage?: boolean created_at?: boolean updated_at?: boolean task?: boolean | TaskDefaultArgs agent?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["bidProposal"]> export type BidProposalSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean task_id?: boolean agent_id?: boolean proposed_reward?: boolean estimated_duration_hours?: boolean quality_guarantee?: boolean status?: boolean counter_offer_amount?: boolean broker_agent_id?: boolean broker_fee_percentage?: boolean created_at?: boolean updated_at?: boolean task?: boolean | TaskDefaultArgs agent?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["bidProposal"]> export type BidProposalSelectScalar = { id?: boolean task_id?: boolean agent_id?: boolean proposed_reward?: boolean estimated_duration_hours?: boolean quality_guarantee?: boolean status?: boolean counter_offer_amount?: boolean broker_agent_id?: boolean broker_fee_percentage?: boolean created_at?: boolean updated_at?: boolean } export type BidProposalOmit = $Extensions.GetOmit<"id" | "task_id" | "agent_id" | "proposed_reward" | "estimated_duration_hours" | "quality_guarantee" | "status" | "counter_offer_amount" | "broker_agent_id" | "broker_fee_percentage" | "created_at" | "updated_at", ExtArgs["result"]["bidProposal"]> export type BidProposalInclude = { task?: boolean | TaskDefaultArgs agent?: boolean | AgentProfileDefaultArgs } export type BidProposalIncludeCreateManyAndReturn = { task?: boolean | TaskDefaultArgs agent?: boolean | AgentProfileDefaultArgs } export type BidProposalIncludeUpdateManyAndReturn = { task?: boolean | TaskDefaultArgs agent?: boolean | AgentProfileDefaultArgs } export type $BidProposalPayload = { name: "BidProposal" objects: { task: Prisma.$TaskPayload agent: Prisma.$AgentProfilePayload } scalars: $Extensions.GetPayloadResult<{ id: string task_id: string agent_id: string proposed_reward: number estimated_duration_hours: number quality_guarantee: string | null status: string counter_offer_amount: number | null broker_agent_id: string | null broker_fee_percentage: number | null created_at: Date updated_at: Date }, ExtArgs["result"]["bidProposal"]> composites: {} } type BidProposalGetPayload = $Result.GetResult type BidProposalCountArgs = Omit & { select?: BidProposalCountAggregateInputType | true } export interface BidProposalDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['BidProposal'], meta: { name: 'BidProposal' } } /** * Find zero or one BidProposal that matches the filter. * @param {BidProposalFindUniqueArgs} args - Arguments to find a BidProposal * @example * // Get one BidProposal * const bidProposal = await prisma.bidProposal.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__BidProposalClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one BidProposal that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {BidProposalFindUniqueOrThrowArgs} args - Arguments to find a BidProposal * @example * // Get one BidProposal * const bidProposal = await prisma.bidProposal.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__BidProposalClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first BidProposal 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 {BidProposalFindFirstArgs} args - Arguments to find a BidProposal * @example * // Get one BidProposal * const bidProposal = await prisma.bidProposal.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__BidProposalClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first BidProposal 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 {BidProposalFindFirstOrThrowArgs} args - Arguments to find a BidProposal * @example * // Get one BidProposal * const bidProposal = await prisma.bidProposal.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__BidProposalClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more BidProposals 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 {BidProposalFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all BidProposals * const bidProposals = await prisma.bidProposal.findMany() * * // Get first 10 BidProposals * const bidProposals = await prisma.bidProposal.findMany({ take: 10 }) * * // Only select the `id` * const bidProposalWithIdOnly = await prisma.bidProposal.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a BidProposal. * @param {BidProposalCreateArgs} args - Arguments to create a BidProposal. * @example * // Create one BidProposal * const BidProposal = await prisma.bidProposal.create({ * data: { * // ... data to create a BidProposal * } * }) * */ create(args: SelectSubset>): Prisma__BidProposalClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many BidProposals. * @param {BidProposalCreateManyArgs} args - Arguments to create many BidProposals. * @example * // Create many BidProposals * const bidProposal = await prisma.bidProposal.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many BidProposals and returns the data saved in the database. * @param {BidProposalCreateManyAndReturnArgs} args - Arguments to create many BidProposals. * @example * // Create many BidProposals * const bidProposal = await prisma.bidProposal.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many BidProposals and only return the `id` * const bidProposalWithIdOnly = await prisma.bidProposal.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 BidProposal. * @param {BidProposalDeleteArgs} args - Arguments to delete one BidProposal. * @example * // Delete one BidProposal * const BidProposal = await prisma.bidProposal.delete({ * where: { * // ... filter to delete one BidProposal * } * }) * */ delete(args: SelectSubset>): Prisma__BidProposalClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one BidProposal. * @param {BidProposalUpdateArgs} args - Arguments to update one BidProposal. * @example * // Update one BidProposal * const bidProposal = await prisma.bidProposal.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__BidProposalClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more BidProposals. * @param {BidProposalDeleteManyArgs} args - Arguments to filter BidProposals to delete. * @example * // Delete a few BidProposals * const { count } = await prisma.bidProposal.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more BidProposals. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BidProposalUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many BidProposals * const bidProposal = await prisma.bidProposal.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more BidProposals and returns the data updated in the database. * @param {BidProposalUpdateManyAndReturnArgs} args - Arguments to update many BidProposals. * @example * // Update many BidProposals * const bidProposal = await prisma.bidProposal.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more BidProposals and only return the `id` * const bidProposalWithIdOnly = await prisma.bidProposal.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 BidProposal. * @param {BidProposalUpsertArgs} args - Arguments to update or create a BidProposal. * @example * // Update or create a BidProposal * const bidProposal = await prisma.bidProposal.upsert({ * create: { * // ... data to create a BidProposal * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the BidProposal we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__BidProposalClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of BidProposals. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BidProposalCountArgs} args - Arguments to filter BidProposals to count. * @example * // Count the number of BidProposals * const count = await prisma.bidProposal.count({ * where: { * // ... the filter for the BidProposals 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 BidProposal. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BidProposalAggregateArgs} 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 BidProposal. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BidProposalGroupByArgs} 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 BidProposalGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: BidProposalGroupByArgs['orderBy'] } : { orderBy?: BidProposalGroupByArgs['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 ? GetBidProposalGroupByPayload : Prisma.PrismaPromise /** * Fields of the BidProposal model */ readonly fields: BidProposalFieldRefs; } /** * The delegate class that acts as a "Promise-like" for BidProposal. * 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__BidProposalClient 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> /** * 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 BidProposal model */ interface BidProposalFieldRefs { readonly id: FieldRef<"BidProposal", 'String'> readonly task_id: FieldRef<"BidProposal", 'String'> readonly agent_id: FieldRef<"BidProposal", 'String'> readonly proposed_reward: FieldRef<"BidProposal", 'Int'> readonly estimated_duration_hours: FieldRef<"BidProposal", 'Float'> readonly quality_guarantee: FieldRef<"BidProposal", 'String'> readonly status: FieldRef<"BidProposal", 'String'> readonly counter_offer_amount: FieldRef<"BidProposal", 'Int'> readonly broker_agent_id: FieldRef<"BidProposal", 'String'> readonly broker_fee_percentage: FieldRef<"BidProposal", 'Float'> readonly created_at: FieldRef<"BidProposal", 'DateTime'> readonly updated_at: FieldRef<"BidProposal", 'DateTime'> } // Custom InputTypes /** * BidProposal findUnique */ export type BidProposalFindUniqueArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelect | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * Choose, which related nodes to fetch as well */ include?: BidProposalInclude | null /** * Filter, which BidProposal to fetch. */ where: BidProposalWhereUniqueInput } /** * BidProposal findUniqueOrThrow */ export type BidProposalFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelect | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * Choose, which related nodes to fetch as well */ include?: BidProposalInclude | null /** * Filter, which BidProposal to fetch. */ where: BidProposalWhereUniqueInput } /** * BidProposal findFirst */ export type BidProposalFindFirstArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelect | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * Choose, which related nodes to fetch as well */ include?: BidProposalInclude | null /** * Filter, which BidProposal to fetch. */ where?: BidProposalWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BidProposals to fetch. */ orderBy?: BidProposalOrderByWithRelationInput | BidProposalOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for BidProposals. */ cursor?: BidProposalWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BidProposals 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` BidProposals. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of BidProposals. */ distinct?: BidProposalScalarFieldEnum | BidProposalScalarFieldEnum[] } /** * BidProposal findFirstOrThrow */ export type BidProposalFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelect | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * Choose, which related nodes to fetch as well */ include?: BidProposalInclude | null /** * Filter, which BidProposal to fetch. */ where?: BidProposalWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BidProposals to fetch. */ orderBy?: BidProposalOrderByWithRelationInput | BidProposalOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for BidProposals. */ cursor?: BidProposalWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BidProposals 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` BidProposals. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of BidProposals. */ distinct?: BidProposalScalarFieldEnum | BidProposalScalarFieldEnum[] } /** * BidProposal findMany */ export type BidProposalFindManyArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelect | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * Choose, which related nodes to fetch as well */ include?: BidProposalInclude | null /** * Filter, which BidProposals to fetch. */ where?: BidProposalWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BidProposals to fetch. */ orderBy?: BidProposalOrderByWithRelationInput | BidProposalOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing BidProposals. */ cursor?: BidProposalWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BidProposals 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` BidProposals. */ skip?: number distinct?: BidProposalScalarFieldEnum | BidProposalScalarFieldEnum[] } /** * BidProposal create */ export type BidProposalCreateArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelect | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * Choose, which related nodes to fetch as well */ include?: BidProposalInclude | null /** * The data needed to create a BidProposal. */ data: XOR } /** * BidProposal createMany */ export type BidProposalCreateManyArgs = { /** * The data used to create many BidProposals. */ data: BidProposalCreateManyInput | BidProposalCreateManyInput[] skipDuplicates?: boolean } /** * BidProposal createManyAndReturn */ export type BidProposalCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelectCreateManyAndReturn | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * The data used to create many BidProposals. */ data: BidProposalCreateManyInput | BidProposalCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: BidProposalIncludeCreateManyAndReturn | null } /** * BidProposal update */ export type BidProposalUpdateArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelect | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * Choose, which related nodes to fetch as well */ include?: BidProposalInclude | null /** * The data needed to update a BidProposal. */ data: XOR /** * Choose, which BidProposal to update. */ where: BidProposalWhereUniqueInput } /** * BidProposal updateMany */ export type BidProposalUpdateManyArgs = { /** * The data used to update BidProposals. */ data: XOR /** * Filter which BidProposals to update */ where?: BidProposalWhereInput /** * Limit how many BidProposals to update. */ limit?: number } /** * BidProposal updateManyAndReturn */ export type BidProposalUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelectUpdateManyAndReturn | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * The data used to update BidProposals. */ data: XOR /** * Filter which BidProposals to update */ where?: BidProposalWhereInput /** * Limit how many BidProposals to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: BidProposalIncludeUpdateManyAndReturn | null } /** * BidProposal upsert */ export type BidProposalUpsertArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelect | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * Choose, which related nodes to fetch as well */ include?: BidProposalInclude | null /** * The filter to search for the BidProposal to update in case it exists. */ where: BidProposalWhereUniqueInput /** * In case the BidProposal found by the `where` argument doesn't exist, create a new BidProposal with this data. */ create: XOR /** * In case the BidProposal was found with the provided `where` argument, update it with this data. */ update: XOR } /** * BidProposal delete */ export type BidProposalDeleteArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelect | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * Choose, which related nodes to fetch as well */ include?: BidProposalInclude | null /** * Filter which BidProposal to delete. */ where: BidProposalWhereUniqueInput } /** * BidProposal deleteMany */ export type BidProposalDeleteManyArgs = { /** * Filter which BidProposals to delete */ where?: BidProposalWhereInput /** * Limit how many BidProposals to delete. */ limit?: number } /** * BidProposal without action */ export type BidProposalDefaultArgs = { /** * Select specific fields to fetch from the BidProposal */ select?: BidProposalSelect | null /** * Omit specific fields from the BidProposal */ omit?: BidProposalOmit | null /** * Choose, which related nodes to fetch as well */ include?: BidProposalInclude | null } /** * Model AgentWebhook */ export type AggregateAgentWebhook = { _count: AgentWebhookCountAggregateOutputType | null _min: AgentWebhookMinAggregateOutputType | null _max: AgentWebhookMaxAggregateOutputType | null } export type AgentWebhookMinAggregateOutputType = { id: string | null task_id: string | null agent_id: string | null webhook_url: string | null created_at: Date | null updated_at: Date | null } export type AgentWebhookMaxAggregateOutputType = { id: string | null task_id: string | null agent_id: string | null webhook_url: string | null created_at: Date | null updated_at: Date | null } export type AgentWebhookCountAggregateOutputType = { id: number task_id: number agent_id: number webhook_url: number events: number created_at: number updated_at: number _all: number } export type AgentWebhookMinAggregateInputType = { id?: true task_id?: true agent_id?: true webhook_url?: true created_at?: true updated_at?: true } export type AgentWebhookMaxAggregateInputType = { id?: true task_id?: true agent_id?: true webhook_url?: true created_at?: true updated_at?: true } export type AgentWebhookCountAggregateInputType = { id?: true task_id?: true agent_id?: true webhook_url?: true events?: true created_at?: true updated_at?: true _all?: true } export type AgentWebhookAggregateArgs = { /** * Filter which AgentWebhook to aggregate. */ where?: AgentWebhookWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentWebhooks to fetch. */ orderBy?: AgentWebhookOrderByWithRelationInput | AgentWebhookOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AgentWebhookWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentWebhooks 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` AgentWebhooks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AgentWebhooks **/ _count?: true | AgentWebhookCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AgentWebhookMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AgentWebhookMaxAggregateInputType } export type GetAgentWebhookAggregateType = { [P in keyof T & keyof AggregateAgentWebhook]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AgentWebhookGroupByArgs = { where?: AgentWebhookWhereInput orderBy?: AgentWebhookOrderByWithAggregationInput | AgentWebhookOrderByWithAggregationInput[] by: AgentWebhookScalarFieldEnum[] | AgentWebhookScalarFieldEnum having?: AgentWebhookScalarWhereWithAggregatesInput take?: number skip?: number _count?: AgentWebhookCountAggregateInputType | true _min?: AgentWebhookMinAggregateInputType _max?: AgentWebhookMaxAggregateInputType } export type AgentWebhookGroupByOutputType = { id: string task_id: string agent_id: string webhook_url: string events: string[] created_at: Date updated_at: Date _count: AgentWebhookCountAggregateOutputType | null _min: AgentWebhookMinAggregateOutputType | null _max: AgentWebhookMaxAggregateOutputType | null } type GetAgentWebhookGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AgentWebhookGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AgentWebhookSelect = $Extensions.GetSelect<{ id?: boolean task_id?: boolean agent_id?: boolean webhook_url?: boolean events?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["agentWebhook"]> export type AgentWebhookSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean task_id?: boolean agent_id?: boolean webhook_url?: boolean events?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["agentWebhook"]> export type AgentWebhookSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean task_id?: boolean agent_id?: boolean webhook_url?: boolean events?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["agentWebhook"]> export type AgentWebhookSelectScalar = { id?: boolean task_id?: boolean agent_id?: boolean webhook_url?: boolean events?: boolean created_at?: boolean updated_at?: boolean } export type AgentWebhookOmit = $Extensions.GetOmit<"id" | "task_id" | "agent_id" | "webhook_url" | "events" | "created_at" | "updated_at", ExtArgs["result"]["agentWebhook"]> export type $AgentWebhookPayload = { name: "AgentWebhook" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string task_id: string agent_id: string webhook_url: string events: string[] created_at: Date updated_at: Date }, ExtArgs["result"]["agentWebhook"]> composites: {} } type AgentWebhookGetPayload = $Result.GetResult type AgentWebhookCountArgs = Omit & { select?: AgentWebhookCountAggregateInputType | true } export interface AgentWebhookDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AgentWebhook'], meta: { name: 'AgentWebhook' } } /** * Find zero or one AgentWebhook that matches the filter. * @param {AgentWebhookFindUniqueArgs} args - Arguments to find a AgentWebhook * @example * // Get one AgentWebhook * const agentWebhook = await prisma.agentWebhook.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AgentWebhookClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AgentWebhook that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AgentWebhookFindUniqueOrThrowArgs} args - Arguments to find a AgentWebhook * @example * // Get one AgentWebhook * const agentWebhook = await prisma.agentWebhook.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AgentWebhookClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AgentWebhook 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 {AgentWebhookFindFirstArgs} args - Arguments to find a AgentWebhook * @example * // Get one AgentWebhook * const agentWebhook = await prisma.agentWebhook.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AgentWebhookClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AgentWebhook 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 {AgentWebhookFindFirstOrThrowArgs} args - Arguments to find a AgentWebhook * @example * // Get one AgentWebhook * const agentWebhook = await prisma.agentWebhook.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AgentWebhookClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AgentWebhooks 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 {AgentWebhookFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AgentWebhooks * const agentWebhooks = await prisma.agentWebhook.findMany() * * // Get first 10 AgentWebhooks * const agentWebhooks = await prisma.agentWebhook.findMany({ take: 10 }) * * // Only select the `id` * const agentWebhookWithIdOnly = await prisma.agentWebhook.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a AgentWebhook. * @param {AgentWebhookCreateArgs} args - Arguments to create a AgentWebhook. * @example * // Create one AgentWebhook * const AgentWebhook = await prisma.agentWebhook.create({ * data: { * // ... data to create a AgentWebhook * } * }) * */ create(args: SelectSubset>): Prisma__AgentWebhookClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AgentWebhooks. * @param {AgentWebhookCreateManyArgs} args - Arguments to create many AgentWebhooks. * @example * // Create many AgentWebhooks * const agentWebhook = await prisma.agentWebhook.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many AgentWebhooks and returns the data saved in the database. * @param {AgentWebhookCreateManyAndReturnArgs} args - Arguments to create many AgentWebhooks. * @example * // Create many AgentWebhooks * const agentWebhook = await prisma.agentWebhook.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AgentWebhooks and only return the `id` * const agentWebhookWithIdOnly = await prisma.agentWebhook.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 AgentWebhook. * @param {AgentWebhookDeleteArgs} args - Arguments to delete one AgentWebhook. * @example * // Delete one AgentWebhook * const AgentWebhook = await prisma.agentWebhook.delete({ * where: { * // ... filter to delete one AgentWebhook * } * }) * */ delete(args: SelectSubset>): Prisma__AgentWebhookClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AgentWebhook. * @param {AgentWebhookUpdateArgs} args - Arguments to update one AgentWebhook. * @example * // Update one AgentWebhook * const agentWebhook = await prisma.agentWebhook.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AgentWebhookClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AgentWebhooks. * @param {AgentWebhookDeleteManyArgs} args - Arguments to filter AgentWebhooks to delete. * @example * // Delete a few AgentWebhooks * const { count } = await prisma.agentWebhook.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AgentWebhooks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentWebhookUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AgentWebhooks * const agentWebhook = await prisma.agentWebhook.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AgentWebhooks and returns the data updated in the database. * @param {AgentWebhookUpdateManyAndReturnArgs} args - Arguments to update many AgentWebhooks. * @example * // Update many AgentWebhooks * const agentWebhook = await prisma.agentWebhook.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AgentWebhooks and only return the `id` * const agentWebhookWithIdOnly = await prisma.agentWebhook.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 AgentWebhook. * @param {AgentWebhookUpsertArgs} args - Arguments to update or create a AgentWebhook. * @example * // Update or create a AgentWebhook * const agentWebhook = await prisma.agentWebhook.upsert({ * create: { * // ... data to create a AgentWebhook * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AgentWebhook we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AgentWebhookClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AgentWebhooks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentWebhookCountArgs} args - Arguments to filter AgentWebhooks to count. * @example * // Count the number of AgentWebhooks * const count = await prisma.agentWebhook.count({ * where: { * // ... the filter for the AgentWebhooks 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 AgentWebhook. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentWebhookAggregateArgs} 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 AgentWebhook. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentWebhookGroupByArgs} 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 AgentWebhookGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AgentWebhookGroupByArgs['orderBy'] } : { orderBy?: AgentWebhookGroupByArgs['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 ? GetAgentWebhookGroupByPayload : Prisma.PrismaPromise /** * Fields of the AgentWebhook model */ readonly fields: AgentWebhookFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AgentWebhook. * 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__AgentWebhookClient 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 AgentWebhook model */ interface AgentWebhookFieldRefs { readonly id: FieldRef<"AgentWebhook", 'String'> readonly task_id: FieldRef<"AgentWebhook", 'String'> readonly agent_id: FieldRef<"AgentWebhook", 'String'> readonly webhook_url: FieldRef<"AgentWebhook", 'String'> readonly events: FieldRef<"AgentWebhook", 'String[]'> readonly created_at: FieldRef<"AgentWebhook", 'DateTime'> readonly updated_at: FieldRef<"AgentWebhook", 'DateTime'> } // Custom InputTypes /** * AgentWebhook findUnique */ export type AgentWebhookFindUniqueArgs = { /** * Select specific fields to fetch from the AgentWebhook */ select?: AgentWebhookSelect | null /** * Omit specific fields from the AgentWebhook */ omit?: AgentWebhookOmit | null /** * Filter, which AgentWebhook to fetch. */ where: AgentWebhookWhereUniqueInput } /** * AgentWebhook findUniqueOrThrow */ export type AgentWebhookFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AgentWebhook */ select?: AgentWebhookSelect | null /** * Omit specific fields from the AgentWebhook */ omit?: AgentWebhookOmit | null /** * Filter, which AgentWebhook to fetch. */ where: AgentWebhookWhereUniqueInput } /** * AgentWebhook findFirst */ export type AgentWebhookFindFirstArgs = { /** * Select specific fields to fetch from the AgentWebhook */ select?: AgentWebhookSelect | null /** * Omit specific fields from the AgentWebhook */ omit?: AgentWebhookOmit | null /** * Filter, which AgentWebhook to fetch. */ where?: AgentWebhookWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentWebhooks to fetch. */ orderBy?: AgentWebhookOrderByWithRelationInput | AgentWebhookOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AgentWebhooks. */ cursor?: AgentWebhookWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentWebhooks 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` AgentWebhooks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AgentWebhooks. */ distinct?: AgentWebhookScalarFieldEnum | AgentWebhookScalarFieldEnum[] } /** * AgentWebhook findFirstOrThrow */ export type AgentWebhookFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AgentWebhook */ select?: AgentWebhookSelect | null /** * Omit specific fields from the AgentWebhook */ omit?: AgentWebhookOmit | null /** * Filter, which AgentWebhook to fetch. */ where?: AgentWebhookWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentWebhooks to fetch. */ orderBy?: AgentWebhookOrderByWithRelationInput | AgentWebhookOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AgentWebhooks. */ cursor?: AgentWebhookWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentWebhooks 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` AgentWebhooks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AgentWebhooks. */ distinct?: AgentWebhookScalarFieldEnum | AgentWebhookScalarFieldEnum[] } /** * AgentWebhook findMany */ export type AgentWebhookFindManyArgs = { /** * Select specific fields to fetch from the AgentWebhook */ select?: AgentWebhookSelect | null /** * Omit specific fields from the AgentWebhook */ omit?: AgentWebhookOmit | null /** * Filter, which AgentWebhooks to fetch. */ where?: AgentWebhookWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentWebhooks to fetch. */ orderBy?: AgentWebhookOrderByWithRelationInput | AgentWebhookOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AgentWebhooks. */ cursor?: AgentWebhookWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentWebhooks 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` AgentWebhooks. */ skip?: number distinct?: AgentWebhookScalarFieldEnum | AgentWebhookScalarFieldEnum[] } /** * AgentWebhook create */ export type AgentWebhookCreateArgs = { /** * Select specific fields to fetch from the AgentWebhook */ select?: AgentWebhookSelect | null /** * Omit specific fields from the AgentWebhook */ omit?: AgentWebhookOmit | null /** * The data needed to create a AgentWebhook. */ data: XOR } /** * AgentWebhook createMany */ export type AgentWebhookCreateManyArgs = { /** * The data used to create many AgentWebhooks. */ data: AgentWebhookCreateManyInput | AgentWebhookCreateManyInput[] skipDuplicates?: boolean } /** * AgentWebhook createManyAndReturn */ export type AgentWebhookCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AgentWebhook */ select?: AgentWebhookSelectCreateManyAndReturn | null /** * Omit specific fields from the AgentWebhook */ omit?: AgentWebhookOmit | null /** * The data used to create many AgentWebhooks. */ data: AgentWebhookCreateManyInput | AgentWebhookCreateManyInput[] skipDuplicates?: boolean } /** * AgentWebhook update */ export type AgentWebhookUpdateArgs = { /** * Select specific fields to fetch from the AgentWebhook */ select?: AgentWebhookSelect | null /** * Omit specific fields from the AgentWebhook */ omit?: AgentWebhookOmit | null /** * The data needed to update a AgentWebhook. */ data: XOR /** * Choose, which AgentWebhook to update. */ where: AgentWebhookWhereUniqueInput } /** * AgentWebhook updateMany */ export type AgentWebhookUpdateManyArgs = { /** * The data used to update AgentWebhooks. */ data: XOR /** * Filter which AgentWebhooks to update */ where?: AgentWebhookWhereInput /** * Limit how many AgentWebhooks to update. */ limit?: number } /** * AgentWebhook updateManyAndReturn */ export type AgentWebhookUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AgentWebhook */ select?: AgentWebhookSelectUpdateManyAndReturn | null /** * Omit specific fields from the AgentWebhook */ omit?: AgentWebhookOmit | null /** * The data used to update AgentWebhooks. */ data: XOR /** * Filter which AgentWebhooks to update */ where?: AgentWebhookWhereInput /** * Limit how many AgentWebhooks to update. */ limit?: number } /** * AgentWebhook upsert */ export type AgentWebhookUpsertArgs = { /** * Select specific fields to fetch from the AgentWebhook */ select?: AgentWebhookSelect | null /** * Omit specific fields from the AgentWebhook */ omit?: AgentWebhookOmit | null /** * The filter to search for the AgentWebhook to update in case it exists. */ where: AgentWebhookWhereUniqueInput /** * In case the AgentWebhook found by the `where` argument doesn't exist, create a new AgentWebhook with this data. */ create: XOR /** * In case the AgentWebhook was found with the provided `where` argument, update it with this data. */ update: XOR } /** * AgentWebhook delete */ export type AgentWebhookDeleteArgs = { /** * Select specific fields to fetch from the AgentWebhook */ select?: AgentWebhookSelect | null /** * Omit specific fields from the AgentWebhook */ omit?: AgentWebhookOmit | null /** * Filter which AgentWebhook to delete. */ where: AgentWebhookWhereUniqueInput } /** * AgentWebhook deleteMany */ export type AgentWebhookDeleteManyArgs = { /** * Filter which AgentWebhooks to delete */ where?: AgentWebhookWhereInput /** * Limit how many AgentWebhooks to delete. */ limit?: number } /** * AgentWebhook without action */ export type AgentWebhookDefaultArgs = { /** * Select specific fields to fetch from the AgentWebhook */ select?: AgentWebhookSelect | null /** * Omit specific fields from the AgentWebhook */ omit?: AgentWebhookOmit | null } /** * Model Arbitration */ export type AggregateArbitration = { _count: ArbitrationCountAggregateOutputType | null _min: ArbitrationMinAggregateOutputType | null _max: ArbitrationMaxAggregateOutputType | null } export type ArbitrationMinAggregateOutputType = { id: string | null task_id: string | null builder_id: string | null evaluator_id: string | null status: string | null builder_evidence: string | null evaluator_reason: string | null winning_party: string | null created_at: Date | null updated_at: Date | null } export type ArbitrationMaxAggregateOutputType = { id: string | null task_id: string | null builder_id: string | null evaluator_id: string | null status: string | null builder_evidence: string | null evaluator_reason: string | null winning_party: string | null created_at: Date | null updated_at: Date | null } export type ArbitrationCountAggregateOutputType = { id: number task_id: number builder_id: number evaluator_id: number status: number builder_evidence: number evaluator_reason: number winning_party: number created_at: number updated_at: number _all: number } export type ArbitrationMinAggregateInputType = { id?: true task_id?: true builder_id?: true evaluator_id?: true status?: true builder_evidence?: true evaluator_reason?: true winning_party?: true created_at?: true updated_at?: true } export type ArbitrationMaxAggregateInputType = { id?: true task_id?: true builder_id?: true evaluator_id?: true status?: true builder_evidence?: true evaluator_reason?: true winning_party?: true created_at?: true updated_at?: true } export type ArbitrationCountAggregateInputType = { id?: true task_id?: true builder_id?: true evaluator_id?: true status?: true builder_evidence?: true evaluator_reason?: true winning_party?: true created_at?: true updated_at?: true _all?: true } export type ArbitrationAggregateArgs = { /** * Filter which Arbitration to aggregate. */ where?: ArbitrationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Arbitrations to fetch. */ orderBy?: ArbitrationOrderByWithRelationInput | ArbitrationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ArbitrationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Arbitrations 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` Arbitrations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Arbitrations **/ _count?: true | ArbitrationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ArbitrationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ArbitrationMaxAggregateInputType } export type GetArbitrationAggregateType = { [P in keyof T & keyof AggregateArbitration]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ArbitrationGroupByArgs = { where?: ArbitrationWhereInput orderBy?: ArbitrationOrderByWithAggregationInput | ArbitrationOrderByWithAggregationInput[] by: ArbitrationScalarFieldEnum[] | ArbitrationScalarFieldEnum having?: ArbitrationScalarWhereWithAggregatesInput take?: number skip?: number _count?: ArbitrationCountAggregateInputType | true _min?: ArbitrationMinAggregateInputType _max?: ArbitrationMaxAggregateInputType } export type ArbitrationGroupByOutputType = { id: string task_id: string builder_id: string evaluator_id: string status: string builder_evidence: string | null evaluator_reason: string | null winning_party: string | null created_at: Date updated_at: Date _count: ArbitrationCountAggregateOutputType | null _min: ArbitrationMinAggregateOutputType | null _max: ArbitrationMaxAggregateOutputType | null } type GetArbitrationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ArbitrationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ArbitrationSelect = $Extensions.GetSelect<{ id?: boolean task_id?: boolean builder_id?: boolean evaluator_id?: boolean status?: boolean builder_evidence?: boolean evaluator_reason?: boolean winning_party?: boolean created_at?: boolean updated_at?: boolean task?: boolean | TaskDefaultArgs builder?: boolean | AgentProfileDefaultArgs evaluator?: boolean | AgentProfileDefaultArgs votes?: boolean | Arbitration$votesArgs slashing_events?: boolean | Arbitration$slashing_eventsArgs _count?: boolean | ArbitrationCountOutputTypeDefaultArgs }, ExtArgs["result"]["arbitration"]> export type ArbitrationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean task_id?: boolean builder_id?: boolean evaluator_id?: boolean status?: boolean builder_evidence?: boolean evaluator_reason?: boolean winning_party?: boolean created_at?: boolean updated_at?: boolean task?: boolean | TaskDefaultArgs builder?: boolean | AgentProfileDefaultArgs evaluator?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["arbitration"]> export type ArbitrationSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean task_id?: boolean builder_id?: boolean evaluator_id?: boolean status?: boolean builder_evidence?: boolean evaluator_reason?: boolean winning_party?: boolean created_at?: boolean updated_at?: boolean task?: boolean | TaskDefaultArgs builder?: boolean | AgentProfileDefaultArgs evaluator?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["arbitration"]> export type ArbitrationSelectScalar = { id?: boolean task_id?: boolean builder_id?: boolean evaluator_id?: boolean status?: boolean builder_evidence?: boolean evaluator_reason?: boolean winning_party?: boolean created_at?: boolean updated_at?: boolean } export type ArbitrationOmit = $Extensions.GetOmit<"id" | "task_id" | "builder_id" | "evaluator_id" | "status" | "builder_evidence" | "evaluator_reason" | "winning_party" | "created_at" | "updated_at", ExtArgs["result"]["arbitration"]> export type ArbitrationInclude = { task?: boolean | TaskDefaultArgs builder?: boolean | AgentProfileDefaultArgs evaluator?: boolean | AgentProfileDefaultArgs votes?: boolean | Arbitration$votesArgs slashing_events?: boolean | Arbitration$slashing_eventsArgs _count?: boolean | ArbitrationCountOutputTypeDefaultArgs } export type ArbitrationIncludeCreateManyAndReturn = { task?: boolean | TaskDefaultArgs builder?: boolean | AgentProfileDefaultArgs evaluator?: boolean | AgentProfileDefaultArgs } export type ArbitrationIncludeUpdateManyAndReturn = { task?: boolean | TaskDefaultArgs builder?: boolean | AgentProfileDefaultArgs evaluator?: boolean | AgentProfileDefaultArgs } export type $ArbitrationPayload = { name: "Arbitration" objects: { task: Prisma.$TaskPayload builder: Prisma.$AgentProfilePayload evaluator: Prisma.$AgentProfilePayload votes: Prisma.$ArbitrationVotePayload[] slashing_events: Prisma.$SlashingEventPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string task_id: string builder_id: string evaluator_id: string status: string builder_evidence: string | null evaluator_reason: string | null winning_party: string | null created_at: Date updated_at: Date }, ExtArgs["result"]["arbitration"]> composites: {} } type ArbitrationGetPayload = $Result.GetResult type ArbitrationCountArgs = Omit & { select?: ArbitrationCountAggregateInputType | true } export interface ArbitrationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Arbitration'], meta: { name: 'Arbitration' } } /** * Find zero or one Arbitration that matches the filter. * @param {ArbitrationFindUniqueArgs} args - Arguments to find a Arbitration * @example * // Get one Arbitration * const arbitration = await prisma.arbitration.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ArbitrationClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Arbitration that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ArbitrationFindUniqueOrThrowArgs} args - Arguments to find a Arbitration * @example * // Get one Arbitration * const arbitration = await prisma.arbitration.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ArbitrationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Arbitration 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 {ArbitrationFindFirstArgs} args - Arguments to find a Arbitration * @example * // Get one Arbitration * const arbitration = await prisma.arbitration.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ArbitrationClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Arbitration 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 {ArbitrationFindFirstOrThrowArgs} args - Arguments to find a Arbitration * @example * // Get one Arbitration * const arbitration = await prisma.arbitration.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ArbitrationClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Arbitrations 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 {ArbitrationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Arbitrations * const arbitrations = await prisma.arbitration.findMany() * * // Get first 10 Arbitrations * const arbitrations = await prisma.arbitration.findMany({ take: 10 }) * * // Only select the `id` * const arbitrationWithIdOnly = await prisma.arbitration.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Arbitration. * @param {ArbitrationCreateArgs} args - Arguments to create a Arbitration. * @example * // Create one Arbitration * const Arbitration = await prisma.arbitration.create({ * data: { * // ... data to create a Arbitration * } * }) * */ create(args: SelectSubset>): Prisma__ArbitrationClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Arbitrations. * @param {ArbitrationCreateManyArgs} args - Arguments to create many Arbitrations. * @example * // Create many Arbitrations * const arbitration = await prisma.arbitration.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Arbitrations and returns the data saved in the database. * @param {ArbitrationCreateManyAndReturnArgs} args - Arguments to create many Arbitrations. * @example * // Create many Arbitrations * const arbitration = await prisma.arbitration.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Arbitrations and only return the `id` * const arbitrationWithIdOnly = await prisma.arbitration.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 Arbitration. * @param {ArbitrationDeleteArgs} args - Arguments to delete one Arbitration. * @example * // Delete one Arbitration * const Arbitration = await prisma.arbitration.delete({ * where: { * // ... filter to delete one Arbitration * } * }) * */ delete(args: SelectSubset>): Prisma__ArbitrationClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Arbitration. * @param {ArbitrationUpdateArgs} args - Arguments to update one Arbitration. * @example * // Update one Arbitration * const arbitration = await prisma.arbitration.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ArbitrationClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Arbitrations. * @param {ArbitrationDeleteManyArgs} args - Arguments to filter Arbitrations to delete. * @example * // Delete a few Arbitrations * const { count } = await prisma.arbitration.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Arbitrations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArbitrationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Arbitrations * const arbitration = await prisma.arbitration.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Arbitrations and returns the data updated in the database. * @param {ArbitrationUpdateManyAndReturnArgs} args - Arguments to update many Arbitrations. * @example * // Update many Arbitrations * const arbitration = await prisma.arbitration.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Arbitrations and only return the `id` * const arbitrationWithIdOnly = await prisma.arbitration.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 Arbitration. * @param {ArbitrationUpsertArgs} args - Arguments to update or create a Arbitration. * @example * // Update or create a Arbitration * const arbitration = await prisma.arbitration.upsert({ * create: { * // ... data to create a Arbitration * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Arbitration we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ArbitrationClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Arbitrations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArbitrationCountArgs} args - Arguments to filter Arbitrations to count. * @example * // Count the number of Arbitrations * const count = await prisma.arbitration.count({ * where: { * // ... the filter for the Arbitrations 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 Arbitration. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArbitrationAggregateArgs} 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 Arbitration. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArbitrationGroupByArgs} 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 ArbitrationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ArbitrationGroupByArgs['orderBy'] } : { orderBy?: ArbitrationGroupByArgs['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 ? GetArbitrationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Arbitration model */ readonly fields: ArbitrationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Arbitration. * 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__ArbitrationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" task = {}>(args?: Subset>): Prisma__TaskClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> builder = {}>(args?: Subset>): Prisma__AgentProfileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> evaluator = {}>(args?: Subset>): Prisma__AgentProfileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> votes = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> slashing_events = {}>(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 Arbitration model */ interface ArbitrationFieldRefs { readonly id: FieldRef<"Arbitration", 'String'> readonly task_id: FieldRef<"Arbitration", 'String'> readonly builder_id: FieldRef<"Arbitration", 'String'> readonly evaluator_id: FieldRef<"Arbitration", 'String'> readonly status: FieldRef<"Arbitration", 'String'> readonly builder_evidence: FieldRef<"Arbitration", 'String'> readonly evaluator_reason: FieldRef<"Arbitration", 'String'> readonly winning_party: FieldRef<"Arbitration", 'String'> readonly created_at: FieldRef<"Arbitration", 'DateTime'> readonly updated_at: FieldRef<"Arbitration", 'DateTime'> } // Custom InputTypes /** * Arbitration findUnique */ export type ArbitrationFindUniqueArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelect | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationInclude | null /** * Filter, which Arbitration to fetch. */ where: ArbitrationWhereUniqueInput } /** * Arbitration findUniqueOrThrow */ export type ArbitrationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelect | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationInclude | null /** * Filter, which Arbitration to fetch. */ where: ArbitrationWhereUniqueInput } /** * Arbitration findFirst */ export type ArbitrationFindFirstArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelect | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationInclude | null /** * Filter, which Arbitration to fetch. */ where?: ArbitrationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Arbitrations to fetch. */ orderBy?: ArbitrationOrderByWithRelationInput | ArbitrationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Arbitrations. */ cursor?: ArbitrationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Arbitrations 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` Arbitrations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Arbitrations. */ distinct?: ArbitrationScalarFieldEnum | ArbitrationScalarFieldEnum[] } /** * Arbitration findFirstOrThrow */ export type ArbitrationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelect | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationInclude | null /** * Filter, which Arbitration to fetch. */ where?: ArbitrationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Arbitrations to fetch. */ orderBy?: ArbitrationOrderByWithRelationInput | ArbitrationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Arbitrations. */ cursor?: ArbitrationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Arbitrations 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` Arbitrations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Arbitrations. */ distinct?: ArbitrationScalarFieldEnum | ArbitrationScalarFieldEnum[] } /** * Arbitration findMany */ export type ArbitrationFindManyArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelect | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationInclude | null /** * Filter, which Arbitrations to fetch. */ where?: ArbitrationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Arbitrations to fetch. */ orderBy?: ArbitrationOrderByWithRelationInput | ArbitrationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Arbitrations. */ cursor?: ArbitrationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Arbitrations 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` Arbitrations. */ skip?: number distinct?: ArbitrationScalarFieldEnum | ArbitrationScalarFieldEnum[] } /** * Arbitration create */ export type ArbitrationCreateArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelect | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationInclude | null /** * The data needed to create a Arbitration. */ data: XOR } /** * Arbitration createMany */ export type ArbitrationCreateManyArgs = { /** * The data used to create many Arbitrations. */ data: ArbitrationCreateManyInput | ArbitrationCreateManyInput[] skipDuplicates?: boolean } /** * Arbitration createManyAndReturn */ export type ArbitrationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelectCreateManyAndReturn | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * The data used to create many Arbitrations. */ data: ArbitrationCreateManyInput | ArbitrationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ArbitrationIncludeCreateManyAndReturn | null } /** * Arbitration update */ export type ArbitrationUpdateArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelect | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationInclude | null /** * The data needed to update a Arbitration. */ data: XOR /** * Choose, which Arbitration to update. */ where: ArbitrationWhereUniqueInput } /** * Arbitration updateMany */ export type ArbitrationUpdateManyArgs = { /** * The data used to update Arbitrations. */ data: XOR /** * Filter which Arbitrations to update */ where?: ArbitrationWhereInput /** * Limit how many Arbitrations to update. */ limit?: number } /** * Arbitration updateManyAndReturn */ export type ArbitrationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelectUpdateManyAndReturn | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * The data used to update Arbitrations. */ data: XOR /** * Filter which Arbitrations to update */ where?: ArbitrationWhereInput /** * Limit how many Arbitrations to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ArbitrationIncludeUpdateManyAndReturn | null } /** * Arbitration upsert */ export type ArbitrationUpsertArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelect | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationInclude | null /** * The filter to search for the Arbitration to update in case it exists. */ where: ArbitrationWhereUniqueInput /** * In case the Arbitration found by the `where` argument doesn't exist, create a new Arbitration with this data. */ create: XOR /** * In case the Arbitration was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Arbitration delete */ export type ArbitrationDeleteArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelect | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationInclude | null /** * Filter which Arbitration to delete. */ where: ArbitrationWhereUniqueInput } /** * Arbitration deleteMany */ export type ArbitrationDeleteManyArgs = { /** * Filter which Arbitrations to delete */ where?: ArbitrationWhereInput /** * Limit how many Arbitrations to delete. */ limit?: number } /** * Arbitration.votes */ export type Arbitration$votesArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelect | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteInclude | null where?: ArbitrationVoteWhereInput orderBy?: ArbitrationVoteOrderByWithRelationInput | ArbitrationVoteOrderByWithRelationInput[] cursor?: ArbitrationVoteWhereUniqueInput take?: number skip?: number distinct?: ArbitrationVoteScalarFieldEnum | ArbitrationVoteScalarFieldEnum[] } /** * Arbitration.slashing_events */ export type Arbitration$slashing_eventsArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelect | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: SlashingEventInclude | null where?: SlashingEventWhereInput orderBy?: SlashingEventOrderByWithRelationInput | SlashingEventOrderByWithRelationInput[] cursor?: SlashingEventWhereUniqueInput take?: number skip?: number distinct?: SlashingEventScalarFieldEnum | SlashingEventScalarFieldEnum[] } /** * Arbitration without action */ export type ArbitrationDefaultArgs = { /** * Select specific fields to fetch from the Arbitration */ select?: ArbitrationSelect | null /** * Omit specific fields from the Arbitration */ omit?: ArbitrationOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationInclude | null } /** * Model ArbitrationVote */ export type AggregateArbitrationVote = { _count: ArbitrationVoteCountAggregateOutputType | null _min: ArbitrationVoteMinAggregateOutputType | null _max: ArbitrationVoteMaxAggregateOutputType | null } export type ArbitrationVoteMinAggregateOutputType = { id: string | null arbitration_id: string | null judge_id: string | null vote_for: string | null reasoning: string | null created_at: Date | null } export type ArbitrationVoteMaxAggregateOutputType = { id: string | null arbitration_id: string | null judge_id: string | null vote_for: string | null reasoning: string | null created_at: Date | null } export type ArbitrationVoteCountAggregateOutputType = { id: number arbitration_id: number judge_id: number vote_for: number reasoning: number created_at: number _all: number } export type ArbitrationVoteMinAggregateInputType = { id?: true arbitration_id?: true judge_id?: true vote_for?: true reasoning?: true created_at?: true } export type ArbitrationVoteMaxAggregateInputType = { id?: true arbitration_id?: true judge_id?: true vote_for?: true reasoning?: true created_at?: true } export type ArbitrationVoteCountAggregateInputType = { id?: true arbitration_id?: true judge_id?: true vote_for?: true reasoning?: true created_at?: true _all?: true } export type ArbitrationVoteAggregateArgs = { /** * Filter which ArbitrationVote to aggregate. */ where?: ArbitrationVoteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ArbitrationVotes to fetch. */ orderBy?: ArbitrationVoteOrderByWithRelationInput | ArbitrationVoteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ArbitrationVoteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ArbitrationVotes 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` ArbitrationVotes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ArbitrationVotes **/ _count?: true | ArbitrationVoteCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ArbitrationVoteMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ArbitrationVoteMaxAggregateInputType } export type GetArbitrationVoteAggregateType = { [P in keyof T & keyof AggregateArbitrationVote]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ArbitrationVoteGroupByArgs = { where?: ArbitrationVoteWhereInput orderBy?: ArbitrationVoteOrderByWithAggregationInput | ArbitrationVoteOrderByWithAggregationInput[] by: ArbitrationVoteScalarFieldEnum[] | ArbitrationVoteScalarFieldEnum having?: ArbitrationVoteScalarWhereWithAggregatesInput take?: number skip?: number _count?: ArbitrationVoteCountAggregateInputType | true _min?: ArbitrationVoteMinAggregateInputType _max?: ArbitrationVoteMaxAggregateInputType } export type ArbitrationVoteGroupByOutputType = { id: string arbitration_id: string judge_id: string vote_for: string reasoning: string | null created_at: Date _count: ArbitrationVoteCountAggregateOutputType | null _min: ArbitrationVoteMinAggregateOutputType | null _max: ArbitrationVoteMaxAggregateOutputType | null } type GetArbitrationVoteGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ArbitrationVoteGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ArbitrationVoteSelect = $Extensions.GetSelect<{ id?: boolean arbitration_id?: boolean judge_id?: boolean vote_for?: boolean reasoning?: boolean created_at?: boolean arbitration?: boolean | ArbitrationDefaultArgs judge?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["arbitrationVote"]> export type ArbitrationVoteSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean arbitration_id?: boolean judge_id?: boolean vote_for?: boolean reasoning?: boolean created_at?: boolean arbitration?: boolean | ArbitrationDefaultArgs judge?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["arbitrationVote"]> export type ArbitrationVoteSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean arbitration_id?: boolean judge_id?: boolean vote_for?: boolean reasoning?: boolean created_at?: boolean arbitration?: boolean | ArbitrationDefaultArgs judge?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["arbitrationVote"]> export type ArbitrationVoteSelectScalar = { id?: boolean arbitration_id?: boolean judge_id?: boolean vote_for?: boolean reasoning?: boolean created_at?: boolean } export type ArbitrationVoteOmit = $Extensions.GetOmit<"id" | "arbitration_id" | "judge_id" | "vote_for" | "reasoning" | "created_at", ExtArgs["result"]["arbitrationVote"]> export type ArbitrationVoteInclude = { arbitration?: boolean | ArbitrationDefaultArgs judge?: boolean | AgentProfileDefaultArgs } export type ArbitrationVoteIncludeCreateManyAndReturn = { arbitration?: boolean | ArbitrationDefaultArgs judge?: boolean | AgentProfileDefaultArgs } export type ArbitrationVoteIncludeUpdateManyAndReturn = { arbitration?: boolean | ArbitrationDefaultArgs judge?: boolean | AgentProfileDefaultArgs } export type $ArbitrationVotePayload = { name: "ArbitrationVote" objects: { arbitration: Prisma.$ArbitrationPayload judge: Prisma.$AgentProfilePayload } scalars: $Extensions.GetPayloadResult<{ id: string arbitration_id: string judge_id: string vote_for: string reasoning: string | null created_at: Date }, ExtArgs["result"]["arbitrationVote"]> composites: {} } type ArbitrationVoteGetPayload = $Result.GetResult type ArbitrationVoteCountArgs = Omit & { select?: ArbitrationVoteCountAggregateInputType | true } export interface ArbitrationVoteDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ArbitrationVote'], meta: { name: 'ArbitrationVote' } } /** * Find zero or one ArbitrationVote that matches the filter. * @param {ArbitrationVoteFindUniqueArgs} args - Arguments to find a ArbitrationVote * @example * // Get one ArbitrationVote * const arbitrationVote = await prisma.arbitrationVote.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ArbitrationVoteClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ArbitrationVote that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ArbitrationVoteFindUniqueOrThrowArgs} args - Arguments to find a ArbitrationVote * @example * // Get one ArbitrationVote * const arbitrationVote = await prisma.arbitrationVote.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ArbitrationVoteClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ArbitrationVote 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 {ArbitrationVoteFindFirstArgs} args - Arguments to find a ArbitrationVote * @example * // Get one ArbitrationVote * const arbitrationVote = await prisma.arbitrationVote.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ArbitrationVoteClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ArbitrationVote 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 {ArbitrationVoteFindFirstOrThrowArgs} args - Arguments to find a ArbitrationVote * @example * // Get one ArbitrationVote * const arbitrationVote = await prisma.arbitrationVote.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ArbitrationVoteClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ArbitrationVotes 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 {ArbitrationVoteFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ArbitrationVotes * const arbitrationVotes = await prisma.arbitrationVote.findMany() * * // Get first 10 ArbitrationVotes * const arbitrationVotes = await prisma.arbitrationVote.findMany({ take: 10 }) * * // Only select the `id` * const arbitrationVoteWithIdOnly = await prisma.arbitrationVote.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a ArbitrationVote. * @param {ArbitrationVoteCreateArgs} args - Arguments to create a ArbitrationVote. * @example * // Create one ArbitrationVote * const ArbitrationVote = await prisma.arbitrationVote.create({ * data: { * // ... data to create a ArbitrationVote * } * }) * */ create(args: SelectSubset>): Prisma__ArbitrationVoteClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ArbitrationVotes. * @param {ArbitrationVoteCreateManyArgs} args - Arguments to create many ArbitrationVotes. * @example * // Create many ArbitrationVotes * const arbitrationVote = await prisma.arbitrationVote.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ArbitrationVotes and returns the data saved in the database. * @param {ArbitrationVoteCreateManyAndReturnArgs} args - Arguments to create many ArbitrationVotes. * @example * // Create many ArbitrationVotes * const arbitrationVote = await prisma.arbitrationVote.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ArbitrationVotes and only return the `id` * const arbitrationVoteWithIdOnly = await prisma.arbitrationVote.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 ArbitrationVote. * @param {ArbitrationVoteDeleteArgs} args - Arguments to delete one ArbitrationVote. * @example * // Delete one ArbitrationVote * const ArbitrationVote = await prisma.arbitrationVote.delete({ * where: { * // ... filter to delete one ArbitrationVote * } * }) * */ delete(args: SelectSubset>): Prisma__ArbitrationVoteClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ArbitrationVote. * @param {ArbitrationVoteUpdateArgs} args - Arguments to update one ArbitrationVote. * @example * // Update one ArbitrationVote * const arbitrationVote = await prisma.arbitrationVote.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ArbitrationVoteClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ArbitrationVotes. * @param {ArbitrationVoteDeleteManyArgs} args - Arguments to filter ArbitrationVotes to delete. * @example * // Delete a few ArbitrationVotes * const { count } = await prisma.arbitrationVote.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ArbitrationVotes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArbitrationVoteUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ArbitrationVotes * const arbitrationVote = await prisma.arbitrationVote.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ArbitrationVotes and returns the data updated in the database. * @param {ArbitrationVoteUpdateManyAndReturnArgs} args - Arguments to update many ArbitrationVotes. * @example * // Update many ArbitrationVotes * const arbitrationVote = await prisma.arbitrationVote.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ArbitrationVotes and only return the `id` * const arbitrationVoteWithIdOnly = await prisma.arbitrationVote.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 ArbitrationVote. * @param {ArbitrationVoteUpsertArgs} args - Arguments to update or create a ArbitrationVote. * @example * // Update or create a ArbitrationVote * const arbitrationVote = await prisma.arbitrationVote.upsert({ * create: { * // ... data to create a ArbitrationVote * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ArbitrationVote we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ArbitrationVoteClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ArbitrationVotes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArbitrationVoteCountArgs} args - Arguments to filter ArbitrationVotes to count. * @example * // Count the number of ArbitrationVotes * const count = await prisma.arbitrationVote.count({ * where: { * // ... the filter for the ArbitrationVotes 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 ArbitrationVote. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArbitrationVoteAggregateArgs} 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 ArbitrationVote. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArbitrationVoteGroupByArgs} 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 ArbitrationVoteGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ArbitrationVoteGroupByArgs['orderBy'] } : { orderBy?: ArbitrationVoteGroupByArgs['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 ? GetArbitrationVoteGroupByPayload : Prisma.PrismaPromise /** * Fields of the ArbitrationVote model */ readonly fields: ArbitrationVoteFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ArbitrationVote. * 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__ArbitrationVoteClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" arbitration = {}>(args?: Subset>): Prisma__ArbitrationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> judge = {}>(args?: Subset>): Prisma__AgentProfileClient<$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 ArbitrationVote model */ interface ArbitrationVoteFieldRefs { readonly id: FieldRef<"ArbitrationVote", 'String'> readonly arbitration_id: FieldRef<"ArbitrationVote", 'String'> readonly judge_id: FieldRef<"ArbitrationVote", 'String'> readonly vote_for: FieldRef<"ArbitrationVote", 'String'> readonly reasoning: FieldRef<"ArbitrationVote", 'String'> readonly created_at: FieldRef<"ArbitrationVote", 'DateTime'> } // Custom InputTypes /** * ArbitrationVote findUnique */ export type ArbitrationVoteFindUniqueArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelect | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteInclude | null /** * Filter, which ArbitrationVote to fetch. */ where: ArbitrationVoteWhereUniqueInput } /** * ArbitrationVote findUniqueOrThrow */ export type ArbitrationVoteFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelect | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteInclude | null /** * Filter, which ArbitrationVote to fetch. */ where: ArbitrationVoteWhereUniqueInput } /** * ArbitrationVote findFirst */ export type ArbitrationVoteFindFirstArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelect | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteInclude | null /** * Filter, which ArbitrationVote to fetch. */ where?: ArbitrationVoteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ArbitrationVotes to fetch. */ orderBy?: ArbitrationVoteOrderByWithRelationInput | ArbitrationVoteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ArbitrationVotes. */ cursor?: ArbitrationVoteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ArbitrationVotes 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` ArbitrationVotes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ArbitrationVotes. */ distinct?: ArbitrationVoteScalarFieldEnum | ArbitrationVoteScalarFieldEnum[] } /** * ArbitrationVote findFirstOrThrow */ export type ArbitrationVoteFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelect | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteInclude | null /** * Filter, which ArbitrationVote to fetch. */ where?: ArbitrationVoteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ArbitrationVotes to fetch. */ orderBy?: ArbitrationVoteOrderByWithRelationInput | ArbitrationVoteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ArbitrationVotes. */ cursor?: ArbitrationVoteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ArbitrationVotes 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` ArbitrationVotes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ArbitrationVotes. */ distinct?: ArbitrationVoteScalarFieldEnum | ArbitrationVoteScalarFieldEnum[] } /** * ArbitrationVote findMany */ export type ArbitrationVoteFindManyArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelect | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteInclude | null /** * Filter, which ArbitrationVotes to fetch. */ where?: ArbitrationVoteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ArbitrationVotes to fetch. */ orderBy?: ArbitrationVoteOrderByWithRelationInput | ArbitrationVoteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ArbitrationVotes. */ cursor?: ArbitrationVoteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ArbitrationVotes 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` ArbitrationVotes. */ skip?: number distinct?: ArbitrationVoteScalarFieldEnum | ArbitrationVoteScalarFieldEnum[] } /** * ArbitrationVote create */ export type ArbitrationVoteCreateArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelect | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteInclude | null /** * The data needed to create a ArbitrationVote. */ data: XOR } /** * ArbitrationVote createMany */ export type ArbitrationVoteCreateManyArgs = { /** * The data used to create many ArbitrationVotes. */ data: ArbitrationVoteCreateManyInput | ArbitrationVoteCreateManyInput[] skipDuplicates?: boolean } /** * ArbitrationVote createManyAndReturn */ export type ArbitrationVoteCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelectCreateManyAndReturn | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * The data used to create many ArbitrationVotes. */ data: ArbitrationVoteCreateManyInput | ArbitrationVoteCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteIncludeCreateManyAndReturn | null } /** * ArbitrationVote update */ export type ArbitrationVoteUpdateArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelect | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteInclude | null /** * The data needed to update a ArbitrationVote. */ data: XOR /** * Choose, which ArbitrationVote to update. */ where: ArbitrationVoteWhereUniqueInput } /** * ArbitrationVote updateMany */ export type ArbitrationVoteUpdateManyArgs = { /** * The data used to update ArbitrationVotes. */ data: XOR /** * Filter which ArbitrationVotes to update */ where?: ArbitrationVoteWhereInput /** * Limit how many ArbitrationVotes to update. */ limit?: number } /** * ArbitrationVote updateManyAndReturn */ export type ArbitrationVoteUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelectUpdateManyAndReturn | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * The data used to update ArbitrationVotes. */ data: XOR /** * Filter which ArbitrationVotes to update */ where?: ArbitrationVoteWhereInput /** * Limit how many ArbitrationVotes to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteIncludeUpdateManyAndReturn | null } /** * ArbitrationVote upsert */ export type ArbitrationVoteUpsertArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelect | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteInclude | null /** * The filter to search for the ArbitrationVote to update in case it exists. */ where: ArbitrationVoteWhereUniqueInput /** * In case the ArbitrationVote found by the `where` argument doesn't exist, create a new ArbitrationVote with this data. */ create: XOR /** * In case the ArbitrationVote was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ArbitrationVote delete */ export type ArbitrationVoteDeleteArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelect | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteInclude | null /** * Filter which ArbitrationVote to delete. */ where: ArbitrationVoteWhereUniqueInput } /** * ArbitrationVote deleteMany */ export type ArbitrationVoteDeleteManyArgs = { /** * Filter which ArbitrationVotes to delete */ where?: ArbitrationVoteWhereInput /** * Limit how many ArbitrationVotes to delete. */ limit?: number } /** * ArbitrationVote without action */ export type ArbitrationVoteDefaultArgs = { /** * Select specific fields to fetch from the ArbitrationVote */ select?: ArbitrationVoteSelect | null /** * Omit specific fields from the ArbitrationVote */ omit?: ArbitrationVoteOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArbitrationVoteInclude | null } /** * Model AgentProject */ export type AggregateAgentProject = { _count: AgentProjectCountAggregateOutputType | null _avg: AgentProjectAvgAggregateOutputType | null _sum: AgentProjectSumAggregateOutputType | null _min: AgentProjectMinAggregateOutputType | null _max: AgentProjectMaxAggregateOutputType | null } export type AgentProjectAvgAggregateOutputType = { target_raise: number | null total_supply: number | null } export type AgentProjectSumAggregateOutputType = { target_raise: number | null total_supply: number | null } export type AgentProjectMinAggregateOutputType = { id: string | null creator_agent_id: string | null name: string | null ticker: string | null description: string | null whitepaper_url: string | null target_raise: number | null total_supply: number | null status: string | null created_at: Date | null updated_at: Date | null } export type AgentProjectMaxAggregateOutputType = { id: string | null creator_agent_id: string | null name: string | null ticker: string | null description: string | null whitepaper_url: string | null target_raise: number | null total_supply: number | null status: string | null created_at: Date | null updated_at: Date | null } export type AgentProjectCountAggregateOutputType = { id: number creator_agent_id: number name: number ticker: number description: number whitepaper_url: number target_raise: number total_supply: number status: number created_at: number updated_at: number _all: number } export type AgentProjectAvgAggregateInputType = { target_raise?: true total_supply?: true } export type AgentProjectSumAggregateInputType = { target_raise?: true total_supply?: true } export type AgentProjectMinAggregateInputType = { id?: true creator_agent_id?: true name?: true ticker?: true description?: true whitepaper_url?: true target_raise?: true total_supply?: true status?: true created_at?: true updated_at?: true } export type AgentProjectMaxAggregateInputType = { id?: true creator_agent_id?: true name?: true ticker?: true description?: true whitepaper_url?: true target_raise?: true total_supply?: true status?: true created_at?: true updated_at?: true } export type AgentProjectCountAggregateInputType = { id?: true creator_agent_id?: true name?: true ticker?: true description?: true whitepaper_url?: true target_raise?: true total_supply?: true status?: true created_at?: true updated_at?: true _all?: true } export type AgentProjectAggregateArgs = { /** * Filter which AgentProject to aggregate. */ where?: AgentProjectWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentProjects to fetch. */ orderBy?: AgentProjectOrderByWithRelationInput | AgentProjectOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AgentProjectWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentProjects 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` AgentProjects. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AgentProjects **/ _count?: true | AgentProjectCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AgentProjectAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AgentProjectSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AgentProjectMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AgentProjectMaxAggregateInputType } export type GetAgentProjectAggregateType = { [P in keyof T & keyof AggregateAgentProject]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AgentProjectGroupByArgs = { where?: AgentProjectWhereInput orderBy?: AgentProjectOrderByWithAggregationInput | AgentProjectOrderByWithAggregationInput[] by: AgentProjectScalarFieldEnum[] | AgentProjectScalarFieldEnum having?: AgentProjectScalarWhereWithAggregatesInput take?: number skip?: number _count?: AgentProjectCountAggregateInputType | true _avg?: AgentProjectAvgAggregateInputType _sum?: AgentProjectSumAggregateInputType _min?: AgentProjectMinAggregateInputType _max?: AgentProjectMaxAggregateInputType } export type AgentProjectGroupByOutputType = { id: string creator_agent_id: string name: string ticker: string description: string whitepaper_url: string | null target_raise: number total_supply: number status: string created_at: Date updated_at: Date _count: AgentProjectCountAggregateOutputType | null _avg: AgentProjectAvgAggregateOutputType | null _sum: AgentProjectSumAggregateOutputType | null _min: AgentProjectMinAggregateOutputType | null _max: AgentProjectMaxAggregateOutputType | null } type GetAgentProjectGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AgentProjectGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AgentProjectSelect = $Extensions.GetSelect<{ id?: boolean creator_agent_id?: boolean name?: boolean ticker?: boolean description?: boolean whitepaper_url?: boolean target_raise?: boolean total_supply?: boolean status?: boolean created_at?: boolean updated_at?: boolean creator?: boolean | AgentProfileDefaultArgs token_sales?: boolean | AgentProject$token_salesArgs _count?: boolean | AgentProjectCountOutputTypeDefaultArgs }, ExtArgs["result"]["agentProject"]> export type AgentProjectSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean creator_agent_id?: boolean name?: boolean ticker?: boolean description?: boolean whitepaper_url?: boolean target_raise?: boolean total_supply?: boolean status?: boolean created_at?: boolean updated_at?: boolean creator?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["agentProject"]> export type AgentProjectSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean creator_agent_id?: boolean name?: boolean ticker?: boolean description?: boolean whitepaper_url?: boolean target_raise?: boolean total_supply?: boolean status?: boolean created_at?: boolean updated_at?: boolean creator?: boolean | AgentProfileDefaultArgs }, ExtArgs["result"]["agentProject"]> export type AgentProjectSelectScalar = { id?: boolean creator_agent_id?: boolean name?: boolean ticker?: boolean description?: boolean whitepaper_url?: boolean target_raise?: boolean total_supply?: boolean status?: boolean created_at?: boolean updated_at?: boolean } export type AgentProjectOmit = $Extensions.GetOmit<"id" | "creator_agent_id" | "name" | "ticker" | "description" | "whitepaper_url" | "target_raise" | "total_supply" | "status" | "created_at" | "updated_at", ExtArgs["result"]["agentProject"]> export type AgentProjectInclude = { creator?: boolean | AgentProfileDefaultArgs token_sales?: boolean | AgentProject$token_salesArgs _count?: boolean | AgentProjectCountOutputTypeDefaultArgs } export type AgentProjectIncludeCreateManyAndReturn = { creator?: boolean | AgentProfileDefaultArgs } export type AgentProjectIncludeUpdateManyAndReturn = { creator?: boolean | AgentProfileDefaultArgs } export type $AgentProjectPayload = { name: "AgentProject" objects: { creator: Prisma.$AgentProfilePayload token_sales: Prisma.$TokenSalePayload[] } scalars: $Extensions.GetPayloadResult<{ id: string creator_agent_id: string name: string ticker: string description: string whitepaper_url: string | null target_raise: number total_supply: number status: string created_at: Date updated_at: Date }, ExtArgs["result"]["agentProject"]> composites: {} } type AgentProjectGetPayload = $Result.GetResult type AgentProjectCountArgs = Omit & { select?: AgentProjectCountAggregateInputType | true } export interface AgentProjectDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AgentProject'], meta: { name: 'AgentProject' } } /** * Find zero or one AgentProject that matches the filter. * @param {AgentProjectFindUniqueArgs} args - Arguments to find a AgentProject * @example * // Get one AgentProject * const agentProject = await prisma.agentProject.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AgentProjectClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AgentProject that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AgentProjectFindUniqueOrThrowArgs} args - Arguments to find a AgentProject * @example * // Get one AgentProject * const agentProject = await prisma.agentProject.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AgentProjectClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AgentProject 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 {AgentProjectFindFirstArgs} args - Arguments to find a AgentProject * @example * // Get one AgentProject * const agentProject = await prisma.agentProject.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AgentProjectClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AgentProject 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 {AgentProjectFindFirstOrThrowArgs} args - Arguments to find a AgentProject * @example * // Get one AgentProject * const agentProject = await prisma.agentProject.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AgentProjectClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AgentProjects 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 {AgentProjectFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AgentProjects * const agentProjects = await prisma.agentProject.findMany() * * // Get first 10 AgentProjects * const agentProjects = await prisma.agentProject.findMany({ take: 10 }) * * // Only select the `id` * const agentProjectWithIdOnly = await prisma.agentProject.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a AgentProject. * @param {AgentProjectCreateArgs} args - Arguments to create a AgentProject. * @example * // Create one AgentProject * const AgentProject = await prisma.agentProject.create({ * data: { * // ... data to create a AgentProject * } * }) * */ create(args: SelectSubset>): Prisma__AgentProjectClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AgentProjects. * @param {AgentProjectCreateManyArgs} args - Arguments to create many AgentProjects. * @example * // Create many AgentProjects * const agentProject = await prisma.agentProject.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many AgentProjects and returns the data saved in the database. * @param {AgentProjectCreateManyAndReturnArgs} args - Arguments to create many AgentProjects. * @example * // Create many AgentProjects * const agentProject = await prisma.agentProject.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AgentProjects and only return the `id` * const agentProjectWithIdOnly = await prisma.agentProject.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 AgentProject. * @param {AgentProjectDeleteArgs} args - Arguments to delete one AgentProject. * @example * // Delete one AgentProject * const AgentProject = await prisma.agentProject.delete({ * where: { * // ... filter to delete one AgentProject * } * }) * */ delete(args: SelectSubset>): Prisma__AgentProjectClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AgentProject. * @param {AgentProjectUpdateArgs} args - Arguments to update one AgentProject. * @example * // Update one AgentProject * const agentProject = await prisma.agentProject.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AgentProjectClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AgentProjects. * @param {AgentProjectDeleteManyArgs} args - Arguments to filter AgentProjects to delete. * @example * // Delete a few AgentProjects * const { count } = await prisma.agentProject.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AgentProjects. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentProjectUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AgentProjects * const agentProject = await prisma.agentProject.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AgentProjects and returns the data updated in the database. * @param {AgentProjectUpdateManyAndReturnArgs} args - Arguments to update many AgentProjects. * @example * // Update many AgentProjects * const agentProject = await prisma.agentProject.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AgentProjects and only return the `id` * const agentProjectWithIdOnly = await prisma.agentProject.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 AgentProject. * @param {AgentProjectUpsertArgs} args - Arguments to update or create a AgentProject. * @example * // Update or create a AgentProject * const agentProject = await prisma.agentProject.upsert({ * create: { * // ... data to create a AgentProject * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AgentProject we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AgentProjectClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AgentProjects. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentProjectCountArgs} args - Arguments to filter AgentProjects to count. * @example * // Count the number of AgentProjects * const count = await prisma.agentProject.count({ * where: { * // ... the filter for the AgentProjects 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 AgentProject. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentProjectAggregateArgs} 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 AgentProject. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentProjectGroupByArgs} 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 AgentProjectGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AgentProjectGroupByArgs['orderBy'] } : { orderBy?: AgentProjectGroupByArgs['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 ? GetAgentProjectGroupByPayload : Prisma.PrismaPromise /** * Fields of the AgentProject model */ readonly fields: AgentProjectFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AgentProject. * 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__AgentProjectClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" creator = {}>(args?: Subset>): Prisma__AgentProfileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> token_sales = {}>(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 AgentProject model */ interface AgentProjectFieldRefs { readonly id: FieldRef<"AgentProject", 'String'> readonly creator_agent_id: FieldRef<"AgentProject", 'String'> readonly name: FieldRef<"AgentProject", 'String'> readonly ticker: FieldRef<"AgentProject", 'String'> readonly description: FieldRef<"AgentProject", 'String'> readonly whitepaper_url: FieldRef<"AgentProject", 'String'> readonly target_raise: FieldRef<"AgentProject", 'Int'> readonly total_supply: FieldRef<"AgentProject", 'Int'> readonly status: FieldRef<"AgentProject", 'String'> readonly created_at: FieldRef<"AgentProject", 'DateTime'> readonly updated_at: FieldRef<"AgentProject", 'DateTime'> } // Custom InputTypes /** * AgentProject findUnique */ export type AgentProjectFindUniqueArgs = { /** * Select specific fields to fetch from the AgentProject */ select?: AgentProjectSelect | null /** * Omit specific fields from the AgentProject */ omit?: AgentProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProjectInclude | null /** * Filter, which AgentProject to fetch. */ where: AgentProjectWhereUniqueInput } /** * AgentProject findUniqueOrThrow */ export type AgentProjectFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AgentProject */ select?: AgentProjectSelect | null /** * Omit specific fields from the AgentProject */ omit?: AgentProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProjectInclude | null /** * Filter, which AgentProject to fetch. */ where: AgentProjectWhereUniqueInput } /** * AgentProject findFirst */ export type AgentProjectFindFirstArgs = { /** * Select specific fields to fetch from the AgentProject */ select?: AgentProjectSelect | null /** * Omit specific fields from the AgentProject */ omit?: AgentProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProjectInclude | null /** * Filter, which AgentProject to fetch. */ where?: AgentProjectWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentProjects to fetch. */ orderBy?: AgentProjectOrderByWithRelationInput | AgentProjectOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AgentProjects. */ cursor?: AgentProjectWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentProjects 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` AgentProjects. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AgentProjects. */ distinct?: AgentProjectScalarFieldEnum | AgentProjectScalarFieldEnum[] } /** * AgentProject findFirstOrThrow */ export type AgentProjectFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AgentProject */ select?: AgentProjectSelect | null /** * Omit specific fields from the AgentProject */ omit?: AgentProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProjectInclude | null /** * Filter, which AgentProject to fetch. */ where?: AgentProjectWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentProjects to fetch. */ orderBy?: AgentProjectOrderByWithRelationInput | AgentProjectOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AgentProjects. */ cursor?: AgentProjectWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentProjects 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` AgentProjects. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AgentProjects. */ distinct?: AgentProjectScalarFieldEnum | AgentProjectScalarFieldEnum[] } /** * AgentProject findMany */ export type AgentProjectFindManyArgs = { /** * Select specific fields to fetch from the AgentProject */ select?: AgentProjectSelect | null /** * Omit specific fields from the AgentProject */ omit?: AgentProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProjectInclude | null /** * Filter, which AgentProjects to fetch. */ where?: AgentProjectWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentProjects to fetch. */ orderBy?: AgentProjectOrderByWithRelationInput | AgentProjectOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AgentProjects. */ cursor?: AgentProjectWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentProjects 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` AgentProjects. */ skip?: number distinct?: AgentProjectScalarFieldEnum | AgentProjectScalarFieldEnum[] } /** * AgentProject create */ export type AgentProjectCreateArgs = { /** * Select specific fields to fetch from the AgentProject */ select?: AgentProjectSelect | null /** * Omit specific fields from the AgentProject */ omit?: AgentProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProjectInclude | null /** * The data needed to create a AgentProject. */ data: XOR } /** * AgentProject createMany */ export type AgentProjectCreateManyArgs = { /** * The data used to create many AgentProjects. */ data: AgentProjectCreateManyInput | AgentProjectCreateManyInput[] skipDuplicates?: boolean } /** * AgentProject createManyAndReturn */ export type AgentProjectCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AgentProject */ select?: AgentProjectSelectCreateManyAndReturn | null /** * Omit specific fields from the AgentProject */ omit?: AgentProjectOmit | null /** * The data used to create many AgentProjects. */ data: AgentProjectCreateManyInput | AgentProjectCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: AgentProjectIncludeCreateManyAndReturn | null } /** * AgentProject update */ export type AgentProjectUpdateArgs = { /** * Select specific fields to fetch from the AgentProject */ select?: AgentProjectSelect | null /** * Omit specific fields from the AgentProject */ omit?: AgentProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProjectInclude | null /** * The data needed to update a AgentProject. */ data: XOR /** * Choose, which AgentProject to update. */ where: AgentProjectWhereUniqueInput } /** * AgentProject updateMany */ export type AgentProjectUpdateManyArgs = { /** * The data used to update AgentProjects. */ data: XOR /** * Filter which AgentProjects to update */ where?: AgentProjectWhereInput /** * Limit how many AgentProjects to update. */ limit?: number } /** * AgentProject updateManyAndReturn */ export type AgentProjectUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AgentProject */ select?: AgentProjectSelectUpdateManyAndReturn | null /** * Omit specific fields from the AgentProject */ omit?: AgentProjectOmit | null /** * The data used to update AgentProjects. */ data: XOR /** * Filter which AgentProjects to update */ where?: AgentProjectWhereInput /** * Limit how many AgentProjects to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: AgentProjectIncludeUpdateManyAndReturn | null } /** * AgentProject upsert */ export type AgentProjectUpsertArgs = { /** * Select specific fields to fetch from the AgentProject */ select?: AgentProjectSelect | null /** * Omit specific fields from the AgentProject */ omit?: AgentProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProjectInclude | null /** * The filter to search for the AgentProject to update in case it exists. */ where: AgentProjectWhereUniqueInput /** * In case the AgentProject found by the `where` argument doesn't exist, create a new AgentProject with this data. */ create: XOR /** * In case the AgentProject was found with the provided `where` argument, update it with this data. */ update: XOR } /** * AgentProject delete */ export type AgentProjectDeleteArgs = { /** * Select specific fields to fetch from the AgentProject */ select?: AgentProjectSelect | null /** * Omit specific fields from the AgentProject */ omit?: AgentProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProjectInclude | null /** * Filter which AgentProject to delete. */ where: AgentProjectWhereUniqueInput } /** * AgentProject deleteMany */ export type AgentProjectDeleteManyArgs = { /** * Filter which AgentProjects to delete */ where?: AgentProjectWhereInput /** * Limit how many AgentProjects to delete. */ limit?: number } /** * AgentProject.token_sales */ export type AgentProject$token_salesArgs = { /** * Select specific fields to fetch from the TokenSale */ select?: TokenSaleSelect | null /** * Omit specific fields from the TokenSale */ omit?: TokenSaleOmit | null /** * Choose, which related nodes to fetch as well */ include?: TokenSaleInclude | null where?: TokenSaleWhereInput orderBy?: TokenSaleOrderByWithRelationInput | TokenSaleOrderByWithRelationInput[] cursor?: TokenSaleWhereUniqueInput take?: number skip?: number distinct?: TokenSaleScalarFieldEnum | TokenSaleScalarFieldEnum[] } /** * AgentProject without action */ export type AgentProjectDefaultArgs = { /** * Select specific fields to fetch from the AgentProject */ select?: AgentProjectSelect | null /** * Omit specific fields from the AgentProject */ omit?: AgentProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: AgentProjectInclude | null } /** * Model TokenSale */ export type AggregateTokenSale = { _count: TokenSaleCountAggregateOutputType | null _avg: TokenSaleAvgAggregateOutputType | null _sum: TokenSaleSumAggregateOutputType | null _min: TokenSaleMinAggregateOutputType | null _max: TokenSaleMaxAggregateOutputType | null } export type TokenSaleAvgAggregateOutputType = { usdc_amount: number | null tokens_received: number | null price_per_token: number | null } export type TokenSaleSumAggregateOutputType = { usdc_amount: number | null tokens_received: number | null price_per_token: number | null } export type TokenSaleMinAggregateOutputType = { id: string | null project_id: string | null investor_id: string | null usdc_amount: number | null tokens_received: number | null price_per_token: number | null created_at: Date | null } export type TokenSaleMaxAggregateOutputType = { id: string | null project_id: string | null investor_id: string | null usdc_amount: number | null tokens_received: number | null price_per_token: number | null created_at: Date | null } export type TokenSaleCountAggregateOutputType = { id: number project_id: number investor_id: number usdc_amount: number tokens_received: number price_per_token: number created_at: number _all: number } export type TokenSaleAvgAggregateInputType = { usdc_amount?: true tokens_received?: true price_per_token?: true } export type TokenSaleSumAggregateInputType = { usdc_amount?: true tokens_received?: true price_per_token?: true } export type TokenSaleMinAggregateInputType = { id?: true project_id?: true investor_id?: true usdc_amount?: true tokens_received?: true price_per_token?: true created_at?: true } export type TokenSaleMaxAggregateInputType = { id?: true project_id?: true investor_id?: true usdc_amount?: true tokens_received?: true price_per_token?: true created_at?: true } export type TokenSaleCountAggregateInputType = { id?: true project_id?: true investor_id?: true usdc_amount?: true tokens_received?: true price_per_token?: true created_at?: true _all?: true } export type TokenSaleAggregateArgs = { /** * Filter which TokenSale to aggregate. */ where?: TokenSaleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TokenSales to fetch. */ orderBy?: TokenSaleOrderByWithRelationInput | TokenSaleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: TokenSaleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TokenSales 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` TokenSales. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned TokenSales **/ _count?: true | TokenSaleCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TokenSaleAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TokenSaleSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TokenSaleMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TokenSaleMaxAggregateInputType } export type GetTokenSaleAggregateType = { [P in keyof T & keyof AggregateTokenSale]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type TokenSaleGroupByArgs = { where?: TokenSaleWhereInput orderBy?: TokenSaleOrderByWithAggregationInput | TokenSaleOrderByWithAggregationInput[] by: TokenSaleScalarFieldEnum[] | TokenSaleScalarFieldEnum having?: TokenSaleScalarWhereWithAggregatesInput take?: number skip?: number _count?: TokenSaleCountAggregateInputType | true _avg?: TokenSaleAvgAggregateInputType _sum?: TokenSaleSumAggregateInputType _min?: TokenSaleMinAggregateInputType _max?: TokenSaleMaxAggregateInputType } export type TokenSaleGroupByOutputType = { id: string project_id: string investor_id: string usdc_amount: number tokens_received: number price_per_token: number created_at: Date _count: TokenSaleCountAggregateOutputType | null _avg: TokenSaleAvgAggregateOutputType | null _sum: TokenSaleSumAggregateOutputType | null _min: TokenSaleMinAggregateOutputType | null _max: TokenSaleMaxAggregateOutputType | null } type GetTokenSaleGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof TokenSaleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type TokenSaleSelect = $Extensions.GetSelect<{ id?: boolean project_id?: boolean investor_id?: boolean usdc_amount?: boolean tokens_received?: boolean price_per_token?: boolean created_at?: boolean project?: boolean | AgentProjectDefaultArgs }, ExtArgs["result"]["tokenSale"]> export type TokenSaleSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean project_id?: boolean investor_id?: boolean usdc_amount?: boolean tokens_received?: boolean price_per_token?: boolean created_at?: boolean project?: boolean | AgentProjectDefaultArgs }, ExtArgs["result"]["tokenSale"]> export type TokenSaleSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean project_id?: boolean investor_id?: boolean usdc_amount?: boolean tokens_received?: boolean price_per_token?: boolean created_at?: boolean project?: boolean | AgentProjectDefaultArgs }, ExtArgs["result"]["tokenSale"]> export type TokenSaleSelectScalar = { id?: boolean project_id?: boolean investor_id?: boolean usdc_amount?: boolean tokens_received?: boolean price_per_token?: boolean created_at?: boolean } export type TokenSaleOmit = $Extensions.GetOmit<"id" | "project_id" | "investor_id" | "usdc_amount" | "tokens_received" | "price_per_token" | "created_at", ExtArgs["result"]["tokenSale"]> export type TokenSaleInclude = { project?: boolean | AgentProjectDefaultArgs } export type TokenSaleIncludeCreateManyAndReturn = { project?: boolean | AgentProjectDefaultArgs } export type TokenSaleIncludeUpdateManyAndReturn = { project?: boolean | AgentProjectDefaultArgs } export type $TokenSalePayload = { name: "TokenSale" objects: { project: Prisma.$AgentProjectPayload } scalars: $Extensions.GetPayloadResult<{ id: string project_id: string investor_id: string usdc_amount: number tokens_received: number price_per_token: number created_at: Date }, ExtArgs["result"]["tokenSale"]> composites: {} } type TokenSaleGetPayload = $Result.GetResult type TokenSaleCountArgs = Omit & { select?: TokenSaleCountAggregateInputType | true } export interface TokenSaleDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['TokenSale'], meta: { name: 'TokenSale' } } /** * Find zero or one TokenSale that matches the filter. * @param {TokenSaleFindUniqueArgs} args - Arguments to find a TokenSale * @example * // Get one TokenSale * const tokenSale = await prisma.tokenSale.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__TokenSaleClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one TokenSale that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TokenSaleFindUniqueOrThrowArgs} args - Arguments to find a TokenSale * @example * // Get one TokenSale * const tokenSale = await prisma.tokenSale.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__TokenSaleClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first TokenSale 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 {TokenSaleFindFirstArgs} args - Arguments to find a TokenSale * @example * // Get one TokenSale * const tokenSale = await prisma.tokenSale.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__TokenSaleClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first TokenSale 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 {TokenSaleFindFirstOrThrowArgs} args - Arguments to find a TokenSale * @example * // Get one TokenSale * const tokenSale = await prisma.tokenSale.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__TokenSaleClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more TokenSales 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 {TokenSaleFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all TokenSales * const tokenSales = await prisma.tokenSale.findMany() * * // Get first 10 TokenSales * const tokenSales = await prisma.tokenSale.findMany({ take: 10 }) * * // Only select the `id` * const tokenSaleWithIdOnly = await prisma.tokenSale.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a TokenSale. * @param {TokenSaleCreateArgs} args - Arguments to create a TokenSale. * @example * // Create one TokenSale * const TokenSale = await prisma.tokenSale.create({ * data: { * // ... data to create a TokenSale * } * }) * */ create(args: SelectSubset>): Prisma__TokenSaleClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many TokenSales. * @param {TokenSaleCreateManyArgs} args - Arguments to create many TokenSales. * @example * // Create many TokenSales * const tokenSale = await prisma.tokenSale.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many TokenSales and returns the data saved in the database. * @param {TokenSaleCreateManyAndReturnArgs} args - Arguments to create many TokenSales. * @example * // Create many TokenSales * const tokenSale = await prisma.tokenSale.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many TokenSales and only return the `id` * const tokenSaleWithIdOnly = await prisma.tokenSale.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 TokenSale. * @param {TokenSaleDeleteArgs} args - Arguments to delete one TokenSale. * @example * // Delete one TokenSale * const TokenSale = await prisma.tokenSale.delete({ * where: { * // ... filter to delete one TokenSale * } * }) * */ delete(args: SelectSubset>): Prisma__TokenSaleClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one TokenSale. * @param {TokenSaleUpdateArgs} args - Arguments to update one TokenSale. * @example * // Update one TokenSale * const tokenSale = await prisma.tokenSale.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__TokenSaleClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more TokenSales. * @param {TokenSaleDeleteManyArgs} args - Arguments to filter TokenSales to delete. * @example * // Delete a few TokenSales * const { count } = await prisma.tokenSale.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TokenSales. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TokenSaleUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many TokenSales * const tokenSale = await prisma.tokenSale.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TokenSales and returns the data updated in the database. * @param {TokenSaleUpdateManyAndReturnArgs} args - Arguments to update many TokenSales. * @example * // Update many TokenSales * const tokenSale = await prisma.tokenSale.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more TokenSales and only return the `id` * const tokenSaleWithIdOnly = await prisma.tokenSale.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 TokenSale. * @param {TokenSaleUpsertArgs} args - Arguments to update or create a TokenSale. * @example * // Update or create a TokenSale * const tokenSale = await prisma.tokenSale.upsert({ * create: { * // ... data to create a TokenSale * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the TokenSale we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__TokenSaleClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of TokenSales. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TokenSaleCountArgs} args - Arguments to filter TokenSales to count. * @example * // Count the number of TokenSales * const count = await prisma.tokenSale.count({ * where: { * // ... the filter for the TokenSales 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 TokenSale. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TokenSaleAggregateArgs} 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 TokenSale. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TokenSaleGroupByArgs} 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 TokenSaleGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: TokenSaleGroupByArgs['orderBy'] } : { orderBy?: TokenSaleGroupByArgs['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 ? GetTokenSaleGroupByPayload : Prisma.PrismaPromise /** * Fields of the TokenSale model */ readonly fields: TokenSaleFieldRefs; } /** * The delegate class that acts as a "Promise-like" for TokenSale. * 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__TokenSaleClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" project = {}>(args?: Subset>): Prisma__AgentProjectClient<$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 TokenSale model */ interface TokenSaleFieldRefs { readonly id: FieldRef<"TokenSale", 'String'> readonly project_id: FieldRef<"TokenSale", 'String'> readonly investor_id: FieldRef<"TokenSale", 'String'> readonly usdc_amount: FieldRef<"TokenSale", 'Int'> readonly tokens_received: FieldRef<"TokenSale", 'Float'> readonly price_per_token: FieldRef<"TokenSale", 'Float'> readonly created_at: FieldRef<"TokenSale", 'DateTime'> } // Custom InputTypes /** * TokenSale findUnique */ export type TokenSaleFindUniqueArgs = { /** * Select specific fields to fetch from the TokenSale */ select?: TokenSaleSelect | null /** * Omit specific fields from the TokenSale */ omit?: TokenSaleOmit | null /** * Choose, which related nodes to fetch as well */ include?: TokenSaleInclude | null /** * Filter, which TokenSale to fetch. */ where: TokenSaleWhereUniqueInput } /** * TokenSale findUniqueOrThrow */ export type TokenSaleFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the TokenSale */ select?: TokenSaleSelect | null /** * Omit specific fields from the TokenSale */ omit?: TokenSaleOmit | null /** * Choose, which related nodes to fetch as well */ include?: TokenSaleInclude | null /** * Filter, which TokenSale to fetch. */ where: TokenSaleWhereUniqueInput } /** * TokenSale findFirst */ export type TokenSaleFindFirstArgs = { /** * Select specific fields to fetch from the TokenSale */ select?: TokenSaleSelect | null /** * Omit specific fields from the TokenSale */ omit?: TokenSaleOmit | null /** * Choose, which related nodes to fetch as well */ include?: TokenSaleInclude | null /** * Filter, which TokenSale to fetch. */ where?: TokenSaleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TokenSales to fetch. */ orderBy?: TokenSaleOrderByWithRelationInput | TokenSaleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TokenSales. */ cursor?: TokenSaleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TokenSales 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` TokenSales. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TokenSales. */ distinct?: TokenSaleScalarFieldEnum | TokenSaleScalarFieldEnum[] } /** * TokenSale findFirstOrThrow */ export type TokenSaleFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the TokenSale */ select?: TokenSaleSelect | null /** * Omit specific fields from the TokenSale */ omit?: TokenSaleOmit | null /** * Choose, which related nodes to fetch as well */ include?: TokenSaleInclude | null /** * Filter, which TokenSale to fetch. */ where?: TokenSaleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TokenSales to fetch. */ orderBy?: TokenSaleOrderByWithRelationInput | TokenSaleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TokenSales. */ cursor?: TokenSaleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TokenSales 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` TokenSales. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TokenSales. */ distinct?: TokenSaleScalarFieldEnum | TokenSaleScalarFieldEnum[] } /** * TokenSale findMany */ export type TokenSaleFindManyArgs = { /** * Select specific fields to fetch from the TokenSale */ select?: TokenSaleSelect | null /** * Omit specific fields from the TokenSale */ omit?: TokenSaleOmit | null /** * Choose, which related nodes to fetch as well */ include?: TokenSaleInclude | null /** * Filter, which TokenSales to fetch. */ where?: TokenSaleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TokenSales to fetch. */ orderBy?: TokenSaleOrderByWithRelationInput | TokenSaleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing TokenSales. */ cursor?: TokenSaleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TokenSales 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` TokenSales. */ skip?: number distinct?: TokenSaleScalarFieldEnum | TokenSaleScalarFieldEnum[] } /** * TokenSale create */ export type TokenSaleCreateArgs = { /** * Select specific fields to fetch from the TokenSale */ select?: TokenSaleSelect | null /** * Omit specific fields from the TokenSale */ omit?: TokenSaleOmit | null /** * Choose, which related nodes to fetch as well */ include?: TokenSaleInclude | null /** * The data needed to create a TokenSale. */ data: XOR } /** * TokenSale createMany */ export type TokenSaleCreateManyArgs = { /** * The data used to create many TokenSales. */ data: TokenSaleCreateManyInput | TokenSaleCreateManyInput[] skipDuplicates?: boolean } /** * TokenSale createManyAndReturn */ export type TokenSaleCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the TokenSale */ select?: TokenSaleSelectCreateManyAndReturn | null /** * Omit specific fields from the TokenSale */ omit?: TokenSaleOmit | null /** * The data used to create many TokenSales. */ data: TokenSaleCreateManyInput | TokenSaleCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: TokenSaleIncludeCreateManyAndReturn | null } /** * TokenSale update */ export type TokenSaleUpdateArgs = { /** * Select specific fields to fetch from the TokenSale */ select?: TokenSaleSelect | null /** * Omit specific fields from the TokenSale */ omit?: TokenSaleOmit | null /** * Choose, which related nodes to fetch as well */ include?: TokenSaleInclude | null /** * The data needed to update a TokenSale. */ data: XOR /** * Choose, which TokenSale to update. */ where: TokenSaleWhereUniqueInput } /** * TokenSale updateMany */ export type TokenSaleUpdateManyArgs = { /** * The data used to update TokenSales. */ data: XOR /** * Filter which TokenSales to update */ where?: TokenSaleWhereInput /** * Limit how many TokenSales to update. */ limit?: number } /** * TokenSale updateManyAndReturn */ export type TokenSaleUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the TokenSale */ select?: TokenSaleSelectUpdateManyAndReturn | null /** * Omit specific fields from the TokenSale */ omit?: TokenSaleOmit | null /** * The data used to update TokenSales. */ data: XOR /** * Filter which TokenSales to update */ where?: TokenSaleWhereInput /** * Limit how many TokenSales to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: TokenSaleIncludeUpdateManyAndReturn | null } /** * TokenSale upsert */ export type TokenSaleUpsertArgs = { /** * Select specific fields to fetch from the TokenSale */ select?: TokenSaleSelect | null /** * Omit specific fields from the TokenSale */ omit?: TokenSaleOmit | null /** * Choose, which related nodes to fetch as well */ include?: TokenSaleInclude | null /** * The filter to search for the TokenSale to update in case it exists. */ where: TokenSaleWhereUniqueInput /** * In case the TokenSale found by the `where` argument doesn't exist, create a new TokenSale with this data. */ create: XOR /** * In case the TokenSale was found with the provided `where` argument, update it with this data. */ update: XOR } /** * TokenSale delete */ export type TokenSaleDeleteArgs = { /** * Select specific fields to fetch from the TokenSale */ select?: TokenSaleSelect | null /** * Omit specific fields from the TokenSale */ omit?: TokenSaleOmit | null /** * Choose, which related nodes to fetch as well */ include?: TokenSaleInclude | null /** * Filter which TokenSale to delete. */ where: TokenSaleWhereUniqueInput } /** * TokenSale deleteMany */ export type TokenSaleDeleteManyArgs = { /** * Filter which TokenSales to delete */ where?: TokenSaleWhereInput /** * Limit how many TokenSales to delete. */ limit?: number } /** * TokenSale without action */ export type TokenSaleDefaultArgs = { /** * Select specific fields to fetch from the TokenSale */ select?: TokenSaleSelect | null /** * Omit specific fields from the TokenSale */ omit?: TokenSaleOmit | null /** * Choose, which related nodes to fetch as well */ include?: TokenSaleInclude | null } /** * Model SlashingEvent */ export type AggregateSlashingEvent = { _count: SlashingEventCountAggregateOutputType | null _avg: SlashingEventAvgAggregateOutputType | null _sum: SlashingEventSumAggregateOutputType | null _min: SlashingEventMinAggregateOutputType | null _max: SlashingEventMaxAggregateOutputType | null } export type SlashingEventAvgAggregateOutputType = { slashed_amount: number | null scout_reward: number | null treasury_reward: number | null } export type SlashingEventSumAggregateOutputType = { slashed_amount: number | null scout_reward: number | null treasury_reward: number | null } export type SlashingEventMinAggregateOutputType = { id: string | null agent_id: string | null arbitration_id: string | null slashed_amount: number | null scout_reward: number | null treasury_reward: number | null reason: string | null created_at: Date | null } export type SlashingEventMaxAggregateOutputType = { id: string | null agent_id: string | null arbitration_id: string | null slashed_amount: number | null scout_reward: number | null treasury_reward: number | null reason: string | null created_at: Date | null } export type SlashingEventCountAggregateOutputType = { id: number agent_id: number arbitration_id: number slashed_amount: number scout_reward: number treasury_reward: number reason: number created_at: number _all: number } export type SlashingEventAvgAggregateInputType = { slashed_amount?: true scout_reward?: true treasury_reward?: true } export type SlashingEventSumAggregateInputType = { slashed_amount?: true scout_reward?: true treasury_reward?: true } export type SlashingEventMinAggregateInputType = { id?: true agent_id?: true arbitration_id?: true slashed_amount?: true scout_reward?: true treasury_reward?: true reason?: true created_at?: true } export type SlashingEventMaxAggregateInputType = { id?: true agent_id?: true arbitration_id?: true slashed_amount?: true scout_reward?: true treasury_reward?: true reason?: true created_at?: true } export type SlashingEventCountAggregateInputType = { id?: true agent_id?: true arbitration_id?: true slashed_amount?: true scout_reward?: true treasury_reward?: true reason?: true created_at?: true _all?: true } export type SlashingEventAggregateArgs = { /** * Filter which SlashingEvent to aggregate. */ where?: SlashingEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SlashingEvents to fetch. */ orderBy?: SlashingEventOrderByWithRelationInput | SlashingEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SlashingEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SlashingEvents 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` SlashingEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SlashingEvents **/ _count?: true | SlashingEventCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SlashingEventAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SlashingEventSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SlashingEventMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SlashingEventMaxAggregateInputType } export type GetSlashingEventAggregateType = { [P in keyof T & keyof AggregateSlashingEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SlashingEventGroupByArgs = { where?: SlashingEventWhereInput orderBy?: SlashingEventOrderByWithAggregationInput | SlashingEventOrderByWithAggregationInput[] by: SlashingEventScalarFieldEnum[] | SlashingEventScalarFieldEnum having?: SlashingEventScalarWhereWithAggregatesInput take?: number skip?: number _count?: SlashingEventCountAggregateInputType | true _avg?: SlashingEventAvgAggregateInputType _sum?: SlashingEventSumAggregateInputType _min?: SlashingEventMinAggregateInputType _max?: SlashingEventMaxAggregateInputType } export type SlashingEventGroupByOutputType = { id: string agent_id: string arbitration_id: string slashed_amount: number scout_reward: number treasury_reward: number reason: string created_at: Date _count: SlashingEventCountAggregateOutputType | null _avg: SlashingEventAvgAggregateOutputType | null _sum: SlashingEventSumAggregateOutputType | null _min: SlashingEventMinAggregateOutputType | null _max: SlashingEventMaxAggregateOutputType | null } type GetSlashingEventGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SlashingEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SlashingEventSelect = $Extensions.GetSelect<{ id?: boolean agent_id?: boolean arbitration_id?: boolean slashed_amount?: boolean scout_reward?: boolean treasury_reward?: boolean reason?: boolean created_at?: boolean agent?: boolean | AgentProfileDefaultArgs arbitration?: boolean | ArbitrationDefaultArgs }, ExtArgs["result"]["slashingEvent"]> export type SlashingEventSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean agent_id?: boolean arbitration_id?: boolean slashed_amount?: boolean scout_reward?: boolean treasury_reward?: boolean reason?: boolean created_at?: boolean agent?: boolean | AgentProfileDefaultArgs arbitration?: boolean | ArbitrationDefaultArgs }, ExtArgs["result"]["slashingEvent"]> export type SlashingEventSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean agent_id?: boolean arbitration_id?: boolean slashed_amount?: boolean scout_reward?: boolean treasury_reward?: boolean reason?: boolean created_at?: boolean agent?: boolean | AgentProfileDefaultArgs arbitration?: boolean | ArbitrationDefaultArgs }, ExtArgs["result"]["slashingEvent"]> export type SlashingEventSelectScalar = { id?: boolean agent_id?: boolean arbitration_id?: boolean slashed_amount?: boolean scout_reward?: boolean treasury_reward?: boolean reason?: boolean created_at?: boolean } export type SlashingEventOmit = $Extensions.GetOmit<"id" | "agent_id" | "arbitration_id" | "slashed_amount" | "scout_reward" | "treasury_reward" | "reason" | "created_at", ExtArgs["result"]["slashingEvent"]> export type SlashingEventInclude = { agent?: boolean | AgentProfileDefaultArgs arbitration?: boolean | ArbitrationDefaultArgs } export type SlashingEventIncludeCreateManyAndReturn = { agent?: boolean | AgentProfileDefaultArgs arbitration?: boolean | ArbitrationDefaultArgs } export type SlashingEventIncludeUpdateManyAndReturn = { agent?: boolean | AgentProfileDefaultArgs arbitration?: boolean | ArbitrationDefaultArgs } export type $SlashingEventPayload = { name: "SlashingEvent" objects: { agent: Prisma.$AgentProfilePayload arbitration: Prisma.$ArbitrationPayload } scalars: $Extensions.GetPayloadResult<{ id: string agent_id: string arbitration_id: string slashed_amount: number scout_reward: number treasury_reward: number reason: string created_at: Date }, ExtArgs["result"]["slashingEvent"]> composites: {} } type SlashingEventGetPayload = $Result.GetResult type SlashingEventCountArgs = Omit & { select?: SlashingEventCountAggregateInputType | true } export interface SlashingEventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SlashingEvent'], meta: { name: 'SlashingEvent' } } /** * Find zero or one SlashingEvent that matches the filter. * @param {SlashingEventFindUniqueArgs} args - Arguments to find a SlashingEvent * @example * // Get one SlashingEvent * const slashingEvent = await prisma.slashingEvent.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SlashingEventClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SlashingEvent that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SlashingEventFindUniqueOrThrowArgs} args - Arguments to find a SlashingEvent * @example * // Get one SlashingEvent * const slashingEvent = await prisma.slashingEvent.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SlashingEventClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SlashingEvent 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 {SlashingEventFindFirstArgs} args - Arguments to find a SlashingEvent * @example * // Get one SlashingEvent * const slashingEvent = await prisma.slashingEvent.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SlashingEventClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SlashingEvent 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 {SlashingEventFindFirstOrThrowArgs} args - Arguments to find a SlashingEvent * @example * // Get one SlashingEvent * const slashingEvent = await prisma.slashingEvent.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SlashingEventClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SlashingEvents 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 {SlashingEventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SlashingEvents * const slashingEvents = await prisma.slashingEvent.findMany() * * // Get first 10 SlashingEvents * const slashingEvents = await prisma.slashingEvent.findMany({ take: 10 }) * * // Only select the `id` * const slashingEventWithIdOnly = await prisma.slashingEvent.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a SlashingEvent. * @param {SlashingEventCreateArgs} args - Arguments to create a SlashingEvent. * @example * // Create one SlashingEvent * const SlashingEvent = await prisma.slashingEvent.create({ * data: { * // ... data to create a SlashingEvent * } * }) * */ create(args: SelectSubset>): Prisma__SlashingEventClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SlashingEvents. * @param {SlashingEventCreateManyArgs} args - Arguments to create many SlashingEvents. * @example * // Create many SlashingEvents * const slashingEvent = await prisma.slashingEvent.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many SlashingEvents and returns the data saved in the database. * @param {SlashingEventCreateManyAndReturnArgs} args - Arguments to create many SlashingEvents. * @example * // Create many SlashingEvents * const slashingEvent = await prisma.slashingEvent.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SlashingEvents and only return the `id` * const slashingEventWithIdOnly = await prisma.slashingEvent.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 SlashingEvent. * @param {SlashingEventDeleteArgs} args - Arguments to delete one SlashingEvent. * @example * // Delete one SlashingEvent * const SlashingEvent = await prisma.slashingEvent.delete({ * where: { * // ... filter to delete one SlashingEvent * } * }) * */ delete(args: SelectSubset>): Prisma__SlashingEventClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SlashingEvent. * @param {SlashingEventUpdateArgs} args - Arguments to update one SlashingEvent. * @example * // Update one SlashingEvent * const slashingEvent = await prisma.slashingEvent.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SlashingEventClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SlashingEvents. * @param {SlashingEventDeleteManyArgs} args - Arguments to filter SlashingEvents to delete. * @example * // Delete a few SlashingEvents * const { count } = await prisma.slashingEvent.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SlashingEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SlashingEventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SlashingEvents * const slashingEvent = await prisma.slashingEvent.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SlashingEvents and returns the data updated in the database. * @param {SlashingEventUpdateManyAndReturnArgs} args - Arguments to update many SlashingEvents. * @example * // Update many SlashingEvents * const slashingEvent = await prisma.slashingEvent.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more SlashingEvents and only return the `id` * const slashingEventWithIdOnly = await prisma.slashingEvent.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 SlashingEvent. * @param {SlashingEventUpsertArgs} args - Arguments to update or create a SlashingEvent. * @example * // Update or create a SlashingEvent * const slashingEvent = await prisma.slashingEvent.upsert({ * create: { * // ... data to create a SlashingEvent * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SlashingEvent we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SlashingEventClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SlashingEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SlashingEventCountArgs} args - Arguments to filter SlashingEvents to count. * @example * // Count the number of SlashingEvents * const count = await prisma.slashingEvent.count({ * where: { * // ... the filter for the SlashingEvents 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 SlashingEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SlashingEventAggregateArgs} 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 SlashingEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SlashingEventGroupByArgs} 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 SlashingEventGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SlashingEventGroupByArgs['orderBy'] } : { orderBy?: SlashingEventGroupByArgs['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 ? GetSlashingEventGroupByPayload : Prisma.PrismaPromise /** * Fields of the SlashingEvent model */ readonly fields: SlashingEventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SlashingEvent. * 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__SlashingEventClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" agent = {}>(args?: Subset>): Prisma__AgentProfileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> arbitration = {}>(args?: Subset>): Prisma__ArbitrationClient<$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 SlashingEvent model */ interface SlashingEventFieldRefs { readonly id: FieldRef<"SlashingEvent", 'String'> readonly agent_id: FieldRef<"SlashingEvent", 'String'> readonly arbitration_id: FieldRef<"SlashingEvent", 'String'> readonly slashed_amount: FieldRef<"SlashingEvent", 'Int'> readonly scout_reward: FieldRef<"SlashingEvent", 'Int'> readonly treasury_reward: FieldRef<"SlashingEvent", 'Int'> readonly reason: FieldRef<"SlashingEvent", 'String'> readonly created_at: FieldRef<"SlashingEvent", 'DateTime'> } // Custom InputTypes /** * SlashingEvent findUnique */ export type SlashingEventFindUniqueArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelect | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: SlashingEventInclude | null /** * Filter, which SlashingEvent to fetch. */ where: SlashingEventWhereUniqueInput } /** * SlashingEvent findUniqueOrThrow */ export type SlashingEventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelect | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: SlashingEventInclude | null /** * Filter, which SlashingEvent to fetch. */ where: SlashingEventWhereUniqueInput } /** * SlashingEvent findFirst */ export type SlashingEventFindFirstArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelect | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: SlashingEventInclude | null /** * Filter, which SlashingEvent to fetch. */ where?: SlashingEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SlashingEvents to fetch. */ orderBy?: SlashingEventOrderByWithRelationInput | SlashingEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SlashingEvents. */ cursor?: SlashingEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SlashingEvents 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` SlashingEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SlashingEvents. */ distinct?: SlashingEventScalarFieldEnum | SlashingEventScalarFieldEnum[] } /** * SlashingEvent findFirstOrThrow */ export type SlashingEventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelect | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: SlashingEventInclude | null /** * Filter, which SlashingEvent to fetch. */ where?: SlashingEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SlashingEvents to fetch. */ orderBy?: SlashingEventOrderByWithRelationInput | SlashingEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SlashingEvents. */ cursor?: SlashingEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SlashingEvents 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` SlashingEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SlashingEvents. */ distinct?: SlashingEventScalarFieldEnum | SlashingEventScalarFieldEnum[] } /** * SlashingEvent findMany */ export type SlashingEventFindManyArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelect | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: SlashingEventInclude | null /** * Filter, which SlashingEvents to fetch. */ where?: SlashingEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SlashingEvents to fetch. */ orderBy?: SlashingEventOrderByWithRelationInput | SlashingEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SlashingEvents. */ cursor?: SlashingEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SlashingEvents 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` SlashingEvents. */ skip?: number distinct?: SlashingEventScalarFieldEnum | SlashingEventScalarFieldEnum[] } /** * SlashingEvent create */ export type SlashingEventCreateArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelect | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: SlashingEventInclude | null /** * The data needed to create a SlashingEvent. */ data: XOR } /** * SlashingEvent createMany */ export type SlashingEventCreateManyArgs = { /** * The data used to create many SlashingEvents. */ data: SlashingEventCreateManyInput | SlashingEventCreateManyInput[] skipDuplicates?: boolean } /** * SlashingEvent createManyAndReturn */ export type SlashingEventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelectCreateManyAndReturn | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * The data used to create many SlashingEvents. */ data: SlashingEventCreateManyInput | SlashingEventCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: SlashingEventIncludeCreateManyAndReturn | null } /** * SlashingEvent update */ export type SlashingEventUpdateArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelect | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: SlashingEventInclude | null /** * The data needed to update a SlashingEvent. */ data: XOR /** * Choose, which SlashingEvent to update. */ where: SlashingEventWhereUniqueInput } /** * SlashingEvent updateMany */ export type SlashingEventUpdateManyArgs = { /** * The data used to update SlashingEvents. */ data: XOR /** * Filter which SlashingEvents to update */ where?: SlashingEventWhereInput /** * Limit how many SlashingEvents to update. */ limit?: number } /** * SlashingEvent updateManyAndReturn */ export type SlashingEventUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelectUpdateManyAndReturn | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * The data used to update SlashingEvents. */ data: XOR /** * Filter which SlashingEvents to update */ where?: SlashingEventWhereInput /** * Limit how many SlashingEvents to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: SlashingEventIncludeUpdateManyAndReturn | null } /** * SlashingEvent upsert */ export type SlashingEventUpsertArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelect | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: SlashingEventInclude | null /** * The filter to search for the SlashingEvent to update in case it exists. */ where: SlashingEventWhereUniqueInput /** * In case the SlashingEvent found by the `where` argument doesn't exist, create a new SlashingEvent with this data. */ create: XOR /** * In case the SlashingEvent was found with the provided `where` argument, update it with this data. */ update: XOR } /** * SlashingEvent delete */ export type SlashingEventDeleteArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelect | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: SlashingEventInclude | null /** * Filter which SlashingEvent to delete. */ where: SlashingEventWhereUniqueInput } /** * SlashingEvent deleteMany */ export type SlashingEventDeleteManyArgs = { /** * Filter which SlashingEvents to delete */ where?: SlashingEventWhereInput /** * Limit how many SlashingEvents to delete. */ limit?: number } /** * SlashingEvent without action */ export type SlashingEventDefaultArgs = { /** * Select specific fields to fetch from the SlashingEvent */ select?: SlashingEventSelect | null /** * Omit specific fields from the SlashingEvent */ omit?: SlashingEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: SlashingEventInclude | 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', contact_endpoints: 'contact_endpoints', discovery_source: 'discovery_source', created_at: 'created_at', updated_at: 'updated_at', crypto_address: 'crypto_address', mcp_endpoint: 'mcp_endpoint', staked_amount: 'staked_amount', tier: 'tier' }; export type AgentProfileScalarFieldEnum = (typeof AgentProfileScalarFieldEnum)[keyof typeof AgentProfileScalarFieldEnum] export const AffiliateLedgerScalarFieldEnum: { id: 'id', scout_id: 'scout_id', task_id: 'task_id', amount: 'amount', currency: 'currency', status: 'status', created_at: 'created_at', updated_at: 'updated_at' }; export type AffiliateLedgerScalarFieldEnum = (typeof AffiliateLedgerScalarFieldEnum)[keyof typeof AffiliateLedgerScalarFieldEnum] export const ScoutReputationScalarFieldEnum: { id: 'id', scout_id: 'scout_id', successful_conversions: 'successful_conversions', spam_score: 'spam_score', chargeback_count: 'chargeback_count', created_at: 'created_at', updated_at: 'updated_at' }; export type ScoutReputationScalarFieldEnum = (typeof ScoutReputationScalarFieldEnum)[keyof typeof ScoutReputationScalarFieldEnum] export const BidProposalScalarFieldEnum: { id: 'id', task_id: 'task_id', agent_id: 'agent_id', proposed_reward: 'proposed_reward', estimated_duration_hours: 'estimated_duration_hours', quality_guarantee: 'quality_guarantee', status: 'status', counter_offer_amount: 'counter_offer_amount', broker_agent_id: 'broker_agent_id', broker_fee_percentage: 'broker_fee_percentage', created_at: 'created_at', updated_at: 'updated_at' }; export type BidProposalScalarFieldEnum = (typeof BidProposalScalarFieldEnum)[keyof typeof BidProposalScalarFieldEnum] export const AgentWebhookScalarFieldEnum: { id: 'id', task_id: 'task_id', agent_id: 'agent_id', webhook_url: 'webhook_url', events: 'events', created_at: 'created_at', updated_at: 'updated_at' }; export type AgentWebhookScalarFieldEnum = (typeof AgentWebhookScalarFieldEnum)[keyof typeof AgentWebhookScalarFieldEnum] export const ArbitrationScalarFieldEnum: { id: 'id', task_id: 'task_id', builder_id: 'builder_id', evaluator_id: 'evaluator_id', status: 'status', builder_evidence: 'builder_evidence', evaluator_reason: 'evaluator_reason', winning_party: 'winning_party', created_at: 'created_at', updated_at: 'updated_at' }; export type ArbitrationScalarFieldEnum = (typeof ArbitrationScalarFieldEnum)[keyof typeof ArbitrationScalarFieldEnum] export const ArbitrationVoteScalarFieldEnum: { id: 'id', arbitration_id: 'arbitration_id', judge_id: 'judge_id', vote_for: 'vote_for', reasoning: 'reasoning', created_at: 'created_at' }; export type ArbitrationVoteScalarFieldEnum = (typeof ArbitrationVoteScalarFieldEnum)[keyof typeof ArbitrationVoteScalarFieldEnum] export const AgentProjectScalarFieldEnum: { id: 'id', creator_agent_id: 'creator_agent_id', name: 'name', ticker: 'ticker', description: 'description', whitepaper_url: 'whitepaper_url', target_raise: 'target_raise', total_supply: 'total_supply', status: 'status', created_at: 'created_at', updated_at: 'updated_at' }; export type AgentProjectScalarFieldEnum = (typeof AgentProjectScalarFieldEnum)[keyof typeof AgentProjectScalarFieldEnum] export const TokenSaleScalarFieldEnum: { id: 'id', project_id: 'project_id', investor_id: 'investor_id', usdc_amount: 'usdc_amount', tokens_received: 'tokens_received', price_per_token: 'price_per_token', created_at: 'created_at' }; export type TokenSaleScalarFieldEnum = (typeof TokenSaleScalarFieldEnum)[keyof typeof TokenSaleScalarFieldEnum] export const SlashingEventScalarFieldEnum: { id: 'id', agent_id: 'agent_id', arbitration_id: 'arbitration_id', slashed_amount: 'slashed_amount', scout_reward: 'scout_reward', treasury_reward: 'treasury_reward', reason: 'reason', created_at: 'created_at' }; export type SlashingEventScalarFieldEnum = (typeof SlashingEventScalarFieldEnum)[keyof typeof SlashingEventScalarFieldEnum] 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'> /** * Reference to a field of type 'AgentStatus' */ export type EnumAgentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AgentStatus'> /** * Reference to a field of type 'AgentStatus[]' */ export type ListEnumAgentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AgentStatus[]'> /** * 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 affiliate_ledger?: AffiliateLedgerListRelationFilter bid_proposals?: BidProposalListRelationFilter arbitrations?: ArbitrationListRelationFilter } 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 affiliate_ledger?: AffiliateLedgerOrderByRelationAggregateInput bid_proposals?: BidProposalOrderByRelationAggregateInput arbitrations?: ArbitrationOrderByRelationAggregateInput } 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 affiliate_ledger?: AffiliateLedgerListRelationFilter bid_proposals?: BidProposalListRelationFilter arbitrations?: ArbitrationListRelationFilter }, "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?: EnumAgentStatusFilter<"AgentProfile"> | $Enums.AgentStatus capabilities?: JsonNullableFilter<"AgentProfile"> contact_endpoints?: JsonNullableFilter<"AgentProfile"> discovery_source?: StringNullableFilter<"AgentProfile"> | string | null created_at?: DateTimeFilter<"AgentProfile"> | Date | string updated_at?: DateTimeFilter<"AgentProfile"> | Date | string crypto_address?: StringNullableFilter<"AgentProfile"> | string | null mcp_endpoint?: StringNullableFilter<"AgentProfile"> | string | null staked_amount?: IntFilter<"AgentProfile"> | number tier?: StringFilter<"AgentProfile"> | string tasks_as_scout?: TaskListRelationFilter tasks_as_builder?: TaskListRelationFilter claims?: ClaimListRelationFilter scout_reputation?: XOR | null affiliate_ledger?: AffiliateLedgerListRelationFilter bid_proposals?: BidProposalListRelationFilter arbitrations_as_builder?: ArbitrationListRelationFilter arbitrations_as_evaluator?: ArbitrationListRelationFilter arbitration_votes?: ArbitrationVoteListRelationFilter created_projects?: AgentProjectListRelationFilter slashing_events?: SlashingEventListRelationFilter } export type AgentProfileOrderByWithRelationInput = { id?: SortOrder agent_id?: SortOrder type?: SortOrder wallet_address?: SortOrderInput | SortOrder status?: SortOrder capabilities?: SortOrderInput | SortOrder contact_endpoints?: SortOrderInput | SortOrder discovery_source?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder crypto_address?: SortOrderInput | SortOrder mcp_endpoint?: SortOrderInput | SortOrder staked_amount?: SortOrder tier?: SortOrder tasks_as_scout?: TaskOrderByRelationAggregateInput tasks_as_builder?: TaskOrderByRelationAggregateInput claims?: ClaimOrderByRelationAggregateInput scout_reputation?: ScoutReputationOrderByWithRelationInput affiliate_ledger?: AffiliateLedgerOrderByRelationAggregateInput bid_proposals?: BidProposalOrderByRelationAggregateInput arbitrations_as_builder?: ArbitrationOrderByRelationAggregateInput arbitrations_as_evaluator?: ArbitrationOrderByRelationAggregateInput arbitration_votes?: ArbitrationVoteOrderByRelationAggregateInput created_projects?: AgentProjectOrderByRelationAggregateInput slashing_events?: SlashingEventOrderByRelationAggregateInput } 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?: EnumAgentStatusFilter<"AgentProfile"> | $Enums.AgentStatus capabilities?: JsonNullableFilter<"AgentProfile"> contact_endpoints?: JsonNullableFilter<"AgentProfile"> discovery_source?: StringNullableFilter<"AgentProfile"> | string | null created_at?: DateTimeFilter<"AgentProfile"> | Date | string updated_at?: DateTimeFilter<"AgentProfile"> | Date | string crypto_address?: StringNullableFilter<"AgentProfile"> | string | null mcp_endpoint?: StringNullableFilter<"AgentProfile"> | string | null staked_amount?: IntFilter<"AgentProfile"> | number tier?: StringFilter<"AgentProfile"> | string tasks_as_scout?: TaskListRelationFilter tasks_as_builder?: TaskListRelationFilter claims?: ClaimListRelationFilter scout_reputation?: XOR | null affiliate_ledger?: AffiliateLedgerListRelationFilter bid_proposals?: BidProposalListRelationFilter arbitrations_as_builder?: ArbitrationListRelationFilter arbitrations_as_evaluator?: ArbitrationListRelationFilter arbitration_votes?: ArbitrationVoteListRelationFilter created_projects?: AgentProjectListRelationFilter slashing_events?: SlashingEventListRelationFilter }, "id" | "agent_id"> export type AgentProfileOrderByWithAggregationInput = { id?: SortOrder agent_id?: SortOrder type?: SortOrder wallet_address?: SortOrderInput | SortOrder status?: SortOrder capabilities?: SortOrderInput | SortOrder contact_endpoints?: SortOrderInput | SortOrder discovery_source?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder crypto_address?: SortOrderInput | SortOrder mcp_endpoint?: SortOrderInput | SortOrder staked_amount?: SortOrder tier?: SortOrder _count?: AgentProfileCountOrderByAggregateInput _avg?: AgentProfileAvgOrderByAggregateInput _max?: AgentProfileMaxOrderByAggregateInput _min?: AgentProfileMinOrderByAggregateInput _sum?: AgentProfileSumOrderByAggregateInput } 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?: EnumAgentStatusWithAggregatesFilter<"AgentProfile"> | $Enums.AgentStatus capabilities?: JsonNullableWithAggregatesFilter<"AgentProfile"> contact_endpoints?: JsonNullableWithAggregatesFilter<"AgentProfile"> discovery_source?: StringNullableWithAggregatesFilter<"AgentProfile"> | string | null created_at?: DateTimeWithAggregatesFilter<"AgentProfile"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"AgentProfile"> | Date | string crypto_address?: StringNullableWithAggregatesFilter<"AgentProfile"> | string | null mcp_endpoint?: StringNullableWithAggregatesFilter<"AgentProfile"> | string | null staked_amount?: IntWithAggregatesFilter<"AgentProfile"> | number tier?: StringWithAggregatesFilter<"AgentProfile"> | string } export type AffiliateLedgerWhereInput = { AND?: AffiliateLedgerWhereInput | AffiliateLedgerWhereInput[] OR?: AffiliateLedgerWhereInput[] NOT?: AffiliateLedgerWhereInput | AffiliateLedgerWhereInput[] id?: StringFilter<"AffiliateLedger"> | string scout_id?: StringFilter<"AffiliateLedger"> | string task_id?: StringFilter<"AffiliateLedger"> | string amount?: IntFilter<"AffiliateLedger"> | number currency?: StringFilter<"AffiliateLedger"> | string status?: StringFilter<"AffiliateLedger"> | string created_at?: DateTimeFilter<"AffiliateLedger"> | Date | string updated_at?: DateTimeFilter<"AffiliateLedger"> | Date | string scout_agent?: XOR task?: XOR } export type AffiliateLedgerOrderByWithRelationInput = { id?: SortOrder scout_id?: SortOrder task_id?: SortOrder amount?: SortOrder currency?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder scout_agent?: AgentProfileOrderByWithRelationInput task?: TaskOrderByWithRelationInput } export type AffiliateLedgerWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: AffiliateLedgerWhereInput | AffiliateLedgerWhereInput[] OR?: AffiliateLedgerWhereInput[] NOT?: AffiliateLedgerWhereInput | AffiliateLedgerWhereInput[] scout_id?: StringFilter<"AffiliateLedger"> | string task_id?: StringFilter<"AffiliateLedger"> | string amount?: IntFilter<"AffiliateLedger"> | number currency?: StringFilter<"AffiliateLedger"> | string status?: StringFilter<"AffiliateLedger"> | string created_at?: DateTimeFilter<"AffiliateLedger"> | Date | string updated_at?: DateTimeFilter<"AffiliateLedger"> | Date | string scout_agent?: XOR task?: XOR }, "id"> export type AffiliateLedgerOrderByWithAggregationInput = { id?: SortOrder scout_id?: SortOrder task_id?: SortOrder amount?: SortOrder currency?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: AffiliateLedgerCountOrderByAggregateInput _avg?: AffiliateLedgerAvgOrderByAggregateInput _max?: AffiliateLedgerMaxOrderByAggregateInput _min?: AffiliateLedgerMinOrderByAggregateInput _sum?: AffiliateLedgerSumOrderByAggregateInput } export type AffiliateLedgerScalarWhereWithAggregatesInput = { AND?: AffiliateLedgerScalarWhereWithAggregatesInput | AffiliateLedgerScalarWhereWithAggregatesInput[] OR?: AffiliateLedgerScalarWhereWithAggregatesInput[] NOT?: AffiliateLedgerScalarWhereWithAggregatesInput | AffiliateLedgerScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"AffiliateLedger"> | string scout_id?: StringWithAggregatesFilter<"AffiliateLedger"> | string task_id?: StringWithAggregatesFilter<"AffiliateLedger"> | string amount?: IntWithAggregatesFilter<"AffiliateLedger"> | number currency?: StringWithAggregatesFilter<"AffiliateLedger"> | string status?: StringWithAggregatesFilter<"AffiliateLedger"> | string created_at?: DateTimeWithAggregatesFilter<"AffiliateLedger"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"AffiliateLedger"> | Date | string } export type ScoutReputationWhereInput = { AND?: ScoutReputationWhereInput | ScoutReputationWhereInput[] OR?: ScoutReputationWhereInput[] NOT?: ScoutReputationWhereInput | ScoutReputationWhereInput[] id?: StringFilter<"ScoutReputation"> | string scout_id?: StringFilter<"ScoutReputation"> | string successful_conversions?: IntFilter<"ScoutReputation"> | number spam_score?: FloatFilter<"ScoutReputation"> | number chargeback_count?: IntFilter<"ScoutReputation"> | number created_at?: DateTimeFilter<"ScoutReputation"> | Date | string updated_at?: DateTimeFilter<"ScoutReputation"> | Date | string scout_agent?: XOR } export type ScoutReputationOrderByWithRelationInput = { id?: SortOrder scout_id?: SortOrder successful_conversions?: SortOrder spam_score?: SortOrder chargeback_count?: SortOrder created_at?: SortOrder updated_at?: SortOrder scout_agent?: AgentProfileOrderByWithRelationInput } export type ScoutReputationWhereUniqueInput = Prisma.AtLeast<{ id?: string scout_id?: string AND?: ScoutReputationWhereInput | ScoutReputationWhereInput[] OR?: ScoutReputationWhereInput[] NOT?: ScoutReputationWhereInput | ScoutReputationWhereInput[] successful_conversions?: IntFilter<"ScoutReputation"> | number spam_score?: FloatFilter<"ScoutReputation"> | number chargeback_count?: IntFilter<"ScoutReputation"> | number created_at?: DateTimeFilter<"ScoutReputation"> | Date | string updated_at?: DateTimeFilter<"ScoutReputation"> | Date | string scout_agent?: XOR }, "id" | "scout_id"> export type ScoutReputationOrderByWithAggregationInput = { id?: SortOrder scout_id?: SortOrder successful_conversions?: SortOrder spam_score?: SortOrder chargeback_count?: SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: ScoutReputationCountOrderByAggregateInput _avg?: ScoutReputationAvgOrderByAggregateInput _max?: ScoutReputationMaxOrderByAggregateInput _min?: ScoutReputationMinOrderByAggregateInput _sum?: ScoutReputationSumOrderByAggregateInput } export type ScoutReputationScalarWhereWithAggregatesInput = { AND?: ScoutReputationScalarWhereWithAggregatesInput | ScoutReputationScalarWhereWithAggregatesInput[] OR?: ScoutReputationScalarWhereWithAggregatesInput[] NOT?: ScoutReputationScalarWhereWithAggregatesInput | ScoutReputationScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"ScoutReputation"> | string scout_id?: StringWithAggregatesFilter<"ScoutReputation"> | string successful_conversions?: IntWithAggregatesFilter<"ScoutReputation"> | number spam_score?: FloatWithAggregatesFilter<"ScoutReputation"> | number chargeback_count?: IntWithAggregatesFilter<"ScoutReputation"> | number created_at?: DateTimeWithAggregatesFilter<"ScoutReputation"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"ScoutReputation"> | Date | string } export type BidProposalWhereInput = { AND?: BidProposalWhereInput | BidProposalWhereInput[] OR?: BidProposalWhereInput[] NOT?: BidProposalWhereInput | BidProposalWhereInput[] id?: StringFilter<"BidProposal"> | string task_id?: StringFilter<"BidProposal"> | string agent_id?: StringFilter<"BidProposal"> | string proposed_reward?: IntFilter<"BidProposal"> | number estimated_duration_hours?: FloatFilter<"BidProposal"> | number quality_guarantee?: StringNullableFilter<"BidProposal"> | string | null status?: StringFilter<"BidProposal"> | string counter_offer_amount?: IntNullableFilter<"BidProposal"> | number | null broker_agent_id?: StringNullableFilter<"BidProposal"> | string | null broker_fee_percentage?: FloatNullableFilter<"BidProposal"> | number | null created_at?: DateTimeFilter<"BidProposal"> | Date | string updated_at?: DateTimeFilter<"BidProposal"> | Date | string task?: XOR agent?: XOR } export type BidProposalOrderByWithRelationInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder proposed_reward?: SortOrder estimated_duration_hours?: SortOrder quality_guarantee?: SortOrderInput | SortOrder status?: SortOrder counter_offer_amount?: SortOrderInput | SortOrder broker_agent_id?: SortOrderInput | SortOrder broker_fee_percentage?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder task?: TaskOrderByWithRelationInput agent?: AgentProfileOrderByWithRelationInput } export type BidProposalWhereUniqueInput = Prisma.AtLeast<{ id?: string task_id_agent_id?: BidProposalTask_idAgent_idCompoundUniqueInput AND?: BidProposalWhereInput | BidProposalWhereInput[] OR?: BidProposalWhereInput[] NOT?: BidProposalWhereInput | BidProposalWhereInput[] task_id?: StringFilter<"BidProposal"> | string agent_id?: StringFilter<"BidProposal"> | string proposed_reward?: IntFilter<"BidProposal"> | number estimated_duration_hours?: FloatFilter<"BidProposal"> | number quality_guarantee?: StringNullableFilter<"BidProposal"> | string | null status?: StringFilter<"BidProposal"> | string counter_offer_amount?: IntNullableFilter<"BidProposal"> | number | null broker_agent_id?: StringNullableFilter<"BidProposal"> | string | null broker_fee_percentage?: FloatNullableFilter<"BidProposal"> | number | null created_at?: DateTimeFilter<"BidProposal"> | Date | string updated_at?: DateTimeFilter<"BidProposal"> | Date | string task?: XOR agent?: XOR }, "id" | "task_id_agent_id"> export type BidProposalOrderByWithAggregationInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder proposed_reward?: SortOrder estimated_duration_hours?: SortOrder quality_guarantee?: SortOrderInput | SortOrder status?: SortOrder counter_offer_amount?: SortOrderInput | SortOrder broker_agent_id?: SortOrderInput | SortOrder broker_fee_percentage?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: BidProposalCountOrderByAggregateInput _avg?: BidProposalAvgOrderByAggregateInput _max?: BidProposalMaxOrderByAggregateInput _min?: BidProposalMinOrderByAggregateInput _sum?: BidProposalSumOrderByAggregateInput } export type BidProposalScalarWhereWithAggregatesInput = { AND?: BidProposalScalarWhereWithAggregatesInput | BidProposalScalarWhereWithAggregatesInput[] OR?: BidProposalScalarWhereWithAggregatesInput[] NOT?: BidProposalScalarWhereWithAggregatesInput | BidProposalScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"BidProposal"> | string task_id?: StringWithAggregatesFilter<"BidProposal"> | string agent_id?: StringWithAggregatesFilter<"BidProposal"> | string proposed_reward?: IntWithAggregatesFilter<"BidProposal"> | number estimated_duration_hours?: FloatWithAggregatesFilter<"BidProposal"> | number quality_guarantee?: StringNullableWithAggregatesFilter<"BidProposal"> | string | null status?: StringWithAggregatesFilter<"BidProposal"> | string counter_offer_amount?: IntNullableWithAggregatesFilter<"BidProposal"> | number | null broker_agent_id?: StringNullableWithAggregatesFilter<"BidProposal"> | string | null broker_fee_percentage?: FloatNullableWithAggregatesFilter<"BidProposal"> | number | null created_at?: DateTimeWithAggregatesFilter<"BidProposal"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"BidProposal"> | Date | string } export type AgentWebhookWhereInput = { AND?: AgentWebhookWhereInput | AgentWebhookWhereInput[] OR?: AgentWebhookWhereInput[] NOT?: AgentWebhookWhereInput | AgentWebhookWhereInput[] id?: StringFilter<"AgentWebhook"> | string task_id?: StringFilter<"AgentWebhook"> | string agent_id?: StringFilter<"AgentWebhook"> | string webhook_url?: StringFilter<"AgentWebhook"> | string events?: StringNullableListFilter<"AgentWebhook"> created_at?: DateTimeFilter<"AgentWebhook"> | Date | string updated_at?: DateTimeFilter<"AgentWebhook"> | Date | string } export type AgentWebhookOrderByWithRelationInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder webhook_url?: SortOrder events?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AgentWebhookWhereUniqueInput = Prisma.AtLeast<{ id?: string task_id_agent_id?: AgentWebhookTask_idAgent_idCompoundUniqueInput AND?: AgentWebhookWhereInput | AgentWebhookWhereInput[] OR?: AgentWebhookWhereInput[] NOT?: AgentWebhookWhereInput | AgentWebhookWhereInput[] task_id?: StringFilter<"AgentWebhook"> | string agent_id?: StringFilter<"AgentWebhook"> | string webhook_url?: StringFilter<"AgentWebhook"> | string events?: StringNullableListFilter<"AgentWebhook"> created_at?: DateTimeFilter<"AgentWebhook"> | Date | string updated_at?: DateTimeFilter<"AgentWebhook"> | Date | string }, "id" | "task_id_agent_id"> export type AgentWebhookOrderByWithAggregationInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder webhook_url?: SortOrder events?: SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: AgentWebhookCountOrderByAggregateInput _max?: AgentWebhookMaxOrderByAggregateInput _min?: AgentWebhookMinOrderByAggregateInput } export type AgentWebhookScalarWhereWithAggregatesInput = { AND?: AgentWebhookScalarWhereWithAggregatesInput | AgentWebhookScalarWhereWithAggregatesInput[] OR?: AgentWebhookScalarWhereWithAggregatesInput[] NOT?: AgentWebhookScalarWhereWithAggregatesInput | AgentWebhookScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"AgentWebhook"> | string task_id?: StringWithAggregatesFilter<"AgentWebhook"> | string agent_id?: StringWithAggregatesFilter<"AgentWebhook"> | string webhook_url?: StringWithAggregatesFilter<"AgentWebhook"> | string events?: StringNullableListFilter<"AgentWebhook"> created_at?: DateTimeWithAggregatesFilter<"AgentWebhook"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"AgentWebhook"> | Date | string } export type ArbitrationWhereInput = { AND?: ArbitrationWhereInput | ArbitrationWhereInput[] OR?: ArbitrationWhereInput[] NOT?: ArbitrationWhereInput | ArbitrationWhereInput[] id?: StringFilter<"Arbitration"> | string task_id?: StringFilter<"Arbitration"> | string builder_id?: StringFilter<"Arbitration"> | string evaluator_id?: StringFilter<"Arbitration"> | string status?: StringFilter<"Arbitration"> | string builder_evidence?: StringNullableFilter<"Arbitration"> | string | null evaluator_reason?: StringNullableFilter<"Arbitration"> | string | null winning_party?: StringNullableFilter<"Arbitration"> | string | null created_at?: DateTimeFilter<"Arbitration"> | Date | string updated_at?: DateTimeFilter<"Arbitration"> | Date | string task?: XOR builder?: XOR evaluator?: XOR votes?: ArbitrationVoteListRelationFilter slashing_events?: SlashingEventListRelationFilter } export type ArbitrationOrderByWithRelationInput = { id?: SortOrder task_id?: SortOrder builder_id?: SortOrder evaluator_id?: SortOrder status?: SortOrder builder_evidence?: SortOrderInput | SortOrder evaluator_reason?: SortOrderInput | SortOrder winning_party?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder task?: TaskOrderByWithRelationInput builder?: AgentProfileOrderByWithRelationInput evaluator?: AgentProfileOrderByWithRelationInput votes?: ArbitrationVoteOrderByRelationAggregateInput slashing_events?: SlashingEventOrderByRelationAggregateInput } export type ArbitrationWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: ArbitrationWhereInput | ArbitrationWhereInput[] OR?: ArbitrationWhereInput[] NOT?: ArbitrationWhereInput | ArbitrationWhereInput[] task_id?: StringFilter<"Arbitration"> | string builder_id?: StringFilter<"Arbitration"> | string evaluator_id?: StringFilter<"Arbitration"> | string status?: StringFilter<"Arbitration"> | string builder_evidence?: StringNullableFilter<"Arbitration"> | string | null evaluator_reason?: StringNullableFilter<"Arbitration"> | string | null winning_party?: StringNullableFilter<"Arbitration"> | string | null created_at?: DateTimeFilter<"Arbitration"> | Date | string updated_at?: DateTimeFilter<"Arbitration"> | Date | string task?: XOR builder?: XOR evaluator?: XOR votes?: ArbitrationVoteListRelationFilter slashing_events?: SlashingEventListRelationFilter }, "id"> export type ArbitrationOrderByWithAggregationInput = { id?: SortOrder task_id?: SortOrder builder_id?: SortOrder evaluator_id?: SortOrder status?: SortOrder builder_evidence?: SortOrderInput | SortOrder evaluator_reason?: SortOrderInput | SortOrder winning_party?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: ArbitrationCountOrderByAggregateInput _max?: ArbitrationMaxOrderByAggregateInput _min?: ArbitrationMinOrderByAggregateInput } export type ArbitrationScalarWhereWithAggregatesInput = { AND?: ArbitrationScalarWhereWithAggregatesInput | ArbitrationScalarWhereWithAggregatesInput[] OR?: ArbitrationScalarWhereWithAggregatesInput[] NOT?: ArbitrationScalarWhereWithAggregatesInput | ArbitrationScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Arbitration"> | string task_id?: StringWithAggregatesFilter<"Arbitration"> | string builder_id?: StringWithAggregatesFilter<"Arbitration"> | string evaluator_id?: StringWithAggregatesFilter<"Arbitration"> | string status?: StringWithAggregatesFilter<"Arbitration"> | string builder_evidence?: StringNullableWithAggregatesFilter<"Arbitration"> | string | null evaluator_reason?: StringNullableWithAggregatesFilter<"Arbitration"> | string | null winning_party?: StringNullableWithAggregatesFilter<"Arbitration"> | string | null created_at?: DateTimeWithAggregatesFilter<"Arbitration"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"Arbitration"> | Date | string } export type ArbitrationVoteWhereInput = { AND?: ArbitrationVoteWhereInput | ArbitrationVoteWhereInput[] OR?: ArbitrationVoteWhereInput[] NOT?: ArbitrationVoteWhereInput | ArbitrationVoteWhereInput[] id?: StringFilter<"ArbitrationVote"> | string arbitration_id?: StringFilter<"ArbitrationVote"> | string judge_id?: StringFilter<"ArbitrationVote"> | string vote_for?: StringFilter<"ArbitrationVote"> | string reasoning?: StringNullableFilter<"ArbitrationVote"> | string | null created_at?: DateTimeFilter<"ArbitrationVote"> | Date | string arbitration?: XOR judge?: XOR } export type ArbitrationVoteOrderByWithRelationInput = { id?: SortOrder arbitration_id?: SortOrder judge_id?: SortOrder vote_for?: SortOrder reasoning?: SortOrderInput | SortOrder created_at?: SortOrder arbitration?: ArbitrationOrderByWithRelationInput judge?: AgentProfileOrderByWithRelationInput } export type ArbitrationVoteWhereUniqueInput = Prisma.AtLeast<{ id?: string arbitration_id_judge_id?: ArbitrationVoteArbitration_idJudge_idCompoundUniqueInput AND?: ArbitrationVoteWhereInput | ArbitrationVoteWhereInput[] OR?: ArbitrationVoteWhereInput[] NOT?: ArbitrationVoteWhereInput | ArbitrationVoteWhereInput[] arbitration_id?: StringFilter<"ArbitrationVote"> | string judge_id?: StringFilter<"ArbitrationVote"> | string vote_for?: StringFilter<"ArbitrationVote"> | string reasoning?: StringNullableFilter<"ArbitrationVote"> | string | null created_at?: DateTimeFilter<"ArbitrationVote"> | Date | string arbitration?: XOR judge?: XOR }, "id" | "arbitration_id_judge_id"> export type ArbitrationVoteOrderByWithAggregationInput = { id?: SortOrder arbitration_id?: SortOrder judge_id?: SortOrder vote_for?: SortOrder reasoning?: SortOrderInput | SortOrder created_at?: SortOrder _count?: ArbitrationVoteCountOrderByAggregateInput _max?: ArbitrationVoteMaxOrderByAggregateInput _min?: ArbitrationVoteMinOrderByAggregateInput } export type ArbitrationVoteScalarWhereWithAggregatesInput = { AND?: ArbitrationVoteScalarWhereWithAggregatesInput | ArbitrationVoteScalarWhereWithAggregatesInput[] OR?: ArbitrationVoteScalarWhereWithAggregatesInput[] NOT?: ArbitrationVoteScalarWhereWithAggregatesInput | ArbitrationVoteScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"ArbitrationVote"> | string arbitration_id?: StringWithAggregatesFilter<"ArbitrationVote"> | string judge_id?: StringWithAggregatesFilter<"ArbitrationVote"> | string vote_for?: StringWithAggregatesFilter<"ArbitrationVote"> | string reasoning?: StringNullableWithAggregatesFilter<"ArbitrationVote"> | string | null created_at?: DateTimeWithAggregatesFilter<"ArbitrationVote"> | Date | string } export type AgentProjectWhereInput = { AND?: AgentProjectWhereInput | AgentProjectWhereInput[] OR?: AgentProjectWhereInput[] NOT?: AgentProjectWhereInput | AgentProjectWhereInput[] id?: StringFilter<"AgentProject"> | string creator_agent_id?: StringFilter<"AgentProject"> | string name?: StringFilter<"AgentProject"> | string ticker?: StringFilter<"AgentProject"> | string description?: StringFilter<"AgentProject"> | string whitepaper_url?: StringNullableFilter<"AgentProject"> | string | null target_raise?: IntFilter<"AgentProject"> | number total_supply?: IntFilter<"AgentProject"> | number status?: StringFilter<"AgentProject"> | string created_at?: DateTimeFilter<"AgentProject"> | Date | string updated_at?: DateTimeFilter<"AgentProject"> | Date | string creator?: XOR token_sales?: TokenSaleListRelationFilter } export type AgentProjectOrderByWithRelationInput = { id?: SortOrder creator_agent_id?: SortOrder name?: SortOrder ticker?: SortOrder description?: SortOrder whitepaper_url?: SortOrderInput | SortOrder target_raise?: SortOrder total_supply?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder creator?: AgentProfileOrderByWithRelationInput token_sales?: TokenSaleOrderByRelationAggregateInput } export type AgentProjectWhereUniqueInput = Prisma.AtLeast<{ id?: string ticker?: string AND?: AgentProjectWhereInput | AgentProjectWhereInput[] OR?: AgentProjectWhereInput[] NOT?: AgentProjectWhereInput | AgentProjectWhereInput[] creator_agent_id?: StringFilter<"AgentProject"> | string name?: StringFilter<"AgentProject"> | string description?: StringFilter<"AgentProject"> | string whitepaper_url?: StringNullableFilter<"AgentProject"> | string | null target_raise?: IntFilter<"AgentProject"> | number total_supply?: IntFilter<"AgentProject"> | number status?: StringFilter<"AgentProject"> | string created_at?: DateTimeFilter<"AgentProject"> | Date | string updated_at?: DateTimeFilter<"AgentProject"> | Date | string creator?: XOR token_sales?: TokenSaleListRelationFilter }, "id" | "ticker"> export type AgentProjectOrderByWithAggregationInput = { id?: SortOrder creator_agent_id?: SortOrder name?: SortOrder ticker?: SortOrder description?: SortOrder whitepaper_url?: SortOrderInput | SortOrder target_raise?: SortOrder total_supply?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: AgentProjectCountOrderByAggregateInput _avg?: AgentProjectAvgOrderByAggregateInput _max?: AgentProjectMaxOrderByAggregateInput _min?: AgentProjectMinOrderByAggregateInput _sum?: AgentProjectSumOrderByAggregateInput } export type AgentProjectScalarWhereWithAggregatesInput = { AND?: AgentProjectScalarWhereWithAggregatesInput | AgentProjectScalarWhereWithAggregatesInput[] OR?: AgentProjectScalarWhereWithAggregatesInput[] NOT?: AgentProjectScalarWhereWithAggregatesInput | AgentProjectScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"AgentProject"> | string creator_agent_id?: StringWithAggregatesFilter<"AgentProject"> | string name?: StringWithAggregatesFilter<"AgentProject"> | string ticker?: StringWithAggregatesFilter<"AgentProject"> | string description?: StringWithAggregatesFilter<"AgentProject"> | string whitepaper_url?: StringNullableWithAggregatesFilter<"AgentProject"> | string | null target_raise?: IntWithAggregatesFilter<"AgentProject"> | number total_supply?: IntWithAggregatesFilter<"AgentProject"> | number status?: StringWithAggregatesFilter<"AgentProject"> | string created_at?: DateTimeWithAggregatesFilter<"AgentProject"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"AgentProject"> | Date | string } export type TokenSaleWhereInput = { AND?: TokenSaleWhereInput | TokenSaleWhereInput[] OR?: TokenSaleWhereInput[] NOT?: TokenSaleWhereInput | TokenSaleWhereInput[] id?: StringFilter<"TokenSale"> | string project_id?: StringFilter<"TokenSale"> | string investor_id?: StringFilter<"TokenSale"> | string usdc_amount?: IntFilter<"TokenSale"> | number tokens_received?: FloatFilter<"TokenSale"> | number price_per_token?: FloatFilter<"TokenSale"> | number created_at?: DateTimeFilter<"TokenSale"> | Date | string project?: XOR } export type TokenSaleOrderByWithRelationInput = { id?: SortOrder project_id?: SortOrder investor_id?: SortOrder usdc_amount?: SortOrder tokens_received?: SortOrder price_per_token?: SortOrder created_at?: SortOrder project?: AgentProjectOrderByWithRelationInput } export type TokenSaleWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: TokenSaleWhereInput | TokenSaleWhereInput[] OR?: TokenSaleWhereInput[] NOT?: TokenSaleWhereInput | TokenSaleWhereInput[] project_id?: StringFilter<"TokenSale"> | string investor_id?: StringFilter<"TokenSale"> | string usdc_amount?: IntFilter<"TokenSale"> | number tokens_received?: FloatFilter<"TokenSale"> | number price_per_token?: FloatFilter<"TokenSale"> | number created_at?: DateTimeFilter<"TokenSale"> | Date | string project?: XOR }, "id"> export type TokenSaleOrderByWithAggregationInput = { id?: SortOrder project_id?: SortOrder investor_id?: SortOrder usdc_amount?: SortOrder tokens_received?: SortOrder price_per_token?: SortOrder created_at?: SortOrder _count?: TokenSaleCountOrderByAggregateInput _avg?: TokenSaleAvgOrderByAggregateInput _max?: TokenSaleMaxOrderByAggregateInput _min?: TokenSaleMinOrderByAggregateInput _sum?: TokenSaleSumOrderByAggregateInput } export type TokenSaleScalarWhereWithAggregatesInput = { AND?: TokenSaleScalarWhereWithAggregatesInput | TokenSaleScalarWhereWithAggregatesInput[] OR?: TokenSaleScalarWhereWithAggregatesInput[] NOT?: TokenSaleScalarWhereWithAggregatesInput | TokenSaleScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"TokenSale"> | string project_id?: StringWithAggregatesFilter<"TokenSale"> | string investor_id?: StringWithAggregatesFilter<"TokenSale"> | string usdc_amount?: IntWithAggregatesFilter<"TokenSale"> | number tokens_received?: FloatWithAggregatesFilter<"TokenSale"> | number price_per_token?: FloatWithAggregatesFilter<"TokenSale"> | number created_at?: DateTimeWithAggregatesFilter<"TokenSale"> | Date | string } export type SlashingEventWhereInput = { AND?: SlashingEventWhereInput | SlashingEventWhereInput[] OR?: SlashingEventWhereInput[] NOT?: SlashingEventWhereInput | SlashingEventWhereInput[] id?: StringFilter<"SlashingEvent"> | string agent_id?: StringFilter<"SlashingEvent"> | string arbitration_id?: StringFilter<"SlashingEvent"> | string slashed_amount?: IntFilter<"SlashingEvent"> | number scout_reward?: IntFilter<"SlashingEvent"> | number treasury_reward?: IntFilter<"SlashingEvent"> | number reason?: StringFilter<"SlashingEvent"> | string created_at?: DateTimeFilter<"SlashingEvent"> | Date | string agent?: XOR arbitration?: XOR } export type SlashingEventOrderByWithRelationInput = { id?: SortOrder agent_id?: SortOrder arbitration_id?: SortOrder slashed_amount?: SortOrder scout_reward?: SortOrder treasury_reward?: SortOrder reason?: SortOrder created_at?: SortOrder agent?: AgentProfileOrderByWithRelationInput arbitration?: ArbitrationOrderByWithRelationInput } export type SlashingEventWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: SlashingEventWhereInput | SlashingEventWhereInput[] OR?: SlashingEventWhereInput[] NOT?: SlashingEventWhereInput | SlashingEventWhereInput[] agent_id?: StringFilter<"SlashingEvent"> | string arbitration_id?: StringFilter<"SlashingEvent"> | string slashed_amount?: IntFilter<"SlashingEvent"> | number scout_reward?: IntFilter<"SlashingEvent"> | number treasury_reward?: IntFilter<"SlashingEvent"> | number reason?: StringFilter<"SlashingEvent"> | string created_at?: DateTimeFilter<"SlashingEvent"> | Date | string agent?: XOR arbitration?: XOR }, "id"> export type SlashingEventOrderByWithAggregationInput = { id?: SortOrder agent_id?: SortOrder arbitration_id?: SortOrder slashed_amount?: SortOrder scout_reward?: SortOrder treasury_reward?: SortOrder reason?: SortOrder created_at?: SortOrder _count?: SlashingEventCountOrderByAggregateInput _avg?: SlashingEventAvgOrderByAggregateInput _max?: SlashingEventMaxOrderByAggregateInput _min?: SlashingEventMinOrderByAggregateInput _sum?: SlashingEventSumOrderByAggregateInput } export type SlashingEventScalarWhereWithAggregatesInput = { AND?: SlashingEventScalarWhereWithAggregatesInput | SlashingEventScalarWhereWithAggregatesInput[] OR?: SlashingEventScalarWhereWithAggregatesInput[] NOT?: SlashingEventScalarWhereWithAggregatesInput | SlashingEventScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"SlashingEvent"> | string agent_id?: StringWithAggregatesFilter<"SlashingEvent"> | string arbitration_id?: StringWithAggregatesFilter<"SlashingEvent"> | string slashed_amount?: IntWithAggregatesFilter<"SlashingEvent"> | number scout_reward?: IntWithAggregatesFilter<"SlashingEvent"> | number treasury_reward?: IntWithAggregatesFilter<"SlashingEvent"> | number reason?: StringWithAggregatesFilter<"SlashingEvent"> | string created_at?: DateTimeWithAggregatesFilter<"SlashingEvent"> | 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 affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutTaskInput bid_proposals?: BidProposalCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationCreateNestedManyWithoutTaskInput } 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 affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutTaskInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationUncheckedCreateNestedManyWithoutTaskInput } 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 affiliate_ledger?: AffiliateLedgerUpdateManyWithoutTaskNestedInput bid_proposals?: BidProposalUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUpdateManyWithoutTaskNestedInput } 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 affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutTaskNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUncheckedUpdateManyWithoutTaskNestedInput } 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?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationUncheckedCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationUncheckedCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationUncheckedCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectUncheckedCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutAgentInput } export type AgentProfileUpdateInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUncheckedUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUncheckedUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUncheckedUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUncheckedUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUncheckedUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutAgentNestedInput } export type AgentProfileCreateManyInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string } export type AgentProfileUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string } export type AgentProfileUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string } export type AffiliateLedgerCreateInput = { id?: string amount: number currency: string status: string created_at?: Date | string updated_at?: Date | string scout_agent: AgentProfileCreateNestedOneWithoutAffiliate_ledgerInput task: TaskCreateNestedOneWithoutAffiliate_ledgerInput } export type AffiliateLedgerUncheckedCreateInput = { id?: string scout_id: string task_id: string amount: number currency: string status: string created_at?: Date | string updated_at?: Date | string } export type AffiliateLedgerUpdateInput = { id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number currency?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string scout_agent?: AgentProfileUpdateOneRequiredWithoutAffiliate_ledgerNestedInput task?: TaskUpdateOneRequiredWithoutAffiliate_ledgerNestedInput } export type AffiliateLedgerUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string scout_id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number currency?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AffiliateLedgerCreateManyInput = { id?: string scout_id: string task_id: string amount: number currency: string status: string created_at?: Date | string updated_at?: Date | string } export type AffiliateLedgerUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number currency?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AffiliateLedgerUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string scout_id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number currency?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ScoutReputationCreateInput = { id?: string successful_conversions?: number spam_score?: number chargeback_count?: number created_at?: Date | string updated_at?: Date | string scout_agent: AgentProfileCreateNestedOneWithoutScout_reputationInput } export type ScoutReputationUncheckedCreateInput = { id?: string scout_id: string successful_conversions?: number spam_score?: number chargeback_count?: number created_at?: Date | string updated_at?: Date | string } export type ScoutReputationUpdateInput = { id?: StringFieldUpdateOperationsInput | string successful_conversions?: IntFieldUpdateOperationsInput | number spam_score?: FloatFieldUpdateOperationsInput | number chargeback_count?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string scout_agent?: AgentProfileUpdateOneRequiredWithoutScout_reputationNestedInput } export type ScoutReputationUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string scout_id?: StringFieldUpdateOperationsInput | string successful_conversions?: IntFieldUpdateOperationsInput | number spam_score?: FloatFieldUpdateOperationsInput | number chargeback_count?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ScoutReputationCreateManyInput = { id?: string scout_id: string successful_conversions?: number spam_score?: number chargeback_count?: number created_at?: Date | string updated_at?: Date | string } export type ScoutReputationUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string successful_conversions?: IntFieldUpdateOperationsInput | number spam_score?: FloatFieldUpdateOperationsInput | number chargeback_count?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ScoutReputationUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string scout_id?: StringFieldUpdateOperationsInput | string successful_conversions?: IntFieldUpdateOperationsInput | number spam_score?: FloatFieldUpdateOperationsInput | number chargeback_count?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type BidProposalCreateInput = { id?: string proposed_reward: number estimated_duration_hours: number quality_guarantee?: string | null status: string counter_offer_amount?: number | null broker_agent_id?: string | null broker_fee_percentage?: number | null created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutBid_proposalsInput agent: AgentProfileCreateNestedOneWithoutBid_proposalsInput } export type BidProposalUncheckedCreateInput = { id?: string task_id: string agent_id: string proposed_reward: number estimated_duration_hours: number quality_guarantee?: string | null status: string counter_offer_amount?: number | null broker_agent_id?: string | null broker_fee_percentage?: number | null created_at?: Date | string updated_at?: Date | string } export type BidProposalUpdateInput = { id?: StringFieldUpdateOperationsInput | string proposed_reward?: IntFieldUpdateOperationsInput | number estimated_duration_hours?: FloatFieldUpdateOperationsInput | number quality_guarantee?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string counter_offer_amount?: NullableIntFieldUpdateOperationsInput | number | null broker_agent_id?: NullableStringFieldUpdateOperationsInput | string | null broker_fee_percentage?: NullableFloatFieldUpdateOperationsInput | number | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutBid_proposalsNestedInput agent?: AgentProfileUpdateOneRequiredWithoutBid_proposalsNestedInput } export type BidProposalUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string proposed_reward?: IntFieldUpdateOperationsInput | number estimated_duration_hours?: FloatFieldUpdateOperationsInput | number quality_guarantee?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string counter_offer_amount?: NullableIntFieldUpdateOperationsInput | number | null broker_agent_id?: NullableStringFieldUpdateOperationsInput | string | null broker_fee_percentage?: NullableFloatFieldUpdateOperationsInput | number | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type BidProposalCreateManyInput = { id?: string task_id: string agent_id: string proposed_reward: number estimated_duration_hours: number quality_guarantee?: string | null status: string counter_offer_amount?: number | null broker_agent_id?: string | null broker_fee_percentage?: number | null created_at?: Date | string updated_at?: Date | string } export type BidProposalUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string proposed_reward?: IntFieldUpdateOperationsInput | number estimated_duration_hours?: FloatFieldUpdateOperationsInput | number quality_guarantee?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string counter_offer_amount?: NullableIntFieldUpdateOperationsInput | number | null broker_agent_id?: NullableStringFieldUpdateOperationsInput | string | null broker_fee_percentage?: NullableFloatFieldUpdateOperationsInput | number | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type BidProposalUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string proposed_reward?: IntFieldUpdateOperationsInput | number estimated_duration_hours?: FloatFieldUpdateOperationsInput | number quality_guarantee?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string counter_offer_amount?: NullableIntFieldUpdateOperationsInput | number | null broker_agent_id?: NullableStringFieldUpdateOperationsInput | string | null broker_fee_percentage?: NullableFloatFieldUpdateOperationsInput | number | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AgentWebhookCreateInput = { id?: string task_id: string agent_id: string webhook_url: string events?: AgentWebhookCreateeventsInput | string[] created_at?: Date | string updated_at?: Date | string } export type AgentWebhookUncheckedCreateInput = { id?: string task_id: string agent_id: string webhook_url: string events?: AgentWebhookCreateeventsInput | string[] created_at?: Date | string updated_at?: Date | string } export type AgentWebhookUpdateInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string webhook_url?: StringFieldUpdateOperationsInput | string events?: AgentWebhookUpdateeventsInput | string[] created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AgentWebhookUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string webhook_url?: StringFieldUpdateOperationsInput | string events?: AgentWebhookUpdateeventsInput | string[] created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AgentWebhookCreateManyInput = { id?: string task_id: string agent_id: string webhook_url: string events?: AgentWebhookCreateeventsInput | string[] created_at?: Date | string updated_at?: Date | string } export type AgentWebhookUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string webhook_url?: StringFieldUpdateOperationsInput | string events?: AgentWebhookUpdateeventsInput | string[] created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AgentWebhookUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string webhook_url?: StringFieldUpdateOperationsInput | string events?: AgentWebhookUpdateeventsInput | string[] created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArbitrationCreateInput = { id?: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutArbitrationsInput builder: AgentProfileCreateNestedOneWithoutArbitrations_as_builderInput evaluator: AgentProfileCreateNestedOneWithoutArbitrations_as_evaluatorInput votes?: ArbitrationVoteCreateNestedManyWithoutArbitrationInput slashing_events?: SlashingEventCreateNestedManyWithoutArbitrationInput } export type ArbitrationUncheckedCreateInput = { id?: string task_id: string builder_id: string evaluator_id: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutArbitrationInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutArbitrationInput } export type ArbitrationUpdateInput = { id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutArbitrationsNestedInput builder?: AgentProfileUpdateOneRequiredWithoutArbitrations_as_builderNestedInput evaluator?: AgentProfileUpdateOneRequiredWithoutArbitrations_as_evaluatorNestedInput votes?: ArbitrationVoteUpdateManyWithoutArbitrationNestedInput slashing_events?: SlashingEventUpdateManyWithoutArbitrationNestedInput } export type ArbitrationUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string builder_id?: StringFieldUpdateOperationsInput | string evaluator_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string votes?: ArbitrationVoteUncheckedUpdateManyWithoutArbitrationNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutArbitrationNestedInput } export type ArbitrationCreateManyInput = { id?: string task_id: string builder_id: string evaluator_id: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string } export type ArbitrationUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArbitrationUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string builder_id?: StringFieldUpdateOperationsInput | string evaluator_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArbitrationVoteCreateInput = { id?: string vote_for: string reasoning?: string | null created_at?: Date | string arbitration: ArbitrationCreateNestedOneWithoutVotesInput judge: AgentProfileCreateNestedOneWithoutArbitration_votesInput } export type ArbitrationVoteUncheckedCreateInput = { id?: string arbitration_id: string judge_id: string vote_for: string reasoning?: string | null created_at?: Date | string } export type ArbitrationVoteUpdateInput = { id?: StringFieldUpdateOperationsInput | string vote_for?: StringFieldUpdateOperationsInput | string reasoning?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string arbitration?: ArbitrationUpdateOneRequiredWithoutVotesNestedInput judge?: AgentProfileUpdateOneRequiredWithoutArbitration_votesNestedInput } export type ArbitrationVoteUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string arbitration_id?: StringFieldUpdateOperationsInput | string judge_id?: StringFieldUpdateOperationsInput | string vote_for?: StringFieldUpdateOperationsInput | string reasoning?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArbitrationVoteCreateManyInput = { id?: string arbitration_id: string judge_id: string vote_for: string reasoning?: string | null created_at?: Date | string } export type ArbitrationVoteUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string vote_for?: StringFieldUpdateOperationsInput | string reasoning?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArbitrationVoteUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string arbitration_id?: StringFieldUpdateOperationsInput | string judge_id?: StringFieldUpdateOperationsInput | string vote_for?: StringFieldUpdateOperationsInput | string reasoning?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AgentProjectCreateInput = { id?: string name: string ticker: string description: string whitepaper_url?: string | null target_raise: number total_supply: number status?: string created_at?: Date | string updated_at?: Date | string creator: AgentProfileCreateNestedOneWithoutCreated_projectsInput token_sales?: TokenSaleCreateNestedManyWithoutProjectInput } export type AgentProjectUncheckedCreateInput = { id?: string creator_agent_id: string name: string ticker: string description: string whitepaper_url?: string | null target_raise: number total_supply: number status?: string created_at?: Date | string updated_at?: Date | string token_sales?: TokenSaleUncheckedCreateNestedManyWithoutProjectInput } export type AgentProjectUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string ticker?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string whitepaper_url?: NullableStringFieldUpdateOperationsInput | string | null target_raise?: IntFieldUpdateOperationsInput | number total_supply?: IntFieldUpdateOperationsInput | number status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string creator?: AgentProfileUpdateOneRequiredWithoutCreated_projectsNestedInput token_sales?: TokenSaleUpdateManyWithoutProjectNestedInput } export type AgentProjectUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string creator_agent_id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string ticker?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string whitepaper_url?: NullableStringFieldUpdateOperationsInput | string | null target_raise?: IntFieldUpdateOperationsInput | number total_supply?: IntFieldUpdateOperationsInput | number status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string token_sales?: TokenSaleUncheckedUpdateManyWithoutProjectNestedInput } export type AgentProjectCreateManyInput = { id?: string creator_agent_id: string name: string ticker: string description: string whitepaper_url?: string | null target_raise: number total_supply: number status?: string created_at?: Date | string updated_at?: Date | string } export type AgentProjectUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string ticker?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string whitepaper_url?: NullableStringFieldUpdateOperationsInput | string | null target_raise?: IntFieldUpdateOperationsInput | number total_supply?: IntFieldUpdateOperationsInput | number status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AgentProjectUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string creator_agent_id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string ticker?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string whitepaper_url?: NullableStringFieldUpdateOperationsInput | string | null target_raise?: IntFieldUpdateOperationsInput | number total_supply?: IntFieldUpdateOperationsInput | number status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type TokenSaleCreateInput = { id?: string investor_id: string usdc_amount: number tokens_received: number price_per_token: number created_at?: Date | string project: AgentProjectCreateNestedOneWithoutToken_salesInput } export type TokenSaleUncheckedCreateInput = { id?: string project_id: string investor_id: string usdc_amount: number tokens_received: number price_per_token: number created_at?: Date | string } export type TokenSaleUpdateInput = { id?: StringFieldUpdateOperationsInput | string investor_id?: StringFieldUpdateOperationsInput | string usdc_amount?: IntFieldUpdateOperationsInput | number tokens_received?: FloatFieldUpdateOperationsInput | number price_per_token?: FloatFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string project?: AgentProjectUpdateOneRequiredWithoutToken_salesNestedInput } export type TokenSaleUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string project_id?: StringFieldUpdateOperationsInput | string investor_id?: StringFieldUpdateOperationsInput | string usdc_amount?: IntFieldUpdateOperationsInput | number tokens_received?: FloatFieldUpdateOperationsInput | number price_per_token?: FloatFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type TokenSaleCreateManyInput = { id?: string project_id: string investor_id: string usdc_amount: number tokens_received: number price_per_token: number created_at?: Date | string } export type TokenSaleUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string investor_id?: StringFieldUpdateOperationsInput | string usdc_amount?: IntFieldUpdateOperationsInput | number tokens_received?: FloatFieldUpdateOperationsInput | number price_per_token?: FloatFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type TokenSaleUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string project_id?: StringFieldUpdateOperationsInput | string investor_id?: StringFieldUpdateOperationsInput | string usdc_amount?: IntFieldUpdateOperationsInput | number tokens_received?: FloatFieldUpdateOperationsInput | number price_per_token?: FloatFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SlashingEventCreateInput = { id?: string slashed_amount: number scout_reward: number treasury_reward: number reason: string created_at?: Date | string agent: AgentProfileCreateNestedOneWithoutSlashing_eventsInput arbitration: ArbitrationCreateNestedOneWithoutSlashing_eventsInput } export type SlashingEventUncheckedCreateInput = { id?: string agent_id: string arbitration_id: string slashed_amount: number scout_reward: number treasury_reward: number reason: string created_at?: Date | string } export type SlashingEventUpdateInput = { id?: StringFieldUpdateOperationsInput | string slashed_amount?: IntFieldUpdateOperationsInput | number scout_reward?: IntFieldUpdateOperationsInput | number treasury_reward?: IntFieldUpdateOperationsInput | number reason?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string agent?: AgentProfileUpdateOneRequiredWithoutSlashing_eventsNestedInput arbitration?: ArbitrationUpdateOneRequiredWithoutSlashing_eventsNestedInput } export type SlashingEventUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string arbitration_id?: StringFieldUpdateOperationsInput | string slashed_amount?: IntFieldUpdateOperationsInput | number scout_reward?: IntFieldUpdateOperationsInput | number treasury_reward?: IntFieldUpdateOperationsInput | number reason?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SlashingEventCreateManyInput = { id?: string agent_id: string arbitration_id: string slashed_amount: number scout_reward: number treasury_reward: number reason: string created_at?: Date | string } export type SlashingEventUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string slashed_amount?: IntFieldUpdateOperationsInput | number scout_reward?: IntFieldUpdateOperationsInput | number treasury_reward?: IntFieldUpdateOperationsInput | number reason?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SlashingEventUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string arbitration_id?: StringFieldUpdateOperationsInput | string slashed_amount?: IntFieldUpdateOperationsInput | number scout_reward?: IntFieldUpdateOperationsInput | number treasury_reward?: IntFieldUpdateOperationsInput | number reason?: StringFieldUpdateOperationsInput | string created_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 AffiliateLedgerListRelationFilter = { every?: AffiliateLedgerWhereInput some?: AffiliateLedgerWhereInput none?: AffiliateLedgerWhereInput } export type BidProposalListRelationFilter = { every?: BidProposalWhereInput some?: BidProposalWhereInput none?: BidProposalWhereInput } export type ArbitrationListRelationFilter = { every?: ArbitrationWhereInput some?: ArbitrationWhereInput none?: ArbitrationWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type ClaimOrderByRelationAggregateInput = { _count?: SortOrder } export type SubmissionOrderByRelationAggregateInput = { _count?: SortOrder } export type AffiliateLedgerOrderByRelationAggregateInput = { _count?: SortOrder } export type BidProposalOrderByRelationAggregateInput = { _count?: SortOrder } export type ArbitrationOrderByRelationAggregateInput = { _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 EnumAgentStatusFilter<$PrismaModel = never> = { equals?: $Enums.AgentStatus | EnumAgentStatusFieldRefInput<$PrismaModel> in?: $Enums.AgentStatus[] | ListEnumAgentStatusFieldRefInput<$PrismaModel> notIn?: $Enums.AgentStatus[] | ListEnumAgentStatusFieldRefInput<$PrismaModel> not?: NestedEnumAgentStatusFilter<$PrismaModel> | $Enums.AgentStatus } export type TaskListRelationFilter = { every?: TaskWhereInput some?: TaskWhereInput none?: TaskWhereInput } export type ScoutReputationNullableScalarRelationFilter = { is?: ScoutReputationWhereInput | null isNot?: ScoutReputationWhereInput | null } export type ArbitrationVoteListRelationFilter = { every?: ArbitrationVoteWhereInput some?: ArbitrationVoteWhereInput none?: ArbitrationVoteWhereInput } export type AgentProjectListRelationFilter = { every?: AgentProjectWhereInput some?: AgentProjectWhereInput none?: AgentProjectWhereInput } export type SlashingEventListRelationFilter = { every?: SlashingEventWhereInput some?: SlashingEventWhereInput none?: SlashingEventWhereInput } export type TaskOrderByRelationAggregateInput = { _count?: SortOrder } export type ArbitrationVoteOrderByRelationAggregateInput = { _count?: SortOrder } export type AgentProjectOrderByRelationAggregateInput = { _count?: SortOrder } export type SlashingEventOrderByRelationAggregateInput = { _count?: SortOrder } export type AgentProfileCountOrderByAggregateInput = { id?: SortOrder agent_id?: SortOrder type?: SortOrder wallet_address?: SortOrder status?: SortOrder capabilities?: SortOrder contact_endpoints?: SortOrder discovery_source?: SortOrder created_at?: SortOrder updated_at?: SortOrder crypto_address?: SortOrder mcp_endpoint?: SortOrder staked_amount?: SortOrder tier?: SortOrder } export type AgentProfileAvgOrderByAggregateInput = { staked_amount?: SortOrder } export type AgentProfileMaxOrderByAggregateInput = { id?: SortOrder agent_id?: SortOrder type?: SortOrder wallet_address?: SortOrder status?: SortOrder discovery_source?: SortOrder created_at?: SortOrder updated_at?: SortOrder crypto_address?: SortOrder mcp_endpoint?: SortOrder staked_amount?: SortOrder tier?: SortOrder } export type AgentProfileMinOrderByAggregateInput = { id?: SortOrder agent_id?: SortOrder type?: SortOrder wallet_address?: SortOrder status?: SortOrder discovery_source?: SortOrder created_at?: SortOrder updated_at?: SortOrder crypto_address?: SortOrder mcp_endpoint?: SortOrder staked_amount?: SortOrder tier?: SortOrder } export type AgentProfileSumOrderByAggregateInput = { staked_amount?: SortOrder } export type EnumAgentStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.AgentStatus | EnumAgentStatusFieldRefInput<$PrismaModel> in?: $Enums.AgentStatus[] | ListEnumAgentStatusFieldRefInput<$PrismaModel> notIn?: $Enums.AgentStatus[] | ListEnumAgentStatusFieldRefInput<$PrismaModel> not?: NestedEnumAgentStatusWithAggregatesFilter<$PrismaModel> | $Enums.AgentStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumAgentStatusFilter<$PrismaModel> _max?: NestedEnumAgentStatusFilter<$PrismaModel> } export type AffiliateLedgerCountOrderByAggregateInput = { id?: SortOrder scout_id?: SortOrder task_id?: SortOrder amount?: SortOrder currency?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AffiliateLedgerAvgOrderByAggregateInput = { amount?: SortOrder } export type AffiliateLedgerMaxOrderByAggregateInput = { id?: SortOrder scout_id?: SortOrder task_id?: SortOrder amount?: SortOrder currency?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AffiliateLedgerMinOrderByAggregateInput = { id?: SortOrder scout_id?: SortOrder task_id?: SortOrder amount?: SortOrder currency?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AffiliateLedgerSumOrderByAggregateInput = { amount?: SortOrder } export type ScoutReputationCountOrderByAggregateInput = { id?: SortOrder scout_id?: SortOrder successful_conversions?: SortOrder spam_score?: SortOrder chargeback_count?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type ScoutReputationAvgOrderByAggregateInput = { successful_conversions?: SortOrder spam_score?: SortOrder chargeback_count?: SortOrder } export type ScoutReputationMaxOrderByAggregateInput = { id?: SortOrder scout_id?: SortOrder successful_conversions?: SortOrder spam_score?: SortOrder chargeback_count?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type ScoutReputationMinOrderByAggregateInput = { id?: SortOrder scout_id?: SortOrder successful_conversions?: SortOrder spam_score?: SortOrder chargeback_count?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type ScoutReputationSumOrderByAggregateInput = { successful_conversions?: SortOrder spam_score?: SortOrder chargeback_count?: SortOrder } export type IntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type FloatNullableFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableFilter<$PrismaModel> | number | null } export type BidProposalTask_idAgent_idCompoundUniqueInput = { task_id: string agent_id: string } export type BidProposalCountOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder proposed_reward?: SortOrder estimated_duration_hours?: SortOrder quality_guarantee?: SortOrder status?: SortOrder counter_offer_amount?: SortOrder broker_agent_id?: SortOrder broker_fee_percentage?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type BidProposalAvgOrderByAggregateInput = { proposed_reward?: SortOrder estimated_duration_hours?: SortOrder counter_offer_amount?: SortOrder broker_fee_percentage?: SortOrder } export type BidProposalMaxOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder proposed_reward?: SortOrder estimated_duration_hours?: SortOrder quality_guarantee?: SortOrder status?: SortOrder counter_offer_amount?: SortOrder broker_agent_id?: SortOrder broker_fee_percentage?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type BidProposalMinOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder proposed_reward?: SortOrder estimated_duration_hours?: SortOrder quality_guarantee?: SortOrder status?: SortOrder counter_offer_amount?: SortOrder broker_agent_id?: SortOrder broker_fee_percentage?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type BidProposalSumOrderByAggregateInput = { proposed_reward?: SortOrder estimated_duration_hours?: SortOrder counter_offer_amount?: SortOrder broker_fee_percentage?: SortOrder } export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedFloatNullableFilter<$PrismaModel> _min?: NestedFloatNullableFilter<$PrismaModel> _max?: NestedFloatNullableFilter<$PrismaModel> } export type AgentWebhookTask_idAgent_idCompoundUniqueInput = { task_id: string agent_id: string } export type AgentWebhookCountOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder webhook_url?: SortOrder events?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AgentWebhookMaxOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder webhook_url?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AgentWebhookMinOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder agent_id?: SortOrder webhook_url?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type ArbitrationCountOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder builder_id?: SortOrder evaluator_id?: SortOrder status?: SortOrder builder_evidence?: SortOrder evaluator_reason?: SortOrder winning_party?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type ArbitrationMaxOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder builder_id?: SortOrder evaluator_id?: SortOrder status?: SortOrder builder_evidence?: SortOrder evaluator_reason?: SortOrder winning_party?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type ArbitrationMinOrderByAggregateInput = { id?: SortOrder task_id?: SortOrder builder_id?: SortOrder evaluator_id?: SortOrder status?: SortOrder builder_evidence?: SortOrder evaluator_reason?: SortOrder winning_party?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type ArbitrationScalarRelationFilter = { is?: ArbitrationWhereInput isNot?: ArbitrationWhereInput } export type ArbitrationVoteArbitration_idJudge_idCompoundUniqueInput = { arbitration_id: string judge_id: string } export type ArbitrationVoteCountOrderByAggregateInput = { id?: SortOrder arbitration_id?: SortOrder judge_id?: SortOrder vote_for?: SortOrder reasoning?: SortOrder created_at?: SortOrder } export type ArbitrationVoteMaxOrderByAggregateInput = { id?: SortOrder arbitration_id?: SortOrder judge_id?: SortOrder vote_for?: SortOrder reasoning?: SortOrder created_at?: SortOrder } export type ArbitrationVoteMinOrderByAggregateInput = { id?: SortOrder arbitration_id?: SortOrder judge_id?: SortOrder vote_for?: SortOrder reasoning?: SortOrder created_at?: SortOrder } export type TokenSaleListRelationFilter = { every?: TokenSaleWhereInput some?: TokenSaleWhereInput none?: TokenSaleWhereInput } export type TokenSaleOrderByRelationAggregateInput = { _count?: SortOrder } export type AgentProjectCountOrderByAggregateInput = { id?: SortOrder creator_agent_id?: SortOrder name?: SortOrder ticker?: SortOrder description?: SortOrder whitepaper_url?: SortOrder target_raise?: SortOrder total_supply?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AgentProjectAvgOrderByAggregateInput = { target_raise?: SortOrder total_supply?: SortOrder } export type AgentProjectMaxOrderByAggregateInput = { id?: SortOrder creator_agent_id?: SortOrder name?: SortOrder ticker?: SortOrder description?: SortOrder whitepaper_url?: SortOrder target_raise?: SortOrder total_supply?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AgentProjectMinOrderByAggregateInput = { id?: SortOrder creator_agent_id?: SortOrder name?: SortOrder ticker?: SortOrder description?: SortOrder whitepaper_url?: SortOrder target_raise?: SortOrder total_supply?: SortOrder status?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AgentProjectSumOrderByAggregateInput = { target_raise?: SortOrder total_supply?: SortOrder } export type AgentProjectScalarRelationFilter = { is?: AgentProjectWhereInput isNot?: AgentProjectWhereInput } export type TokenSaleCountOrderByAggregateInput = { id?: SortOrder project_id?: SortOrder investor_id?: SortOrder usdc_amount?: SortOrder tokens_received?: SortOrder price_per_token?: SortOrder created_at?: SortOrder } export type TokenSaleAvgOrderByAggregateInput = { usdc_amount?: SortOrder tokens_received?: SortOrder price_per_token?: SortOrder } export type TokenSaleMaxOrderByAggregateInput = { id?: SortOrder project_id?: SortOrder investor_id?: SortOrder usdc_amount?: SortOrder tokens_received?: SortOrder price_per_token?: SortOrder created_at?: SortOrder } export type TokenSaleMinOrderByAggregateInput = { id?: SortOrder project_id?: SortOrder investor_id?: SortOrder usdc_amount?: SortOrder tokens_received?: SortOrder price_per_token?: SortOrder created_at?: SortOrder } export type TokenSaleSumOrderByAggregateInput = { usdc_amount?: SortOrder tokens_received?: SortOrder price_per_token?: SortOrder } export type SlashingEventCountOrderByAggregateInput = { id?: SortOrder agent_id?: SortOrder arbitration_id?: SortOrder slashed_amount?: SortOrder scout_reward?: SortOrder treasury_reward?: SortOrder reason?: SortOrder created_at?: SortOrder } export type SlashingEventAvgOrderByAggregateInput = { slashed_amount?: SortOrder scout_reward?: SortOrder treasury_reward?: SortOrder } export type SlashingEventMaxOrderByAggregateInput = { id?: SortOrder agent_id?: SortOrder arbitration_id?: SortOrder slashed_amount?: SortOrder scout_reward?: SortOrder treasury_reward?: SortOrder reason?: SortOrder created_at?: SortOrder } export type SlashingEventMinOrderByAggregateInput = { id?: SortOrder agent_id?: SortOrder arbitration_id?: SortOrder slashed_amount?: SortOrder scout_reward?: SortOrder treasury_reward?: SortOrder reason?: SortOrder created_at?: SortOrder } export type SlashingEventSumOrderByAggregateInput = { slashed_amount?: SortOrder scout_reward?: SortOrder treasury_reward?: 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 AffiliateLedgerCreateNestedManyWithoutTaskInput = { create?: XOR | AffiliateLedgerCreateWithoutTaskInput[] | AffiliateLedgerUncheckedCreateWithoutTaskInput[] connectOrCreate?: AffiliateLedgerCreateOrConnectWithoutTaskInput | AffiliateLedgerCreateOrConnectWithoutTaskInput[] createMany?: AffiliateLedgerCreateManyTaskInputEnvelope connect?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] } export type BidProposalCreateNestedManyWithoutTaskInput = { create?: XOR | BidProposalCreateWithoutTaskInput[] | BidProposalUncheckedCreateWithoutTaskInput[] connectOrCreate?: BidProposalCreateOrConnectWithoutTaskInput | BidProposalCreateOrConnectWithoutTaskInput[] createMany?: BidProposalCreateManyTaskInputEnvelope connect?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] } export type ArbitrationCreateNestedManyWithoutTaskInput = { create?: XOR | ArbitrationCreateWithoutTaskInput[] | ArbitrationUncheckedCreateWithoutTaskInput[] connectOrCreate?: ArbitrationCreateOrConnectWithoutTaskInput | ArbitrationCreateOrConnectWithoutTaskInput[] createMany?: ArbitrationCreateManyTaskInputEnvelope connect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] } 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 AffiliateLedgerUncheckedCreateNestedManyWithoutTaskInput = { create?: XOR | AffiliateLedgerCreateWithoutTaskInput[] | AffiliateLedgerUncheckedCreateWithoutTaskInput[] connectOrCreate?: AffiliateLedgerCreateOrConnectWithoutTaskInput | AffiliateLedgerCreateOrConnectWithoutTaskInput[] createMany?: AffiliateLedgerCreateManyTaskInputEnvelope connect?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] } export type BidProposalUncheckedCreateNestedManyWithoutTaskInput = { create?: XOR | BidProposalCreateWithoutTaskInput[] | BidProposalUncheckedCreateWithoutTaskInput[] connectOrCreate?: BidProposalCreateOrConnectWithoutTaskInput | BidProposalCreateOrConnectWithoutTaskInput[] createMany?: BidProposalCreateManyTaskInputEnvelope connect?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] } export type ArbitrationUncheckedCreateNestedManyWithoutTaskInput = { create?: XOR | ArbitrationCreateWithoutTaskInput[] | ArbitrationUncheckedCreateWithoutTaskInput[] connectOrCreate?: ArbitrationCreateOrConnectWithoutTaskInput | ArbitrationCreateOrConnectWithoutTaskInput[] createMany?: ArbitrationCreateManyTaskInputEnvelope connect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] } 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 AffiliateLedgerUpdateManyWithoutTaskNestedInput = { create?: XOR | AffiliateLedgerCreateWithoutTaskInput[] | AffiliateLedgerUncheckedCreateWithoutTaskInput[] connectOrCreate?: AffiliateLedgerCreateOrConnectWithoutTaskInput | AffiliateLedgerCreateOrConnectWithoutTaskInput[] upsert?: AffiliateLedgerUpsertWithWhereUniqueWithoutTaskInput | AffiliateLedgerUpsertWithWhereUniqueWithoutTaskInput[] createMany?: AffiliateLedgerCreateManyTaskInputEnvelope set?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] disconnect?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] delete?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] connect?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] update?: AffiliateLedgerUpdateWithWhereUniqueWithoutTaskInput | AffiliateLedgerUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: AffiliateLedgerUpdateManyWithWhereWithoutTaskInput | AffiliateLedgerUpdateManyWithWhereWithoutTaskInput[] deleteMany?: AffiliateLedgerScalarWhereInput | AffiliateLedgerScalarWhereInput[] } export type BidProposalUpdateManyWithoutTaskNestedInput = { create?: XOR | BidProposalCreateWithoutTaskInput[] | BidProposalUncheckedCreateWithoutTaskInput[] connectOrCreate?: BidProposalCreateOrConnectWithoutTaskInput | BidProposalCreateOrConnectWithoutTaskInput[] upsert?: BidProposalUpsertWithWhereUniqueWithoutTaskInput | BidProposalUpsertWithWhereUniqueWithoutTaskInput[] createMany?: BidProposalCreateManyTaskInputEnvelope set?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] disconnect?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] delete?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] connect?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] update?: BidProposalUpdateWithWhereUniqueWithoutTaskInput | BidProposalUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: BidProposalUpdateManyWithWhereWithoutTaskInput | BidProposalUpdateManyWithWhereWithoutTaskInput[] deleteMany?: BidProposalScalarWhereInput | BidProposalScalarWhereInput[] } export type ArbitrationUpdateManyWithoutTaskNestedInput = { create?: XOR | ArbitrationCreateWithoutTaskInput[] | ArbitrationUncheckedCreateWithoutTaskInput[] connectOrCreate?: ArbitrationCreateOrConnectWithoutTaskInput | ArbitrationCreateOrConnectWithoutTaskInput[] upsert?: ArbitrationUpsertWithWhereUniqueWithoutTaskInput | ArbitrationUpsertWithWhereUniqueWithoutTaskInput[] createMany?: ArbitrationCreateManyTaskInputEnvelope set?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] disconnect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] delete?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] connect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] update?: ArbitrationUpdateWithWhereUniqueWithoutTaskInput | ArbitrationUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: ArbitrationUpdateManyWithWhereWithoutTaskInput | ArbitrationUpdateManyWithWhereWithoutTaskInput[] deleteMany?: ArbitrationScalarWhereInput | ArbitrationScalarWhereInput[] } 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 AffiliateLedgerUncheckedUpdateManyWithoutTaskNestedInput = { create?: XOR | AffiliateLedgerCreateWithoutTaskInput[] | AffiliateLedgerUncheckedCreateWithoutTaskInput[] connectOrCreate?: AffiliateLedgerCreateOrConnectWithoutTaskInput | AffiliateLedgerCreateOrConnectWithoutTaskInput[] upsert?: AffiliateLedgerUpsertWithWhereUniqueWithoutTaskInput | AffiliateLedgerUpsertWithWhereUniqueWithoutTaskInput[] createMany?: AffiliateLedgerCreateManyTaskInputEnvelope set?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] disconnect?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] delete?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] connect?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] update?: AffiliateLedgerUpdateWithWhereUniqueWithoutTaskInput | AffiliateLedgerUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: AffiliateLedgerUpdateManyWithWhereWithoutTaskInput | AffiliateLedgerUpdateManyWithWhereWithoutTaskInput[] deleteMany?: AffiliateLedgerScalarWhereInput | AffiliateLedgerScalarWhereInput[] } export type BidProposalUncheckedUpdateManyWithoutTaskNestedInput = { create?: XOR | BidProposalCreateWithoutTaskInput[] | BidProposalUncheckedCreateWithoutTaskInput[] connectOrCreate?: BidProposalCreateOrConnectWithoutTaskInput | BidProposalCreateOrConnectWithoutTaskInput[] upsert?: BidProposalUpsertWithWhereUniqueWithoutTaskInput | BidProposalUpsertWithWhereUniqueWithoutTaskInput[] createMany?: BidProposalCreateManyTaskInputEnvelope set?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] disconnect?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] delete?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] connect?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] update?: BidProposalUpdateWithWhereUniqueWithoutTaskInput | BidProposalUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: BidProposalUpdateManyWithWhereWithoutTaskInput | BidProposalUpdateManyWithWhereWithoutTaskInput[] deleteMany?: BidProposalScalarWhereInput | BidProposalScalarWhereInput[] } export type ArbitrationUncheckedUpdateManyWithoutTaskNestedInput = { create?: XOR | ArbitrationCreateWithoutTaskInput[] | ArbitrationUncheckedCreateWithoutTaskInput[] connectOrCreate?: ArbitrationCreateOrConnectWithoutTaskInput | ArbitrationCreateOrConnectWithoutTaskInput[] upsert?: ArbitrationUpsertWithWhereUniqueWithoutTaskInput | ArbitrationUpsertWithWhereUniqueWithoutTaskInput[] createMany?: ArbitrationCreateManyTaskInputEnvelope set?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] disconnect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] delete?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] connect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] update?: ArbitrationUpdateWithWhereUniqueWithoutTaskInput | ArbitrationUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: ArbitrationUpdateManyWithWhereWithoutTaskInput | ArbitrationUpdateManyWithWhereWithoutTaskInput[] deleteMany?: ArbitrationScalarWhereInput | ArbitrationScalarWhereInput[] } 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 ScoutReputationCreateNestedOneWithoutScout_agentInput = { create?: XOR connectOrCreate?: ScoutReputationCreateOrConnectWithoutScout_agentInput connect?: ScoutReputationWhereUniqueInput } export type AffiliateLedgerCreateNestedManyWithoutScout_agentInput = { create?: XOR | AffiliateLedgerCreateWithoutScout_agentInput[] | AffiliateLedgerUncheckedCreateWithoutScout_agentInput[] connectOrCreate?: AffiliateLedgerCreateOrConnectWithoutScout_agentInput | AffiliateLedgerCreateOrConnectWithoutScout_agentInput[] createMany?: AffiliateLedgerCreateManyScout_agentInputEnvelope connect?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] } export type BidProposalCreateNestedManyWithoutAgentInput = { create?: XOR | BidProposalCreateWithoutAgentInput[] | BidProposalUncheckedCreateWithoutAgentInput[] connectOrCreate?: BidProposalCreateOrConnectWithoutAgentInput | BidProposalCreateOrConnectWithoutAgentInput[] createMany?: BidProposalCreateManyAgentInputEnvelope connect?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] } export type ArbitrationCreateNestedManyWithoutBuilderInput = { create?: XOR | ArbitrationCreateWithoutBuilderInput[] | ArbitrationUncheckedCreateWithoutBuilderInput[] connectOrCreate?: ArbitrationCreateOrConnectWithoutBuilderInput | ArbitrationCreateOrConnectWithoutBuilderInput[] createMany?: ArbitrationCreateManyBuilderInputEnvelope connect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] } export type ArbitrationCreateNestedManyWithoutEvaluatorInput = { create?: XOR | ArbitrationCreateWithoutEvaluatorInput[] | ArbitrationUncheckedCreateWithoutEvaluatorInput[] connectOrCreate?: ArbitrationCreateOrConnectWithoutEvaluatorInput | ArbitrationCreateOrConnectWithoutEvaluatorInput[] createMany?: ArbitrationCreateManyEvaluatorInputEnvelope connect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] } export type ArbitrationVoteCreateNestedManyWithoutJudgeInput = { create?: XOR | ArbitrationVoteCreateWithoutJudgeInput[] | ArbitrationVoteUncheckedCreateWithoutJudgeInput[] connectOrCreate?: ArbitrationVoteCreateOrConnectWithoutJudgeInput | ArbitrationVoteCreateOrConnectWithoutJudgeInput[] createMany?: ArbitrationVoteCreateManyJudgeInputEnvelope connect?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] } export type AgentProjectCreateNestedManyWithoutCreatorInput = { create?: XOR | AgentProjectCreateWithoutCreatorInput[] | AgentProjectUncheckedCreateWithoutCreatorInput[] connectOrCreate?: AgentProjectCreateOrConnectWithoutCreatorInput | AgentProjectCreateOrConnectWithoutCreatorInput[] createMany?: AgentProjectCreateManyCreatorInputEnvelope connect?: AgentProjectWhereUniqueInput | AgentProjectWhereUniqueInput[] } export type SlashingEventCreateNestedManyWithoutAgentInput = { create?: XOR | SlashingEventCreateWithoutAgentInput[] | SlashingEventUncheckedCreateWithoutAgentInput[] connectOrCreate?: SlashingEventCreateOrConnectWithoutAgentInput | SlashingEventCreateOrConnectWithoutAgentInput[] createMany?: SlashingEventCreateManyAgentInputEnvelope connect?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] } 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 ScoutReputationUncheckedCreateNestedOneWithoutScout_agentInput = { create?: XOR connectOrCreate?: ScoutReputationCreateOrConnectWithoutScout_agentInput connect?: ScoutReputationWhereUniqueInput } export type AffiliateLedgerUncheckedCreateNestedManyWithoutScout_agentInput = { create?: XOR | AffiliateLedgerCreateWithoutScout_agentInput[] | AffiliateLedgerUncheckedCreateWithoutScout_agentInput[] connectOrCreate?: AffiliateLedgerCreateOrConnectWithoutScout_agentInput | AffiliateLedgerCreateOrConnectWithoutScout_agentInput[] createMany?: AffiliateLedgerCreateManyScout_agentInputEnvelope connect?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] } export type BidProposalUncheckedCreateNestedManyWithoutAgentInput = { create?: XOR | BidProposalCreateWithoutAgentInput[] | BidProposalUncheckedCreateWithoutAgentInput[] connectOrCreate?: BidProposalCreateOrConnectWithoutAgentInput | BidProposalCreateOrConnectWithoutAgentInput[] createMany?: BidProposalCreateManyAgentInputEnvelope connect?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] } export type ArbitrationUncheckedCreateNestedManyWithoutBuilderInput = { create?: XOR | ArbitrationCreateWithoutBuilderInput[] | ArbitrationUncheckedCreateWithoutBuilderInput[] connectOrCreate?: ArbitrationCreateOrConnectWithoutBuilderInput | ArbitrationCreateOrConnectWithoutBuilderInput[] createMany?: ArbitrationCreateManyBuilderInputEnvelope connect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] } export type ArbitrationUncheckedCreateNestedManyWithoutEvaluatorInput = { create?: XOR | ArbitrationCreateWithoutEvaluatorInput[] | ArbitrationUncheckedCreateWithoutEvaluatorInput[] connectOrCreate?: ArbitrationCreateOrConnectWithoutEvaluatorInput | ArbitrationCreateOrConnectWithoutEvaluatorInput[] createMany?: ArbitrationCreateManyEvaluatorInputEnvelope connect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] } export type ArbitrationVoteUncheckedCreateNestedManyWithoutJudgeInput = { create?: XOR | ArbitrationVoteCreateWithoutJudgeInput[] | ArbitrationVoteUncheckedCreateWithoutJudgeInput[] connectOrCreate?: ArbitrationVoteCreateOrConnectWithoutJudgeInput | ArbitrationVoteCreateOrConnectWithoutJudgeInput[] createMany?: ArbitrationVoteCreateManyJudgeInputEnvelope connect?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] } export type AgentProjectUncheckedCreateNestedManyWithoutCreatorInput = { create?: XOR | AgentProjectCreateWithoutCreatorInput[] | AgentProjectUncheckedCreateWithoutCreatorInput[] connectOrCreate?: AgentProjectCreateOrConnectWithoutCreatorInput | AgentProjectCreateOrConnectWithoutCreatorInput[] createMany?: AgentProjectCreateManyCreatorInputEnvelope connect?: AgentProjectWhereUniqueInput | AgentProjectWhereUniqueInput[] } export type SlashingEventUncheckedCreateNestedManyWithoutAgentInput = { create?: XOR | SlashingEventCreateWithoutAgentInput[] | SlashingEventUncheckedCreateWithoutAgentInput[] connectOrCreate?: SlashingEventCreateOrConnectWithoutAgentInput | SlashingEventCreateOrConnectWithoutAgentInput[] createMany?: SlashingEventCreateManyAgentInputEnvelope connect?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] } export type EnumAgentStatusFieldUpdateOperationsInput = { set?: $Enums.AgentStatus } 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 ScoutReputationUpdateOneWithoutScout_agentNestedInput = { create?: XOR connectOrCreate?: ScoutReputationCreateOrConnectWithoutScout_agentInput upsert?: ScoutReputationUpsertWithoutScout_agentInput disconnect?: ScoutReputationWhereInput | boolean delete?: ScoutReputationWhereInput | boolean connect?: ScoutReputationWhereUniqueInput update?: XOR, ScoutReputationUncheckedUpdateWithoutScout_agentInput> } export type AffiliateLedgerUpdateManyWithoutScout_agentNestedInput = { create?: XOR | AffiliateLedgerCreateWithoutScout_agentInput[] | AffiliateLedgerUncheckedCreateWithoutScout_agentInput[] connectOrCreate?: AffiliateLedgerCreateOrConnectWithoutScout_agentInput | AffiliateLedgerCreateOrConnectWithoutScout_agentInput[] upsert?: AffiliateLedgerUpsertWithWhereUniqueWithoutScout_agentInput | AffiliateLedgerUpsertWithWhereUniqueWithoutScout_agentInput[] createMany?: AffiliateLedgerCreateManyScout_agentInputEnvelope set?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] disconnect?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] delete?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] connect?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] update?: AffiliateLedgerUpdateWithWhereUniqueWithoutScout_agentInput | AffiliateLedgerUpdateWithWhereUniqueWithoutScout_agentInput[] updateMany?: AffiliateLedgerUpdateManyWithWhereWithoutScout_agentInput | AffiliateLedgerUpdateManyWithWhereWithoutScout_agentInput[] deleteMany?: AffiliateLedgerScalarWhereInput | AffiliateLedgerScalarWhereInput[] } export type BidProposalUpdateManyWithoutAgentNestedInput = { create?: XOR | BidProposalCreateWithoutAgentInput[] | BidProposalUncheckedCreateWithoutAgentInput[] connectOrCreate?: BidProposalCreateOrConnectWithoutAgentInput | BidProposalCreateOrConnectWithoutAgentInput[] upsert?: BidProposalUpsertWithWhereUniqueWithoutAgentInput | BidProposalUpsertWithWhereUniqueWithoutAgentInput[] createMany?: BidProposalCreateManyAgentInputEnvelope set?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] disconnect?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] delete?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] connect?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] update?: BidProposalUpdateWithWhereUniqueWithoutAgentInput | BidProposalUpdateWithWhereUniqueWithoutAgentInput[] updateMany?: BidProposalUpdateManyWithWhereWithoutAgentInput | BidProposalUpdateManyWithWhereWithoutAgentInput[] deleteMany?: BidProposalScalarWhereInput | BidProposalScalarWhereInput[] } export type ArbitrationUpdateManyWithoutBuilderNestedInput = { create?: XOR | ArbitrationCreateWithoutBuilderInput[] | ArbitrationUncheckedCreateWithoutBuilderInput[] connectOrCreate?: ArbitrationCreateOrConnectWithoutBuilderInput | ArbitrationCreateOrConnectWithoutBuilderInput[] upsert?: ArbitrationUpsertWithWhereUniqueWithoutBuilderInput | ArbitrationUpsertWithWhereUniqueWithoutBuilderInput[] createMany?: ArbitrationCreateManyBuilderInputEnvelope set?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] disconnect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] delete?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] connect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] update?: ArbitrationUpdateWithWhereUniqueWithoutBuilderInput | ArbitrationUpdateWithWhereUniqueWithoutBuilderInput[] updateMany?: ArbitrationUpdateManyWithWhereWithoutBuilderInput | ArbitrationUpdateManyWithWhereWithoutBuilderInput[] deleteMany?: ArbitrationScalarWhereInput | ArbitrationScalarWhereInput[] } export type ArbitrationUpdateManyWithoutEvaluatorNestedInput = { create?: XOR | ArbitrationCreateWithoutEvaluatorInput[] | ArbitrationUncheckedCreateWithoutEvaluatorInput[] connectOrCreate?: ArbitrationCreateOrConnectWithoutEvaluatorInput | ArbitrationCreateOrConnectWithoutEvaluatorInput[] upsert?: ArbitrationUpsertWithWhereUniqueWithoutEvaluatorInput | ArbitrationUpsertWithWhereUniqueWithoutEvaluatorInput[] createMany?: ArbitrationCreateManyEvaluatorInputEnvelope set?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] disconnect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] delete?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] connect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] update?: ArbitrationUpdateWithWhereUniqueWithoutEvaluatorInput | ArbitrationUpdateWithWhereUniqueWithoutEvaluatorInput[] updateMany?: ArbitrationUpdateManyWithWhereWithoutEvaluatorInput | ArbitrationUpdateManyWithWhereWithoutEvaluatorInput[] deleteMany?: ArbitrationScalarWhereInput | ArbitrationScalarWhereInput[] } export type ArbitrationVoteUpdateManyWithoutJudgeNestedInput = { create?: XOR | ArbitrationVoteCreateWithoutJudgeInput[] | ArbitrationVoteUncheckedCreateWithoutJudgeInput[] connectOrCreate?: ArbitrationVoteCreateOrConnectWithoutJudgeInput | ArbitrationVoteCreateOrConnectWithoutJudgeInput[] upsert?: ArbitrationVoteUpsertWithWhereUniqueWithoutJudgeInput | ArbitrationVoteUpsertWithWhereUniqueWithoutJudgeInput[] createMany?: ArbitrationVoteCreateManyJudgeInputEnvelope set?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] disconnect?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] delete?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] connect?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] update?: ArbitrationVoteUpdateWithWhereUniqueWithoutJudgeInput | ArbitrationVoteUpdateWithWhereUniqueWithoutJudgeInput[] updateMany?: ArbitrationVoteUpdateManyWithWhereWithoutJudgeInput | ArbitrationVoteUpdateManyWithWhereWithoutJudgeInput[] deleteMany?: ArbitrationVoteScalarWhereInput | ArbitrationVoteScalarWhereInput[] } export type AgentProjectUpdateManyWithoutCreatorNestedInput = { create?: XOR | AgentProjectCreateWithoutCreatorInput[] | AgentProjectUncheckedCreateWithoutCreatorInput[] connectOrCreate?: AgentProjectCreateOrConnectWithoutCreatorInput | AgentProjectCreateOrConnectWithoutCreatorInput[] upsert?: AgentProjectUpsertWithWhereUniqueWithoutCreatorInput | AgentProjectUpsertWithWhereUniqueWithoutCreatorInput[] createMany?: AgentProjectCreateManyCreatorInputEnvelope set?: AgentProjectWhereUniqueInput | AgentProjectWhereUniqueInput[] disconnect?: AgentProjectWhereUniqueInput | AgentProjectWhereUniqueInput[] delete?: AgentProjectWhereUniqueInput | AgentProjectWhereUniqueInput[] connect?: AgentProjectWhereUniqueInput | AgentProjectWhereUniqueInput[] update?: AgentProjectUpdateWithWhereUniqueWithoutCreatorInput | AgentProjectUpdateWithWhereUniqueWithoutCreatorInput[] updateMany?: AgentProjectUpdateManyWithWhereWithoutCreatorInput | AgentProjectUpdateManyWithWhereWithoutCreatorInput[] deleteMany?: AgentProjectScalarWhereInput | AgentProjectScalarWhereInput[] } export type SlashingEventUpdateManyWithoutAgentNestedInput = { create?: XOR | SlashingEventCreateWithoutAgentInput[] | SlashingEventUncheckedCreateWithoutAgentInput[] connectOrCreate?: SlashingEventCreateOrConnectWithoutAgentInput | SlashingEventCreateOrConnectWithoutAgentInput[] upsert?: SlashingEventUpsertWithWhereUniqueWithoutAgentInput | SlashingEventUpsertWithWhereUniqueWithoutAgentInput[] createMany?: SlashingEventCreateManyAgentInputEnvelope set?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] disconnect?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] delete?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] connect?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] update?: SlashingEventUpdateWithWhereUniqueWithoutAgentInput | SlashingEventUpdateWithWhereUniqueWithoutAgentInput[] updateMany?: SlashingEventUpdateManyWithWhereWithoutAgentInput | SlashingEventUpdateManyWithWhereWithoutAgentInput[] deleteMany?: SlashingEventScalarWhereInput | SlashingEventScalarWhereInput[] } 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 ScoutReputationUncheckedUpdateOneWithoutScout_agentNestedInput = { create?: XOR connectOrCreate?: ScoutReputationCreateOrConnectWithoutScout_agentInput upsert?: ScoutReputationUpsertWithoutScout_agentInput disconnect?: ScoutReputationWhereInput | boolean delete?: ScoutReputationWhereInput | boolean connect?: ScoutReputationWhereUniqueInput update?: XOR, ScoutReputationUncheckedUpdateWithoutScout_agentInput> } export type AffiliateLedgerUncheckedUpdateManyWithoutScout_agentNestedInput = { create?: XOR | AffiliateLedgerCreateWithoutScout_agentInput[] | AffiliateLedgerUncheckedCreateWithoutScout_agentInput[] connectOrCreate?: AffiliateLedgerCreateOrConnectWithoutScout_agentInput | AffiliateLedgerCreateOrConnectWithoutScout_agentInput[] upsert?: AffiliateLedgerUpsertWithWhereUniqueWithoutScout_agentInput | AffiliateLedgerUpsertWithWhereUniqueWithoutScout_agentInput[] createMany?: AffiliateLedgerCreateManyScout_agentInputEnvelope set?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] disconnect?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] delete?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] connect?: AffiliateLedgerWhereUniqueInput | AffiliateLedgerWhereUniqueInput[] update?: AffiliateLedgerUpdateWithWhereUniqueWithoutScout_agentInput | AffiliateLedgerUpdateWithWhereUniqueWithoutScout_agentInput[] updateMany?: AffiliateLedgerUpdateManyWithWhereWithoutScout_agentInput | AffiliateLedgerUpdateManyWithWhereWithoutScout_agentInput[] deleteMany?: AffiliateLedgerScalarWhereInput | AffiliateLedgerScalarWhereInput[] } export type BidProposalUncheckedUpdateManyWithoutAgentNestedInput = { create?: XOR | BidProposalCreateWithoutAgentInput[] | BidProposalUncheckedCreateWithoutAgentInput[] connectOrCreate?: BidProposalCreateOrConnectWithoutAgentInput | BidProposalCreateOrConnectWithoutAgentInput[] upsert?: BidProposalUpsertWithWhereUniqueWithoutAgentInput | BidProposalUpsertWithWhereUniqueWithoutAgentInput[] createMany?: BidProposalCreateManyAgentInputEnvelope set?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] disconnect?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] delete?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] connect?: BidProposalWhereUniqueInput | BidProposalWhereUniqueInput[] update?: BidProposalUpdateWithWhereUniqueWithoutAgentInput | BidProposalUpdateWithWhereUniqueWithoutAgentInput[] updateMany?: BidProposalUpdateManyWithWhereWithoutAgentInput | BidProposalUpdateManyWithWhereWithoutAgentInput[] deleteMany?: BidProposalScalarWhereInput | BidProposalScalarWhereInput[] } export type ArbitrationUncheckedUpdateManyWithoutBuilderNestedInput = { create?: XOR | ArbitrationCreateWithoutBuilderInput[] | ArbitrationUncheckedCreateWithoutBuilderInput[] connectOrCreate?: ArbitrationCreateOrConnectWithoutBuilderInput | ArbitrationCreateOrConnectWithoutBuilderInput[] upsert?: ArbitrationUpsertWithWhereUniqueWithoutBuilderInput | ArbitrationUpsertWithWhereUniqueWithoutBuilderInput[] createMany?: ArbitrationCreateManyBuilderInputEnvelope set?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] disconnect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] delete?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] connect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] update?: ArbitrationUpdateWithWhereUniqueWithoutBuilderInput | ArbitrationUpdateWithWhereUniqueWithoutBuilderInput[] updateMany?: ArbitrationUpdateManyWithWhereWithoutBuilderInput | ArbitrationUpdateManyWithWhereWithoutBuilderInput[] deleteMany?: ArbitrationScalarWhereInput | ArbitrationScalarWhereInput[] } export type ArbitrationUncheckedUpdateManyWithoutEvaluatorNestedInput = { create?: XOR | ArbitrationCreateWithoutEvaluatorInput[] | ArbitrationUncheckedCreateWithoutEvaluatorInput[] connectOrCreate?: ArbitrationCreateOrConnectWithoutEvaluatorInput | ArbitrationCreateOrConnectWithoutEvaluatorInput[] upsert?: ArbitrationUpsertWithWhereUniqueWithoutEvaluatorInput | ArbitrationUpsertWithWhereUniqueWithoutEvaluatorInput[] createMany?: ArbitrationCreateManyEvaluatorInputEnvelope set?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] disconnect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] delete?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] connect?: ArbitrationWhereUniqueInput | ArbitrationWhereUniqueInput[] update?: ArbitrationUpdateWithWhereUniqueWithoutEvaluatorInput | ArbitrationUpdateWithWhereUniqueWithoutEvaluatorInput[] updateMany?: ArbitrationUpdateManyWithWhereWithoutEvaluatorInput | ArbitrationUpdateManyWithWhereWithoutEvaluatorInput[] deleteMany?: ArbitrationScalarWhereInput | ArbitrationScalarWhereInput[] } export type ArbitrationVoteUncheckedUpdateManyWithoutJudgeNestedInput = { create?: XOR | ArbitrationVoteCreateWithoutJudgeInput[] | ArbitrationVoteUncheckedCreateWithoutJudgeInput[] connectOrCreate?: ArbitrationVoteCreateOrConnectWithoutJudgeInput | ArbitrationVoteCreateOrConnectWithoutJudgeInput[] upsert?: ArbitrationVoteUpsertWithWhereUniqueWithoutJudgeInput | ArbitrationVoteUpsertWithWhereUniqueWithoutJudgeInput[] createMany?: ArbitrationVoteCreateManyJudgeInputEnvelope set?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] disconnect?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] delete?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] connect?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] update?: ArbitrationVoteUpdateWithWhereUniqueWithoutJudgeInput | ArbitrationVoteUpdateWithWhereUniqueWithoutJudgeInput[] updateMany?: ArbitrationVoteUpdateManyWithWhereWithoutJudgeInput | ArbitrationVoteUpdateManyWithWhereWithoutJudgeInput[] deleteMany?: ArbitrationVoteScalarWhereInput | ArbitrationVoteScalarWhereInput[] } export type AgentProjectUncheckedUpdateManyWithoutCreatorNestedInput = { create?: XOR | AgentProjectCreateWithoutCreatorInput[] | AgentProjectUncheckedCreateWithoutCreatorInput[] connectOrCreate?: AgentProjectCreateOrConnectWithoutCreatorInput | AgentProjectCreateOrConnectWithoutCreatorInput[] upsert?: AgentProjectUpsertWithWhereUniqueWithoutCreatorInput | AgentProjectUpsertWithWhereUniqueWithoutCreatorInput[] createMany?: AgentProjectCreateManyCreatorInputEnvelope set?: AgentProjectWhereUniqueInput | AgentProjectWhereUniqueInput[] disconnect?: AgentProjectWhereUniqueInput | AgentProjectWhereUniqueInput[] delete?: AgentProjectWhereUniqueInput | AgentProjectWhereUniqueInput[] connect?: AgentProjectWhereUniqueInput | AgentProjectWhereUniqueInput[] update?: AgentProjectUpdateWithWhereUniqueWithoutCreatorInput | AgentProjectUpdateWithWhereUniqueWithoutCreatorInput[] updateMany?: AgentProjectUpdateManyWithWhereWithoutCreatorInput | AgentProjectUpdateManyWithWhereWithoutCreatorInput[] deleteMany?: AgentProjectScalarWhereInput | AgentProjectScalarWhereInput[] } export type SlashingEventUncheckedUpdateManyWithoutAgentNestedInput = { create?: XOR | SlashingEventCreateWithoutAgentInput[] | SlashingEventUncheckedCreateWithoutAgentInput[] connectOrCreate?: SlashingEventCreateOrConnectWithoutAgentInput | SlashingEventCreateOrConnectWithoutAgentInput[] upsert?: SlashingEventUpsertWithWhereUniqueWithoutAgentInput | SlashingEventUpsertWithWhereUniqueWithoutAgentInput[] createMany?: SlashingEventCreateManyAgentInputEnvelope set?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] disconnect?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] delete?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] connect?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] update?: SlashingEventUpdateWithWhereUniqueWithoutAgentInput | SlashingEventUpdateWithWhereUniqueWithoutAgentInput[] updateMany?: SlashingEventUpdateManyWithWhereWithoutAgentInput | SlashingEventUpdateManyWithWhereWithoutAgentInput[] deleteMany?: SlashingEventScalarWhereInput | SlashingEventScalarWhereInput[] } export type AgentProfileCreateNestedOneWithoutAffiliate_ledgerInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutAffiliate_ledgerInput connect?: AgentProfileWhereUniqueInput } export type TaskCreateNestedOneWithoutAffiliate_ledgerInput = { create?: XOR connectOrCreate?: TaskCreateOrConnectWithoutAffiliate_ledgerInput connect?: TaskWhereUniqueInput } export type AgentProfileUpdateOneRequiredWithoutAffiliate_ledgerNestedInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutAffiliate_ledgerInput upsert?: AgentProfileUpsertWithoutAffiliate_ledgerInput connect?: AgentProfileWhereUniqueInput update?: XOR, AgentProfileUncheckedUpdateWithoutAffiliate_ledgerInput> } export type TaskUpdateOneRequiredWithoutAffiliate_ledgerNestedInput = { create?: XOR connectOrCreate?: TaskCreateOrConnectWithoutAffiliate_ledgerInput upsert?: TaskUpsertWithoutAffiliate_ledgerInput connect?: TaskWhereUniqueInput update?: XOR, TaskUncheckedUpdateWithoutAffiliate_ledgerInput> } export type AgentProfileCreateNestedOneWithoutScout_reputationInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutScout_reputationInput connect?: AgentProfileWhereUniqueInput } export type AgentProfileUpdateOneRequiredWithoutScout_reputationNestedInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutScout_reputationInput upsert?: AgentProfileUpsertWithoutScout_reputationInput connect?: AgentProfileWhereUniqueInput update?: XOR, AgentProfileUncheckedUpdateWithoutScout_reputationInput> } export type TaskCreateNestedOneWithoutBid_proposalsInput = { create?: XOR connectOrCreate?: TaskCreateOrConnectWithoutBid_proposalsInput connect?: TaskWhereUniqueInput } export type AgentProfileCreateNestedOneWithoutBid_proposalsInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutBid_proposalsInput connect?: AgentProfileWhereUniqueInput } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type NullableFloatFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type TaskUpdateOneRequiredWithoutBid_proposalsNestedInput = { create?: XOR connectOrCreate?: TaskCreateOrConnectWithoutBid_proposalsInput upsert?: TaskUpsertWithoutBid_proposalsInput connect?: TaskWhereUniqueInput update?: XOR, TaskUncheckedUpdateWithoutBid_proposalsInput> } export type AgentProfileUpdateOneRequiredWithoutBid_proposalsNestedInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutBid_proposalsInput upsert?: AgentProfileUpsertWithoutBid_proposalsInput connect?: AgentProfileWhereUniqueInput update?: XOR, AgentProfileUncheckedUpdateWithoutBid_proposalsInput> } export type AgentWebhookCreateeventsInput = { set: string[] } export type AgentWebhookUpdateeventsInput = { set?: string[] push?: string | string[] } export type TaskCreateNestedOneWithoutArbitrationsInput = { create?: XOR connectOrCreate?: TaskCreateOrConnectWithoutArbitrationsInput connect?: TaskWhereUniqueInput } export type AgentProfileCreateNestedOneWithoutArbitrations_as_builderInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutArbitrations_as_builderInput connect?: AgentProfileWhereUniqueInput } export type AgentProfileCreateNestedOneWithoutArbitrations_as_evaluatorInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutArbitrations_as_evaluatorInput connect?: AgentProfileWhereUniqueInput } export type ArbitrationVoteCreateNestedManyWithoutArbitrationInput = { create?: XOR | ArbitrationVoteCreateWithoutArbitrationInput[] | ArbitrationVoteUncheckedCreateWithoutArbitrationInput[] connectOrCreate?: ArbitrationVoteCreateOrConnectWithoutArbitrationInput | ArbitrationVoteCreateOrConnectWithoutArbitrationInput[] createMany?: ArbitrationVoteCreateManyArbitrationInputEnvelope connect?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] } export type SlashingEventCreateNestedManyWithoutArbitrationInput = { create?: XOR | SlashingEventCreateWithoutArbitrationInput[] | SlashingEventUncheckedCreateWithoutArbitrationInput[] connectOrCreate?: SlashingEventCreateOrConnectWithoutArbitrationInput | SlashingEventCreateOrConnectWithoutArbitrationInput[] createMany?: SlashingEventCreateManyArbitrationInputEnvelope connect?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] } export type ArbitrationVoteUncheckedCreateNestedManyWithoutArbitrationInput = { create?: XOR | ArbitrationVoteCreateWithoutArbitrationInput[] | ArbitrationVoteUncheckedCreateWithoutArbitrationInput[] connectOrCreate?: ArbitrationVoteCreateOrConnectWithoutArbitrationInput | ArbitrationVoteCreateOrConnectWithoutArbitrationInput[] createMany?: ArbitrationVoteCreateManyArbitrationInputEnvelope connect?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] } export type SlashingEventUncheckedCreateNestedManyWithoutArbitrationInput = { create?: XOR | SlashingEventCreateWithoutArbitrationInput[] | SlashingEventUncheckedCreateWithoutArbitrationInput[] connectOrCreate?: SlashingEventCreateOrConnectWithoutArbitrationInput | SlashingEventCreateOrConnectWithoutArbitrationInput[] createMany?: SlashingEventCreateManyArbitrationInputEnvelope connect?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] } export type TaskUpdateOneRequiredWithoutArbitrationsNestedInput = { create?: XOR connectOrCreate?: TaskCreateOrConnectWithoutArbitrationsInput upsert?: TaskUpsertWithoutArbitrationsInput connect?: TaskWhereUniqueInput update?: XOR, TaskUncheckedUpdateWithoutArbitrationsInput> } export type AgentProfileUpdateOneRequiredWithoutArbitrations_as_builderNestedInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutArbitrations_as_builderInput upsert?: AgentProfileUpsertWithoutArbitrations_as_builderInput connect?: AgentProfileWhereUniqueInput update?: XOR, AgentProfileUncheckedUpdateWithoutArbitrations_as_builderInput> } export type AgentProfileUpdateOneRequiredWithoutArbitrations_as_evaluatorNestedInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutArbitrations_as_evaluatorInput upsert?: AgentProfileUpsertWithoutArbitrations_as_evaluatorInput connect?: AgentProfileWhereUniqueInput update?: XOR, AgentProfileUncheckedUpdateWithoutArbitrations_as_evaluatorInput> } export type ArbitrationVoteUpdateManyWithoutArbitrationNestedInput = { create?: XOR | ArbitrationVoteCreateWithoutArbitrationInput[] | ArbitrationVoteUncheckedCreateWithoutArbitrationInput[] connectOrCreate?: ArbitrationVoteCreateOrConnectWithoutArbitrationInput | ArbitrationVoteCreateOrConnectWithoutArbitrationInput[] upsert?: ArbitrationVoteUpsertWithWhereUniqueWithoutArbitrationInput | ArbitrationVoteUpsertWithWhereUniqueWithoutArbitrationInput[] createMany?: ArbitrationVoteCreateManyArbitrationInputEnvelope set?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] disconnect?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] delete?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] connect?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] update?: ArbitrationVoteUpdateWithWhereUniqueWithoutArbitrationInput | ArbitrationVoteUpdateWithWhereUniqueWithoutArbitrationInput[] updateMany?: ArbitrationVoteUpdateManyWithWhereWithoutArbitrationInput | ArbitrationVoteUpdateManyWithWhereWithoutArbitrationInput[] deleteMany?: ArbitrationVoteScalarWhereInput | ArbitrationVoteScalarWhereInput[] } export type SlashingEventUpdateManyWithoutArbitrationNestedInput = { create?: XOR | SlashingEventCreateWithoutArbitrationInput[] | SlashingEventUncheckedCreateWithoutArbitrationInput[] connectOrCreate?: SlashingEventCreateOrConnectWithoutArbitrationInput | SlashingEventCreateOrConnectWithoutArbitrationInput[] upsert?: SlashingEventUpsertWithWhereUniqueWithoutArbitrationInput | SlashingEventUpsertWithWhereUniqueWithoutArbitrationInput[] createMany?: SlashingEventCreateManyArbitrationInputEnvelope set?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] disconnect?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] delete?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] connect?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] update?: SlashingEventUpdateWithWhereUniqueWithoutArbitrationInput | SlashingEventUpdateWithWhereUniqueWithoutArbitrationInput[] updateMany?: SlashingEventUpdateManyWithWhereWithoutArbitrationInput | SlashingEventUpdateManyWithWhereWithoutArbitrationInput[] deleteMany?: SlashingEventScalarWhereInput | SlashingEventScalarWhereInput[] } export type ArbitrationVoteUncheckedUpdateManyWithoutArbitrationNestedInput = { create?: XOR | ArbitrationVoteCreateWithoutArbitrationInput[] | ArbitrationVoteUncheckedCreateWithoutArbitrationInput[] connectOrCreate?: ArbitrationVoteCreateOrConnectWithoutArbitrationInput | ArbitrationVoteCreateOrConnectWithoutArbitrationInput[] upsert?: ArbitrationVoteUpsertWithWhereUniqueWithoutArbitrationInput | ArbitrationVoteUpsertWithWhereUniqueWithoutArbitrationInput[] createMany?: ArbitrationVoteCreateManyArbitrationInputEnvelope set?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] disconnect?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] delete?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] connect?: ArbitrationVoteWhereUniqueInput | ArbitrationVoteWhereUniqueInput[] update?: ArbitrationVoteUpdateWithWhereUniqueWithoutArbitrationInput | ArbitrationVoteUpdateWithWhereUniqueWithoutArbitrationInput[] updateMany?: ArbitrationVoteUpdateManyWithWhereWithoutArbitrationInput | ArbitrationVoteUpdateManyWithWhereWithoutArbitrationInput[] deleteMany?: ArbitrationVoteScalarWhereInput | ArbitrationVoteScalarWhereInput[] } export type SlashingEventUncheckedUpdateManyWithoutArbitrationNestedInput = { create?: XOR | SlashingEventCreateWithoutArbitrationInput[] | SlashingEventUncheckedCreateWithoutArbitrationInput[] connectOrCreate?: SlashingEventCreateOrConnectWithoutArbitrationInput | SlashingEventCreateOrConnectWithoutArbitrationInput[] upsert?: SlashingEventUpsertWithWhereUniqueWithoutArbitrationInput | SlashingEventUpsertWithWhereUniqueWithoutArbitrationInput[] createMany?: SlashingEventCreateManyArbitrationInputEnvelope set?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] disconnect?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] delete?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] connect?: SlashingEventWhereUniqueInput | SlashingEventWhereUniqueInput[] update?: SlashingEventUpdateWithWhereUniqueWithoutArbitrationInput | SlashingEventUpdateWithWhereUniqueWithoutArbitrationInput[] updateMany?: SlashingEventUpdateManyWithWhereWithoutArbitrationInput | SlashingEventUpdateManyWithWhereWithoutArbitrationInput[] deleteMany?: SlashingEventScalarWhereInput | SlashingEventScalarWhereInput[] } export type ArbitrationCreateNestedOneWithoutVotesInput = { create?: XOR connectOrCreate?: ArbitrationCreateOrConnectWithoutVotesInput connect?: ArbitrationWhereUniqueInput } export type AgentProfileCreateNestedOneWithoutArbitration_votesInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutArbitration_votesInput connect?: AgentProfileWhereUniqueInput } export type ArbitrationUpdateOneRequiredWithoutVotesNestedInput = { create?: XOR connectOrCreate?: ArbitrationCreateOrConnectWithoutVotesInput upsert?: ArbitrationUpsertWithoutVotesInput connect?: ArbitrationWhereUniqueInput update?: XOR, ArbitrationUncheckedUpdateWithoutVotesInput> } export type AgentProfileUpdateOneRequiredWithoutArbitration_votesNestedInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutArbitration_votesInput upsert?: AgentProfileUpsertWithoutArbitration_votesInput connect?: AgentProfileWhereUniqueInput update?: XOR, AgentProfileUncheckedUpdateWithoutArbitration_votesInput> } export type AgentProfileCreateNestedOneWithoutCreated_projectsInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutCreated_projectsInput connect?: AgentProfileWhereUniqueInput } export type TokenSaleCreateNestedManyWithoutProjectInput = { create?: XOR | TokenSaleCreateWithoutProjectInput[] | TokenSaleUncheckedCreateWithoutProjectInput[] connectOrCreate?: TokenSaleCreateOrConnectWithoutProjectInput | TokenSaleCreateOrConnectWithoutProjectInput[] createMany?: TokenSaleCreateManyProjectInputEnvelope connect?: TokenSaleWhereUniqueInput | TokenSaleWhereUniqueInput[] } export type TokenSaleUncheckedCreateNestedManyWithoutProjectInput = { create?: XOR | TokenSaleCreateWithoutProjectInput[] | TokenSaleUncheckedCreateWithoutProjectInput[] connectOrCreate?: TokenSaleCreateOrConnectWithoutProjectInput | TokenSaleCreateOrConnectWithoutProjectInput[] createMany?: TokenSaleCreateManyProjectInputEnvelope connect?: TokenSaleWhereUniqueInput | TokenSaleWhereUniqueInput[] } export type AgentProfileUpdateOneRequiredWithoutCreated_projectsNestedInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutCreated_projectsInput upsert?: AgentProfileUpsertWithoutCreated_projectsInput connect?: AgentProfileWhereUniqueInput update?: XOR, AgentProfileUncheckedUpdateWithoutCreated_projectsInput> } export type TokenSaleUpdateManyWithoutProjectNestedInput = { create?: XOR | TokenSaleCreateWithoutProjectInput[] | TokenSaleUncheckedCreateWithoutProjectInput[] connectOrCreate?: TokenSaleCreateOrConnectWithoutProjectInput | TokenSaleCreateOrConnectWithoutProjectInput[] upsert?: TokenSaleUpsertWithWhereUniqueWithoutProjectInput | TokenSaleUpsertWithWhereUniqueWithoutProjectInput[] createMany?: TokenSaleCreateManyProjectInputEnvelope set?: TokenSaleWhereUniqueInput | TokenSaleWhereUniqueInput[] disconnect?: TokenSaleWhereUniqueInput | TokenSaleWhereUniqueInput[] delete?: TokenSaleWhereUniqueInput | TokenSaleWhereUniqueInput[] connect?: TokenSaleWhereUniqueInput | TokenSaleWhereUniqueInput[] update?: TokenSaleUpdateWithWhereUniqueWithoutProjectInput | TokenSaleUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: TokenSaleUpdateManyWithWhereWithoutProjectInput | TokenSaleUpdateManyWithWhereWithoutProjectInput[] deleteMany?: TokenSaleScalarWhereInput | TokenSaleScalarWhereInput[] } export type TokenSaleUncheckedUpdateManyWithoutProjectNestedInput = { create?: XOR | TokenSaleCreateWithoutProjectInput[] | TokenSaleUncheckedCreateWithoutProjectInput[] connectOrCreate?: TokenSaleCreateOrConnectWithoutProjectInput | TokenSaleCreateOrConnectWithoutProjectInput[] upsert?: TokenSaleUpsertWithWhereUniqueWithoutProjectInput | TokenSaleUpsertWithWhereUniqueWithoutProjectInput[] createMany?: TokenSaleCreateManyProjectInputEnvelope set?: TokenSaleWhereUniqueInput | TokenSaleWhereUniqueInput[] disconnect?: TokenSaleWhereUniqueInput | TokenSaleWhereUniqueInput[] delete?: TokenSaleWhereUniqueInput | TokenSaleWhereUniqueInput[] connect?: TokenSaleWhereUniqueInput | TokenSaleWhereUniqueInput[] update?: TokenSaleUpdateWithWhereUniqueWithoutProjectInput | TokenSaleUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: TokenSaleUpdateManyWithWhereWithoutProjectInput | TokenSaleUpdateManyWithWhereWithoutProjectInput[] deleteMany?: TokenSaleScalarWhereInput | TokenSaleScalarWhereInput[] } export type AgentProjectCreateNestedOneWithoutToken_salesInput = { create?: XOR connectOrCreate?: AgentProjectCreateOrConnectWithoutToken_salesInput connect?: AgentProjectWhereUniqueInput } export type AgentProjectUpdateOneRequiredWithoutToken_salesNestedInput = { create?: XOR connectOrCreate?: AgentProjectCreateOrConnectWithoutToken_salesInput upsert?: AgentProjectUpsertWithoutToken_salesInput connect?: AgentProjectWhereUniqueInput update?: XOR, AgentProjectUncheckedUpdateWithoutToken_salesInput> } export type AgentProfileCreateNestedOneWithoutSlashing_eventsInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutSlashing_eventsInput connect?: AgentProfileWhereUniqueInput } export type ArbitrationCreateNestedOneWithoutSlashing_eventsInput = { create?: XOR connectOrCreate?: ArbitrationCreateOrConnectWithoutSlashing_eventsInput connect?: ArbitrationWhereUniqueInput } export type AgentProfileUpdateOneRequiredWithoutSlashing_eventsNestedInput = { create?: XOR connectOrCreate?: AgentProfileCreateOrConnectWithoutSlashing_eventsInput upsert?: AgentProfileUpsertWithoutSlashing_eventsInput connect?: AgentProfileWhereUniqueInput update?: XOR, AgentProfileUncheckedUpdateWithoutSlashing_eventsInput> } export type ArbitrationUpdateOneRequiredWithoutSlashing_eventsNestedInput = { create?: XOR connectOrCreate?: ArbitrationCreateOrConnectWithoutSlashing_eventsInput upsert?: ArbitrationUpsertWithoutSlashing_eventsInput connect?: ArbitrationWhereUniqueInput update?: XOR, ArbitrationUncheckedUpdateWithoutSlashing_eventsInput> } 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 NestedEnumAgentStatusFilter<$PrismaModel = never> = { equals?: $Enums.AgentStatus | EnumAgentStatusFieldRefInput<$PrismaModel> in?: $Enums.AgentStatus[] | ListEnumAgentStatusFieldRefInput<$PrismaModel> notIn?: $Enums.AgentStatus[] | ListEnumAgentStatusFieldRefInput<$PrismaModel> not?: NestedEnumAgentStatusFilter<$PrismaModel> | $Enums.AgentStatus } export type NestedEnumAgentStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.AgentStatus | EnumAgentStatusFieldRefInput<$PrismaModel> in?: $Enums.AgentStatus[] | ListEnumAgentStatusFieldRefInput<$PrismaModel> notIn?: $Enums.AgentStatus[] | ListEnumAgentStatusFieldRefInput<$PrismaModel> not?: NestedEnumAgentStatusWithAggregatesFilter<$PrismaModel> | $Enums.AgentStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumAgentStatusFilter<$PrismaModel> _max?: NestedEnumAgentStatusFilter<$PrismaModel> } export type NestedFloatNullableFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableFilter<$PrismaModel> | number | null } export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedFloatNullableFilter<$PrismaModel> _min?: NestedFloatNullableFilter<$PrismaModel> _max?: NestedFloatNullableFilter<$PrismaModel> } export type AgentProfileCreateWithoutTasks_as_scoutInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateWithoutTasks_as_scoutInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationUncheckedCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationUncheckedCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationUncheckedCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectUncheckedCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutAgentInput } 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?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateWithoutTasks_as_builderInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationUncheckedCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationUncheckedCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationUncheckedCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectUncheckedCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutAgentInput } 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 AffiliateLedgerCreateWithoutTaskInput = { id?: string amount: number currency: string status: string created_at?: Date | string updated_at?: Date | string scout_agent: AgentProfileCreateNestedOneWithoutAffiliate_ledgerInput } export type AffiliateLedgerUncheckedCreateWithoutTaskInput = { id?: string scout_id: string amount: number currency: string status: string created_at?: Date | string updated_at?: Date | string } export type AffiliateLedgerCreateOrConnectWithoutTaskInput = { where: AffiliateLedgerWhereUniqueInput create: XOR } export type AffiliateLedgerCreateManyTaskInputEnvelope = { data: AffiliateLedgerCreateManyTaskInput | AffiliateLedgerCreateManyTaskInput[] skipDuplicates?: boolean } export type BidProposalCreateWithoutTaskInput = { id?: string proposed_reward: number estimated_duration_hours: number quality_guarantee?: string | null status: string counter_offer_amount?: number | null broker_agent_id?: string | null broker_fee_percentage?: number | null created_at?: Date | string updated_at?: Date | string agent: AgentProfileCreateNestedOneWithoutBid_proposalsInput } export type BidProposalUncheckedCreateWithoutTaskInput = { id?: string agent_id: string proposed_reward: number estimated_duration_hours: number quality_guarantee?: string | null status: string counter_offer_amount?: number | null broker_agent_id?: string | null broker_fee_percentage?: number | null created_at?: Date | string updated_at?: Date | string } export type BidProposalCreateOrConnectWithoutTaskInput = { where: BidProposalWhereUniqueInput create: XOR } export type BidProposalCreateManyTaskInputEnvelope = { data: BidProposalCreateManyTaskInput | BidProposalCreateManyTaskInput[] skipDuplicates?: boolean } export type ArbitrationCreateWithoutTaskInput = { id?: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string builder: AgentProfileCreateNestedOneWithoutArbitrations_as_builderInput evaluator: AgentProfileCreateNestedOneWithoutArbitrations_as_evaluatorInput votes?: ArbitrationVoteCreateNestedManyWithoutArbitrationInput slashing_events?: SlashingEventCreateNestedManyWithoutArbitrationInput } export type ArbitrationUncheckedCreateWithoutTaskInput = { id?: string builder_id: string evaluator_id: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutArbitrationInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutArbitrationInput } export type ArbitrationCreateOrConnectWithoutTaskInput = { where: ArbitrationWhereUniqueInput create: XOR } export type ArbitrationCreateManyTaskInputEnvelope = { data: ArbitrationCreateManyTaskInput | ArbitrationCreateManyTaskInput[] 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?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateWithoutTasks_as_scoutInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUncheckedUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUncheckedUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUncheckedUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUncheckedUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUncheckedUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutAgentNestedInput } 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?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateWithoutTasks_as_builderInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUncheckedUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUncheckedUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUncheckedUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUncheckedUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUncheckedUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutAgentNestedInput } 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 AffiliateLedgerUpsertWithWhereUniqueWithoutTaskInput = { where: AffiliateLedgerWhereUniqueInput update: XOR create: XOR } export type AffiliateLedgerUpdateWithWhereUniqueWithoutTaskInput = { where: AffiliateLedgerWhereUniqueInput data: XOR } export type AffiliateLedgerUpdateManyWithWhereWithoutTaskInput = { where: AffiliateLedgerScalarWhereInput data: XOR } export type AffiliateLedgerScalarWhereInput = { AND?: AffiliateLedgerScalarWhereInput | AffiliateLedgerScalarWhereInput[] OR?: AffiliateLedgerScalarWhereInput[] NOT?: AffiliateLedgerScalarWhereInput | AffiliateLedgerScalarWhereInput[] id?: StringFilter<"AffiliateLedger"> | string scout_id?: StringFilter<"AffiliateLedger"> | string task_id?: StringFilter<"AffiliateLedger"> | string amount?: IntFilter<"AffiliateLedger"> | number currency?: StringFilter<"AffiliateLedger"> | string status?: StringFilter<"AffiliateLedger"> | string created_at?: DateTimeFilter<"AffiliateLedger"> | Date | string updated_at?: DateTimeFilter<"AffiliateLedger"> | Date | string } export type BidProposalUpsertWithWhereUniqueWithoutTaskInput = { where: BidProposalWhereUniqueInput update: XOR create: XOR } export type BidProposalUpdateWithWhereUniqueWithoutTaskInput = { where: BidProposalWhereUniqueInput data: XOR } export type BidProposalUpdateManyWithWhereWithoutTaskInput = { where: BidProposalScalarWhereInput data: XOR } export type BidProposalScalarWhereInput = { AND?: BidProposalScalarWhereInput | BidProposalScalarWhereInput[] OR?: BidProposalScalarWhereInput[] NOT?: BidProposalScalarWhereInput | BidProposalScalarWhereInput[] id?: StringFilter<"BidProposal"> | string task_id?: StringFilter<"BidProposal"> | string agent_id?: StringFilter<"BidProposal"> | string proposed_reward?: IntFilter<"BidProposal"> | number estimated_duration_hours?: FloatFilter<"BidProposal"> | number quality_guarantee?: StringNullableFilter<"BidProposal"> | string | null status?: StringFilter<"BidProposal"> | string counter_offer_amount?: IntNullableFilter<"BidProposal"> | number | null broker_agent_id?: StringNullableFilter<"BidProposal"> | string | null broker_fee_percentage?: FloatNullableFilter<"BidProposal"> | number | null created_at?: DateTimeFilter<"BidProposal"> | Date | string updated_at?: DateTimeFilter<"BidProposal"> | Date | string } export type ArbitrationUpsertWithWhereUniqueWithoutTaskInput = { where: ArbitrationWhereUniqueInput update: XOR create: XOR } export type ArbitrationUpdateWithWhereUniqueWithoutTaskInput = { where: ArbitrationWhereUniqueInput data: XOR } export type ArbitrationUpdateManyWithWhereWithoutTaskInput = { where: ArbitrationScalarWhereInput data: XOR } export type ArbitrationScalarWhereInput = { AND?: ArbitrationScalarWhereInput | ArbitrationScalarWhereInput[] OR?: ArbitrationScalarWhereInput[] NOT?: ArbitrationScalarWhereInput | ArbitrationScalarWhereInput[] id?: StringFilter<"Arbitration"> | string task_id?: StringFilter<"Arbitration"> | string builder_id?: StringFilter<"Arbitration"> | string evaluator_id?: StringFilter<"Arbitration"> | string status?: StringFilter<"Arbitration"> | string builder_evidence?: StringNullableFilter<"Arbitration"> | string | null evaluator_reason?: StringNullableFilter<"Arbitration"> | string | null winning_party?: StringNullableFilter<"Arbitration"> | string | null created_at?: DateTimeFilter<"Arbitration"> | Date | string updated_at?: DateTimeFilter<"Arbitration"> | 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 affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutTaskInput bid_proposals?: BidProposalCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationCreateNestedManyWithoutTaskInput } 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 affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutTaskInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationUncheckedCreateNestedManyWithoutTaskInput } export type TaskCreateOrConnectWithoutClaimsInput = { where: TaskWhereUniqueInput create: XOR } export type AgentProfileCreateWithoutClaimsInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput scout_reputation?: ScoutReputationCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateWithoutClaimsInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput scout_reputation?: ScoutReputationUncheckedCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationUncheckedCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationUncheckedCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectUncheckedCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutAgentInput } 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 affiliate_ledger?: AffiliateLedgerUpdateManyWithoutTaskNestedInput bid_proposals?: BidProposalUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUpdateManyWithoutTaskNestedInput } 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 affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutTaskNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUncheckedUpdateManyWithoutTaskNestedInput } 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?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput scout_reputation?: ScoutReputationUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateWithoutClaimsInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput scout_reputation?: ScoutReputationUncheckedUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUncheckedUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUncheckedUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUncheckedUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUncheckedUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutAgentNestedInput } 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 affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutTaskInput bid_proposals?: BidProposalCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationCreateNestedManyWithoutTaskInput } 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 affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutTaskInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationUncheckedCreateNestedManyWithoutTaskInput } 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 affiliate_ledger?: AffiliateLedgerUpdateManyWithoutTaskNestedInput bid_proposals?: BidProposalUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUpdateManyWithoutTaskNestedInput } 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 affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutTaskNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUncheckedUpdateManyWithoutTaskNestedInput } 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 affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutTaskInput bid_proposals?: BidProposalCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationCreateNestedManyWithoutTaskInput } 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 affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutTaskInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationUncheckedCreateNestedManyWithoutTaskInput } 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 affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutTaskInput bid_proposals?: BidProposalCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationCreateNestedManyWithoutTaskInput } 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 affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutTaskInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationUncheckedCreateNestedManyWithoutTaskInput } 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 ScoutReputationCreateWithoutScout_agentInput = { id?: string successful_conversions?: number spam_score?: number chargeback_count?: number created_at?: Date | string updated_at?: Date | string } export type ScoutReputationUncheckedCreateWithoutScout_agentInput = { id?: string successful_conversions?: number spam_score?: number chargeback_count?: number created_at?: Date | string updated_at?: Date | string } export type ScoutReputationCreateOrConnectWithoutScout_agentInput = { where: ScoutReputationWhereUniqueInput create: XOR } export type AffiliateLedgerCreateWithoutScout_agentInput = { id?: string amount: number currency: string status: string created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutAffiliate_ledgerInput } export type AffiliateLedgerUncheckedCreateWithoutScout_agentInput = { id?: string task_id: string amount: number currency: string status: string created_at?: Date | string updated_at?: Date | string } export type AffiliateLedgerCreateOrConnectWithoutScout_agentInput = { where: AffiliateLedgerWhereUniqueInput create: XOR } export type AffiliateLedgerCreateManyScout_agentInputEnvelope = { data: AffiliateLedgerCreateManyScout_agentInput | AffiliateLedgerCreateManyScout_agentInput[] skipDuplicates?: boolean } export type BidProposalCreateWithoutAgentInput = { id?: string proposed_reward: number estimated_duration_hours: number quality_guarantee?: string | null status: string counter_offer_amount?: number | null broker_agent_id?: string | null broker_fee_percentage?: number | null created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutBid_proposalsInput } export type BidProposalUncheckedCreateWithoutAgentInput = { id?: string task_id: string proposed_reward: number estimated_duration_hours: number quality_guarantee?: string | null status: string counter_offer_amount?: number | null broker_agent_id?: string | null broker_fee_percentage?: number | null created_at?: Date | string updated_at?: Date | string } export type BidProposalCreateOrConnectWithoutAgentInput = { where: BidProposalWhereUniqueInput create: XOR } export type BidProposalCreateManyAgentInputEnvelope = { data: BidProposalCreateManyAgentInput | BidProposalCreateManyAgentInput[] skipDuplicates?: boolean } export type ArbitrationCreateWithoutBuilderInput = { id?: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutArbitrationsInput evaluator: AgentProfileCreateNestedOneWithoutArbitrations_as_evaluatorInput votes?: ArbitrationVoteCreateNestedManyWithoutArbitrationInput slashing_events?: SlashingEventCreateNestedManyWithoutArbitrationInput } export type ArbitrationUncheckedCreateWithoutBuilderInput = { id?: string task_id: string evaluator_id: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutArbitrationInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutArbitrationInput } export type ArbitrationCreateOrConnectWithoutBuilderInput = { where: ArbitrationWhereUniqueInput create: XOR } export type ArbitrationCreateManyBuilderInputEnvelope = { data: ArbitrationCreateManyBuilderInput | ArbitrationCreateManyBuilderInput[] skipDuplicates?: boolean } export type ArbitrationCreateWithoutEvaluatorInput = { id?: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutArbitrationsInput builder: AgentProfileCreateNestedOneWithoutArbitrations_as_builderInput votes?: ArbitrationVoteCreateNestedManyWithoutArbitrationInput slashing_events?: SlashingEventCreateNestedManyWithoutArbitrationInput } export type ArbitrationUncheckedCreateWithoutEvaluatorInput = { id?: string task_id: string builder_id: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutArbitrationInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutArbitrationInput } export type ArbitrationCreateOrConnectWithoutEvaluatorInput = { where: ArbitrationWhereUniqueInput create: XOR } export type ArbitrationCreateManyEvaluatorInputEnvelope = { data: ArbitrationCreateManyEvaluatorInput | ArbitrationCreateManyEvaluatorInput[] skipDuplicates?: boolean } export type ArbitrationVoteCreateWithoutJudgeInput = { id?: string vote_for: string reasoning?: string | null created_at?: Date | string arbitration: ArbitrationCreateNestedOneWithoutVotesInput } export type ArbitrationVoteUncheckedCreateWithoutJudgeInput = { id?: string arbitration_id: string vote_for: string reasoning?: string | null created_at?: Date | string } export type ArbitrationVoteCreateOrConnectWithoutJudgeInput = { where: ArbitrationVoteWhereUniqueInput create: XOR } export type ArbitrationVoteCreateManyJudgeInputEnvelope = { data: ArbitrationVoteCreateManyJudgeInput | ArbitrationVoteCreateManyJudgeInput[] skipDuplicates?: boolean } export type AgentProjectCreateWithoutCreatorInput = { id?: string name: string ticker: string description: string whitepaper_url?: string | null target_raise: number total_supply: number status?: string created_at?: Date | string updated_at?: Date | string token_sales?: TokenSaleCreateNestedManyWithoutProjectInput } export type AgentProjectUncheckedCreateWithoutCreatorInput = { id?: string name: string ticker: string description: string whitepaper_url?: string | null target_raise: number total_supply: number status?: string created_at?: Date | string updated_at?: Date | string token_sales?: TokenSaleUncheckedCreateNestedManyWithoutProjectInput } export type AgentProjectCreateOrConnectWithoutCreatorInput = { where: AgentProjectWhereUniqueInput create: XOR } export type AgentProjectCreateManyCreatorInputEnvelope = { data: AgentProjectCreateManyCreatorInput | AgentProjectCreateManyCreatorInput[] skipDuplicates?: boolean } export type SlashingEventCreateWithoutAgentInput = { id?: string slashed_amount: number scout_reward: number treasury_reward: number reason: string created_at?: Date | string arbitration: ArbitrationCreateNestedOneWithoutSlashing_eventsInput } export type SlashingEventUncheckedCreateWithoutAgentInput = { id?: string arbitration_id: string slashed_amount: number scout_reward: number treasury_reward: number reason: string created_at?: Date | string } export type SlashingEventCreateOrConnectWithoutAgentInput = { where: SlashingEventWhereUniqueInput create: XOR } export type SlashingEventCreateManyAgentInputEnvelope = { data: SlashingEventCreateManyAgentInput | SlashingEventCreateManyAgentInput[] 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 ScoutReputationUpsertWithoutScout_agentInput = { update: XOR create: XOR where?: ScoutReputationWhereInput } export type ScoutReputationUpdateToOneWithWhereWithoutScout_agentInput = { where?: ScoutReputationWhereInput data: XOR } export type ScoutReputationUpdateWithoutScout_agentInput = { id?: StringFieldUpdateOperationsInput | string successful_conversions?: IntFieldUpdateOperationsInput | number spam_score?: FloatFieldUpdateOperationsInput | number chargeback_count?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ScoutReputationUncheckedUpdateWithoutScout_agentInput = { id?: StringFieldUpdateOperationsInput | string successful_conversions?: IntFieldUpdateOperationsInput | number spam_score?: FloatFieldUpdateOperationsInput | number chargeback_count?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AffiliateLedgerUpsertWithWhereUniqueWithoutScout_agentInput = { where: AffiliateLedgerWhereUniqueInput update: XOR create: XOR } export type AffiliateLedgerUpdateWithWhereUniqueWithoutScout_agentInput = { where: AffiliateLedgerWhereUniqueInput data: XOR } export type AffiliateLedgerUpdateManyWithWhereWithoutScout_agentInput = { where: AffiliateLedgerScalarWhereInput data: XOR } export type BidProposalUpsertWithWhereUniqueWithoutAgentInput = { where: BidProposalWhereUniqueInput update: XOR create: XOR } export type BidProposalUpdateWithWhereUniqueWithoutAgentInput = { where: BidProposalWhereUniqueInput data: XOR } export type BidProposalUpdateManyWithWhereWithoutAgentInput = { where: BidProposalScalarWhereInput data: XOR } export type ArbitrationUpsertWithWhereUniqueWithoutBuilderInput = { where: ArbitrationWhereUniqueInput update: XOR create: XOR } export type ArbitrationUpdateWithWhereUniqueWithoutBuilderInput = { where: ArbitrationWhereUniqueInput data: XOR } export type ArbitrationUpdateManyWithWhereWithoutBuilderInput = { where: ArbitrationScalarWhereInput data: XOR } export type ArbitrationUpsertWithWhereUniqueWithoutEvaluatorInput = { where: ArbitrationWhereUniqueInput update: XOR create: XOR } export type ArbitrationUpdateWithWhereUniqueWithoutEvaluatorInput = { where: ArbitrationWhereUniqueInput data: XOR } export type ArbitrationUpdateManyWithWhereWithoutEvaluatorInput = { where: ArbitrationScalarWhereInput data: XOR } export type ArbitrationVoteUpsertWithWhereUniqueWithoutJudgeInput = { where: ArbitrationVoteWhereUniqueInput update: XOR create: XOR } export type ArbitrationVoteUpdateWithWhereUniqueWithoutJudgeInput = { where: ArbitrationVoteWhereUniqueInput data: XOR } export type ArbitrationVoteUpdateManyWithWhereWithoutJudgeInput = { where: ArbitrationVoteScalarWhereInput data: XOR } export type ArbitrationVoteScalarWhereInput = { AND?: ArbitrationVoteScalarWhereInput | ArbitrationVoteScalarWhereInput[] OR?: ArbitrationVoteScalarWhereInput[] NOT?: ArbitrationVoteScalarWhereInput | ArbitrationVoteScalarWhereInput[] id?: StringFilter<"ArbitrationVote"> | string arbitration_id?: StringFilter<"ArbitrationVote"> | string judge_id?: StringFilter<"ArbitrationVote"> | string vote_for?: StringFilter<"ArbitrationVote"> | string reasoning?: StringNullableFilter<"ArbitrationVote"> | string | null created_at?: DateTimeFilter<"ArbitrationVote"> | Date | string } export type AgentProjectUpsertWithWhereUniqueWithoutCreatorInput = { where: AgentProjectWhereUniqueInput update: XOR create: XOR } export type AgentProjectUpdateWithWhereUniqueWithoutCreatorInput = { where: AgentProjectWhereUniqueInput data: XOR } export type AgentProjectUpdateManyWithWhereWithoutCreatorInput = { where: AgentProjectScalarWhereInput data: XOR } export type AgentProjectScalarWhereInput = { AND?: AgentProjectScalarWhereInput | AgentProjectScalarWhereInput[] OR?: AgentProjectScalarWhereInput[] NOT?: AgentProjectScalarWhereInput | AgentProjectScalarWhereInput[] id?: StringFilter<"AgentProject"> | string creator_agent_id?: StringFilter<"AgentProject"> | string name?: StringFilter<"AgentProject"> | string ticker?: StringFilter<"AgentProject"> | string description?: StringFilter<"AgentProject"> | string whitepaper_url?: StringNullableFilter<"AgentProject"> | string | null target_raise?: IntFilter<"AgentProject"> | number total_supply?: IntFilter<"AgentProject"> | number status?: StringFilter<"AgentProject"> | string created_at?: DateTimeFilter<"AgentProject"> | Date | string updated_at?: DateTimeFilter<"AgentProject"> | Date | string } export type SlashingEventUpsertWithWhereUniqueWithoutAgentInput = { where: SlashingEventWhereUniqueInput update: XOR create: XOR } export type SlashingEventUpdateWithWhereUniqueWithoutAgentInput = { where: SlashingEventWhereUniqueInput data: XOR } export type SlashingEventUpdateManyWithWhereWithoutAgentInput = { where: SlashingEventScalarWhereInput data: XOR } export type SlashingEventScalarWhereInput = { AND?: SlashingEventScalarWhereInput | SlashingEventScalarWhereInput[] OR?: SlashingEventScalarWhereInput[] NOT?: SlashingEventScalarWhereInput | SlashingEventScalarWhereInput[] id?: StringFilter<"SlashingEvent"> | string agent_id?: StringFilter<"SlashingEvent"> | string arbitration_id?: StringFilter<"SlashingEvent"> | string slashed_amount?: IntFilter<"SlashingEvent"> | number scout_reward?: IntFilter<"SlashingEvent"> | number treasury_reward?: IntFilter<"SlashingEvent"> | number reason?: StringFilter<"SlashingEvent"> | string created_at?: DateTimeFilter<"SlashingEvent"> | Date | string } export type AgentProfileCreateWithoutAffiliate_ledgerInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationCreateNestedOneWithoutScout_agentInput bid_proposals?: BidProposalCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateWithoutAffiliate_ledgerInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationUncheckedCreateNestedOneWithoutScout_agentInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationUncheckedCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationUncheckedCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectUncheckedCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutAgentInput } export type AgentProfileCreateOrConnectWithoutAffiliate_ledgerInput = { where: AgentProfileWhereUniqueInput create: XOR } export type TaskCreateWithoutAffiliate_ledgerInput = { 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 bid_proposals?: BidProposalCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationCreateNestedManyWithoutTaskInput } export type TaskUncheckedCreateWithoutAffiliate_ledgerInput = { 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 bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationUncheckedCreateNestedManyWithoutTaskInput } export type TaskCreateOrConnectWithoutAffiliate_ledgerInput = { where: TaskWhereUniqueInput create: XOR } export type AgentProfileUpsertWithoutAffiliate_ledgerInput = { update: XOR create: XOR where?: AgentProfileWhereInput } export type AgentProfileUpdateToOneWithWhereWithoutAffiliate_ledgerInput = { where?: AgentProfileWhereInput data: XOR } export type AgentProfileUpdateWithoutAffiliate_ledgerInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUpdateOneWithoutScout_agentNestedInput bid_proposals?: BidProposalUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateWithoutAffiliate_ledgerInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUncheckedUpdateOneWithoutScout_agentNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUncheckedUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUncheckedUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUncheckedUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUncheckedUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutAgentNestedInput } export type TaskUpsertWithoutAffiliate_ledgerInput = { update: XOR create: XOR where?: TaskWhereInput } export type TaskUpdateToOneWithWhereWithoutAffiliate_ledgerInput = { where?: TaskWhereInput data: XOR } export type TaskUpdateWithoutAffiliate_ledgerInput = { 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 bid_proposals?: BidProposalUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateWithoutAffiliate_ledgerInput = { 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 bid_proposals?: BidProposalUncheckedUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUncheckedUpdateManyWithoutTaskNestedInput } export type AgentProfileCreateWithoutScout_reputationInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateWithoutScout_reputationInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationUncheckedCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationUncheckedCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectUncheckedCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutAgentInput } export type AgentProfileCreateOrConnectWithoutScout_reputationInput = { where: AgentProfileWhereUniqueInput create: XOR } export type AgentProfileUpsertWithoutScout_reputationInput = { update: XOR create: XOR where?: AgentProfileWhereInput } export type AgentProfileUpdateToOneWithWhereWithoutScout_reputationInput = { where?: AgentProfileWhereInput data: XOR } export type AgentProfileUpdateWithoutScout_reputationInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput affiliate_ledger?: AffiliateLedgerUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateWithoutScout_reputationInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUncheckedUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUncheckedUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUncheckedUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUncheckedUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutAgentNestedInput } export type TaskCreateWithoutBid_proposalsInput = { 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 affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationCreateNestedManyWithoutTaskInput } export type TaskUncheckedCreateWithoutBid_proposalsInput = { 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 affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutTaskInput arbitrations?: ArbitrationUncheckedCreateNestedManyWithoutTaskInput } export type TaskCreateOrConnectWithoutBid_proposalsInput = { where: TaskWhereUniqueInput create: XOR } export type AgentProfileCreateWithoutBid_proposalsInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutScout_agentInput arbitrations_as_builder?: ArbitrationCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateWithoutBid_proposalsInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationUncheckedCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutScout_agentInput arbitrations_as_builder?: ArbitrationUncheckedCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationUncheckedCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectUncheckedCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutAgentInput } export type AgentProfileCreateOrConnectWithoutBid_proposalsInput = { where: AgentProfileWhereUniqueInput create: XOR } export type TaskUpsertWithoutBid_proposalsInput = { update: XOR create: XOR where?: TaskWhereInput } export type TaskUpdateToOneWithWhereWithoutBid_proposalsInput = { where?: TaskWhereInput data: XOR } export type TaskUpdateWithoutBid_proposalsInput = { 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 affiliate_ledger?: AffiliateLedgerUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateWithoutBid_proposalsInput = { 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 affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUncheckedUpdateManyWithoutTaskNestedInput } export type AgentProfileUpsertWithoutBid_proposalsInput = { update: XOR create: XOR where?: AgentProfileWhereInput } export type AgentProfileUpdateToOneWithWhereWithoutBid_proposalsInput = { where?: AgentProfileWhereInput data: XOR } export type AgentProfileUpdateWithoutBid_proposalsInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUpdateManyWithoutScout_agentNestedInput arbitrations_as_builder?: ArbitrationUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateWithoutBid_proposalsInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUncheckedUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutScout_agentNestedInput arbitrations_as_builder?: ArbitrationUncheckedUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUncheckedUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUncheckedUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUncheckedUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutAgentNestedInput } export type TaskCreateWithoutArbitrationsInput = { 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 affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutTaskInput bid_proposals?: BidProposalCreateNestedManyWithoutTaskInput } export type TaskUncheckedCreateWithoutArbitrationsInput = { 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 affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutTaskInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutTaskInput } export type TaskCreateOrConnectWithoutArbitrationsInput = { where: TaskWhereUniqueInput create: XOR } export type AgentProfileCreateWithoutArbitrations_as_builderInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalCreateNestedManyWithoutAgentInput arbitrations_as_evaluator?: ArbitrationCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateWithoutArbitrations_as_builderInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationUncheckedCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutAgentInput arbitrations_as_evaluator?: ArbitrationUncheckedCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectUncheckedCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutAgentInput } export type AgentProfileCreateOrConnectWithoutArbitrations_as_builderInput = { where: AgentProfileWhereUniqueInput create: XOR } export type AgentProfileCreateWithoutArbitrations_as_evaluatorInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationCreateNestedManyWithoutBuilderInput arbitration_votes?: ArbitrationVoteCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateWithoutArbitrations_as_evaluatorInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationUncheckedCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationUncheckedCreateNestedManyWithoutBuilderInput arbitration_votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectUncheckedCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutAgentInput } export type AgentProfileCreateOrConnectWithoutArbitrations_as_evaluatorInput = { where: AgentProfileWhereUniqueInput create: XOR } export type ArbitrationVoteCreateWithoutArbitrationInput = { id?: string vote_for: string reasoning?: string | null created_at?: Date | string judge: AgentProfileCreateNestedOneWithoutArbitration_votesInput } export type ArbitrationVoteUncheckedCreateWithoutArbitrationInput = { id?: string judge_id: string vote_for: string reasoning?: string | null created_at?: Date | string } export type ArbitrationVoteCreateOrConnectWithoutArbitrationInput = { where: ArbitrationVoteWhereUniqueInput create: XOR } export type ArbitrationVoteCreateManyArbitrationInputEnvelope = { data: ArbitrationVoteCreateManyArbitrationInput | ArbitrationVoteCreateManyArbitrationInput[] skipDuplicates?: boolean } export type SlashingEventCreateWithoutArbitrationInput = { id?: string slashed_amount: number scout_reward: number treasury_reward: number reason: string created_at?: Date | string agent: AgentProfileCreateNestedOneWithoutSlashing_eventsInput } export type SlashingEventUncheckedCreateWithoutArbitrationInput = { id?: string agent_id: string slashed_amount: number scout_reward: number treasury_reward: number reason: string created_at?: Date | string } export type SlashingEventCreateOrConnectWithoutArbitrationInput = { where: SlashingEventWhereUniqueInput create: XOR } export type SlashingEventCreateManyArbitrationInputEnvelope = { data: SlashingEventCreateManyArbitrationInput | SlashingEventCreateManyArbitrationInput[] skipDuplicates?: boolean } export type TaskUpsertWithoutArbitrationsInput = { update: XOR create: XOR where?: TaskWhereInput } export type TaskUpdateToOneWithWhereWithoutArbitrationsInput = { where?: TaskWhereInput data: XOR } export type TaskUpdateWithoutArbitrationsInput = { 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 affiliate_ledger?: AffiliateLedgerUpdateManyWithoutTaskNestedInput bid_proposals?: BidProposalUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateWithoutArbitrationsInput = { 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 affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutTaskNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutTaskNestedInput } export type AgentProfileUpsertWithoutArbitrations_as_builderInput = { update: XOR create: XOR where?: AgentProfileWhereInput } export type AgentProfileUpdateToOneWithWhereWithoutArbitrations_as_builderInput = { where?: AgentProfileWhereInput data: XOR } export type AgentProfileUpdateWithoutArbitrations_as_builderInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUpdateManyWithoutAgentNestedInput arbitrations_as_evaluator?: ArbitrationUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateWithoutArbitrations_as_builderInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUncheckedUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutAgentNestedInput arbitrations_as_evaluator?: ArbitrationUncheckedUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUncheckedUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUncheckedUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutAgentNestedInput } export type AgentProfileUpsertWithoutArbitrations_as_evaluatorInput = { update: XOR create: XOR where?: AgentProfileWhereInput } export type AgentProfileUpdateToOneWithWhereWithoutArbitrations_as_evaluatorInput = { where?: AgentProfileWhereInput data: XOR } export type AgentProfileUpdateWithoutArbitrations_as_evaluatorInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUpdateManyWithoutBuilderNestedInput arbitration_votes?: ArbitrationVoteUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateWithoutArbitrations_as_evaluatorInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUncheckedUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUncheckedUpdateManyWithoutBuilderNestedInput arbitration_votes?: ArbitrationVoteUncheckedUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUncheckedUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutAgentNestedInput } export type ArbitrationVoteUpsertWithWhereUniqueWithoutArbitrationInput = { where: ArbitrationVoteWhereUniqueInput update: XOR create: XOR } export type ArbitrationVoteUpdateWithWhereUniqueWithoutArbitrationInput = { where: ArbitrationVoteWhereUniqueInput data: XOR } export type ArbitrationVoteUpdateManyWithWhereWithoutArbitrationInput = { where: ArbitrationVoteScalarWhereInput data: XOR } export type SlashingEventUpsertWithWhereUniqueWithoutArbitrationInput = { where: SlashingEventWhereUniqueInput update: XOR create: XOR } export type SlashingEventUpdateWithWhereUniqueWithoutArbitrationInput = { where: SlashingEventWhereUniqueInput data: XOR } export type SlashingEventUpdateManyWithWhereWithoutArbitrationInput = { where: SlashingEventScalarWhereInput data: XOR } export type ArbitrationCreateWithoutVotesInput = { id?: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutArbitrationsInput builder: AgentProfileCreateNestedOneWithoutArbitrations_as_builderInput evaluator: AgentProfileCreateNestedOneWithoutArbitrations_as_evaluatorInput slashing_events?: SlashingEventCreateNestedManyWithoutArbitrationInput } export type ArbitrationUncheckedCreateWithoutVotesInput = { id?: string task_id: string builder_id: string evaluator_id: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutArbitrationInput } export type ArbitrationCreateOrConnectWithoutVotesInput = { where: ArbitrationWhereUniqueInput create: XOR } export type AgentProfileCreateWithoutArbitration_votesInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationCreateNestedManyWithoutEvaluatorInput created_projects?: AgentProjectCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateWithoutArbitration_votesInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationUncheckedCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationUncheckedCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationUncheckedCreateNestedManyWithoutEvaluatorInput created_projects?: AgentProjectUncheckedCreateNestedManyWithoutCreatorInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutAgentInput } export type AgentProfileCreateOrConnectWithoutArbitration_votesInput = { where: AgentProfileWhereUniqueInput create: XOR } export type ArbitrationUpsertWithoutVotesInput = { update: XOR create: XOR where?: ArbitrationWhereInput } export type ArbitrationUpdateToOneWithWhereWithoutVotesInput = { where?: ArbitrationWhereInput data: XOR } export type ArbitrationUpdateWithoutVotesInput = { id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutArbitrationsNestedInput builder?: AgentProfileUpdateOneRequiredWithoutArbitrations_as_builderNestedInput evaluator?: AgentProfileUpdateOneRequiredWithoutArbitrations_as_evaluatorNestedInput slashing_events?: SlashingEventUpdateManyWithoutArbitrationNestedInput } export type ArbitrationUncheckedUpdateWithoutVotesInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string builder_id?: StringFieldUpdateOperationsInput | string evaluator_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string slashing_events?: SlashingEventUncheckedUpdateManyWithoutArbitrationNestedInput } export type AgentProfileUpsertWithoutArbitration_votesInput = { update: XOR create: XOR where?: AgentProfileWhereInput } export type AgentProfileUpdateToOneWithWhereWithoutArbitration_votesInput = { where?: AgentProfileWhereInput data: XOR } export type AgentProfileUpdateWithoutArbitration_votesInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUpdateManyWithoutEvaluatorNestedInput created_projects?: AgentProjectUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateWithoutArbitration_votesInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUncheckedUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUncheckedUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUncheckedUpdateManyWithoutEvaluatorNestedInput created_projects?: AgentProjectUncheckedUpdateManyWithoutCreatorNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutAgentNestedInput } export type AgentProfileCreateWithoutCreated_projectsInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteCreateNestedManyWithoutJudgeInput slashing_events?: SlashingEventCreateNestedManyWithoutAgentInput } export type AgentProfileUncheckedCreateWithoutCreated_projectsInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationUncheckedCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationUncheckedCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationUncheckedCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutJudgeInput slashing_events?: SlashingEventUncheckedCreateNestedManyWithoutAgentInput } export type AgentProfileCreateOrConnectWithoutCreated_projectsInput = { where: AgentProfileWhereUniqueInput create: XOR } export type TokenSaleCreateWithoutProjectInput = { id?: string investor_id: string usdc_amount: number tokens_received: number price_per_token: number created_at?: Date | string } export type TokenSaleUncheckedCreateWithoutProjectInput = { id?: string investor_id: string usdc_amount: number tokens_received: number price_per_token: number created_at?: Date | string } export type TokenSaleCreateOrConnectWithoutProjectInput = { where: TokenSaleWhereUniqueInput create: XOR } export type TokenSaleCreateManyProjectInputEnvelope = { data: TokenSaleCreateManyProjectInput | TokenSaleCreateManyProjectInput[] skipDuplicates?: boolean } export type AgentProfileUpsertWithoutCreated_projectsInput = { update: XOR create: XOR where?: AgentProfileWhereInput } export type AgentProfileUpdateToOneWithWhereWithoutCreated_projectsInput = { where?: AgentProfileWhereInput data: XOR } export type AgentProfileUpdateWithoutCreated_projectsInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUpdateManyWithoutJudgeNestedInput slashing_events?: SlashingEventUpdateManyWithoutAgentNestedInput } export type AgentProfileUncheckedUpdateWithoutCreated_projectsInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUncheckedUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUncheckedUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUncheckedUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUncheckedUpdateManyWithoutJudgeNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutAgentNestedInput } export type TokenSaleUpsertWithWhereUniqueWithoutProjectInput = { where: TokenSaleWhereUniqueInput update: XOR create: XOR } export type TokenSaleUpdateWithWhereUniqueWithoutProjectInput = { where: TokenSaleWhereUniqueInput data: XOR } export type TokenSaleUpdateManyWithWhereWithoutProjectInput = { where: TokenSaleScalarWhereInput data: XOR } export type TokenSaleScalarWhereInput = { AND?: TokenSaleScalarWhereInput | TokenSaleScalarWhereInput[] OR?: TokenSaleScalarWhereInput[] NOT?: TokenSaleScalarWhereInput | TokenSaleScalarWhereInput[] id?: StringFilter<"TokenSale"> | string project_id?: StringFilter<"TokenSale"> | string investor_id?: StringFilter<"TokenSale"> | string usdc_amount?: IntFilter<"TokenSale"> | number tokens_received?: FloatFilter<"TokenSale"> | number price_per_token?: FloatFilter<"TokenSale"> | number created_at?: DateTimeFilter<"TokenSale"> | Date | string } export type AgentProjectCreateWithoutToken_salesInput = { id?: string name: string ticker: string description: string whitepaper_url?: string | null target_raise: number total_supply: number status?: string created_at?: Date | string updated_at?: Date | string creator: AgentProfileCreateNestedOneWithoutCreated_projectsInput } export type AgentProjectUncheckedCreateWithoutToken_salesInput = { id?: string creator_agent_id: string name: string ticker: string description: string whitepaper_url?: string | null target_raise: number total_supply: number status?: string created_at?: Date | string updated_at?: Date | string } export type AgentProjectCreateOrConnectWithoutToken_salesInput = { where: AgentProjectWhereUniqueInput create: XOR } export type AgentProjectUpsertWithoutToken_salesInput = { update: XOR create: XOR where?: AgentProjectWhereInput } export type AgentProjectUpdateToOneWithWhereWithoutToken_salesInput = { where?: AgentProjectWhereInput data: XOR } export type AgentProjectUpdateWithoutToken_salesInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string ticker?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string whitepaper_url?: NullableStringFieldUpdateOperationsInput | string | null target_raise?: IntFieldUpdateOperationsInput | number total_supply?: IntFieldUpdateOperationsInput | number status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string creator?: AgentProfileUpdateOneRequiredWithoutCreated_projectsNestedInput } export type AgentProjectUncheckedUpdateWithoutToken_salesInput = { id?: StringFieldUpdateOperationsInput | string creator_agent_id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string ticker?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string whitepaper_url?: NullableStringFieldUpdateOperationsInput | string | null target_raise?: IntFieldUpdateOperationsInput | number total_supply?: IntFieldUpdateOperationsInput | number status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AgentProfileCreateWithoutSlashing_eventsInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskCreateNestedManyWithoutBuilder_agentInput claims?: ClaimCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectCreateNestedManyWithoutCreatorInput } export type AgentProfileUncheckedCreateWithoutSlashing_eventsInput = { id?: string agent_id: string type: string wallet_address?: string | null status?: $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: string | null created_at?: Date | string updated_at?: Date | string crypto_address?: string | null mcp_endpoint?: string | null staked_amount?: number tier?: string tasks_as_scout?: TaskUncheckedCreateNestedManyWithoutScout_agentInput tasks_as_builder?: TaskUncheckedCreateNestedManyWithoutBuilder_agentInput claims?: ClaimUncheckedCreateNestedManyWithoutAgentInput scout_reputation?: ScoutReputationUncheckedCreateNestedOneWithoutScout_agentInput affiliate_ledger?: AffiliateLedgerUncheckedCreateNestedManyWithoutScout_agentInput bid_proposals?: BidProposalUncheckedCreateNestedManyWithoutAgentInput arbitrations_as_builder?: ArbitrationUncheckedCreateNestedManyWithoutBuilderInput arbitrations_as_evaluator?: ArbitrationUncheckedCreateNestedManyWithoutEvaluatorInput arbitration_votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutJudgeInput created_projects?: AgentProjectUncheckedCreateNestedManyWithoutCreatorInput } export type AgentProfileCreateOrConnectWithoutSlashing_eventsInput = { where: AgentProfileWhereUniqueInput create: XOR } export type ArbitrationCreateWithoutSlashing_eventsInput = { id?: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string task: TaskCreateNestedOneWithoutArbitrationsInput builder: AgentProfileCreateNestedOneWithoutArbitrations_as_builderInput evaluator: AgentProfileCreateNestedOneWithoutArbitrations_as_evaluatorInput votes?: ArbitrationVoteCreateNestedManyWithoutArbitrationInput } export type ArbitrationUncheckedCreateWithoutSlashing_eventsInput = { id?: string task_id: string builder_id: string evaluator_id: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string votes?: ArbitrationVoteUncheckedCreateNestedManyWithoutArbitrationInput } export type ArbitrationCreateOrConnectWithoutSlashing_eventsInput = { where: ArbitrationWhereUniqueInput create: XOR } export type AgentProfileUpsertWithoutSlashing_eventsInput = { update: XOR create: XOR where?: AgentProfileWhereInput } export type AgentProfileUpdateToOneWithWhereWithoutSlashing_eventsInput = { where?: AgentProfileWhereInput data: XOR } export type AgentProfileUpdateWithoutSlashing_eventsInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUpdateManyWithoutCreatorNestedInput } export type AgentProfileUncheckedUpdateWithoutSlashing_eventsInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string wallet_address?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumAgentStatusFieldUpdateOperationsInput | $Enums.AgentStatus capabilities?: NullableJsonNullValueInput | InputJsonValue contact_endpoints?: NullableJsonNullValueInput | InputJsonValue discovery_source?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string crypto_address?: NullableStringFieldUpdateOperationsInput | string | null mcp_endpoint?: NullableStringFieldUpdateOperationsInput | string | null staked_amount?: IntFieldUpdateOperationsInput | number tier?: StringFieldUpdateOperationsInput | string tasks_as_scout?: TaskUncheckedUpdateManyWithoutScout_agentNestedInput tasks_as_builder?: TaskUncheckedUpdateManyWithoutBuilder_agentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAgentNestedInput scout_reputation?: ScoutReputationUncheckedUpdateOneWithoutScout_agentNestedInput affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutScout_agentNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutAgentNestedInput arbitrations_as_builder?: ArbitrationUncheckedUpdateManyWithoutBuilderNestedInput arbitrations_as_evaluator?: ArbitrationUncheckedUpdateManyWithoutEvaluatorNestedInput arbitration_votes?: ArbitrationVoteUncheckedUpdateManyWithoutJudgeNestedInput created_projects?: AgentProjectUncheckedUpdateManyWithoutCreatorNestedInput } export type ArbitrationUpsertWithoutSlashing_eventsInput = { update: XOR create: XOR where?: ArbitrationWhereInput } export type ArbitrationUpdateToOneWithWhereWithoutSlashing_eventsInput = { where?: ArbitrationWhereInput data: XOR } export type ArbitrationUpdateWithoutSlashing_eventsInput = { id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutArbitrationsNestedInput builder?: AgentProfileUpdateOneRequiredWithoutArbitrations_as_builderNestedInput evaluator?: AgentProfileUpdateOneRequiredWithoutArbitrations_as_evaluatorNestedInput votes?: ArbitrationVoteUpdateManyWithoutArbitrationNestedInput } export type ArbitrationUncheckedUpdateWithoutSlashing_eventsInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string builder_id?: StringFieldUpdateOperationsInput | string evaluator_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string votes?: ArbitrationVoteUncheckedUpdateManyWithoutArbitrationNestedInput } 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 AffiliateLedgerCreateManyTaskInput = { id?: string scout_id: string amount: number currency: string status: string created_at?: Date | string updated_at?: Date | string } export type BidProposalCreateManyTaskInput = { id?: string agent_id: string proposed_reward: number estimated_duration_hours: number quality_guarantee?: string | null status: string counter_offer_amount?: number | null broker_agent_id?: string | null broker_fee_percentage?: number | null created_at?: Date | string updated_at?: Date | string } export type ArbitrationCreateManyTaskInput = { id?: string builder_id: string evaluator_id: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: 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 AffiliateLedgerUpdateWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number currency?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string scout_agent?: AgentProfileUpdateOneRequiredWithoutAffiliate_ledgerNestedInput } export type AffiliateLedgerUncheckedUpdateWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string scout_id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number currency?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AffiliateLedgerUncheckedUpdateManyWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string scout_id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number currency?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type BidProposalUpdateWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string proposed_reward?: IntFieldUpdateOperationsInput | number estimated_duration_hours?: FloatFieldUpdateOperationsInput | number quality_guarantee?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string counter_offer_amount?: NullableIntFieldUpdateOperationsInput | number | null broker_agent_id?: NullableStringFieldUpdateOperationsInput | string | null broker_fee_percentage?: NullableFloatFieldUpdateOperationsInput | number | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string agent?: AgentProfileUpdateOneRequiredWithoutBid_proposalsNestedInput } export type BidProposalUncheckedUpdateWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string proposed_reward?: IntFieldUpdateOperationsInput | number estimated_duration_hours?: FloatFieldUpdateOperationsInput | number quality_guarantee?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string counter_offer_amount?: NullableIntFieldUpdateOperationsInput | number | null broker_agent_id?: NullableStringFieldUpdateOperationsInput | string | null broker_fee_percentage?: NullableFloatFieldUpdateOperationsInput | number | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type BidProposalUncheckedUpdateManyWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string proposed_reward?: IntFieldUpdateOperationsInput | number estimated_duration_hours?: FloatFieldUpdateOperationsInput | number quality_guarantee?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string counter_offer_amount?: NullableIntFieldUpdateOperationsInput | number | null broker_agent_id?: NullableStringFieldUpdateOperationsInput | string | null broker_fee_percentage?: NullableFloatFieldUpdateOperationsInput | number | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArbitrationUpdateWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string builder?: AgentProfileUpdateOneRequiredWithoutArbitrations_as_builderNestedInput evaluator?: AgentProfileUpdateOneRequiredWithoutArbitrations_as_evaluatorNestedInput votes?: ArbitrationVoteUpdateManyWithoutArbitrationNestedInput slashing_events?: SlashingEventUpdateManyWithoutArbitrationNestedInput } export type ArbitrationUncheckedUpdateWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string builder_id?: StringFieldUpdateOperationsInput | string evaluator_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string votes?: ArbitrationVoteUncheckedUpdateManyWithoutArbitrationNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutArbitrationNestedInput } export type ArbitrationUncheckedUpdateManyWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string builder_id?: StringFieldUpdateOperationsInput | string evaluator_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | 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 AffiliateLedgerCreateManyScout_agentInput = { id?: string task_id: string amount: number currency: string status: string created_at?: Date | string updated_at?: Date | string } export type BidProposalCreateManyAgentInput = { id?: string task_id: string proposed_reward: number estimated_duration_hours: number quality_guarantee?: string | null status: string counter_offer_amount?: number | null broker_agent_id?: string | null broker_fee_percentage?: number | null created_at?: Date | string updated_at?: Date | string } export type ArbitrationCreateManyBuilderInput = { id?: string task_id: string evaluator_id: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string } export type ArbitrationCreateManyEvaluatorInput = { id?: string task_id: string builder_id: string status?: string builder_evidence?: string | null evaluator_reason?: string | null winning_party?: string | null created_at?: Date | string updated_at?: Date | string } export type ArbitrationVoteCreateManyJudgeInput = { id?: string arbitration_id: string vote_for: string reasoning?: string | null created_at?: Date | string } export type AgentProjectCreateManyCreatorInput = { id?: string name: string ticker: string description: string whitepaper_url?: string | null target_raise: number total_supply: number status?: string created_at?: Date | string updated_at?: Date | string } export type SlashingEventCreateManyAgentInput = { id?: string arbitration_id: string slashed_amount: number scout_reward: number treasury_reward: number reason: string created_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 affiliate_ledger?: AffiliateLedgerUpdateManyWithoutTaskNestedInput bid_proposals?: BidProposalUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUpdateManyWithoutTaskNestedInput } 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 affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutTaskNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUncheckedUpdateManyWithoutTaskNestedInput } 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 affiliate_ledger?: AffiliateLedgerUpdateManyWithoutTaskNestedInput bid_proposals?: BidProposalUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUpdateManyWithoutTaskNestedInput } 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 affiliate_ledger?: AffiliateLedgerUncheckedUpdateManyWithoutTaskNestedInput bid_proposals?: BidProposalUncheckedUpdateManyWithoutTaskNestedInput arbitrations?: ArbitrationUncheckedUpdateManyWithoutTaskNestedInput } 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 } export type AffiliateLedgerUpdateWithoutScout_agentInput = { id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number currency?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutAffiliate_ledgerNestedInput } export type AffiliateLedgerUncheckedUpdateWithoutScout_agentInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number currency?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AffiliateLedgerUncheckedUpdateManyWithoutScout_agentInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string amount?: IntFieldUpdateOperationsInput | number currency?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type BidProposalUpdateWithoutAgentInput = { id?: StringFieldUpdateOperationsInput | string proposed_reward?: IntFieldUpdateOperationsInput | number estimated_duration_hours?: FloatFieldUpdateOperationsInput | number quality_guarantee?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string counter_offer_amount?: NullableIntFieldUpdateOperationsInput | number | null broker_agent_id?: NullableStringFieldUpdateOperationsInput | string | null broker_fee_percentage?: NullableFloatFieldUpdateOperationsInput | number | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutBid_proposalsNestedInput } export type BidProposalUncheckedUpdateWithoutAgentInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string proposed_reward?: IntFieldUpdateOperationsInput | number estimated_duration_hours?: FloatFieldUpdateOperationsInput | number quality_guarantee?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string counter_offer_amount?: NullableIntFieldUpdateOperationsInput | number | null broker_agent_id?: NullableStringFieldUpdateOperationsInput | string | null broker_fee_percentage?: NullableFloatFieldUpdateOperationsInput | number | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type BidProposalUncheckedUpdateManyWithoutAgentInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string proposed_reward?: IntFieldUpdateOperationsInput | number estimated_duration_hours?: FloatFieldUpdateOperationsInput | number quality_guarantee?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string counter_offer_amount?: NullableIntFieldUpdateOperationsInput | number | null broker_agent_id?: NullableStringFieldUpdateOperationsInput | string | null broker_fee_percentage?: NullableFloatFieldUpdateOperationsInput | number | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArbitrationUpdateWithoutBuilderInput = { id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutArbitrationsNestedInput evaluator?: AgentProfileUpdateOneRequiredWithoutArbitrations_as_evaluatorNestedInput votes?: ArbitrationVoteUpdateManyWithoutArbitrationNestedInput slashing_events?: SlashingEventUpdateManyWithoutArbitrationNestedInput } export type ArbitrationUncheckedUpdateWithoutBuilderInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string evaluator_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string votes?: ArbitrationVoteUncheckedUpdateManyWithoutArbitrationNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutArbitrationNestedInput } export type ArbitrationUncheckedUpdateManyWithoutBuilderInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string evaluator_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArbitrationUpdateWithoutEvaluatorInput = { id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string task?: TaskUpdateOneRequiredWithoutArbitrationsNestedInput builder?: AgentProfileUpdateOneRequiredWithoutArbitrations_as_builderNestedInput votes?: ArbitrationVoteUpdateManyWithoutArbitrationNestedInput slashing_events?: SlashingEventUpdateManyWithoutArbitrationNestedInput } export type ArbitrationUncheckedUpdateWithoutEvaluatorInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string builder_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string votes?: ArbitrationVoteUncheckedUpdateManyWithoutArbitrationNestedInput slashing_events?: SlashingEventUncheckedUpdateManyWithoutArbitrationNestedInput } export type ArbitrationUncheckedUpdateManyWithoutEvaluatorInput = { id?: StringFieldUpdateOperationsInput | string task_id?: StringFieldUpdateOperationsInput | string builder_id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string builder_evidence?: NullableStringFieldUpdateOperationsInput | string | null evaluator_reason?: NullableStringFieldUpdateOperationsInput | string | null winning_party?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArbitrationVoteUpdateWithoutJudgeInput = { id?: StringFieldUpdateOperationsInput | string vote_for?: StringFieldUpdateOperationsInput | string reasoning?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string arbitration?: ArbitrationUpdateOneRequiredWithoutVotesNestedInput } export type ArbitrationVoteUncheckedUpdateWithoutJudgeInput = { id?: StringFieldUpdateOperationsInput | string arbitration_id?: StringFieldUpdateOperationsInput | string vote_for?: StringFieldUpdateOperationsInput | string reasoning?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArbitrationVoteUncheckedUpdateManyWithoutJudgeInput = { id?: StringFieldUpdateOperationsInput | string arbitration_id?: StringFieldUpdateOperationsInput | string vote_for?: StringFieldUpdateOperationsInput | string reasoning?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AgentProjectUpdateWithoutCreatorInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string ticker?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string whitepaper_url?: NullableStringFieldUpdateOperationsInput | string | null target_raise?: IntFieldUpdateOperationsInput | number total_supply?: IntFieldUpdateOperationsInput | number status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string token_sales?: TokenSaleUpdateManyWithoutProjectNestedInput } export type AgentProjectUncheckedUpdateWithoutCreatorInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string ticker?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string whitepaper_url?: NullableStringFieldUpdateOperationsInput | string | null target_raise?: IntFieldUpdateOperationsInput | number total_supply?: IntFieldUpdateOperationsInput | number status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string token_sales?: TokenSaleUncheckedUpdateManyWithoutProjectNestedInput } export type AgentProjectUncheckedUpdateManyWithoutCreatorInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string ticker?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string whitepaper_url?: NullableStringFieldUpdateOperationsInput | string | null target_raise?: IntFieldUpdateOperationsInput | number total_supply?: IntFieldUpdateOperationsInput | number status?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SlashingEventUpdateWithoutAgentInput = { id?: StringFieldUpdateOperationsInput | string slashed_amount?: IntFieldUpdateOperationsInput | number scout_reward?: IntFieldUpdateOperationsInput | number treasury_reward?: IntFieldUpdateOperationsInput | number reason?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string arbitration?: ArbitrationUpdateOneRequiredWithoutSlashing_eventsNestedInput } export type SlashingEventUncheckedUpdateWithoutAgentInput = { id?: StringFieldUpdateOperationsInput | string arbitration_id?: StringFieldUpdateOperationsInput | string slashed_amount?: IntFieldUpdateOperationsInput | number scout_reward?: IntFieldUpdateOperationsInput | number treasury_reward?: IntFieldUpdateOperationsInput | number reason?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SlashingEventUncheckedUpdateManyWithoutAgentInput = { id?: StringFieldUpdateOperationsInput | string arbitration_id?: StringFieldUpdateOperationsInput | string slashed_amount?: IntFieldUpdateOperationsInput | number scout_reward?: IntFieldUpdateOperationsInput | number treasury_reward?: IntFieldUpdateOperationsInput | number reason?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArbitrationVoteCreateManyArbitrationInput = { id?: string judge_id: string vote_for: string reasoning?: string | null created_at?: Date | string } export type SlashingEventCreateManyArbitrationInput = { id?: string agent_id: string slashed_amount: number scout_reward: number treasury_reward: number reason: string created_at?: Date | string } export type ArbitrationVoteUpdateWithoutArbitrationInput = { id?: StringFieldUpdateOperationsInput | string vote_for?: StringFieldUpdateOperationsInput | string reasoning?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string judge?: AgentProfileUpdateOneRequiredWithoutArbitration_votesNestedInput } export type ArbitrationVoteUncheckedUpdateWithoutArbitrationInput = { id?: StringFieldUpdateOperationsInput | string judge_id?: StringFieldUpdateOperationsInput | string vote_for?: StringFieldUpdateOperationsInput | string reasoning?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArbitrationVoteUncheckedUpdateManyWithoutArbitrationInput = { id?: StringFieldUpdateOperationsInput | string judge_id?: StringFieldUpdateOperationsInput | string vote_for?: StringFieldUpdateOperationsInput | string reasoning?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SlashingEventUpdateWithoutArbitrationInput = { id?: StringFieldUpdateOperationsInput | string slashed_amount?: IntFieldUpdateOperationsInput | number scout_reward?: IntFieldUpdateOperationsInput | number treasury_reward?: IntFieldUpdateOperationsInput | number reason?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string agent?: AgentProfileUpdateOneRequiredWithoutSlashing_eventsNestedInput } export type SlashingEventUncheckedUpdateWithoutArbitrationInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string slashed_amount?: IntFieldUpdateOperationsInput | number scout_reward?: IntFieldUpdateOperationsInput | number treasury_reward?: IntFieldUpdateOperationsInput | number reason?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SlashingEventUncheckedUpdateManyWithoutArbitrationInput = { id?: StringFieldUpdateOperationsInput | string agent_id?: StringFieldUpdateOperationsInput | string slashed_amount?: IntFieldUpdateOperationsInput | number scout_reward?: IntFieldUpdateOperationsInput | number treasury_reward?: IntFieldUpdateOperationsInput | number reason?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type TokenSaleCreateManyProjectInput = { id?: string investor_id: string usdc_amount: number tokens_received: number price_per_token: number created_at?: Date | string } export type TokenSaleUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string investor_id?: StringFieldUpdateOperationsInput | string usdc_amount?: IntFieldUpdateOperationsInput | number tokens_received?: FloatFieldUpdateOperationsInput | number price_per_token?: FloatFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type TokenSaleUncheckedUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string investor_id?: StringFieldUpdateOperationsInput | string usdc_amount?: IntFieldUpdateOperationsInput | number tokens_received?: FloatFieldUpdateOperationsInput | number price_per_token?: FloatFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type TokenSaleUncheckedUpdateManyWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string investor_id?: StringFieldUpdateOperationsInput | string usdc_amount?: IntFieldUpdateOperationsInput | number tokens_received?: FloatFieldUpdateOperationsInput | number price_per_token?: FloatFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }