/home/techb158/balavpn.abdallabala.com/node_modules/.prisma/client
NameSizeModeActions
deno/-0777rm
default.d.ts230666editdlrm
default.js360666editdlrm
edge.d.ts250666editdlrm
edge.js1256660666editdlrm
index-browser.js176860666editdlrm
index.d.ts18360900666editdlrm
index.js1263350666editdlrm
package.json26010666editdlrm
query_engine-windows.dll.node192619520666editdlrm
schema.prisma167830666editdlrm
wasm.d.ts230666editdlrm
wasm.js176860666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/.prisma/client/index.d.ts (1836090B)
/** * Client **/ import * as runtime from '@prisma/client/runtime/library.js'; import $Types = runtime.Types // general types import $Public = runtime.Types.Public import $Utils = runtime.Types.Utils import $Extensions = runtime.Types.Extensions import $Result = runtime.Types.Result export type PrismaPromise = $Public.PrismaPromise /** * Model Organization * */ export type Organization = $Result.DefaultSelection /** * Model Workspace * */ export type Workspace = $Result.DefaultSelection /** * Model User * */ export type User = $Result.DefaultSelection /** * Model Session * */ export type Session = $Result.DefaultSelection /** * Model Role * */ export type Role = $Result.DefaultSelection /** * Model Membership * */ export type Membership = $Result.DefaultSelection /** * Model Invitation * */ export type Invitation = $Result.DefaultSelection /** * Model Subscription * */ export type Subscription = $Result.DefaultSelection /** * Model Project * */ export type Project = $Result.DefaultSelection /** * Model LifecyclePhase * */ export type LifecyclePhase = $Result.DefaultSelection /** * Model Risk * */ export type Risk = $Result.DefaultSelection /** * Model Mitigation * */ export type Mitigation = $Result.DefaultSelection /** * Model Evidence * */ export type Evidence = $Result.DefaultSelection /** * Model Indicator * */ export type Indicator = $Result.DefaultSelection /** * Model Experiment * */ export type Experiment = $Result.DefaultSelection /** * Model ModelMetric * */ export type ModelMetric = $Result.DefaultSelection /** * Model GateEvaluation * */ export type GateEvaluation = $Result.DefaultSelection /** * Model GateCriterion * */ export type GateCriterion = $Result.DefaultSelection /** * Model GateDecision * */ export type GateDecision = $Result.DefaultSelection /** * Model Integration * */ export type Integration = $Result.DefaultSelection /** * Model ExternalWorkItemMapping * */ export type ExternalWorkItemMapping = $Result.DefaultSelection /** * Model IntegrationSyncRun * */ export type IntegrationSyncRun = $Result.DefaultSelection /** * Model OAuthToken * */ export type OAuthToken = $Result.DefaultSelection /** * Model ReportExport * */ export type ReportExport = $Result.DefaultSelection /** * Model AuditEvent * */ export type AuditEvent = $Result.DefaultSelection /** * Model UsageEvent * */ export type UsageEvent = $Result.DefaultSelection /** * Enums */ export namespace $Enums { export const OrganizationStatus: { TRIAL: 'TRIAL', ACTIVE: 'ACTIVE', SUSPENDED: 'SUSPENDED', CANCELED: 'CANCELED' }; export type OrganizationStatus = (typeof OrganizationStatus)[keyof typeof OrganizationStatus] export const WorkspaceType: { B2B_TEAM: 'B2B_TEAM', CONSULTANT_CLIENT: 'CONSULTANT_CLIENT', ENTERPRISE: 'ENTERPRISE' }; export type WorkspaceType = (typeof WorkspaceType)[keyof typeof WorkspaceType] export const MembershipStatus: { INVITED: 'INVITED', ACTIVE: 'ACTIVE', DISABLED: 'DISABLED' }; export type MembershipStatus = (typeof MembershipStatus)[keyof typeof MembershipStatus] export const SubscriptionSource: { MANUAL: 'MANUAL', STRIPE: 'STRIPE' }; export type SubscriptionSource = (typeof SubscriptionSource)[keyof typeof SubscriptionSource] export const SubscriptionStatus: { TRIALING: 'TRIALING', ACTIVE: 'ACTIVE', PAST_DUE: 'PAST_DUE', CANCELED: 'CANCELED', SUSPENDED: 'SUSPENDED' }; export type SubscriptionStatus = (typeof SubscriptionStatus)[keyof typeof SubscriptionStatus] export const RiskStatus: { OPEN: 'OPEN', IN_MITIGATION: 'IN_MITIGATION', ACCEPTED: 'ACCEPTED', CLOSED: 'CLOSED' }; export type RiskStatus = (typeof RiskStatus)[keyof typeof RiskStatus] export const ApprovalStatus: { PENDING: 'PENDING', APPROVED: 'APPROVED', REJECTED: 'REJECTED', ACCEPTED: 'ACCEPTED' }; export type ApprovalStatus = (typeof ApprovalStatus)[keyof typeof ApprovalStatus] export const MitigationStatus: { NOT_STARTED: 'NOT_STARTED', IN_PROGRESS: 'IN_PROGRESS', DONE: 'DONE', REJECTED: 'REJECTED' }; export type MitigationStatus = (typeof MitigationStatus)[keyof typeof MitigationStatus] export const GateStatus: { READY: 'READY', WARNING: 'WARNING', BLOCKED: 'BLOCKED' }; export type GateStatus = (typeof GateStatus)[keyof typeof GateStatus] export const GateDecisionValue: { APPROVED: 'APPROVED', REJECTED: 'REJECTED', ACCEPTED: 'ACCEPTED', NEEDS_CHANGES: 'NEEDS_CHANGES' }; export type GateDecisionValue = (typeof GateDecisionValue)[keyof typeof GateDecisionValue] export const IntegrationProvider: { TRELLO: 'TRELLO', JIRA: 'JIRA', ASANA: 'ASANA', MICROSOFT_PLANNER: 'MICROSOFT_PLANNER' }; export type IntegrationProvider = (typeof IntegrationProvider)[keyof typeof IntegrationProvider] export const IntegrationStatus: { CONNECTED: 'CONNECTED', NEEDS_CONFIGURATION: 'NEEDS_CONFIGURATION', DISABLED: 'DISABLED' }; export type IntegrationStatus = (typeof IntegrationStatus)[keyof typeof IntegrationStatus] } export type OrganizationStatus = $Enums.OrganizationStatus export const OrganizationStatus: typeof $Enums.OrganizationStatus export type WorkspaceType = $Enums.WorkspaceType export const WorkspaceType: typeof $Enums.WorkspaceType export type MembershipStatus = $Enums.MembershipStatus export const MembershipStatus: typeof $Enums.MembershipStatus export type SubscriptionSource = $Enums.SubscriptionSource export const SubscriptionSource: typeof $Enums.SubscriptionSource export type SubscriptionStatus = $Enums.SubscriptionStatus export const SubscriptionStatus: typeof $Enums.SubscriptionStatus export type RiskStatus = $Enums.RiskStatus export const RiskStatus: typeof $Enums.RiskStatus export type ApprovalStatus = $Enums.ApprovalStatus export const ApprovalStatus: typeof $Enums.ApprovalStatus export type MitigationStatus = $Enums.MitigationStatus export const MitigationStatus: typeof $Enums.MitigationStatus export type GateStatus = $Enums.GateStatus export const GateStatus: typeof $Enums.GateStatus export type GateDecisionValue = $Enums.GateDecisionValue export const GateDecisionValue: typeof $Enums.GateDecisionValue export type IntegrationProvider = $Enums.IntegrationProvider export const IntegrationProvider: typeof $Enums.IntegrationProvider export type IntegrationStatus = $Enums.IntegrationStatus export const IntegrationStatus: typeof $Enums.IntegrationStatus /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Organizations * const organizations = await prisma.organization.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, 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 Organizations * const organizations = await prisma.organization.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): void; /** * Connect with the database */ $connect(): $Utils.JsPromise; /** * Disconnect from the database */ $disconnect(): $Utils.JsPromise; /** * Add a middleware * @deprecated since 4.16.0. For new code, prefer client extensions instead. * @see https://pris.ly/d/extensions */ $use(cb: Prisma.Middleware): void /** * 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> /** * `prisma.organization`: Exposes CRUD operations for the **Organization** model. * Example usage: * ```ts * // Fetch zero or more Organizations * const organizations = await prisma.organization.findMany() * ``` */ get organization(): Prisma.OrganizationDelegate; /** * `prisma.workspace`: Exposes CRUD operations for the **Workspace** model. * Example usage: * ```ts * // Fetch zero or more Workspaces * const workspaces = await prisma.workspace.findMany() * ``` */ get workspace(): Prisma.WorkspaceDelegate; /** * `prisma.user`: Exposes CRUD operations for the **User** model. * Example usage: * ```ts * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` */ get user(): Prisma.UserDelegate; /** * `prisma.session`: Exposes CRUD operations for the **Session** model. * Example usage: * ```ts * // Fetch zero or more Sessions * const sessions = await prisma.session.findMany() * ``` */ get session(): Prisma.SessionDelegate; /** * `prisma.role`: Exposes CRUD operations for the **Role** model. * Example usage: * ```ts * // Fetch zero or more Roles * const roles = await prisma.role.findMany() * ``` */ get role(): Prisma.RoleDelegate; /** * `prisma.membership`: Exposes CRUD operations for the **Membership** model. * Example usage: * ```ts * // Fetch zero or more Memberships * const memberships = await prisma.membership.findMany() * ``` */ get membership(): Prisma.MembershipDelegate; /** * `prisma.invitation`: Exposes CRUD operations for the **Invitation** model. * Example usage: * ```ts * // Fetch zero or more Invitations * const invitations = await prisma.invitation.findMany() * ``` */ get invitation(): Prisma.InvitationDelegate; /** * `prisma.subscription`: Exposes CRUD operations for the **Subscription** model. * Example usage: * ```ts * // Fetch zero or more Subscriptions * const subscriptions = await prisma.subscription.findMany() * ``` */ get subscription(): Prisma.SubscriptionDelegate; /** * `prisma.project`: Exposes CRUD operations for the **Project** model. * Example usage: * ```ts * // Fetch zero or more Projects * const projects = await prisma.project.findMany() * ``` */ get project(): Prisma.ProjectDelegate; /** * `prisma.lifecyclePhase`: Exposes CRUD operations for the **LifecyclePhase** model. * Example usage: * ```ts * // Fetch zero or more LifecyclePhases * const lifecyclePhases = await prisma.lifecyclePhase.findMany() * ``` */ get lifecyclePhase(): Prisma.LifecyclePhaseDelegate; /** * `prisma.risk`: Exposes CRUD operations for the **Risk** model. * Example usage: * ```ts * // Fetch zero or more Risks * const risks = await prisma.risk.findMany() * ``` */ get risk(): Prisma.RiskDelegate; /** * `prisma.mitigation`: Exposes CRUD operations for the **Mitigation** model. * Example usage: * ```ts * // Fetch zero or more Mitigations * const mitigations = await prisma.mitigation.findMany() * ``` */ get mitigation(): Prisma.MitigationDelegate; /** * `prisma.evidence`: Exposes CRUD operations for the **Evidence** model. * Example usage: * ```ts * // Fetch zero or more Evidences * const evidences = await prisma.evidence.findMany() * ``` */ get evidence(): Prisma.EvidenceDelegate; /** * `prisma.indicator`: Exposes CRUD operations for the **Indicator** model. * Example usage: * ```ts * // Fetch zero or more Indicators * const indicators = await prisma.indicator.findMany() * ``` */ get indicator(): Prisma.IndicatorDelegate; /** * `prisma.experiment`: Exposes CRUD operations for the **Experiment** model. * Example usage: * ```ts * // Fetch zero or more Experiments * const experiments = await prisma.experiment.findMany() * ``` */ get experiment(): Prisma.ExperimentDelegate; /** * `prisma.modelMetric`: Exposes CRUD operations for the **ModelMetric** model. * Example usage: * ```ts * // Fetch zero or more ModelMetrics * const modelMetrics = await prisma.modelMetric.findMany() * ``` */ get modelMetric(): Prisma.ModelMetricDelegate; /** * `prisma.gateEvaluation`: Exposes CRUD operations for the **GateEvaluation** model. * Example usage: * ```ts * // Fetch zero or more GateEvaluations * const gateEvaluations = await prisma.gateEvaluation.findMany() * ``` */ get gateEvaluation(): Prisma.GateEvaluationDelegate; /** * `prisma.gateCriterion`: Exposes CRUD operations for the **GateCriterion** model. * Example usage: * ```ts * // Fetch zero or more GateCriteria * const gateCriteria = await prisma.gateCriterion.findMany() * ``` */ get gateCriterion(): Prisma.GateCriterionDelegate; /** * `prisma.gateDecision`: Exposes CRUD operations for the **GateDecision** model. * Example usage: * ```ts * // Fetch zero or more GateDecisions * const gateDecisions = await prisma.gateDecision.findMany() * ``` */ get gateDecision(): Prisma.GateDecisionDelegate; /** * `prisma.integration`: Exposes CRUD operations for the **Integration** model. * Example usage: * ```ts * // Fetch zero or more Integrations * const integrations = await prisma.integration.findMany() * ``` */ get integration(): Prisma.IntegrationDelegate; /** * `prisma.externalWorkItemMapping`: Exposes CRUD operations for the **ExternalWorkItemMapping** model. * Example usage: * ```ts * // Fetch zero or more ExternalWorkItemMappings * const externalWorkItemMappings = await prisma.externalWorkItemMapping.findMany() * ``` */ get externalWorkItemMapping(): Prisma.ExternalWorkItemMappingDelegate; /** * `prisma.integrationSyncRun`: Exposes CRUD operations for the **IntegrationSyncRun** model. * Example usage: * ```ts * // Fetch zero or more IntegrationSyncRuns * const integrationSyncRuns = await prisma.integrationSyncRun.findMany() * ``` */ get integrationSyncRun(): Prisma.IntegrationSyncRunDelegate; /** * `prisma.oAuthToken`: Exposes CRUD operations for the **OAuthToken** model. * Example usage: * ```ts * // Fetch zero or more OAuthTokens * const oAuthTokens = await prisma.oAuthToken.findMany() * ``` */ get oAuthToken(): Prisma.OAuthTokenDelegate; /** * `prisma.reportExport`: Exposes CRUD operations for the **ReportExport** model. * Example usage: * ```ts * // Fetch zero or more ReportExports * const reportExports = await prisma.reportExport.findMany() * ``` */ get reportExport(): Prisma.ReportExportDelegate; /** * `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.usageEvent`: Exposes CRUD operations for the **UsageEvent** model. * Example usage: * ```ts * // Fetch zero or more UsageEvents * const usageEvents = await prisma.usageEvent.findMany() * ``` */ get usageEvent(): Prisma.UsageEventDelegate; } 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 export import NotFoundError = runtime.NotFoundError /** * 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: 5.22.0 * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 */ export type PrismaVersion = { client: string } export const prismaVersion: PrismaVersion /** * Utility Types */ 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 ? K : 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: { Organization: 'Organization', Workspace: 'Workspace', User: 'User', Session: 'Session', Role: 'Role', Membership: 'Membership', Invitation: 'Invitation', Subscription: 'Subscription', Project: 'Project', LifecyclePhase: 'LifecyclePhase', Risk: 'Risk', Mitigation: 'Mitigation', Evidence: 'Evidence', Indicator: 'Indicator', Experiment: 'Experiment', ModelMetric: 'ModelMetric', GateEvaluation: 'GateEvaluation', GateCriterion: 'GateCriterion', GateDecision: 'GateDecision', Integration: 'Integration', ExternalWorkItemMapping: 'ExternalWorkItemMapping', IntegrationSyncRun: 'IntegrationSyncRun', OAuthToken: 'OAuthToken', ReportExport: 'ReportExport', AuditEvent: 'AuditEvent', UsageEvent: 'UsageEvent' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { db?: Datasource } interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs, clientOptions: PrismaClientOptions }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { meta: { modelProps: "organization" | "workspace" | "user" | "session" | "role" | "membership" | "invitation" | "subscription" | "project" | "lifecyclePhase" | "risk" | "mitigation" | "evidence" | "indicator" | "experiment" | "modelMetric" | "gateEvaluation" | "gateCriterion" | "gateDecision" | "integration" | "externalWorkItemMapping" | "integrationSyncRun" | "oAuthToken" | "reportExport" | "auditEvent" | "usageEvent" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { Organization: { payload: Prisma.$OrganizationPayload fields: Prisma.OrganizationFieldRefs operations: { findUnique: { args: Prisma.OrganizationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.OrganizationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.OrganizationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.OrganizationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.OrganizationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.OrganizationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.OrganizationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.OrganizationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.OrganizationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.OrganizationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.OrganizationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.OrganizationUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.OrganizationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.OrganizationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.OrganizationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.OrganizationCountArgs result: $Utils.Optional | number } } } Workspace: { payload: Prisma.$WorkspacePayload fields: Prisma.WorkspaceFieldRefs operations: { findUnique: { args: Prisma.WorkspaceFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.WorkspaceFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.WorkspaceFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.WorkspaceFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.WorkspaceFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.WorkspaceCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.WorkspaceCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.WorkspaceCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.WorkspaceDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.WorkspaceUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.WorkspaceDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.WorkspaceUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.WorkspaceUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.WorkspaceAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.WorkspaceGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.WorkspaceCountArgs result: $Utils.Optional | number } } } User: { payload: Prisma.$UserPayload fields: Prisma.UserFieldRefs operations: { findUnique: { args: Prisma.UserFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.UserCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.UserDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.UserUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserCountArgs result: $Utils.Optional | number } } } Session: { payload: Prisma.$SessionPayload fields: Prisma.SessionFieldRefs operations: { findUnique: { args: Prisma.SessionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SessionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SessionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SessionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SessionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SessionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SessionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.SessionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.SessionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SessionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SessionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SessionUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.SessionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SessionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SessionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SessionCountArgs result: $Utils.Optional | number } } } Role: { payload: Prisma.$RolePayload fields: Prisma.RoleFieldRefs operations: { findUnique: { args: Prisma.RoleFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.RoleFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.RoleFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.RoleFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.RoleFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.RoleCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.RoleCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.RoleCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.RoleDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.RoleUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.RoleDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.RoleUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.RoleUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.RoleAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.RoleGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.RoleCountArgs result: $Utils.Optional | number } } } Membership: { payload: Prisma.$MembershipPayload fields: Prisma.MembershipFieldRefs operations: { findUnique: { args: Prisma.MembershipFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.MembershipFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.MembershipFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.MembershipFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.MembershipFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.MembershipCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.MembershipCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.MembershipCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.MembershipDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.MembershipUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.MembershipDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.MembershipUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.MembershipUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.MembershipAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.MembershipGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.MembershipCountArgs result: $Utils.Optional | number } } } Invitation: { payload: Prisma.$InvitationPayload fields: Prisma.InvitationFieldRefs operations: { findUnique: { args: Prisma.InvitationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.InvitationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.InvitationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.InvitationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.InvitationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.InvitationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.InvitationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.InvitationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.InvitationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.InvitationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.InvitationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.InvitationUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.InvitationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.InvitationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.InvitationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.InvitationCountArgs result: $Utils.Optional | number } } } Subscription: { payload: Prisma.$SubscriptionPayload fields: Prisma.SubscriptionFieldRefs operations: { findUnique: { args: Prisma.SubscriptionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SubscriptionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SubscriptionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SubscriptionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SubscriptionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SubscriptionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SubscriptionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.SubscriptionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.SubscriptionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SubscriptionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SubscriptionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SubscriptionUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.SubscriptionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SubscriptionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SubscriptionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SubscriptionCountArgs result: $Utils.Optional | number } } } Project: { payload: Prisma.$ProjectPayload fields: Prisma.ProjectFieldRefs operations: { findUnique: { args: Prisma.ProjectFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ProjectFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ProjectFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ProjectFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ProjectFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ProjectCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ProjectCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ProjectCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ProjectDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ProjectUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ProjectDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ProjectUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ProjectUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ProjectAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ProjectGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ProjectCountArgs result: $Utils.Optional | number } } } LifecyclePhase: { payload: Prisma.$LifecyclePhasePayload fields: Prisma.LifecyclePhaseFieldRefs operations: { findUnique: { args: Prisma.LifecyclePhaseFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.LifecyclePhaseFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.LifecyclePhaseFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.LifecyclePhaseFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.LifecyclePhaseFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.LifecyclePhaseCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.LifecyclePhaseCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.LifecyclePhaseCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.LifecyclePhaseDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.LifecyclePhaseUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.LifecyclePhaseDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.LifecyclePhaseUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.LifecyclePhaseUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.LifecyclePhaseAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.LifecyclePhaseGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.LifecyclePhaseCountArgs result: $Utils.Optional | number } } } Risk: { payload: Prisma.$RiskPayload fields: Prisma.RiskFieldRefs operations: { findUnique: { args: Prisma.RiskFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.RiskFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.RiskFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.RiskFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.RiskFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.RiskCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.RiskCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.RiskCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.RiskDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.RiskUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.RiskDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.RiskUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.RiskUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.RiskAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.RiskGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.RiskCountArgs result: $Utils.Optional | number } } } Mitigation: { payload: Prisma.$MitigationPayload fields: Prisma.MitigationFieldRefs operations: { findUnique: { args: Prisma.MitigationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.MitigationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.MitigationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.MitigationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.MitigationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.MitigationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.MitigationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.MitigationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.MitigationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.MitigationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.MitigationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.MitigationUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.MitigationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.MitigationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.MitigationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.MitigationCountArgs result: $Utils.Optional | number } } } Evidence: { payload: Prisma.$EvidencePayload fields: Prisma.EvidenceFieldRefs operations: { findUnique: { args: Prisma.EvidenceFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.EvidenceFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.EvidenceFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.EvidenceFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.EvidenceFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.EvidenceCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.EvidenceCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.EvidenceCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.EvidenceDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.EvidenceUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.EvidenceDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.EvidenceUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.EvidenceUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.EvidenceAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.EvidenceGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.EvidenceCountArgs result: $Utils.Optional | number } } } Indicator: { payload: Prisma.$IndicatorPayload fields: Prisma.IndicatorFieldRefs operations: { findUnique: { args: Prisma.IndicatorFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.IndicatorFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.IndicatorFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.IndicatorFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.IndicatorFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.IndicatorCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.IndicatorCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.IndicatorCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.IndicatorDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.IndicatorUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.IndicatorDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.IndicatorUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.IndicatorUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.IndicatorAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.IndicatorGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.IndicatorCountArgs result: $Utils.Optional | number } } } Experiment: { payload: Prisma.$ExperimentPayload fields: Prisma.ExperimentFieldRefs operations: { findUnique: { args: Prisma.ExperimentFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ExperimentFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ExperimentFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ExperimentFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ExperimentFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ExperimentCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ExperimentCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ExperimentCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ExperimentDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ExperimentUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ExperimentDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ExperimentUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ExperimentUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ExperimentAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ExperimentGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ExperimentCountArgs result: $Utils.Optional | number } } } ModelMetric: { payload: Prisma.$ModelMetricPayload fields: Prisma.ModelMetricFieldRefs operations: { findUnique: { args: Prisma.ModelMetricFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ModelMetricFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ModelMetricFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ModelMetricFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ModelMetricFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ModelMetricCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ModelMetricCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ModelMetricCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ModelMetricDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ModelMetricUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ModelMetricDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ModelMetricUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ModelMetricUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ModelMetricAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ModelMetricGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ModelMetricCountArgs result: $Utils.Optional | number } } } GateEvaluation: { payload: Prisma.$GateEvaluationPayload fields: Prisma.GateEvaluationFieldRefs operations: { findUnique: { args: Prisma.GateEvaluationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.GateEvaluationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.GateEvaluationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.GateEvaluationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.GateEvaluationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.GateEvaluationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.GateEvaluationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.GateEvaluationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.GateEvaluationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.GateEvaluationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.GateEvaluationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.GateEvaluationUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.GateEvaluationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.GateEvaluationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.GateEvaluationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.GateEvaluationCountArgs result: $Utils.Optional | number } } } GateCriterion: { payload: Prisma.$GateCriterionPayload fields: Prisma.GateCriterionFieldRefs operations: { findUnique: { args: Prisma.GateCriterionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.GateCriterionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.GateCriterionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.GateCriterionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.GateCriterionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.GateCriterionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.GateCriterionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.GateCriterionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.GateCriterionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.GateCriterionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.GateCriterionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.GateCriterionUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.GateCriterionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.GateCriterionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.GateCriterionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.GateCriterionCountArgs result: $Utils.Optional | number } } } GateDecision: { payload: Prisma.$GateDecisionPayload fields: Prisma.GateDecisionFieldRefs operations: { findUnique: { args: Prisma.GateDecisionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.GateDecisionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.GateDecisionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.GateDecisionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.GateDecisionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.GateDecisionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.GateDecisionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.GateDecisionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.GateDecisionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.GateDecisionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.GateDecisionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.GateDecisionUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.GateDecisionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.GateDecisionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.GateDecisionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.GateDecisionCountArgs result: $Utils.Optional | number } } } Integration: { payload: Prisma.$IntegrationPayload fields: Prisma.IntegrationFieldRefs operations: { findUnique: { args: Prisma.IntegrationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.IntegrationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.IntegrationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.IntegrationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.IntegrationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.IntegrationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.IntegrationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.IntegrationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.IntegrationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.IntegrationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.IntegrationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.IntegrationUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.IntegrationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.IntegrationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.IntegrationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.IntegrationCountArgs result: $Utils.Optional | number } } } ExternalWorkItemMapping: { payload: Prisma.$ExternalWorkItemMappingPayload fields: Prisma.ExternalWorkItemMappingFieldRefs operations: { findUnique: { args: Prisma.ExternalWorkItemMappingFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ExternalWorkItemMappingFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ExternalWorkItemMappingFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ExternalWorkItemMappingFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ExternalWorkItemMappingFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ExternalWorkItemMappingCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ExternalWorkItemMappingCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ExternalWorkItemMappingCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ExternalWorkItemMappingDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ExternalWorkItemMappingUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ExternalWorkItemMappingDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ExternalWorkItemMappingUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ExternalWorkItemMappingUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ExternalWorkItemMappingAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ExternalWorkItemMappingGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ExternalWorkItemMappingCountArgs result: $Utils.Optional | number } } } IntegrationSyncRun: { payload: Prisma.$IntegrationSyncRunPayload fields: Prisma.IntegrationSyncRunFieldRefs operations: { findUnique: { args: Prisma.IntegrationSyncRunFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.IntegrationSyncRunFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.IntegrationSyncRunFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.IntegrationSyncRunFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.IntegrationSyncRunFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.IntegrationSyncRunCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.IntegrationSyncRunCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.IntegrationSyncRunCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.IntegrationSyncRunDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.IntegrationSyncRunUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.IntegrationSyncRunDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.IntegrationSyncRunUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.IntegrationSyncRunUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.IntegrationSyncRunAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.IntegrationSyncRunGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.IntegrationSyncRunCountArgs result: $Utils.Optional | number } } } OAuthToken: { payload: Prisma.$OAuthTokenPayload fields: Prisma.OAuthTokenFieldRefs operations: { findUnique: { args: Prisma.OAuthTokenFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.OAuthTokenFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.OAuthTokenFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.OAuthTokenFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.OAuthTokenFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.OAuthTokenCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.OAuthTokenCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.OAuthTokenCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.OAuthTokenDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.OAuthTokenUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.OAuthTokenDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.OAuthTokenUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.OAuthTokenUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.OAuthTokenAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.OAuthTokenGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.OAuthTokenCountArgs result: $Utils.Optional | number } } } ReportExport: { payload: Prisma.$ReportExportPayload fields: Prisma.ReportExportFieldRefs operations: { findUnique: { args: Prisma.ReportExportFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ReportExportFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ReportExportFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ReportExportFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ReportExportFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ReportExportCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ReportExportCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ReportExportCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ReportExportDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ReportExportUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ReportExportDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ReportExportUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ReportExportUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ReportExportAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ReportExportGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ReportExportCountArgs 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 } 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 } } } UsageEvent: { payload: Prisma.$UsageEventPayload fields: Prisma.UsageEventFieldRefs operations: { findUnique: { args: Prisma.UsageEventFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UsageEventFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UsageEventFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UsageEventFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UsageEventFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UsageEventCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UsageEventCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.UsageEventCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.UsageEventDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UsageEventUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UsageEventDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UsageEventUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.UsageEventUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UsageEventAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UsageEventGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UsageEventCountArgs 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 * ``` * // Defaults to stdout * log: ['query', 'info', 'warn', 'error'] * * // Emit as events * log: [ * { 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 } } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type GetLogType = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never export type GetEvents = T extends Array ? GetLogType | GetLogType | GetLogType | 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' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy' /** * These options are being passed into the middleware as "params" */ export type MiddlewareParams = { model?: ModelName action: PrismaAction args: any dataPath: string[] runInTransaction: boolean } /** * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation */ export type Middleware = ( params: MiddlewareParams, next: (params: MiddlewareParams) => $Utils.JsPromise, ) => $Utils.JsPromise // 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 OrganizationCountOutputType */ export type OrganizationCountOutputType = { workspaces: number memberships: number subscriptions: number auditEvents: number usageEvents: number invitations: number oauthTokens: number } export type OrganizationCountOutputTypeSelect = { workspaces?: boolean | OrganizationCountOutputTypeCountWorkspacesArgs memberships?: boolean | OrganizationCountOutputTypeCountMembershipsArgs subscriptions?: boolean | OrganizationCountOutputTypeCountSubscriptionsArgs auditEvents?: boolean | OrganizationCountOutputTypeCountAuditEventsArgs usageEvents?: boolean | OrganizationCountOutputTypeCountUsageEventsArgs invitations?: boolean | OrganizationCountOutputTypeCountInvitationsArgs oauthTokens?: boolean | OrganizationCountOutputTypeCountOauthTokensArgs } // Custom InputTypes /** * OrganizationCountOutputType without action */ export type OrganizationCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the OrganizationCountOutputType */ select?: OrganizationCountOutputTypeSelect | null } /** * OrganizationCountOutputType without action */ export type OrganizationCountOutputTypeCountWorkspacesArgs = { where?: WorkspaceWhereInput } /** * OrganizationCountOutputType without action */ export type OrganizationCountOutputTypeCountMembershipsArgs = { where?: MembershipWhereInput } /** * OrganizationCountOutputType without action */ export type OrganizationCountOutputTypeCountSubscriptionsArgs = { where?: SubscriptionWhereInput } /** * OrganizationCountOutputType without action */ export type OrganizationCountOutputTypeCountAuditEventsArgs = { where?: AuditEventWhereInput } /** * OrganizationCountOutputType without action */ export type OrganizationCountOutputTypeCountUsageEventsArgs = { where?: UsageEventWhereInput } /** * OrganizationCountOutputType without action */ export type OrganizationCountOutputTypeCountInvitationsArgs = { where?: InvitationWhereInput } /** * OrganizationCountOutputType without action */ export type OrganizationCountOutputTypeCountOauthTokensArgs = { where?: OAuthTokenWhereInput } /** * Count Type WorkspaceCountOutputType */ export type WorkspaceCountOutputType = { projects: number integrations: number reports: number auditEvents: number } export type WorkspaceCountOutputTypeSelect = { projects?: boolean | WorkspaceCountOutputTypeCountProjectsArgs integrations?: boolean | WorkspaceCountOutputTypeCountIntegrationsArgs reports?: boolean | WorkspaceCountOutputTypeCountReportsArgs auditEvents?: boolean | WorkspaceCountOutputTypeCountAuditEventsArgs } // Custom InputTypes /** * WorkspaceCountOutputType without action */ export type WorkspaceCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the WorkspaceCountOutputType */ select?: WorkspaceCountOutputTypeSelect | null } /** * WorkspaceCountOutputType without action */ export type WorkspaceCountOutputTypeCountProjectsArgs = { where?: ProjectWhereInput } /** * WorkspaceCountOutputType without action */ export type WorkspaceCountOutputTypeCountIntegrationsArgs = { where?: IntegrationWhereInput } /** * WorkspaceCountOutputType without action */ export type WorkspaceCountOutputTypeCountReportsArgs = { where?: ReportExportWhereInput } /** * WorkspaceCountOutputType without action */ export type WorkspaceCountOutputTypeCountAuditEventsArgs = { where?: AuditEventWhereInput } /** * Count Type UserCountOutputType */ export type UserCountOutputType = { memberships: number invitationsSent: number auditEvents: number sessions: number } export type UserCountOutputTypeSelect = { memberships?: boolean | UserCountOutputTypeCountMembershipsArgs invitationsSent?: boolean | UserCountOutputTypeCountInvitationsSentArgs auditEvents?: boolean | UserCountOutputTypeCountAuditEventsArgs sessions?: boolean | UserCountOutputTypeCountSessionsArgs } // Custom InputTypes /** * UserCountOutputType without action */ export type UserCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the UserCountOutputType */ select?: UserCountOutputTypeSelect | null } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountMembershipsArgs = { where?: MembershipWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountInvitationsSentArgs = { where?: InvitationWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountAuditEventsArgs = { where?: AuditEventWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountSessionsArgs = { where?: SessionWhereInput } /** * Count Type RoleCountOutputType */ export type RoleCountOutputType = { memberships: number } export type RoleCountOutputTypeSelect = { memberships?: boolean | RoleCountOutputTypeCountMembershipsArgs } // Custom InputTypes /** * RoleCountOutputType without action */ export type RoleCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the RoleCountOutputType */ select?: RoleCountOutputTypeSelect | null } /** * RoleCountOutputType without action */ export type RoleCountOutputTypeCountMembershipsArgs = { where?: MembershipWhereInput } /** * Count Type ProjectCountOutputType */ export type ProjectCountOutputType = { lifecyclePhases: number risks: number indicators: number experiments: number gateEvaluations: number auditEvents: number reports: number } export type ProjectCountOutputTypeSelect = { lifecyclePhases?: boolean | ProjectCountOutputTypeCountLifecyclePhasesArgs risks?: boolean | ProjectCountOutputTypeCountRisksArgs indicators?: boolean | ProjectCountOutputTypeCountIndicatorsArgs experiments?: boolean | ProjectCountOutputTypeCountExperimentsArgs gateEvaluations?: boolean | ProjectCountOutputTypeCountGateEvaluationsArgs auditEvents?: boolean | ProjectCountOutputTypeCountAuditEventsArgs reports?: boolean | ProjectCountOutputTypeCountReportsArgs } // Custom InputTypes /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ProjectCountOutputType */ select?: ProjectCountOutputTypeSelect | null } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountLifecyclePhasesArgs = { where?: LifecyclePhaseWhereInput } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountRisksArgs = { where?: RiskWhereInput } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountIndicatorsArgs = { where?: IndicatorWhereInput } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountExperimentsArgs = { where?: ExperimentWhereInput } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountGateEvaluationsArgs = { where?: GateEvaluationWhereInput } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountAuditEventsArgs = { where?: AuditEventWhereInput } /** * ProjectCountOutputType without action */ export type ProjectCountOutputTypeCountReportsArgs = { where?: ReportExportWhereInput } /** * Count Type RiskCountOutputType */ export type RiskCountOutputType = { mitigations: number evidence: number } export type RiskCountOutputTypeSelect = { mitigations?: boolean | RiskCountOutputTypeCountMitigationsArgs evidence?: boolean | RiskCountOutputTypeCountEvidenceArgs } // Custom InputTypes /** * RiskCountOutputType without action */ export type RiskCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the RiskCountOutputType */ select?: RiskCountOutputTypeSelect | null } /** * RiskCountOutputType without action */ export type RiskCountOutputTypeCountMitigationsArgs = { where?: MitigationWhereInput } /** * RiskCountOutputType without action */ export type RiskCountOutputTypeCountEvidenceArgs = { where?: EvidenceWhereInput } /** * Count Type MitigationCountOutputType */ export type MitigationCountOutputType = { evidence: number } export type MitigationCountOutputTypeSelect = { evidence?: boolean | MitigationCountOutputTypeCountEvidenceArgs } // Custom InputTypes /** * MitigationCountOutputType without action */ export type MitigationCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the MitigationCountOutputType */ select?: MitigationCountOutputTypeSelect | null } /** * MitigationCountOutputType without action */ export type MitigationCountOutputTypeCountEvidenceArgs = { where?: EvidenceWhereInput } /** * Count Type ExperimentCountOutputType */ export type ExperimentCountOutputType = { metrics: number } export type ExperimentCountOutputTypeSelect = { metrics?: boolean | ExperimentCountOutputTypeCountMetricsArgs } // Custom InputTypes /** * ExperimentCountOutputType without action */ export type ExperimentCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ExperimentCountOutputType */ select?: ExperimentCountOutputTypeSelect | null } /** * ExperimentCountOutputType without action */ export type ExperimentCountOutputTypeCountMetricsArgs = { where?: ModelMetricWhereInput } /** * Count Type GateEvaluationCountOutputType */ export type GateEvaluationCountOutputType = { criteria: number decisions: number } export type GateEvaluationCountOutputTypeSelect = { criteria?: boolean | GateEvaluationCountOutputTypeCountCriteriaArgs decisions?: boolean | GateEvaluationCountOutputTypeCountDecisionsArgs } // Custom InputTypes /** * GateEvaluationCountOutputType without action */ export type GateEvaluationCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the GateEvaluationCountOutputType */ select?: GateEvaluationCountOutputTypeSelect | null } /** * GateEvaluationCountOutputType without action */ export type GateEvaluationCountOutputTypeCountCriteriaArgs = { where?: GateCriterionWhereInput } /** * GateEvaluationCountOutputType without action */ export type GateEvaluationCountOutputTypeCountDecisionsArgs = { where?: GateDecisionWhereInput } /** * Count Type IntegrationCountOutputType */ export type IntegrationCountOutputType = { mappings: number syncRuns: number } export type IntegrationCountOutputTypeSelect = { mappings?: boolean | IntegrationCountOutputTypeCountMappingsArgs syncRuns?: boolean | IntegrationCountOutputTypeCountSyncRunsArgs } // Custom InputTypes /** * IntegrationCountOutputType without action */ export type IntegrationCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the IntegrationCountOutputType */ select?: IntegrationCountOutputTypeSelect | null } /** * IntegrationCountOutputType without action */ export type IntegrationCountOutputTypeCountMappingsArgs = { where?: ExternalWorkItemMappingWhereInput } /** * IntegrationCountOutputType without action */ export type IntegrationCountOutputTypeCountSyncRunsArgs = { where?: IntegrationSyncRunWhereInput } /** * Models */ /** * Model Organization */ export type AggregateOrganization = { _count: OrganizationCountAggregateOutputType | null _avg: OrganizationAvgAggregateOutputType | null _sum: OrganizationSumAggregateOutputType | null _min: OrganizationMinAggregateOutputType | null _max: OrganizationMaxAggregateOutputType | null } export type OrganizationAvgAggregateOutputType = { dataRetentionDays: number | null } export type OrganizationSumAggregateOutputType = { dataRetentionDays: number | null } export type OrganizationMinAggregateOutputType = { id: string | null name: string | null slug: string | null status: $Enums.OrganizationStatus | null planCode: string | null manualBilling: boolean | null stripeCustomerId: string | null ssoEnforced: boolean | null dataRetentionDays: number | null createdAt: Date | null updatedAt: Date | null } export type OrganizationMaxAggregateOutputType = { id: string | null name: string | null slug: string | null status: $Enums.OrganizationStatus | null planCode: string | null manualBilling: boolean | null stripeCustomerId: string | null ssoEnforced: boolean | null dataRetentionDays: number | null createdAt: Date | null updatedAt: Date | null } export type OrganizationCountAggregateOutputType = { id: number name: number slug: number status: number planCode: number manualBilling: number stripeCustomerId: number ssoEnforced: number allowedDomains: number dataRetentionDays: number createdAt: number updatedAt: number _all: number } export type OrganizationAvgAggregateInputType = { dataRetentionDays?: true } export type OrganizationSumAggregateInputType = { dataRetentionDays?: true } export type OrganizationMinAggregateInputType = { id?: true name?: true slug?: true status?: true planCode?: true manualBilling?: true stripeCustomerId?: true ssoEnforced?: true dataRetentionDays?: true createdAt?: true updatedAt?: true } export type OrganizationMaxAggregateInputType = { id?: true name?: true slug?: true status?: true planCode?: true manualBilling?: true stripeCustomerId?: true ssoEnforced?: true dataRetentionDays?: true createdAt?: true updatedAt?: true } export type OrganizationCountAggregateInputType = { id?: true name?: true slug?: true status?: true planCode?: true manualBilling?: true stripeCustomerId?: true ssoEnforced?: true allowedDomains?: true dataRetentionDays?: true createdAt?: true updatedAt?: true _all?: true } export type OrganizationAggregateArgs = { /** * Filter which Organization to aggregate. */ where?: OrganizationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Organizations to fetch. */ orderBy?: OrganizationOrderByWithRelationInput | OrganizationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: OrganizationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Organizations 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` Organizations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Organizations **/ _count?: true | OrganizationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: OrganizationAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: OrganizationSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: OrganizationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: OrganizationMaxAggregateInputType } export type GetOrganizationAggregateType = { [P in keyof T & keyof AggregateOrganization]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type OrganizationGroupByArgs = { where?: OrganizationWhereInput orderBy?: OrganizationOrderByWithAggregationInput | OrganizationOrderByWithAggregationInput[] by: OrganizationScalarFieldEnum[] | OrganizationScalarFieldEnum having?: OrganizationScalarWhereWithAggregatesInput take?: number skip?: number _count?: OrganizationCountAggregateInputType | true _avg?: OrganizationAvgAggregateInputType _sum?: OrganizationSumAggregateInputType _min?: OrganizationMinAggregateInputType _max?: OrganizationMaxAggregateInputType } export type OrganizationGroupByOutputType = { id: string name: string slug: string status: $Enums.OrganizationStatus planCode: string manualBilling: boolean stripeCustomerId: string | null ssoEnforced: boolean allowedDomains: string[] dataRetentionDays: number | null createdAt: Date updatedAt: Date _count: OrganizationCountAggregateOutputType | null _avg: OrganizationAvgAggregateOutputType | null _sum: OrganizationSumAggregateOutputType | null _min: OrganizationMinAggregateOutputType | null _max: OrganizationMaxAggregateOutputType | null } type GetOrganizationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof OrganizationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type OrganizationSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean slug?: boolean status?: boolean planCode?: boolean manualBilling?: boolean stripeCustomerId?: boolean ssoEnforced?: boolean allowedDomains?: boolean dataRetentionDays?: boolean createdAt?: boolean updatedAt?: boolean workspaces?: boolean | Organization$workspacesArgs memberships?: boolean | Organization$membershipsArgs subscriptions?: boolean | Organization$subscriptionsArgs auditEvents?: boolean | Organization$auditEventsArgs usageEvents?: boolean | Organization$usageEventsArgs invitations?: boolean | Organization$invitationsArgs oauthTokens?: boolean | Organization$oauthTokensArgs _count?: boolean | OrganizationCountOutputTypeDefaultArgs }, ExtArgs["result"]["organization"]> export type OrganizationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean slug?: boolean status?: boolean planCode?: boolean manualBilling?: boolean stripeCustomerId?: boolean ssoEnforced?: boolean allowedDomains?: boolean dataRetentionDays?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["organization"]> export type OrganizationSelectScalar = { id?: boolean name?: boolean slug?: boolean status?: boolean planCode?: boolean manualBilling?: boolean stripeCustomerId?: boolean ssoEnforced?: boolean allowedDomains?: boolean dataRetentionDays?: boolean createdAt?: boolean updatedAt?: boolean } export type OrganizationInclude = { workspaces?: boolean | Organization$workspacesArgs memberships?: boolean | Organization$membershipsArgs subscriptions?: boolean | Organization$subscriptionsArgs auditEvents?: boolean | Organization$auditEventsArgs usageEvents?: boolean | Organization$usageEventsArgs invitations?: boolean | Organization$invitationsArgs oauthTokens?: boolean | Organization$oauthTokensArgs _count?: boolean | OrganizationCountOutputTypeDefaultArgs } export type OrganizationIncludeCreateManyAndReturn = {} export type $OrganizationPayload = { name: "Organization" objects: { workspaces: Prisma.$WorkspacePayload[] memberships: Prisma.$MembershipPayload[] subscriptions: Prisma.$SubscriptionPayload[] auditEvents: Prisma.$AuditEventPayload[] usageEvents: Prisma.$UsageEventPayload[] invitations: Prisma.$InvitationPayload[] oauthTokens: Prisma.$OAuthTokenPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string name: string slug: string status: $Enums.OrganizationStatus planCode: string manualBilling: boolean stripeCustomerId: string | null ssoEnforced: boolean allowedDomains: string[] dataRetentionDays: number | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["organization"]> composites: {} } type OrganizationGetPayload = $Result.GetResult type OrganizationCountArgs = Omit & { select?: OrganizationCountAggregateInputType | true } export interface OrganizationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Organization'], meta: { name: 'Organization' } } /** * Find zero or one Organization that matches the filter. * @param {OrganizationFindUniqueArgs} args - Arguments to find a Organization * @example * // Get one Organization * const organization = await prisma.organization.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Organization that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {OrganizationFindUniqueOrThrowArgs} args - Arguments to find a Organization * @example * // Get one Organization * const organization = await prisma.organization.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Organization 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 {OrganizationFindFirstArgs} args - Arguments to find a Organization * @example * // Get one Organization * const organization = await prisma.organization.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Organization 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 {OrganizationFindFirstOrThrowArgs} args - Arguments to find a Organization * @example * // Get one Organization * const organization = await prisma.organization.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Organizations 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 {OrganizationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Organizations * const organizations = await prisma.organization.findMany() * * // Get first 10 Organizations * const organizations = await prisma.organization.findMany({ take: 10 }) * * // Only select the `id` * const organizationWithIdOnly = await prisma.organization.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Organization. * @param {OrganizationCreateArgs} args - Arguments to create a Organization. * @example * // Create one Organization * const Organization = await prisma.organization.create({ * data: { * // ... data to create a Organization * } * }) * */ create(args: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Organizations. * @param {OrganizationCreateManyArgs} args - Arguments to create many Organizations. * @example * // Create many Organizations * const organization = await prisma.organization.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Organizations and returns the data saved in the database. * @param {OrganizationCreateManyAndReturnArgs} args - Arguments to create many Organizations. * @example * // Create many Organizations * const organization = await prisma.organization.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Organizations and only return the `id` * const organizationWithIdOnly = await prisma.organization.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">> /** * Delete a Organization. * @param {OrganizationDeleteArgs} args - Arguments to delete one Organization. * @example * // Delete one Organization * const Organization = await prisma.organization.delete({ * where: { * // ... filter to delete one Organization * } * }) * */ delete(args: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Organization. * @param {OrganizationUpdateArgs} args - Arguments to update one Organization. * @example * // Update one Organization * const organization = await prisma.organization.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Organizations. * @param {OrganizationDeleteManyArgs} args - Arguments to filter Organizations to delete. * @example * // Delete a few Organizations * const { count } = await prisma.organization.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Organizations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OrganizationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Organizations * const organization = await prisma.organization.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Organization. * @param {OrganizationUpsertArgs} args - Arguments to update or create a Organization. * @example * // Update or create a Organization * const organization = await prisma.organization.upsert({ * create: { * // ... data to create a Organization * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Organization we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__OrganizationClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Organizations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OrganizationCountArgs} args - Arguments to filter Organizations to count. * @example * // Count the number of Organizations * const count = await prisma.organization.count({ * where: { * // ... the filter for the Organizations 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 Organization. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OrganizationAggregateArgs} 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 Organization. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OrganizationGroupByArgs} 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 OrganizationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: OrganizationGroupByArgs['orderBy'] } : { orderBy?: OrganizationGroupByArgs['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 ? GetOrganizationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Organization model */ readonly fields: OrganizationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Organization. * 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__OrganizationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" workspaces = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> memberships = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> subscriptions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> auditEvents = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> usageEvents = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> invitations = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> oauthTokens = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | 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 Organization model */ interface OrganizationFieldRefs { readonly id: FieldRef<"Organization", 'String'> readonly name: FieldRef<"Organization", 'String'> readonly slug: FieldRef<"Organization", 'String'> readonly status: FieldRef<"Organization", 'OrganizationStatus'> readonly planCode: FieldRef<"Organization", 'String'> readonly manualBilling: FieldRef<"Organization", 'Boolean'> readonly stripeCustomerId: FieldRef<"Organization", 'String'> readonly ssoEnforced: FieldRef<"Organization", 'Boolean'> readonly allowedDomains: FieldRef<"Organization", 'String[]'> readonly dataRetentionDays: FieldRef<"Organization", 'Int'> readonly createdAt: FieldRef<"Organization", 'DateTime'> readonly updatedAt: FieldRef<"Organization", 'DateTime'> } // Custom InputTypes /** * Organization findUnique */ export type OrganizationFindUniqueArgs = { /** * Select specific fields to fetch from the Organization */ select?: OrganizationSelect | null /** * Choose, which related nodes to fetch as well */ include?: OrganizationInclude | null /** * Filter, which Organization to fetch. */ where: OrganizationWhereUniqueInput } /** * Organization findUniqueOrThrow */ export type OrganizationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Organization */ select?: OrganizationSelect | null /** * Choose, which related nodes to fetch as well */ include?: OrganizationInclude | null /** * Filter, which Organization to fetch. */ where: OrganizationWhereUniqueInput } /** * Organization findFirst */ export type OrganizationFindFirstArgs = { /** * Select specific fields to fetch from the Organization */ select?: OrganizationSelect | null /** * Choose, which related nodes to fetch as well */ include?: OrganizationInclude | null /** * Filter, which Organization to fetch. */ where?: OrganizationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Organizations to fetch. */ orderBy?: OrganizationOrderByWithRelationInput | OrganizationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Organizations. */ cursor?: OrganizationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Organizations 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` Organizations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Organizations. */ distinct?: OrganizationScalarFieldEnum | OrganizationScalarFieldEnum[] } /** * Organization findFirstOrThrow */ export type OrganizationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Organization */ select?: OrganizationSelect | null /** * Choose, which related nodes to fetch as well */ include?: OrganizationInclude | null /** * Filter, which Organization to fetch. */ where?: OrganizationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Organizations to fetch. */ orderBy?: OrganizationOrderByWithRelationInput | OrganizationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Organizations. */ cursor?: OrganizationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Organizations 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` Organizations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Organizations. */ distinct?: OrganizationScalarFieldEnum | OrganizationScalarFieldEnum[] } /** * Organization findMany */ export type OrganizationFindManyArgs = { /** * Select specific fields to fetch from the Organization */ select?: OrganizationSelect | null /** * Choose, which related nodes to fetch as well */ include?: OrganizationInclude | null /** * Filter, which Organizations to fetch. */ where?: OrganizationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Organizations to fetch. */ orderBy?: OrganizationOrderByWithRelationInput | OrganizationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Organizations. */ cursor?: OrganizationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Organizations 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` Organizations. */ skip?: number distinct?: OrganizationScalarFieldEnum | OrganizationScalarFieldEnum[] } /** * Organization create */ export type OrganizationCreateArgs = { /** * Select specific fields to fetch from the Organization */ select?: OrganizationSelect | null /** * Choose, which related nodes to fetch as well */ include?: OrganizationInclude | null /** * The data needed to create a Organization. */ data: XOR } /** * Organization createMany */ export type OrganizationCreateManyArgs = { /** * The data used to create many Organizations. */ data: OrganizationCreateManyInput | OrganizationCreateManyInput[] skipDuplicates?: boolean } /** * Organization createManyAndReturn */ export type OrganizationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Organization */ select?: OrganizationSelectCreateManyAndReturn | null /** * The data used to create many Organizations. */ data: OrganizationCreateManyInput | OrganizationCreateManyInput[] skipDuplicates?: boolean } /** * Organization update */ export type OrganizationUpdateArgs = { /** * Select specific fields to fetch from the Organization */ select?: OrganizationSelect | null /** * Choose, which related nodes to fetch as well */ include?: OrganizationInclude | null /** * The data needed to update a Organization. */ data: XOR /** * Choose, which Organization to update. */ where: OrganizationWhereUniqueInput } /** * Organization updateMany */ export type OrganizationUpdateManyArgs = { /** * The data used to update Organizations. */ data: XOR /** * Filter which Organizations to update */ where?: OrganizationWhereInput } /** * Organization upsert */ export type OrganizationUpsertArgs = { /** * Select specific fields to fetch from the Organization */ select?: OrganizationSelect | null /** * Choose, which related nodes to fetch as well */ include?: OrganizationInclude | null /** * The filter to search for the Organization to update in case it exists. */ where: OrganizationWhereUniqueInput /** * In case the Organization found by the `where` argument doesn't exist, create a new Organization with this data. */ create: XOR /** * In case the Organization was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Organization delete */ export type OrganizationDeleteArgs = { /** * Select specific fields to fetch from the Organization */ select?: OrganizationSelect | null /** * Choose, which related nodes to fetch as well */ include?: OrganizationInclude | null /** * Filter which Organization to delete. */ where: OrganizationWhereUniqueInput } /** * Organization deleteMany */ export type OrganizationDeleteManyArgs = { /** * Filter which Organizations to delete */ where?: OrganizationWhereInput } /** * Organization.workspaces */ export type Organization$workspacesArgs = { /** * Select specific fields to fetch from the Workspace */ select?: WorkspaceSelect | null /** * Choose, which related nodes to fetch as well */ include?: WorkspaceInclude | null where?: WorkspaceWhereInput orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[] cursor?: WorkspaceWhereUniqueInput take?: number skip?: number distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[] } /** * Organization.memberships */ export type Organization$membershipsArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelect | null /** * Choose, which related nodes to fetch as well */ include?: MembershipInclude | null where?: MembershipWhereInput orderBy?: MembershipOrderByWithRelationInput | MembershipOrderByWithRelationInput[] cursor?: MembershipWhereUniqueInput take?: number skip?: number distinct?: MembershipScalarFieldEnum | MembershipScalarFieldEnum[] } /** * Organization.subscriptions */ export type Organization$subscriptionsArgs = { /** * Select specific fields to fetch from the Subscription */ select?: SubscriptionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SubscriptionInclude | null where?: SubscriptionWhereInput orderBy?: SubscriptionOrderByWithRelationInput | SubscriptionOrderByWithRelationInput[] cursor?: SubscriptionWhereUniqueInput take?: number skip?: number distinct?: SubscriptionScalarFieldEnum | SubscriptionScalarFieldEnum[] } /** * Organization.auditEvents */ export type Organization$auditEventsArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | null where?: AuditEventWhereInput orderBy?: AuditEventOrderByWithRelationInput | AuditEventOrderByWithRelationInput[] cursor?: AuditEventWhereUniqueInput take?: number skip?: number distinct?: AuditEventScalarFieldEnum | AuditEventScalarFieldEnum[] } /** * Organization.usageEvents */ export type Organization$usageEventsArgs = { /** * Select specific fields to fetch from the UsageEvent */ select?: UsageEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: UsageEventInclude | null where?: UsageEventWhereInput orderBy?: UsageEventOrderByWithRelationInput | UsageEventOrderByWithRelationInput[] cursor?: UsageEventWhereUniqueInput take?: number skip?: number distinct?: UsageEventScalarFieldEnum | UsageEventScalarFieldEnum[] } /** * Organization.invitations */ export type Organization$invitationsArgs = { /** * Select specific fields to fetch from the Invitation */ select?: InvitationSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvitationInclude | null where?: InvitationWhereInput orderBy?: InvitationOrderByWithRelationInput | InvitationOrderByWithRelationInput[] cursor?: InvitationWhereUniqueInput take?: number skip?: number distinct?: InvitationScalarFieldEnum | InvitationScalarFieldEnum[] } /** * Organization.oauthTokens */ export type Organization$oauthTokensArgs = { /** * Select specific fields to fetch from the OAuthToken */ select?: OAuthTokenSelect | null /** * Choose, which related nodes to fetch as well */ include?: OAuthTokenInclude | null where?: OAuthTokenWhereInput orderBy?: OAuthTokenOrderByWithRelationInput | OAuthTokenOrderByWithRelationInput[] cursor?: OAuthTokenWhereUniqueInput take?: number skip?: number distinct?: OAuthTokenScalarFieldEnum | OAuthTokenScalarFieldEnum[] } /** * Organization without action */ export type OrganizationDefaultArgs = { /** * Select specific fields to fetch from the Organization */ select?: OrganizationSelect | null /** * Choose, which related nodes to fetch as well */ include?: OrganizationInclude | null } /** * Model Workspace */ export type AggregateWorkspace = { _count: WorkspaceCountAggregateOutputType | null _min: WorkspaceMinAggregateOutputType | null _max: WorkspaceMaxAggregateOutputType | null } export type WorkspaceMinAggregateOutputType = { id: string | null organizationId: string | null name: string | null slug: string | null type: $Enums.WorkspaceType | null status: $Enums.OrganizationStatus | null createdAt: Date | null updatedAt: Date | null } export type WorkspaceMaxAggregateOutputType = { id: string | null organizationId: string | null name: string | null slug: string | null type: $Enums.WorkspaceType | null status: $Enums.OrganizationStatus | null createdAt: Date | null updatedAt: Date | null } export type WorkspaceCountAggregateOutputType = { id: number organizationId: number name: number slug: number type: number status: number createdAt: number updatedAt: number _all: number } export type WorkspaceMinAggregateInputType = { id?: true organizationId?: true name?: true slug?: true type?: true status?: true createdAt?: true updatedAt?: true } export type WorkspaceMaxAggregateInputType = { id?: true organizationId?: true name?: true slug?: true type?: true status?: true createdAt?: true updatedAt?: true } export type WorkspaceCountAggregateInputType = { id?: true organizationId?: true name?: true slug?: true type?: true status?: true createdAt?: true updatedAt?: true _all?: true } export type WorkspaceAggregateArgs = { /** * Filter which Workspace to aggregate. */ where?: WorkspaceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Workspaces to fetch. */ orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: WorkspaceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Workspaces 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` Workspaces. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Workspaces **/ _count?: true | WorkspaceCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: WorkspaceMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: WorkspaceMaxAggregateInputType } export type GetWorkspaceAggregateType = { [P in keyof T & keyof AggregateWorkspace]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type WorkspaceGroupByArgs = { where?: WorkspaceWhereInput orderBy?: WorkspaceOrderByWithAggregationInput | WorkspaceOrderByWithAggregationInput[] by: WorkspaceScalarFieldEnum[] | WorkspaceScalarFieldEnum having?: WorkspaceScalarWhereWithAggregatesInput take?: number skip?: number _count?: WorkspaceCountAggregateInputType | true _min?: WorkspaceMinAggregateInputType _max?: WorkspaceMaxAggregateInputType } export type WorkspaceGroupByOutputType = { id: string organizationId: string name: string slug: string type: $Enums.WorkspaceType status: $Enums.OrganizationStatus createdAt: Date updatedAt: Date _count: WorkspaceCountAggregateOutputType | null _min: WorkspaceMinAggregateOutputType | null _max: WorkspaceMaxAggregateOutputType | null } type GetWorkspaceGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof WorkspaceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type WorkspaceSelect = $Extensions.GetSelect<{ id?: boolean organizationId?: boolean name?: boolean slug?: boolean type?: boolean status?: boolean createdAt?: boolean updatedAt?: boolean organization?: boolean | OrganizationDefaultArgs projects?: boolean | Workspace$projectsArgs integrations?: boolean | Workspace$integrationsArgs reports?: boolean | Workspace$reportsArgs auditEvents?: boolean | Workspace$auditEventsArgs _count?: boolean | WorkspaceCountOutputTypeDefaultArgs }, ExtArgs["result"]["workspace"]> export type WorkspaceSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean organizationId?: boolean name?: boolean slug?: boolean type?: boolean status?: boolean createdAt?: boolean updatedAt?: boolean organization?: boolean | OrganizationDefaultArgs }, ExtArgs["result"]["workspace"]> export type WorkspaceSelectScalar = { id?: boolean organizationId?: boolean name?: boolean slug?: boolean type?: boolean status?: boolean createdAt?: boolean updatedAt?: boolean } export type WorkspaceInclude = { organization?: boolean | OrganizationDefaultArgs projects?: boolean | Workspace$projectsArgs integrations?: boolean | Workspace$integrationsArgs reports?: boolean | Workspace$reportsArgs auditEvents?: boolean | Workspace$auditEventsArgs _count?: boolean | WorkspaceCountOutputTypeDefaultArgs } export type WorkspaceIncludeCreateManyAndReturn = { organization?: boolean | OrganizationDefaultArgs } export type $WorkspacePayload = { name: "Workspace" objects: { organization: Prisma.$OrganizationPayload projects: Prisma.$ProjectPayload[] integrations: Prisma.$IntegrationPayload[] reports: Prisma.$ReportExportPayload[] auditEvents: Prisma.$AuditEventPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string organizationId: string name: string slug: string type: $Enums.WorkspaceType status: $Enums.OrganizationStatus createdAt: Date updatedAt: Date }, ExtArgs["result"]["workspace"]> composites: {} } type WorkspaceGetPayload = $Result.GetResult type WorkspaceCountArgs = Omit & { select?: WorkspaceCountAggregateInputType | true } export interface WorkspaceDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Workspace'], meta: { name: 'Workspace' } } /** * Find zero or one Workspace that matches the filter. * @param {WorkspaceFindUniqueArgs} args - Arguments to find a Workspace * @example * // Get one Workspace * const workspace = await prisma.workspace.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__WorkspaceClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Workspace that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {WorkspaceFindUniqueOrThrowArgs} args - Arguments to find a Workspace * @example * // Get one Workspace * const workspace = await prisma.workspace.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__WorkspaceClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Workspace 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 {WorkspaceFindFirstArgs} args - Arguments to find a Workspace * @example * // Get one Workspace * const workspace = await prisma.workspace.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__WorkspaceClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Workspace 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 {WorkspaceFindFirstOrThrowArgs} args - Arguments to find a Workspace * @example * // Get one Workspace * const workspace = await prisma.workspace.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__WorkspaceClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Workspaces 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 {WorkspaceFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Workspaces * const workspaces = await prisma.workspace.findMany() * * // Get first 10 Workspaces * const workspaces = await prisma.workspace.findMany({ take: 10 }) * * // Only select the `id` * const workspaceWithIdOnly = await prisma.workspace.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Workspace. * @param {WorkspaceCreateArgs} args - Arguments to create a Workspace. * @example * // Create one Workspace * const Workspace = await prisma.workspace.create({ * data: { * // ... data to create a Workspace * } * }) * */ create(args: SelectSubset>): Prisma__WorkspaceClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Workspaces. * @param {WorkspaceCreateManyArgs} args - Arguments to create many Workspaces. * @example * // Create many Workspaces * const workspace = await prisma.workspace.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Workspaces and returns the data saved in the database. * @param {WorkspaceCreateManyAndReturnArgs} args - Arguments to create many Workspaces. * @example * // Create many Workspaces * const workspace = await prisma.workspace.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Workspaces and only return the `id` * const workspaceWithIdOnly = await prisma.workspace.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">> /** * Delete a Workspace. * @param {WorkspaceDeleteArgs} args - Arguments to delete one Workspace. * @example * // Delete one Workspace * const Workspace = await prisma.workspace.delete({ * where: { * // ... filter to delete one Workspace * } * }) * */ delete(args: SelectSubset>): Prisma__WorkspaceClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Workspace. * @param {WorkspaceUpdateArgs} args - Arguments to update one Workspace. * @example * // Update one Workspace * const workspace = await prisma.workspace.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__WorkspaceClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Workspaces. * @param {WorkspaceDeleteManyArgs} args - Arguments to filter Workspaces to delete. * @example * // Delete a few Workspaces * const { count } = await prisma.workspace.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Workspaces. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WorkspaceUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Workspaces * const workspace = await prisma.workspace.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Workspace. * @param {WorkspaceUpsertArgs} args - Arguments to update or create a Workspace. * @example * // Update or create a Workspace * const workspace = await prisma.workspace.upsert({ * create: { * // ... data to create a Workspace * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Workspace we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__WorkspaceClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Workspaces. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WorkspaceCountArgs} args - Arguments to filter Workspaces to count. * @example * // Count the number of Workspaces * const count = await prisma.workspace.count({ * where: { * // ... the filter for the Workspaces 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 Workspace. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WorkspaceAggregateArgs} 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 Workspace. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WorkspaceGroupByArgs} 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 WorkspaceGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: WorkspaceGroupByArgs['orderBy'] } : { orderBy?: WorkspaceGroupByArgs['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 ? GetWorkspaceGroupByPayload : Prisma.PrismaPromise /** * Fields of the Workspace model */ readonly fields: WorkspaceFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Workspace. * 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__WorkspaceClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> projects = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> integrations = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> reports = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> auditEvents = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | 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 Workspace model */ interface WorkspaceFieldRefs { readonly id: FieldRef<"Workspace", 'String'> readonly organizationId: FieldRef<"Workspace", 'String'> readonly name: FieldRef<"Workspace", 'String'> readonly slug: FieldRef<"Workspace", 'String'> readonly type: FieldRef<"Workspace", 'WorkspaceType'> readonly status: FieldRef<"Workspace", 'OrganizationStatus'> readonly createdAt: FieldRef<"Workspace", 'DateTime'> readonly updatedAt: FieldRef<"Workspace", 'DateTime'> } // Custom InputTypes /** * Workspace findUnique */ export type WorkspaceFindUniqueArgs = { /** * Select specific fields to fetch from the Workspace */ select?: WorkspaceSelect | null /** * Choose, which related nodes to fetch as well */ include?: WorkspaceInclude | null /** * Filter, which Workspace to fetch. */ where: WorkspaceWhereUniqueInput } /** * Workspace findUniqueOrThrow */ export type WorkspaceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Workspace */ select?: WorkspaceSelect | null /** * Choose, which related nodes to fetch as well */ include?: WorkspaceInclude | null /** * Filter, which Workspace to fetch. */ where: WorkspaceWhereUniqueInput } /** * Workspace findFirst */ export type WorkspaceFindFirstArgs = { /** * Select specific fields to fetch from the Workspace */ select?: WorkspaceSelect | null /** * Choose, which related nodes to fetch as well */ include?: WorkspaceInclude | null /** * Filter, which Workspace to fetch. */ where?: WorkspaceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Workspaces to fetch. */ orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Workspaces. */ cursor?: WorkspaceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Workspaces 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` Workspaces. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Workspaces. */ distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[] } /** * Workspace findFirstOrThrow */ export type WorkspaceFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Workspace */ select?: WorkspaceSelect | null /** * Choose, which related nodes to fetch as well */ include?: WorkspaceInclude | null /** * Filter, which Workspace to fetch. */ where?: WorkspaceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Workspaces to fetch. */ orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Workspaces. */ cursor?: WorkspaceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Workspaces 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` Workspaces. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Workspaces. */ distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[] } /** * Workspace findMany */ export type WorkspaceFindManyArgs = { /** * Select specific fields to fetch from the Workspace */ select?: WorkspaceSelect | null /** * Choose, which related nodes to fetch as well */ include?: WorkspaceInclude | null /** * Filter, which Workspaces to fetch. */ where?: WorkspaceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Workspaces to fetch. */ orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Workspaces. */ cursor?: WorkspaceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Workspaces 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` Workspaces. */ skip?: number distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[] } /** * Workspace create */ export type WorkspaceCreateArgs = { /** * Select specific fields to fetch from the Workspace */ select?: WorkspaceSelect | null /** * Choose, which related nodes to fetch as well */ include?: WorkspaceInclude | null /** * The data needed to create a Workspace. */ data: XOR } /** * Workspace createMany */ export type WorkspaceCreateManyArgs = { /** * The data used to create many Workspaces. */ data: WorkspaceCreateManyInput | WorkspaceCreateManyInput[] skipDuplicates?: boolean } /** * Workspace createManyAndReturn */ export type WorkspaceCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Workspace */ select?: WorkspaceSelectCreateManyAndReturn | null /** * The data used to create many Workspaces. */ data: WorkspaceCreateManyInput | WorkspaceCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: WorkspaceIncludeCreateManyAndReturn | null } /** * Workspace update */ export type WorkspaceUpdateArgs = { /** * Select specific fields to fetch from the Workspace */ select?: WorkspaceSelect | null /** * Choose, which related nodes to fetch as well */ include?: WorkspaceInclude | null /** * The data needed to update a Workspace. */ data: XOR /** * Choose, which Workspace to update. */ where: WorkspaceWhereUniqueInput } /** * Workspace updateMany */ export type WorkspaceUpdateManyArgs = { /** * The data used to update Workspaces. */ data: XOR /** * Filter which Workspaces to update */ where?: WorkspaceWhereInput } /** * Workspace upsert */ export type WorkspaceUpsertArgs = { /** * Select specific fields to fetch from the Workspace */ select?: WorkspaceSelect | null /** * Choose, which related nodes to fetch as well */ include?: WorkspaceInclude | null /** * The filter to search for the Workspace to update in case it exists. */ where: WorkspaceWhereUniqueInput /** * In case the Workspace found by the `where` argument doesn't exist, create a new Workspace with this data. */ create: XOR /** * In case the Workspace was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Workspace delete */ export type WorkspaceDeleteArgs = { /** * Select specific fields to fetch from the Workspace */ select?: WorkspaceSelect | null /** * Choose, which related nodes to fetch as well */ include?: WorkspaceInclude | null /** * Filter which Workspace to delete. */ where: WorkspaceWhereUniqueInput } /** * Workspace deleteMany */ export type WorkspaceDeleteManyArgs = { /** * Filter which Workspaces to delete */ where?: WorkspaceWhereInput } /** * Workspace.projects */ export type Workspace$projectsArgs = { /** * Select specific fields to fetch from the Project */ select?: ProjectSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProjectInclude | null where?: ProjectWhereInput orderBy?: ProjectOrderByWithRelationInput | ProjectOrderByWithRelationInput[] cursor?: ProjectWhereUniqueInput take?: number skip?: number distinct?: ProjectScalarFieldEnum | ProjectScalarFieldEnum[] } /** * Workspace.integrations */ export type Workspace$integrationsArgs = { /** * Select specific fields to fetch from the Integration */ select?: IntegrationSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationInclude | null where?: IntegrationWhereInput orderBy?: IntegrationOrderByWithRelationInput | IntegrationOrderByWithRelationInput[] cursor?: IntegrationWhereUniqueInput take?: number skip?: number distinct?: IntegrationScalarFieldEnum | IntegrationScalarFieldEnum[] } /** * Workspace.reports */ export type Workspace$reportsArgs = { /** * Select specific fields to fetch from the ReportExport */ select?: ReportExportSelect | null /** * Choose, which related nodes to fetch as well */ include?: ReportExportInclude | null where?: ReportExportWhereInput orderBy?: ReportExportOrderByWithRelationInput | ReportExportOrderByWithRelationInput[] cursor?: ReportExportWhereUniqueInput take?: number skip?: number distinct?: ReportExportScalarFieldEnum | ReportExportScalarFieldEnum[] } /** * Workspace.auditEvents */ export type Workspace$auditEventsArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | null where?: AuditEventWhereInput orderBy?: AuditEventOrderByWithRelationInput | AuditEventOrderByWithRelationInput[] cursor?: AuditEventWhereUniqueInput take?: number skip?: number distinct?: AuditEventScalarFieldEnum | AuditEventScalarFieldEnum[] } /** * Workspace without action */ export type WorkspaceDefaultArgs = { /** * Select specific fields to fetch from the Workspace */ select?: WorkspaceSelect | null /** * Choose, which related nodes to fetch as well */ include?: WorkspaceInclude | null } /** * Model User */ export type AggregateUser = { _count: UserCountAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } export type UserMinAggregateOutputType = { id: string | null email: string | null displayName: string | null passwordHash: string | null emailVerifiedAt: Date | null lastLoginAt: Date | null createdAt: Date | null updatedAt: Date | null } export type UserMaxAggregateOutputType = { id: string | null email: string | null displayName: string | null passwordHash: string | null emailVerifiedAt: Date | null lastLoginAt: Date | null createdAt: Date | null updatedAt: Date | null } export type UserCountAggregateOutputType = { id: number email: number displayName: number passwordHash: number emailVerifiedAt: number lastLoginAt: number createdAt: number updatedAt: number _all: number } export type UserMinAggregateInputType = { id?: true email?: true displayName?: true passwordHash?: true emailVerifiedAt?: true lastLoginAt?: true createdAt?: true updatedAt?: true } export type UserMaxAggregateInputType = { id?: true email?: true displayName?: true passwordHash?: true emailVerifiedAt?: true lastLoginAt?: true createdAt?: true updatedAt?: true } export type UserCountAggregateInputType = { id?: true email?: true displayName?: true passwordHash?: true emailVerifiedAt?: true lastLoginAt?: true createdAt?: true updatedAt?: true _all?: true } export type UserAggregateArgs = { /** * Filter which User to aggregate. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Users **/ _count?: true | UserCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserMaxAggregateInputType } export type GetUserAggregateType = { [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UserGroupByArgs = { where?: UserWhereInput orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] by: UserScalarFieldEnum[] | UserScalarFieldEnum having?: UserScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserCountAggregateInputType | true _min?: UserMinAggregateInputType _max?: UserMaxAggregateInputType } export type UserGroupByOutputType = { id: string email: string displayName: string passwordHash: string | null emailVerifiedAt: Date | null lastLoginAt: Date | null createdAt: Date updatedAt: Date _count: UserCountAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } type GetUserGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserSelect = $Extensions.GetSelect<{ id?: boolean email?: boolean displayName?: boolean passwordHash?: boolean emailVerifiedAt?: boolean lastLoginAt?: boolean createdAt?: boolean updatedAt?: boolean memberships?: boolean | User$membershipsArgs invitationsSent?: boolean | User$invitationsSentArgs auditEvents?: boolean | User$auditEventsArgs sessions?: boolean | User$sessionsArgs _count?: boolean | UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> export type UserSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean email?: boolean displayName?: boolean passwordHash?: boolean emailVerifiedAt?: boolean lastLoginAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["user"]> export type UserSelectScalar = { id?: boolean email?: boolean displayName?: boolean passwordHash?: boolean emailVerifiedAt?: boolean lastLoginAt?: boolean createdAt?: boolean updatedAt?: boolean } export type UserInclude = { memberships?: boolean | User$membershipsArgs invitationsSent?: boolean | User$invitationsSentArgs auditEvents?: boolean | User$auditEventsArgs sessions?: boolean | User$sessionsArgs _count?: boolean | UserCountOutputTypeDefaultArgs } export type UserIncludeCreateManyAndReturn = {} export type $UserPayload = { name: "User" objects: { memberships: Prisma.$MembershipPayload[] invitationsSent: Prisma.$InvitationPayload[] auditEvents: Prisma.$AuditEventPayload[] sessions: Prisma.$SessionPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string email: string displayName: string passwordHash: string | null emailVerifiedAt: Date | null lastLoginAt: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["user"]> composites: {} } type UserGetPayload = $Result.GetResult type UserCountArgs = Omit & { select?: UserCountAggregateInputType | true } export interface UserDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } /** * Find zero or one User that matches the filter. * @param {UserFindUniqueArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one User that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first User that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindFirstArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first User that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Users that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Users * const users = await prisma.user.findMany() * * // Get first 10 Users * const users = await prisma.user.findMany({ take: 10 }) * * // Only select the `id` * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a User. * @param {UserCreateArgs} args - Arguments to create a User. * @example * // Create one User * const User = await prisma.user.create({ * data: { * // ... data to create a User * } * }) * */ create(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Users. * @param {UserCreateManyArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Users and returns the data saved in the database. * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Users and only return the `id` * const userWithIdOnly = await prisma.user.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a User. * @param {UserDeleteArgs} args - Arguments to delete one User. * @example * // Delete one User * const User = await prisma.user.delete({ * where: { * // ... filter to delete one User * } * }) * */ delete(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one User. * @param {UserUpdateArgs} args - Arguments to update one User. * @example * // Update one User * const user = await prisma.user.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Users. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. * @example * // Delete a few Users * const { count } = await prisma.user.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Users * const user = await prisma.user.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one User. * @param {UserUpsertArgs} args - Arguments to update or create a User. * @example * // Update or create a User * const user = await prisma.user.upsert({ * create: { * // ... data to create a User * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the User we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserCountArgs} args - Arguments to filter Users to count. * @example * // Count the number of Users * const count = await prisma.user.count({ * where: { * // ... the filter for the Users we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends UserGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserGroupByArgs['orderBy'] } : { orderBy?: UserGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise /** * Fields of the User model */ readonly fields: UserFieldRefs; } /** * The delegate class that acts as a "Promise-like" for User. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__UserClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" memberships = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> invitationsSent = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> auditEvents = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> sessions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the User model */ interface UserFieldRefs { readonly id: FieldRef<"User", 'String'> readonly email: FieldRef<"User", 'String'> readonly displayName: FieldRef<"User", 'String'> readonly passwordHash: FieldRef<"User", 'String'> readonly emailVerifiedAt: FieldRef<"User", 'DateTime'> readonly lastLoginAt: FieldRef<"User", 'DateTime'> readonly createdAt: FieldRef<"User", 'DateTime'> readonly updatedAt: FieldRef<"User", 'DateTime'> } // Custom InputTypes /** * User findUnique */ export type UserFindUniqueArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findUniqueOrThrow */ export type UserFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findFirst */ export type UserFindFirstArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findFirstOrThrow */ export type UserFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findMany */ export type UserFindManyArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which Users to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User create */ export type UserCreateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to create a User. */ data: XOR } /** * User createMany */ export type UserCreateManyArgs = { /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User createManyAndReturn */ export type UserCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectCreateManyAndReturn | null /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User update */ export type UserUpdateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to update a User. */ data: XOR /** * Choose, which User to update. */ where: UserWhereUniqueInput } /** * User updateMany */ export type UserUpdateManyArgs = { /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput } /** * User upsert */ export type UserUpsertArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The filter to search for the User to update in case it exists. */ where: UserWhereUniqueInput /** * In case the User found by the `where` argument doesn't exist, create a new User with this data. */ create: XOR /** * In case the User was found with the provided `where` argument, update it with this data. */ update: XOR } /** * User delete */ export type UserDeleteArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter which User to delete. */ where: UserWhereUniqueInput } /** * User deleteMany */ export type UserDeleteManyArgs = { /** * Filter which Users to delete */ where?: UserWhereInput } /** * User.memberships */ export type User$membershipsArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelect | null /** * Choose, which related nodes to fetch as well */ include?: MembershipInclude | null where?: MembershipWhereInput orderBy?: MembershipOrderByWithRelationInput | MembershipOrderByWithRelationInput[] cursor?: MembershipWhereUniqueInput take?: number skip?: number distinct?: MembershipScalarFieldEnum | MembershipScalarFieldEnum[] } /** * User.invitationsSent */ export type User$invitationsSentArgs = { /** * Select specific fields to fetch from the Invitation */ select?: InvitationSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvitationInclude | null where?: InvitationWhereInput orderBy?: InvitationOrderByWithRelationInput | InvitationOrderByWithRelationInput[] cursor?: InvitationWhereUniqueInput take?: number skip?: number distinct?: InvitationScalarFieldEnum | InvitationScalarFieldEnum[] } /** * User.auditEvents */ export type User$auditEventsArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | null where?: AuditEventWhereInput orderBy?: AuditEventOrderByWithRelationInput | AuditEventOrderByWithRelationInput[] cursor?: AuditEventWhereUniqueInput take?: number skip?: number distinct?: AuditEventScalarFieldEnum | AuditEventScalarFieldEnum[] } /** * User.sessions */ export type User$sessionsArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null where?: SessionWhereInput orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] cursor?: SessionWhereUniqueInput take?: number skip?: number distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** * User without action */ export type UserDefaultArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null } /** * Model Session */ export type AggregateSession = { _count: SessionCountAggregateOutputType | null _min: SessionMinAggregateOutputType | null _max: SessionMaxAggregateOutputType | null } export type SessionMinAggregateOutputType = { id: string | null userId: string | null token: string | null expiresAt: Date | null createdAt: Date | null } export type SessionMaxAggregateOutputType = { id: string | null userId: string | null token: string | null expiresAt: Date | null createdAt: Date | null } export type SessionCountAggregateOutputType = { id: number userId: number token: number expiresAt: number createdAt: number _all: number } export type SessionMinAggregateInputType = { id?: true userId?: true token?: true expiresAt?: true createdAt?: true } export type SessionMaxAggregateInputType = { id?: true userId?: true token?: true expiresAt?: true createdAt?: true } export type SessionCountAggregateInputType = { id?: true userId?: true token?: true expiresAt?: true createdAt?: true _all?: true } export type SessionAggregateArgs = { /** * Filter which Session to aggregate. */ where?: SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Sessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Sessions **/ _count?: true | SessionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SessionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SessionMaxAggregateInputType } export type GetSessionAggregateType = { [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SessionGroupByArgs = { where?: SessionWhereInput orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[] by: SessionScalarFieldEnum[] | SessionScalarFieldEnum having?: SessionScalarWhereWithAggregatesInput take?: number skip?: number _count?: SessionCountAggregateInputType | true _min?: SessionMinAggregateInputType _max?: SessionMaxAggregateInputType } export type SessionGroupByOutputType = { id: string userId: string token: string expiresAt: Date createdAt: Date _count: SessionCountAggregateOutputType | null _min: SessionMinAggregateOutputType | null _max: SessionMaxAggregateOutputType | null } type GetSessionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SessionSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean token?: boolean expiresAt?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["session"]> export type SessionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean token?: boolean expiresAt?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["session"]> export type SessionSelectScalar = { id?: boolean userId?: boolean token?: boolean expiresAt?: boolean createdAt?: boolean } export type SessionInclude = { user?: boolean | UserDefaultArgs } export type SessionIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $SessionPayload = { name: "Session" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: string userId: string token: string expiresAt: Date createdAt: Date }, ExtArgs["result"]["session"]> composites: {} } type SessionGetPayload = $Result.GetResult type SessionCountArgs = Omit & { select?: SessionCountAggregateInputType | true } export interface SessionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Session'], meta: { name: 'Session' } } /** * Find zero or one Session that matches the filter. * @param {SessionFindUniqueArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Session that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Session that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionFindFirstArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Session that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Sessions that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Sessions * const sessions = await prisma.session.findMany() * * // Get first 10 Sessions * const sessions = await prisma.session.findMany({ take: 10 }) * * // Only select the `id` * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Session. * @param {SessionCreateArgs} args - Arguments to create a Session. * @example * // Create one Session * const Session = await prisma.session.create({ * data: { * // ... data to create a Session * } * }) * */ create(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Sessions. * @param {SessionCreateManyArgs} args - Arguments to create many Sessions. * @example * // Create many Sessions * const session = await prisma.session.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Sessions and returns the data saved in the database. * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions. * @example * // Create many Sessions * const session = await prisma.session.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Sessions and only return the `id` * const sessionWithIdOnly = await prisma.session.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a Session. * @param {SessionDeleteArgs} args - Arguments to delete one Session. * @example * // Delete one Session * const Session = await prisma.session.delete({ * where: { * // ... filter to delete one Session * } * }) * */ delete(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Session. * @param {SessionUpdateArgs} args - Arguments to update one Session. * @example * // Update one Session * const session = await prisma.session.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Sessions. * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete. * @example * // Delete a few Sessions * const { count } = await prisma.session.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Sessions * const session = await prisma.session.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Session. * @param {SessionUpsertArgs} args - Arguments to update or create a Session. * @example * // Update or create a Session * const session = await prisma.session.upsert({ * create: { * // ... data to create a Session * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Session we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Sessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionCountArgs} args - Arguments to filter Sessions to count. * @example * // Count the number of Sessions * const count = await prisma.session.count({ * where: { * // ... the filter for the Sessions we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Session. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Session. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends SessionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SessionGroupByArgs['orderBy'] } : { orderBy?: SessionGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload : Prisma.PrismaPromise /** * Fields of the Session model */ readonly fields: SessionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Session. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__SessionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Session model */ interface SessionFieldRefs { readonly id: FieldRef<"Session", 'String'> readonly userId: FieldRef<"Session", 'String'> readonly token: FieldRef<"Session", 'String'> readonly expiresAt: FieldRef<"Session", 'DateTime'> readonly createdAt: FieldRef<"Session", 'DateTime'> } // Custom InputTypes /** * Session findUnique */ export type SessionFindUniqueArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where: SessionWhereUniqueInput } /** * Session findUniqueOrThrow */ export type SessionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where: SessionWhereUniqueInput } /** * Session findFirst */ export type SessionFindFirstArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where?: SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sessions. */ cursor?: SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Sessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sessions. */ distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** * Session findFirstOrThrow */ export type SessionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where?: SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sessions. */ cursor?: SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Sessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sessions. */ distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** * Session findMany */ export type SessionFindManyArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Sessions to fetch. */ where?: SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Sessions. */ cursor?: SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Sessions. */ skip?: number distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** * Session create */ export type SessionCreateArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * The data needed to create a Session. */ data: XOR } /** * Session createMany */ export type SessionCreateManyArgs = { /** * The data used to create many Sessions. */ data: SessionCreateManyInput | SessionCreateManyInput[] skipDuplicates?: boolean } /** * Session createManyAndReturn */ export type SessionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelectCreateManyAndReturn | null /** * The data used to create many Sessions. */ data: SessionCreateManyInput | SessionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: SessionIncludeCreateManyAndReturn | null } /** * Session update */ export type SessionUpdateArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * The data needed to update a Session. */ data: XOR /** * Choose, which Session to update. */ where: SessionWhereUniqueInput } /** * Session updateMany */ export type SessionUpdateManyArgs = { /** * The data used to update Sessions. */ data: XOR /** * Filter which Sessions to update */ where?: SessionWhereInput } /** * Session upsert */ export type SessionUpsertArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * The filter to search for the Session to update in case it exists. */ where: SessionWhereUniqueInput /** * In case the Session found by the `where` argument doesn't exist, create a new Session with this data. */ create: XOR /** * In case the Session was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Session delete */ export type SessionDeleteArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter which Session to delete. */ where: SessionWhereUniqueInput } /** * Session deleteMany */ export type SessionDeleteManyArgs = { /** * Filter which Sessions to delete */ where?: SessionWhereInput } /** * Session without action */ export type SessionDefaultArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null } /** * Model Role */ export type AggregateRole = { _count: RoleCountAggregateOutputType | null _min: RoleMinAggregateOutputType | null _max: RoleMaxAggregateOutputType | null } export type RoleMinAggregateOutputType = { id: string | null code: string | null name: string | null system: boolean | null createdAt: Date | null updatedAt: Date | null } export type RoleMaxAggregateOutputType = { id: string | null code: string | null name: string | null system: boolean | null createdAt: Date | null updatedAt: Date | null } export type RoleCountAggregateOutputType = { id: number code: number name: number permissions: number system: number createdAt: number updatedAt: number _all: number } export type RoleMinAggregateInputType = { id?: true code?: true name?: true system?: true createdAt?: true updatedAt?: true } export type RoleMaxAggregateInputType = { id?: true code?: true name?: true system?: true createdAt?: true updatedAt?: true } export type RoleCountAggregateInputType = { id?: true code?: true name?: true permissions?: true system?: true createdAt?: true updatedAt?: true _all?: true } export type RoleAggregateArgs = { /** * Filter which Role to aggregate. */ where?: RoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Roles to fetch. */ orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: RoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Roles 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` Roles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Roles **/ _count?: true | RoleCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: RoleMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: RoleMaxAggregateInputType } export type GetRoleAggregateType = { [P in keyof T & keyof AggregateRole]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type RoleGroupByArgs = { where?: RoleWhereInput orderBy?: RoleOrderByWithAggregationInput | RoleOrderByWithAggregationInput[] by: RoleScalarFieldEnum[] | RoleScalarFieldEnum having?: RoleScalarWhereWithAggregatesInput take?: number skip?: number _count?: RoleCountAggregateInputType | true _min?: RoleMinAggregateInputType _max?: RoleMaxAggregateInputType } export type RoleGroupByOutputType = { id: string code: string name: string permissions: string[] system: boolean createdAt: Date updatedAt: Date _count: RoleCountAggregateOutputType | null _min: RoleMinAggregateOutputType | null _max: RoleMaxAggregateOutputType | null } type GetRoleGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof RoleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type RoleSelect = $Extensions.GetSelect<{ id?: boolean code?: boolean name?: boolean permissions?: boolean system?: boolean createdAt?: boolean updatedAt?: boolean memberships?: boolean | Role$membershipsArgs _count?: boolean | RoleCountOutputTypeDefaultArgs }, ExtArgs["result"]["role"]> export type RoleSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean code?: boolean name?: boolean permissions?: boolean system?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["role"]> export type RoleSelectScalar = { id?: boolean code?: boolean name?: boolean permissions?: boolean system?: boolean createdAt?: boolean updatedAt?: boolean } export type RoleInclude = { memberships?: boolean | Role$membershipsArgs _count?: boolean | RoleCountOutputTypeDefaultArgs } export type RoleIncludeCreateManyAndReturn = {} export type $RolePayload = { name: "Role" objects: { memberships: Prisma.$MembershipPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string code: string name: string permissions: string[] system: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["role"]> composites: {} } type RoleGetPayload = $Result.GetResult type RoleCountArgs = Omit & { select?: RoleCountAggregateInputType | true } export interface RoleDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Role'], meta: { name: 'Role' } } /** * Find zero or one Role that matches the filter. * @param {RoleFindUniqueArgs} args - Arguments to find a Role * @example * // Get one Role * const role = await prisma.role.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Role that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {RoleFindUniqueOrThrowArgs} args - Arguments to find a Role * @example * // Get one Role * const role = await prisma.role.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Role 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 {RoleFindFirstArgs} args - Arguments to find a Role * @example * // Get one Role * const role = await prisma.role.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Role 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 {RoleFindFirstOrThrowArgs} args - Arguments to find a Role * @example * // Get one Role * const role = await prisma.role.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Roles 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 {RoleFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Roles * const roles = await prisma.role.findMany() * * // Get first 10 Roles * const roles = await prisma.role.findMany({ take: 10 }) * * // Only select the `id` * const roleWithIdOnly = await prisma.role.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Role. * @param {RoleCreateArgs} args - Arguments to create a Role. * @example * // Create one Role * const Role = await prisma.role.create({ * data: { * // ... data to create a Role * } * }) * */ create(args: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Roles. * @param {RoleCreateManyArgs} args - Arguments to create many Roles. * @example * // Create many Roles * const role = await prisma.role.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Roles and returns the data saved in the database. * @param {RoleCreateManyAndReturnArgs} args - Arguments to create many Roles. * @example * // Create many Roles * const role = await prisma.role.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Roles and only return the `id` * const roleWithIdOnly = await prisma.role.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">> /** * Delete a Role. * @param {RoleDeleteArgs} args - Arguments to delete one Role. * @example * // Delete one Role * const Role = await prisma.role.delete({ * where: { * // ... filter to delete one Role * } * }) * */ delete(args: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Role. * @param {RoleUpdateArgs} args - Arguments to update one Role. * @example * // Update one Role * const role = await prisma.role.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Roles. * @param {RoleDeleteManyArgs} args - Arguments to filter Roles to delete. * @example * // Delete a few Roles * const { count } = await prisma.role.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Roles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoleUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Roles * const role = await prisma.role.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Role. * @param {RoleUpsertArgs} args - Arguments to update or create a Role. * @example * // Update or create a Role * const role = await prisma.role.upsert({ * create: { * // ... data to create a Role * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Role we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Roles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoleCountArgs} args - Arguments to filter Roles to count. * @example * // Count the number of Roles * const count = await prisma.role.count({ * where: { * // ... the filter for the Roles 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 Role. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoleAggregateArgs} 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 Role. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoleGroupByArgs} 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 RoleGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: RoleGroupByArgs['orderBy'] } : { orderBy?: RoleGroupByArgs['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 ? GetRoleGroupByPayload : Prisma.PrismaPromise /** * Fields of the Role model */ readonly fields: RoleFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Role. * 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__RoleClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" memberships = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | 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 Role model */ interface RoleFieldRefs { readonly id: FieldRef<"Role", 'String'> readonly code: FieldRef<"Role", 'String'> readonly name: FieldRef<"Role", 'String'> readonly permissions: FieldRef<"Role", 'String[]'> readonly system: FieldRef<"Role", 'Boolean'> readonly createdAt: FieldRef<"Role", 'DateTime'> readonly updatedAt: FieldRef<"Role", 'DateTime'> } // Custom InputTypes /** * Role findUnique */ export type RoleFindUniqueArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * Filter, which Role to fetch. */ where: RoleWhereUniqueInput } /** * Role findUniqueOrThrow */ export type RoleFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * Filter, which Role to fetch. */ where: RoleWhereUniqueInput } /** * Role findFirst */ export type RoleFindFirstArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * Filter, which Role to fetch. */ where?: RoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Roles to fetch. */ orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Roles. */ cursor?: RoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Roles 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` Roles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Roles. */ distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[] } /** * Role findFirstOrThrow */ export type RoleFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * Filter, which Role to fetch. */ where?: RoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Roles to fetch. */ orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Roles. */ cursor?: RoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Roles 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` Roles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Roles. */ distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[] } /** * Role findMany */ export type RoleFindManyArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * Filter, which Roles to fetch. */ where?: RoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Roles to fetch. */ orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Roles. */ cursor?: RoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Roles 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` Roles. */ skip?: number distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[] } /** * Role create */ export type RoleCreateArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * The data needed to create a Role. */ data: XOR } /** * Role createMany */ export type RoleCreateManyArgs = { /** * The data used to create many Roles. */ data: RoleCreateManyInput | RoleCreateManyInput[] skipDuplicates?: boolean } /** * Role createManyAndReturn */ export type RoleCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelectCreateManyAndReturn | null /** * The data used to create many Roles. */ data: RoleCreateManyInput | RoleCreateManyInput[] skipDuplicates?: boolean } /** * Role update */ export type RoleUpdateArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * The data needed to update a Role. */ data: XOR /** * Choose, which Role to update. */ where: RoleWhereUniqueInput } /** * Role updateMany */ export type RoleUpdateManyArgs = { /** * The data used to update Roles. */ data: XOR /** * Filter which Roles to update */ where?: RoleWhereInput } /** * Role upsert */ export type RoleUpsertArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * The filter to search for the Role to update in case it exists. */ where: RoleWhereUniqueInput /** * In case the Role found by the `where` argument doesn't exist, create a new Role with this data. */ create: XOR /** * In case the Role was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Role delete */ export type RoleDeleteArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * Filter which Role to delete. */ where: RoleWhereUniqueInput } /** * Role deleteMany */ export type RoleDeleteManyArgs = { /** * Filter which Roles to delete */ where?: RoleWhereInput } /** * Role.memberships */ export type Role$membershipsArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelect | null /** * Choose, which related nodes to fetch as well */ include?: MembershipInclude | null where?: MembershipWhereInput orderBy?: MembershipOrderByWithRelationInput | MembershipOrderByWithRelationInput[] cursor?: MembershipWhereUniqueInput take?: number skip?: number distinct?: MembershipScalarFieldEnum | MembershipScalarFieldEnum[] } /** * Role without action */ export type RoleDefaultArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null } /** * Model Membership */ export type AggregateMembership = { _count: MembershipCountAggregateOutputType | null _min: MembershipMinAggregateOutputType | null _max: MembershipMaxAggregateOutputType | null } export type MembershipMinAggregateOutputType = { id: string | null organizationId: string | null userId: string | null roleId: string | null status: $Enums.MembershipStatus | null createdAt: Date | null updatedAt: Date | null } export type MembershipMaxAggregateOutputType = { id: string | null organizationId: string | null userId: string | null roleId: string | null status: $Enums.MembershipStatus | null createdAt: Date | null updatedAt: Date | null } export type MembershipCountAggregateOutputType = { id: number organizationId: number userId: number roleId: number status: number workspaceScope: number createdAt: number updatedAt: number _all: number } export type MembershipMinAggregateInputType = { id?: true organizationId?: true userId?: true roleId?: true status?: true createdAt?: true updatedAt?: true } export type MembershipMaxAggregateInputType = { id?: true organizationId?: true userId?: true roleId?: true status?: true createdAt?: true updatedAt?: true } export type MembershipCountAggregateInputType = { id?: true organizationId?: true userId?: true roleId?: true status?: true workspaceScope?: true createdAt?: true updatedAt?: true _all?: true } export type MembershipAggregateArgs = { /** * Filter which Membership to aggregate. */ where?: MembershipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Memberships to fetch. */ orderBy?: MembershipOrderByWithRelationInput | MembershipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: MembershipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Memberships 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` Memberships. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Memberships **/ _count?: true | MembershipCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: MembershipMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: MembershipMaxAggregateInputType } export type GetMembershipAggregateType = { [P in keyof T & keyof AggregateMembership]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type MembershipGroupByArgs = { where?: MembershipWhereInput orderBy?: MembershipOrderByWithAggregationInput | MembershipOrderByWithAggregationInput[] by: MembershipScalarFieldEnum[] | MembershipScalarFieldEnum having?: MembershipScalarWhereWithAggregatesInput take?: number skip?: number _count?: MembershipCountAggregateInputType | true _min?: MembershipMinAggregateInputType _max?: MembershipMaxAggregateInputType } export type MembershipGroupByOutputType = { id: string organizationId: string userId: string roleId: string status: $Enums.MembershipStatus workspaceScope: string[] createdAt: Date updatedAt: Date _count: MembershipCountAggregateOutputType | null _min: MembershipMinAggregateOutputType | null _max: MembershipMaxAggregateOutputType | null } type GetMembershipGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof MembershipGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type MembershipSelect = $Extensions.GetSelect<{ id?: boolean organizationId?: boolean userId?: boolean roleId?: boolean status?: boolean workspaceScope?: boolean createdAt?: boolean updatedAt?: boolean organization?: boolean | OrganizationDefaultArgs user?: boolean | UserDefaultArgs role?: boolean | RoleDefaultArgs }, ExtArgs["result"]["membership"]> export type MembershipSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean organizationId?: boolean userId?: boolean roleId?: boolean status?: boolean workspaceScope?: boolean createdAt?: boolean updatedAt?: boolean organization?: boolean | OrganizationDefaultArgs user?: boolean | UserDefaultArgs role?: boolean | RoleDefaultArgs }, ExtArgs["result"]["membership"]> export type MembershipSelectScalar = { id?: boolean organizationId?: boolean userId?: boolean roleId?: boolean status?: boolean workspaceScope?: boolean createdAt?: boolean updatedAt?: boolean } export type MembershipInclude = { organization?: boolean | OrganizationDefaultArgs user?: boolean | UserDefaultArgs role?: boolean | RoleDefaultArgs } export type MembershipIncludeCreateManyAndReturn = { organization?: boolean | OrganizationDefaultArgs user?: boolean | UserDefaultArgs role?: boolean | RoleDefaultArgs } export type $MembershipPayload = { name: "Membership" objects: { organization: Prisma.$OrganizationPayload user: Prisma.$UserPayload role: Prisma.$RolePayload } scalars: $Extensions.GetPayloadResult<{ id: string organizationId: string userId: string roleId: string status: $Enums.MembershipStatus workspaceScope: string[] createdAt: Date updatedAt: Date }, ExtArgs["result"]["membership"]> composites: {} } type MembershipGetPayload = $Result.GetResult type MembershipCountArgs = Omit & { select?: MembershipCountAggregateInputType | true } export interface MembershipDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Membership'], meta: { name: 'Membership' } } /** * Find zero or one Membership that matches the filter. * @param {MembershipFindUniqueArgs} args - Arguments to find a Membership * @example * // Get one Membership * const membership = await prisma.membership.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__MembershipClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Membership that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {MembershipFindUniqueOrThrowArgs} args - Arguments to find a Membership * @example * // Get one Membership * const membership = await prisma.membership.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__MembershipClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Membership 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 {MembershipFindFirstArgs} args - Arguments to find a Membership * @example * // Get one Membership * const membership = await prisma.membership.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__MembershipClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Membership 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 {MembershipFindFirstOrThrowArgs} args - Arguments to find a Membership * @example * // Get one Membership * const membership = await prisma.membership.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__MembershipClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Memberships 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 {MembershipFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Memberships * const memberships = await prisma.membership.findMany() * * // Get first 10 Memberships * const memberships = await prisma.membership.findMany({ take: 10 }) * * // Only select the `id` * const membershipWithIdOnly = await prisma.membership.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Membership. * @param {MembershipCreateArgs} args - Arguments to create a Membership. * @example * // Create one Membership * const Membership = await prisma.membership.create({ * data: { * // ... data to create a Membership * } * }) * */ create(args: SelectSubset>): Prisma__MembershipClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Memberships. * @param {MembershipCreateManyArgs} args - Arguments to create many Memberships. * @example * // Create many Memberships * const membership = await prisma.membership.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Memberships and returns the data saved in the database. * @param {MembershipCreateManyAndReturnArgs} args - Arguments to create many Memberships. * @example * // Create many Memberships * const membership = await prisma.membership.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Memberships and only return the `id` * const membershipWithIdOnly = await prisma.membership.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">> /** * Delete a Membership. * @param {MembershipDeleteArgs} args - Arguments to delete one Membership. * @example * // Delete one Membership * const Membership = await prisma.membership.delete({ * where: { * // ... filter to delete one Membership * } * }) * */ delete(args: SelectSubset>): Prisma__MembershipClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Membership. * @param {MembershipUpdateArgs} args - Arguments to update one Membership. * @example * // Update one Membership * const membership = await prisma.membership.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__MembershipClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Memberships. * @param {MembershipDeleteManyArgs} args - Arguments to filter Memberships to delete. * @example * // Delete a few Memberships * const { count } = await prisma.membership.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Memberships. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MembershipUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Memberships * const membership = await prisma.membership.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Membership. * @param {MembershipUpsertArgs} args - Arguments to update or create a Membership. * @example * // Update or create a Membership * const membership = await prisma.membership.upsert({ * create: { * // ... data to create a Membership * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Membership we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__MembershipClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Memberships. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MembershipCountArgs} args - Arguments to filter Memberships to count. * @example * // Count the number of Memberships * const count = await prisma.membership.count({ * where: { * // ... the filter for the Memberships 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 Membership. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MembershipAggregateArgs} 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 Membership. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MembershipGroupByArgs} 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 MembershipGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: MembershipGroupByArgs['orderBy'] } : { orderBy?: MembershipGroupByArgs['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 ? GetMembershipGroupByPayload : Prisma.PrismaPromise /** * Fields of the Membership model */ readonly fields: MembershipFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Membership. * 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__MembershipClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> role = {}>(args?: Subset>): Prisma__RoleClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * 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 Membership model */ interface MembershipFieldRefs { readonly id: FieldRef<"Membership", 'String'> readonly organizationId: FieldRef<"Membership", 'String'> readonly userId: FieldRef<"Membership", 'String'> readonly roleId: FieldRef<"Membership", 'String'> readonly status: FieldRef<"Membership", 'MembershipStatus'> readonly workspaceScope: FieldRef<"Membership", 'String[]'> readonly createdAt: FieldRef<"Membership", 'DateTime'> readonly updatedAt: FieldRef<"Membership", 'DateTime'> } // Custom InputTypes /** * Membership findUnique */ export type MembershipFindUniqueArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelect | null /** * Choose, which related nodes to fetch as well */ include?: MembershipInclude | null /** * Filter, which Membership to fetch. */ where: MembershipWhereUniqueInput } /** * Membership findUniqueOrThrow */ export type MembershipFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelect | null /** * Choose, which related nodes to fetch as well */ include?: MembershipInclude | null /** * Filter, which Membership to fetch. */ where: MembershipWhereUniqueInput } /** * Membership findFirst */ export type MembershipFindFirstArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelect | null /** * Choose, which related nodes to fetch as well */ include?: MembershipInclude | null /** * Filter, which Membership to fetch. */ where?: MembershipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Memberships to fetch. */ orderBy?: MembershipOrderByWithRelationInput | MembershipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Memberships. */ cursor?: MembershipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Memberships 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` Memberships. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Memberships. */ distinct?: MembershipScalarFieldEnum | MembershipScalarFieldEnum[] } /** * Membership findFirstOrThrow */ export type MembershipFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelect | null /** * Choose, which related nodes to fetch as well */ include?: MembershipInclude | null /** * Filter, which Membership to fetch. */ where?: MembershipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Memberships to fetch. */ orderBy?: MembershipOrderByWithRelationInput | MembershipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Memberships. */ cursor?: MembershipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Memberships 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` Memberships. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Memberships. */ distinct?: MembershipScalarFieldEnum | MembershipScalarFieldEnum[] } /** * Membership findMany */ export type MembershipFindManyArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelect | null /** * Choose, which related nodes to fetch as well */ include?: MembershipInclude | null /** * Filter, which Memberships to fetch. */ where?: MembershipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Memberships to fetch. */ orderBy?: MembershipOrderByWithRelationInput | MembershipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Memberships. */ cursor?: MembershipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Memberships 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` Memberships. */ skip?: number distinct?: MembershipScalarFieldEnum | MembershipScalarFieldEnum[] } /** * Membership create */ export type MembershipCreateArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelect | null /** * Choose, which related nodes to fetch as well */ include?: MembershipInclude | null /** * The data needed to create a Membership. */ data: XOR } /** * Membership createMany */ export type MembershipCreateManyArgs = { /** * The data used to create many Memberships. */ data: MembershipCreateManyInput | MembershipCreateManyInput[] skipDuplicates?: boolean } /** * Membership createManyAndReturn */ export type MembershipCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelectCreateManyAndReturn | null /** * The data used to create many Memberships. */ data: MembershipCreateManyInput | MembershipCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: MembershipIncludeCreateManyAndReturn | null } /** * Membership update */ export type MembershipUpdateArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelect | null /** * Choose, which related nodes to fetch as well */ include?: MembershipInclude | null /** * The data needed to update a Membership. */ data: XOR /** * Choose, which Membership to update. */ where: MembershipWhereUniqueInput } /** * Membership updateMany */ export type MembershipUpdateManyArgs = { /** * The data used to update Memberships. */ data: XOR /** * Filter which Memberships to update */ where?: MembershipWhereInput } /** * Membership upsert */ export type MembershipUpsertArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelect | null /** * Choose, which related nodes to fetch as well */ include?: MembershipInclude | null /** * The filter to search for the Membership to update in case it exists. */ where: MembershipWhereUniqueInput /** * In case the Membership found by the `where` argument doesn't exist, create a new Membership with this data. */ create: XOR /** * In case the Membership was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Membership delete */ export type MembershipDeleteArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelect | null /** * Choose, which related nodes to fetch as well */ include?: MembershipInclude | null /** * Filter which Membership to delete. */ where: MembershipWhereUniqueInput } /** * Membership deleteMany */ export type MembershipDeleteManyArgs = { /** * Filter which Memberships to delete */ where?: MembershipWhereInput } /** * Membership without action */ export type MembershipDefaultArgs = { /** * Select specific fields to fetch from the Membership */ select?: MembershipSelect | null /** * Choose, which related nodes to fetch as well */ include?: MembershipInclude | null } /** * Model Invitation */ export type AggregateInvitation = { _count: InvitationCountAggregateOutputType | null _min: InvitationMinAggregateOutputType | null _max: InvitationMaxAggregateOutputType | null } export type InvitationMinAggregateOutputType = { id: string | null organizationId: string | null email: string | null roleCode: string | null tokenHash: string | null expiresAt: Date | null acceptedAt: Date | null invitedById: string | null createdAt: Date | null } export type InvitationMaxAggregateOutputType = { id: string | null organizationId: string | null email: string | null roleCode: string | null tokenHash: string | null expiresAt: Date | null acceptedAt: Date | null invitedById: string | null createdAt: Date | null } export type InvitationCountAggregateOutputType = { id: number organizationId: number email: number roleCode: number tokenHash: number expiresAt: number acceptedAt: number invitedById: number createdAt: number _all: number } export type InvitationMinAggregateInputType = { id?: true organizationId?: true email?: true roleCode?: true tokenHash?: true expiresAt?: true acceptedAt?: true invitedById?: true createdAt?: true } export type InvitationMaxAggregateInputType = { id?: true organizationId?: true email?: true roleCode?: true tokenHash?: true expiresAt?: true acceptedAt?: true invitedById?: true createdAt?: true } export type InvitationCountAggregateInputType = { id?: true organizationId?: true email?: true roleCode?: true tokenHash?: true expiresAt?: true acceptedAt?: true invitedById?: true createdAt?: true _all?: true } export type InvitationAggregateArgs = { /** * Filter which Invitation to aggregate. */ where?: InvitationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Invitations to fetch. */ orderBy?: InvitationOrderByWithRelationInput | InvitationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: InvitationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Invitations 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` Invitations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Invitations **/ _count?: true | InvitationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: InvitationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: InvitationMaxAggregateInputType } export type GetInvitationAggregateType = { [P in keyof T & keyof AggregateInvitation]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type InvitationGroupByArgs = { where?: InvitationWhereInput orderBy?: InvitationOrderByWithAggregationInput | InvitationOrderByWithAggregationInput[] by: InvitationScalarFieldEnum[] | InvitationScalarFieldEnum having?: InvitationScalarWhereWithAggregatesInput take?: number skip?: number _count?: InvitationCountAggregateInputType | true _min?: InvitationMinAggregateInputType _max?: InvitationMaxAggregateInputType } export type InvitationGroupByOutputType = { id: string organizationId: string email: string roleCode: string tokenHash: string expiresAt: Date acceptedAt: Date | null invitedById: string | null createdAt: Date _count: InvitationCountAggregateOutputType | null _min: InvitationMinAggregateOutputType | null _max: InvitationMaxAggregateOutputType | null } type GetInvitationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof InvitationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type InvitationSelect = $Extensions.GetSelect<{ id?: boolean organizationId?: boolean email?: boolean roleCode?: boolean tokenHash?: boolean expiresAt?: boolean acceptedAt?: boolean invitedById?: boolean createdAt?: boolean organization?: boolean | OrganizationDefaultArgs invitedBy?: boolean | Invitation$invitedByArgs }, ExtArgs["result"]["invitation"]> export type InvitationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean organizationId?: boolean email?: boolean roleCode?: boolean tokenHash?: boolean expiresAt?: boolean acceptedAt?: boolean invitedById?: boolean createdAt?: boolean organization?: boolean | OrganizationDefaultArgs invitedBy?: boolean | Invitation$invitedByArgs }, ExtArgs["result"]["invitation"]> export type InvitationSelectScalar = { id?: boolean organizationId?: boolean email?: boolean roleCode?: boolean tokenHash?: boolean expiresAt?: boolean acceptedAt?: boolean invitedById?: boolean createdAt?: boolean } export type InvitationInclude = { organization?: boolean | OrganizationDefaultArgs invitedBy?: boolean | Invitation$invitedByArgs } export type InvitationIncludeCreateManyAndReturn = { organization?: boolean | OrganizationDefaultArgs invitedBy?: boolean | Invitation$invitedByArgs } export type $InvitationPayload = { name: "Invitation" objects: { organization: Prisma.$OrganizationPayload invitedBy: Prisma.$UserPayload | null } scalars: $Extensions.GetPayloadResult<{ id: string organizationId: string email: string roleCode: string tokenHash: string expiresAt: Date acceptedAt: Date | null invitedById: string | null createdAt: Date }, ExtArgs["result"]["invitation"]> composites: {} } type InvitationGetPayload = $Result.GetResult type InvitationCountArgs = Omit & { select?: InvitationCountAggregateInputType | true } export interface InvitationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Invitation'], meta: { name: 'Invitation' } } /** * Find zero or one Invitation that matches the filter. * @param {InvitationFindUniqueArgs} args - Arguments to find a Invitation * @example * // Get one Invitation * const invitation = await prisma.invitation.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__InvitationClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Invitation that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {InvitationFindUniqueOrThrowArgs} args - Arguments to find a Invitation * @example * // Get one Invitation * const invitation = await prisma.invitation.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__InvitationClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Invitation 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 {InvitationFindFirstArgs} args - Arguments to find a Invitation * @example * // Get one Invitation * const invitation = await prisma.invitation.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__InvitationClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Invitation 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 {InvitationFindFirstOrThrowArgs} args - Arguments to find a Invitation * @example * // Get one Invitation * const invitation = await prisma.invitation.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__InvitationClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Invitations 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 {InvitationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Invitations * const invitations = await prisma.invitation.findMany() * * // Get first 10 Invitations * const invitations = await prisma.invitation.findMany({ take: 10 }) * * // Only select the `id` * const invitationWithIdOnly = await prisma.invitation.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Invitation. * @param {InvitationCreateArgs} args - Arguments to create a Invitation. * @example * // Create one Invitation * const Invitation = await prisma.invitation.create({ * data: { * // ... data to create a Invitation * } * }) * */ create(args: SelectSubset>): Prisma__InvitationClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Invitations. * @param {InvitationCreateManyArgs} args - Arguments to create many Invitations. * @example * // Create many Invitations * const invitation = await prisma.invitation.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Invitations and returns the data saved in the database. * @param {InvitationCreateManyAndReturnArgs} args - Arguments to create many Invitations. * @example * // Create many Invitations * const invitation = await prisma.invitation.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Invitations and only return the `id` * const invitationWithIdOnly = await prisma.invitation.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">> /** * Delete a Invitation. * @param {InvitationDeleteArgs} args - Arguments to delete one Invitation. * @example * // Delete one Invitation * const Invitation = await prisma.invitation.delete({ * where: { * // ... filter to delete one Invitation * } * }) * */ delete(args: SelectSubset>): Prisma__InvitationClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Invitation. * @param {InvitationUpdateArgs} args - Arguments to update one Invitation. * @example * // Update one Invitation * const invitation = await prisma.invitation.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__InvitationClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Invitations. * @param {InvitationDeleteManyArgs} args - Arguments to filter Invitations to delete. * @example * // Delete a few Invitations * const { count } = await prisma.invitation.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Invitations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InvitationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Invitations * const invitation = await prisma.invitation.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Invitation. * @param {InvitationUpsertArgs} args - Arguments to update or create a Invitation. * @example * // Update or create a Invitation * const invitation = await prisma.invitation.upsert({ * create: { * // ... data to create a Invitation * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Invitation we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__InvitationClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Invitations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InvitationCountArgs} args - Arguments to filter Invitations to count. * @example * // Count the number of Invitations * const count = await prisma.invitation.count({ * where: { * // ... the filter for the Invitations 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 Invitation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InvitationAggregateArgs} 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 Invitation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InvitationGroupByArgs} 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 InvitationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: InvitationGroupByArgs['orderBy'] } : { orderBy?: InvitationGroupByArgs['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 ? GetInvitationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Invitation model */ readonly fields: InvitationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Invitation. * 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__InvitationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> invitedBy = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> /** * 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 Invitation model */ interface InvitationFieldRefs { readonly id: FieldRef<"Invitation", 'String'> readonly organizationId: FieldRef<"Invitation", 'String'> readonly email: FieldRef<"Invitation", 'String'> readonly roleCode: FieldRef<"Invitation", 'String'> readonly tokenHash: FieldRef<"Invitation", 'String'> readonly expiresAt: FieldRef<"Invitation", 'DateTime'> readonly acceptedAt: FieldRef<"Invitation", 'DateTime'> readonly invitedById: FieldRef<"Invitation", 'String'> readonly createdAt: FieldRef<"Invitation", 'DateTime'> } // Custom InputTypes /** * Invitation findUnique */ export type InvitationFindUniqueArgs = { /** * Select specific fields to fetch from the Invitation */ select?: InvitationSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvitationInclude | null /** * Filter, which Invitation to fetch. */ where: InvitationWhereUniqueInput } /** * Invitation findUniqueOrThrow */ export type InvitationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Invitation */ select?: InvitationSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvitationInclude | null /** * Filter, which Invitation to fetch. */ where: InvitationWhereUniqueInput } /** * Invitation findFirst */ export type InvitationFindFirstArgs = { /** * Select specific fields to fetch from the Invitation */ select?: InvitationSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvitationInclude | null /** * Filter, which Invitation to fetch. */ where?: InvitationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Invitations to fetch. */ orderBy?: InvitationOrderByWithRelationInput | InvitationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Invitations. */ cursor?: InvitationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Invitations 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` Invitations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Invitations. */ distinct?: InvitationScalarFieldEnum | InvitationScalarFieldEnum[] } /** * Invitation findFirstOrThrow */ export type InvitationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Invitation */ select?: InvitationSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvitationInclude | null /** * Filter, which Invitation to fetch. */ where?: InvitationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Invitations to fetch. */ orderBy?: InvitationOrderByWithRelationInput | InvitationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Invitations. */ cursor?: InvitationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Invitations 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` Invitations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Invitations. */ distinct?: InvitationScalarFieldEnum | InvitationScalarFieldEnum[] } /** * Invitation findMany */ export type InvitationFindManyArgs = { /** * Select specific fields to fetch from the Invitation */ select?: InvitationSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvitationInclude | null /** * Filter, which Invitations to fetch. */ where?: InvitationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Invitations to fetch. */ orderBy?: InvitationOrderByWithRelationInput | InvitationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Invitations. */ cursor?: InvitationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Invitations 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` Invitations. */ skip?: number distinct?: InvitationScalarFieldEnum | InvitationScalarFieldEnum[] } /** * Invitation create */ export type InvitationCreateArgs = { /** * Select specific fields to fetch from the Invitation */ select?: InvitationSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvitationInclude | null /** * The data needed to create a Invitation. */ data: XOR } /** * Invitation createMany */ export type InvitationCreateManyArgs = { /** * The data used to create many Invitations. */ data: InvitationCreateManyInput | InvitationCreateManyInput[] skipDuplicates?: boolean } /** * Invitation createManyAndReturn */ export type InvitationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Invitation */ select?: InvitationSelectCreateManyAndReturn | null /** * The data used to create many Invitations. */ data: InvitationCreateManyInput | InvitationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: InvitationIncludeCreateManyAndReturn | null } /** * Invitation update */ export type InvitationUpdateArgs = { /** * Select specific fields to fetch from the Invitation */ select?: InvitationSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvitationInclude | null /** * The data needed to update a Invitation. */ data: XOR /** * Choose, which Invitation to update. */ where: InvitationWhereUniqueInput } /** * Invitation updateMany */ export type InvitationUpdateManyArgs = { /** * The data used to update Invitations. */ data: XOR /** * Filter which Invitations to update */ where?: InvitationWhereInput } /** * Invitation upsert */ export type InvitationUpsertArgs = { /** * Select specific fields to fetch from the Invitation */ select?: InvitationSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvitationInclude | null /** * The filter to search for the Invitation to update in case it exists. */ where: InvitationWhereUniqueInput /** * In case the Invitation found by the `where` argument doesn't exist, create a new Invitation with this data. */ create: XOR /** * In case the Invitation was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Invitation delete */ export type InvitationDeleteArgs = { /** * Select specific fields to fetch from the Invitation */ select?: InvitationSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvitationInclude | null /** * Filter which Invitation to delete. */ where: InvitationWhereUniqueInput } /** * Invitation deleteMany */ export type InvitationDeleteManyArgs = { /** * Filter which Invitations to delete */ where?: InvitationWhereInput } /** * Invitation.invitedBy */ export type Invitation$invitedByArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * Invitation without action */ export type InvitationDefaultArgs = { /** * Select specific fields to fetch from the Invitation */ select?: InvitationSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvitationInclude | null } /** * Model Subscription */ export type AggregateSubscription = { _count: SubscriptionCountAggregateOutputType | null _avg: SubscriptionAvgAggregateOutputType | null _sum: SubscriptionSumAggregateOutputType | null _min: SubscriptionMinAggregateOutputType | null _max: SubscriptionMaxAggregateOutputType | null } export type SubscriptionAvgAggregateOutputType = { userLimit: number | null projectLimit: number | null reportLimitMonthly: number | null integrationLimit: number | null storageMbLimit: number | null } export type SubscriptionSumAggregateOutputType = { userLimit: number | null projectLimit: number | null reportLimitMonthly: number | null integrationLimit: number | null storageMbLimit: number | null } export type SubscriptionMinAggregateOutputType = { id: string | null organizationId: string | null source: $Enums.SubscriptionSource | null status: $Enums.SubscriptionStatus | null planCode: string | null stripeSubscriptionId: string | null currentPeriodEnd: Date | null userLimit: number | null projectLimit: number | null reportLimitMonthly: number | null integrationLimit: number | null storageMbLimit: number | null adminOverride: boolean | null createdAt: Date | null updatedAt: Date | null } export type SubscriptionMaxAggregateOutputType = { id: string | null organizationId: string | null source: $Enums.SubscriptionSource | null status: $Enums.SubscriptionStatus | null planCode: string | null stripeSubscriptionId: string | null currentPeriodEnd: Date | null userLimit: number | null projectLimit: number | null reportLimitMonthly: number | null integrationLimit: number | null storageMbLimit: number | null adminOverride: boolean | null createdAt: Date | null updatedAt: Date | null } export type SubscriptionCountAggregateOutputType = { id: number organizationId: number source: number status: number planCode: number stripeSubscriptionId: number currentPeriodEnd: number userLimit: number projectLimit: number reportLimitMonthly: number integrationLimit: number storageMbLimit: number adminOverride: number createdAt: number updatedAt: number _all: number } export type SubscriptionAvgAggregateInputType = { userLimit?: true projectLimit?: true reportLimitMonthly?: true integrationLimit?: true storageMbLimit?: true } export type SubscriptionSumAggregateInputType = { userLimit?: true projectLimit?: true reportLimitMonthly?: true integrationLimit?: true storageMbLimit?: true } export type SubscriptionMinAggregateInputType = { id?: true organizationId?: true source?: true status?: true planCode?: true stripeSubscriptionId?: true currentPeriodEnd?: true userLimit?: true projectLimit?: true reportLimitMonthly?: true integrationLimit?: true storageMbLimit?: true adminOverride?: true createdAt?: true updatedAt?: true } export type SubscriptionMaxAggregateInputType = { id?: true organizationId?: true source?: true status?: true planCode?: true stripeSubscriptionId?: true currentPeriodEnd?: true userLimit?: true projectLimit?: true reportLimitMonthly?: true integrationLimit?: true storageMbLimit?: true adminOverride?: true createdAt?: true updatedAt?: true } export type SubscriptionCountAggregateInputType = { id?: true organizationId?: true source?: true status?: true planCode?: true stripeSubscriptionId?: true currentPeriodEnd?: true userLimit?: true projectLimit?: true reportLimitMonthly?: true integrationLimit?: true storageMbLimit?: true adminOverride?: true createdAt?: true updatedAt?: true _all?: true } export type SubscriptionAggregateArgs = { /** * Filter which Subscription to aggregate. */ where?: SubscriptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Subscriptions to fetch. */ orderBy?: SubscriptionOrderByWithRelationInput | SubscriptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SubscriptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Subscriptions 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` Subscriptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Subscriptions **/ _count?: true | SubscriptionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SubscriptionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SubscriptionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SubscriptionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SubscriptionMaxAggregateInputType } export type GetSubscriptionAggregateType = { [P in keyof T & keyof AggregateSubscription]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SubscriptionGroupByArgs = { where?: SubscriptionWhereInput orderBy?: SubscriptionOrderByWithAggregationInput | SubscriptionOrderByWithAggregationInput[] by: SubscriptionScalarFieldEnum[] | SubscriptionScalarFieldEnum having?: SubscriptionScalarWhereWithAggregatesInput take?: number skip?: number _count?: SubscriptionCountAggregateInputType | true _avg?: SubscriptionAvgAggregateInputType _sum?: SubscriptionSumAggregateInputType _min?: SubscriptionMinAggregateInputType _max?: SubscriptionMaxAggregateInputType } export type SubscriptionGroupByOutputType = { id: string organizationId: string source: $Enums.SubscriptionSource status: $Enums.SubscriptionStatus planCode: string stripeSubscriptionId: string | null currentPeriodEnd: Date | null userLimit: number projectLimit: number reportLimitMonthly: number integrationLimit: number storageMbLimit: number adminOverride: boolean createdAt: Date updatedAt: Date _count: SubscriptionCountAggregateOutputType | null _avg: SubscriptionAvgAggregateOutputType | null _sum: SubscriptionSumAggregateOutputType | null _min: SubscriptionMinAggregateOutputType | null _max: SubscriptionMaxAggregateOutputType | null } type GetSubscriptionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SubscriptionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SubscriptionSelect = $Extensions.GetSelect<{ id?: boolean organizationId?: boolean source?: boolean status?: boolean planCode?: boolean stripeSubscriptionId?: boolean currentPeriodEnd?: boolean userLimit?: boolean projectLimit?: boolean reportLimitMonthly?: boolean integrationLimit?: boolean storageMbLimit?: boolean adminOverride?: boolean createdAt?: boolean updatedAt?: boolean organization?: boolean | OrganizationDefaultArgs }, ExtArgs["result"]["subscription"]> export type SubscriptionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean organizationId?: boolean source?: boolean status?: boolean planCode?: boolean stripeSubscriptionId?: boolean currentPeriodEnd?: boolean userLimit?: boolean projectLimit?: boolean reportLimitMonthly?: boolean integrationLimit?: boolean storageMbLimit?: boolean adminOverride?: boolean createdAt?: boolean updatedAt?: boolean organization?: boolean | OrganizationDefaultArgs }, ExtArgs["result"]["subscription"]> export type SubscriptionSelectScalar = { id?: boolean organizationId?: boolean source?: boolean status?: boolean planCode?: boolean stripeSubscriptionId?: boolean currentPeriodEnd?: boolean userLimit?: boolean projectLimit?: boolean reportLimitMonthly?: boolean integrationLimit?: boolean storageMbLimit?: boolean adminOverride?: boolean createdAt?: boolean updatedAt?: boolean } export type SubscriptionInclude = { organization?: boolean | OrganizationDefaultArgs } export type SubscriptionIncludeCreateManyAndReturn = { organization?: boolean | OrganizationDefaultArgs } export type $SubscriptionPayload = { name: "Subscription" objects: { organization: Prisma.$OrganizationPayload } scalars: $Extensions.GetPayloadResult<{ id: string organizationId: string source: $Enums.SubscriptionSource status: $Enums.SubscriptionStatus planCode: string stripeSubscriptionId: string | null currentPeriodEnd: Date | null userLimit: number projectLimit: number reportLimitMonthly: number integrationLimit: number storageMbLimit: number adminOverride: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["subscription"]> composites: {} } type SubscriptionGetPayload = $Result.GetResult type SubscriptionCountArgs = Omit & { select?: SubscriptionCountAggregateInputType | true } export interface SubscriptionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Subscription'], meta: { name: 'Subscription' } } /** * Find zero or one Subscription that matches the filter. * @param {SubscriptionFindUniqueArgs} args - Arguments to find a Subscription * @example * // Get one Subscription * const subscription = await prisma.subscription.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SubscriptionClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Subscription that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SubscriptionFindUniqueOrThrowArgs} args - Arguments to find a Subscription * @example * // Get one Subscription * const subscription = await prisma.subscription.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SubscriptionClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Subscription 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 {SubscriptionFindFirstArgs} args - Arguments to find a Subscription * @example * // Get one Subscription * const subscription = await prisma.subscription.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SubscriptionClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Subscription 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 {SubscriptionFindFirstOrThrowArgs} args - Arguments to find a Subscription * @example * // Get one Subscription * const subscription = await prisma.subscription.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SubscriptionClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Subscriptions 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 {SubscriptionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Subscriptions * const subscriptions = await prisma.subscription.findMany() * * // Get first 10 Subscriptions * const subscriptions = await prisma.subscription.findMany({ take: 10 }) * * // Only select the `id` * const subscriptionWithIdOnly = await prisma.subscription.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Subscription. * @param {SubscriptionCreateArgs} args - Arguments to create a Subscription. * @example * // Create one Subscription * const Subscription = await prisma.subscription.create({ * data: { * // ... data to create a Subscription * } * }) * */ create(args: SelectSubset>): Prisma__SubscriptionClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Subscriptions. * @param {SubscriptionCreateManyArgs} args - Arguments to create many Subscriptions. * @example * // Create many Subscriptions * const subscription = await prisma.subscription.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Subscriptions and returns the data saved in the database. * @param {SubscriptionCreateManyAndReturnArgs} args - Arguments to create many Subscriptions. * @example * // Create many Subscriptions * const subscription = await prisma.subscription.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Subscriptions and only return the `id` * const subscriptionWithIdOnly = await prisma.subscription.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">> /** * Delete a Subscription. * @param {SubscriptionDeleteArgs} args - Arguments to delete one Subscription. * @example * // Delete one Subscription * const Subscription = await prisma.subscription.delete({ * where: { * // ... filter to delete one Subscription * } * }) * */ delete(args: SelectSubset>): Prisma__SubscriptionClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Subscription. * @param {SubscriptionUpdateArgs} args - Arguments to update one Subscription. * @example * // Update one Subscription * const subscription = await prisma.subscription.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SubscriptionClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Subscriptions. * @param {SubscriptionDeleteManyArgs} args - Arguments to filter Subscriptions to delete. * @example * // Delete a few Subscriptions * const { count } = await prisma.subscription.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Subscriptions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Subscriptions * const subscription = await prisma.subscription.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Subscription. * @param {SubscriptionUpsertArgs} args - Arguments to update or create a Subscription. * @example * // Update or create a Subscription * const subscription = await prisma.subscription.upsert({ * create: { * // ... data to create a Subscription * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Subscription we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SubscriptionClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Subscriptions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionCountArgs} args - Arguments to filter Subscriptions to count. * @example * // Count the number of Subscriptions * const count = await prisma.subscription.count({ * where: { * // ... the filter for the Subscriptions 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 Subscription. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionAggregateArgs} 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 Subscription. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionGroupByArgs} 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 SubscriptionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SubscriptionGroupByArgs['orderBy'] } : { orderBy?: SubscriptionGroupByArgs['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 ? GetSubscriptionGroupByPayload : Prisma.PrismaPromise /** * Fields of the Subscription model */ readonly fields: SubscriptionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Subscription. * 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__SubscriptionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * 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 Subscription model */ interface SubscriptionFieldRefs { readonly id: FieldRef<"Subscription", 'String'> readonly organizationId: FieldRef<"Subscription", 'String'> readonly source: FieldRef<"Subscription", 'SubscriptionSource'> readonly status: FieldRef<"Subscription", 'SubscriptionStatus'> readonly planCode: FieldRef<"Subscription", 'String'> readonly stripeSubscriptionId: FieldRef<"Subscription", 'String'> readonly currentPeriodEnd: FieldRef<"Subscription", 'DateTime'> readonly userLimit: FieldRef<"Subscription", 'Int'> readonly projectLimit: FieldRef<"Subscription", 'Int'> readonly reportLimitMonthly: FieldRef<"Subscription", 'Int'> readonly integrationLimit: FieldRef<"Subscription", 'Int'> readonly storageMbLimit: FieldRef<"Subscription", 'Int'> readonly adminOverride: FieldRef<"Subscription", 'Boolean'> readonly createdAt: FieldRef<"Subscription", 'DateTime'> readonly updatedAt: FieldRef<"Subscription", 'DateTime'> } // Custom InputTypes /** * Subscription findUnique */ export type SubscriptionFindUniqueArgs = { /** * Select specific fields to fetch from the Subscription */ select?: SubscriptionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SubscriptionInclude | null /** * Filter, which Subscription to fetch. */ where: SubscriptionWhereUniqueInput } /** * Subscription findUniqueOrThrow */ export type SubscriptionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Subscription */ select?: SubscriptionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SubscriptionInclude | null /** * Filter, which Subscription to fetch. */ where: SubscriptionWhereUniqueInput } /** * Subscription findFirst */ export type SubscriptionFindFirstArgs = { /** * Select specific fields to fetch from the Subscription */ select?: SubscriptionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SubscriptionInclude | null /** * Filter, which Subscription to fetch. */ where?: SubscriptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Subscriptions to fetch. */ orderBy?: SubscriptionOrderByWithRelationInput | SubscriptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Subscriptions. */ cursor?: SubscriptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Subscriptions 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` Subscriptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Subscriptions. */ distinct?: SubscriptionScalarFieldEnum | SubscriptionScalarFieldEnum[] } /** * Subscription findFirstOrThrow */ export type SubscriptionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Subscription */ select?: SubscriptionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SubscriptionInclude | null /** * Filter, which Subscription to fetch. */ where?: SubscriptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Subscriptions to fetch. */ orderBy?: SubscriptionOrderByWithRelationInput | SubscriptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Subscriptions. */ cursor?: SubscriptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Subscriptions 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` Subscriptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Subscriptions. */ distinct?: SubscriptionScalarFieldEnum | SubscriptionScalarFieldEnum[] } /** * Subscription findMany */ export type SubscriptionFindManyArgs = { /** * Select specific fields to fetch from the Subscription */ select?: SubscriptionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SubscriptionInclude | null /** * Filter, which Subscriptions to fetch. */ where?: SubscriptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Subscriptions to fetch. */ orderBy?: SubscriptionOrderByWithRelationInput | SubscriptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Subscriptions. */ cursor?: SubscriptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Subscriptions 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` Subscriptions. */ skip?: number distinct?: SubscriptionScalarFieldEnum | SubscriptionScalarFieldEnum[] } /** * Subscription create */ export type SubscriptionCreateArgs = { /** * Select specific fields to fetch from the Subscription */ select?: SubscriptionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SubscriptionInclude | null /** * The data needed to create a Subscription. */ data: XOR } /** * Subscription createMany */ export type SubscriptionCreateManyArgs = { /** * The data used to create many Subscriptions. */ data: SubscriptionCreateManyInput | SubscriptionCreateManyInput[] skipDuplicates?: boolean } /** * Subscription createManyAndReturn */ export type SubscriptionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Subscription */ select?: SubscriptionSelectCreateManyAndReturn | null /** * The data used to create many Subscriptions. */ data: SubscriptionCreateManyInput | SubscriptionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: SubscriptionIncludeCreateManyAndReturn | null } /** * Subscription update */ export type SubscriptionUpdateArgs = { /** * Select specific fields to fetch from the Subscription */ select?: SubscriptionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SubscriptionInclude | null /** * The data needed to update a Subscription. */ data: XOR /** * Choose, which Subscription to update. */ where: SubscriptionWhereUniqueInput } /** * Subscription updateMany */ export type SubscriptionUpdateManyArgs = { /** * The data used to update Subscriptions. */ data: XOR /** * Filter which Subscriptions to update */ where?: SubscriptionWhereInput } /** * Subscription upsert */ export type SubscriptionUpsertArgs = { /** * Select specific fields to fetch from the Subscription */ select?: SubscriptionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SubscriptionInclude | null /** * The filter to search for the Subscription to update in case it exists. */ where: SubscriptionWhereUniqueInput /** * In case the Subscription found by the `where` argument doesn't exist, create a new Subscription with this data. */ create: XOR /** * In case the Subscription was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Subscription delete */ export type SubscriptionDeleteArgs = { /** * Select specific fields to fetch from the Subscription */ select?: SubscriptionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SubscriptionInclude | null /** * Filter which Subscription to delete. */ where: SubscriptionWhereUniqueInput } /** * Subscription deleteMany */ export type SubscriptionDeleteManyArgs = { /** * Filter which Subscriptions to delete */ where?: SubscriptionWhereInput } /** * Subscription without action */ export type SubscriptionDefaultArgs = { /** * Select specific fields to fetch from the Subscription */ select?: SubscriptionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SubscriptionInclude | null } /** * Model Project */ export type AggregateProject = { _count: ProjectCountAggregateOutputType | null _avg: ProjectAvgAggregateOutputType | null _sum: ProjectSumAggregateOutputType | null _min: ProjectMinAggregateOutputType | null _max: ProjectMaxAggregateOutputType | null } export type ProjectAvgAggregateOutputType = { riskAppetite: number | null } export type ProjectSumAggregateOutputType = { riskAppetite: number | null } export type ProjectMinAggregateOutputType = { id: string | null workspaceId: string | null name: string | null subtitle: string | null projectType: string | null currentLifecyclePhase: string | null riskAppetite: number | null assessmentDate: Date | null status: string | null ownerDisplayName: string | null description: string | null createdAt: Date | null updatedAt: Date | null } export type ProjectMaxAggregateOutputType = { id: string | null workspaceId: string | null name: string | null subtitle: string | null projectType: string | null currentLifecyclePhase: string | null riskAppetite: number | null assessmentDate: Date | null status: string | null ownerDisplayName: string | null description: string | null createdAt: Date | null updatedAt: Date | null } export type ProjectCountAggregateOutputType = { id: number workspaceId: number name: number subtitle: number projectType: number currentLifecyclePhase: number riskAppetite: number assessmentDate: number status: number ownerDisplayName: number description: number thresholds: number reviews: number createdAt: number updatedAt: number _all: number } export type ProjectAvgAggregateInputType = { riskAppetite?: true } export type ProjectSumAggregateInputType = { riskAppetite?: true } export type ProjectMinAggregateInputType = { id?: true workspaceId?: true name?: true subtitle?: true projectType?: true currentLifecyclePhase?: true riskAppetite?: true assessmentDate?: true status?: true ownerDisplayName?: true description?: true createdAt?: true updatedAt?: true } export type ProjectMaxAggregateInputType = { id?: true workspaceId?: true name?: true subtitle?: true projectType?: true currentLifecyclePhase?: true riskAppetite?: true assessmentDate?: true status?: true ownerDisplayName?: true description?: true createdAt?: true updatedAt?: true } export type ProjectCountAggregateInputType = { id?: true workspaceId?: true name?: true subtitle?: true projectType?: true currentLifecyclePhase?: true riskAppetite?: true assessmentDate?: true status?: true ownerDisplayName?: true description?: true thresholds?: true reviews?: true createdAt?: true updatedAt?: true _all?: true } export type ProjectAggregateArgs = { /** * Filter which Project to aggregate. */ where?: ProjectWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Projects to fetch. */ orderBy?: ProjectOrderByWithRelationInput | ProjectOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ProjectWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Projects from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Projects. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Projects **/ _count?: true | ProjectCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ProjectAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ProjectSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ProjectMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ProjectMaxAggregateInputType } export type GetProjectAggregateType = { [P in keyof T & keyof AggregateProject]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ProjectGroupByArgs = { where?: ProjectWhereInput orderBy?: ProjectOrderByWithAggregationInput | ProjectOrderByWithAggregationInput[] by: ProjectScalarFieldEnum[] | ProjectScalarFieldEnum having?: ProjectScalarWhereWithAggregatesInput take?: number skip?: number _count?: ProjectCountAggregateInputType | true _avg?: ProjectAvgAggregateInputType _sum?: ProjectSumAggregateInputType _min?: ProjectMinAggregateInputType _max?: ProjectMaxAggregateInputType } export type ProjectGroupByOutputType = { id: string workspaceId: string name: string subtitle: string | null projectType: string currentLifecyclePhase: string | null riskAppetite: number assessmentDate: Date | null status: string ownerDisplayName: string | null description: string | null thresholds: JsonValue reviews: JsonValue createdAt: Date updatedAt: Date _count: ProjectCountAggregateOutputType | null _avg: ProjectAvgAggregateOutputType | null _sum: ProjectSumAggregateOutputType | null _min: ProjectMinAggregateOutputType | null _max: ProjectMaxAggregateOutputType | null } type GetProjectGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ProjectGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ProjectSelect = $Extensions.GetSelect<{ id?: boolean workspaceId?: boolean name?: boolean subtitle?: boolean projectType?: boolean currentLifecyclePhase?: boolean riskAppetite?: boolean assessmentDate?: boolean status?: boolean ownerDisplayName?: boolean description?: boolean thresholds?: boolean reviews?: boolean createdAt?: boolean updatedAt?: boolean workspace?: boolean | WorkspaceDefaultArgs lifecyclePhases?: boolean | Project$lifecyclePhasesArgs risks?: boolean | Project$risksArgs indicators?: boolean | Project$indicatorsArgs experiments?: boolean | Project$experimentsArgs gateEvaluations?: boolean | Project$gateEvaluationsArgs auditEvents?: boolean | Project$auditEventsArgs reports?: boolean | Project$reportsArgs _count?: boolean | ProjectCountOutputTypeDefaultArgs }, ExtArgs["result"]["project"]> export type ProjectSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean workspaceId?: boolean name?: boolean subtitle?: boolean projectType?: boolean currentLifecyclePhase?: boolean riskAppetite?: boolean assessmentDate?: boolean status?: boolean ownerDisplayName?: boolean description?: boolean thresholds?: boolean reviews?: boolean createdAt?: boolean updatedAt?: boolean workspace?: boolean | WorkspaceDefaultArgs }, ExtArgs["result"]["project"]> export type ProjectSelectScalar = { id?: boolean workspaceId?: boolean name?: boolean subtitle?: boolean projectType?: boolean currentLifecyclePhase?: boolean riskAppetite?: boolean assessmentDate?: boolean status?: boolean ownerDisplayName?: boolean description?: boolean thresholds?: boolean reviews?: boolean createdAt?: boolean updatedAt?: boolean } export type ProjectInclude = { workspace?: boolean | WorkspaceDefaultArgs lifecyclePhases?: boolean | Project$lifecyclePhasesArgs risks?: boolean | Project$risksArgs indicators?: boolean | Project$indicatorsArgs experiments?: boolean | Project$experimentsArgs gateEvaluations?: boolean | Project$gateEvaluationsArgs auditEvents?: boolean | Project$auditEventsArgs reports?: boolean | Project$reportsArgs _count?: boolean | ProjectCountOutputTypeDefaultArgs } export type ProjectIncludeCreateManyAndReturn = { workspace?: boolean | WorkspaceDefaultArgs } export type $ProjectPayload = { name: "Project" objects: { workspace: Prisma.$WorkspacePayload lifecyclePhases: Prisma.$LifecyclePhasePayload[] risks: Prisma.$RiskPayload[] indicators: Prisma.$IndicatorPayload[] experiments: Prisma.$ExperimentPayload[] gateEvaluations: Prisma.$GateEvaluationPayload[] auditEvents: Prisma.$AuditEventPayload[] reports: Prisma.$ReportExportPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string workspaceId: string name: string subtitle: string | null projectType: string currentLifecyclePhase: string | null riskAppetite: number assessmentDate: Date | null status: string ownerDisplayName: string | null description: string | null thresholds: Prisma.JsonValue reviews: Prisma.JsonValue createdAt: Date updatedAt: Date }, ExtArgs["result"]["project"]> composites: {} } type ProjectGetPayload = $Result.GetResult type ProjectCountArgs = Omit & { select?: ProjectCountAggregateInputType | true } export interface ProjectDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Project'], meta: { name: 'Project' } } /** * Find zero or one Project that matches the filter. * @param {ProjectFindUniqueArgs} args - Arguments to find a Project * @example * // Get one Project * const project = await prisma.project.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ProjectClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Project that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ProjectFindUniqueOrThrowArgs} args - Arguments to find a Project * @example * // Get one Project * const project = await prisma.project.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ProjectClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Project that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectFindFirstArgs} args - Arguments to find a Project * @example * // Get one Project * const project = await prisma.project.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ProjectClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Project that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectFindFirstOrThrowArgs} args - Arguments to find a Project * @example * // Get one Project * const project = await prisma.project.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ProjectClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Projects that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Projects * const projects = await prisma.project.findMany() * * // Get first 10 Projects * const projects = await prisma.project.findMany({ take: 10 }) * * // Only select the `id` * const projectWithIdOnly = await prisma.project.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Project. * @param {ProjectCreateArgs} args - Arguments to create a Project. * @example * // Create one Project * const Project = await prisma.project.create({ * data: { * // ... data to create a Project * } * }) * */ create(args: SelectSubset>): Prisma__ProjectClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Projects. * @param {ProjectCreateManyArgs} args - Arguments to create many Projects. * @example * // Create many Projects * const project = await prisma.project.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Projects and returns the data saved in the database. * @param {ProjectCreateManyAndReturnArgs} args - Arguments to create many Projects. * @example * // Create many Projects * const project = await prisma.project.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Projects and only return the `id` * const projectWithIdOnly = await prisma.project.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a Project. * @param {ProjectDeleteArgs} args - Arguments to delete one Project. * @example * // Delete one Project * const Project = await prisma.project.delete({ * where: { * // ... filter to delete one Project * } * }) * */ delete(args: SelectSubset>): Prisma__ProjectClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Project. * @param {ProjectUpdateArgs} args - Arguments to update one Project. * @example * // Update one Project * const project = await prisma.project.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ProjectClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Projects. * @param {ProjectDeleteManyArgs} args - Arguments to filter Projects to delete. * @example * // Delete a few Projects * const { count } = await prisma.project.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Projects. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Projects * const project = await prisma.project.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Project. * @param {ProjectUpsertArgs} args - Arguments to update or create a Project. * @example * // Update or create a Project * const project = await prisma.project.upsert({ * create: { * // ... data to create a Project * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Project we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ProjectClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Projects. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectCountArgs} args - Arguments to filter Projects to count. * @example * // Count the number of Projects * const count = await prisma.project.count({ * where: { * // ... the filter for the Projects we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Project. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Project. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends ProjectGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ProjectGroupByArgs['orderBy'] } : { orderBy?: ProjectGroupByArgs['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 ? GetProjectGroupByPayload : Prisma.PrismaPromise /** * Fields of the Project model */ readonly fields: ProjectFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Project. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__ProjectClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" workspace = {}>(args?: Subset>): Prisma__WorkspaceClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> lifecyclePhases = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> risks = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> indicators = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> experiments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> gateEvaluations = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> auditEvents = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> reports = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | 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 Project model */ interface ProjectFieldRefs { readonly id: FieldRef<"Project", 'String'> readonly workspaceId: FieldRef<"Project", 'String'> readonly name: FieldRef<"Project", 'String'> readonly subtitle: FieldRef<"Project", 'String'> readonly projectType: FieldRef<"Project", 'String'> readonly currentLifecyclePhase: FieldRef<"Project", 'String'> readonly riskAppetite: FieldRef<"Project", 'Int'> readonly assessmentDate: FieldRef<"Project", 'DateTime'> readonly status: FieldRef<"Project", 'String'> readonly ownerDisplayName: FieldRef<"Project", 'String'> readonly description: FieldRef<"Project", 'String'> readonly thresholds: FieldRef<"Project", 'Json'> readonly reviews: FieldRef<"Project", 'Json'> readonly createdAt: FieldRef<"Project", 'DateTime'> readonly updatedAt: FieldRef<"Project", 'DateTime'> } // Custom InputTypes /** * Project findUnique */ export type ProjectFindUniqueArgs = { /** * Select specific fields to fetch from the Project */ select?: ProjectSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProjectInclude | null /** * Filter, which Project to fetch. */ where: ProjectWhereUniqueInput } /** * Project findUniqueOrThrow */ export type ProjectFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Project */ select?: ProjectSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProjectInclude | null /** * Filter, which Project to fetch. */ where: ProjectWhereUniqueInput } /** * Project findFirst */ export type ProjectFindFirstArgs = { /** * Select specific fields to fetch from the Project */ select?: ProjectSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProjectInclude | null /** * Filter, which Project to fetch. */ where?: ProjectWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Projects to fetch. */ orderBy?: ProjectOrderByWithRelationInput | ProjectOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Projects. */ cursor?: ProjectWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Projects from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Projects. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Projects. */ distinct?: ProjectScalarFieldEnum | ProjectScalarFieldEnum[] } /** * Project findFirstOrThrow */ export type ProjectFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Project */ select?: ProjectSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProjectInclude | null /** * Filter, which Project to fetch. */ where?: ProjectWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Projects to fetch. */ orderBy?: ProjectOrderByWithRelationInput | ProjectOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Projects. */ cursor?: ProjectWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Projects from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Projects. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Projects. */ distinct?: ProjectScalarFieldEnum | ProjectScalarFieldEnum[] } /** * Project findMany */ export type ProjectFindManyArgs = { /** * Select specific fields to fetch from the Project */ select?: ProjectSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProjectInclude | null /** * Filter, which Projects to fetch. */ where?: ProjectWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Projects to fetch. */ orderBy?: ProjectOrderByWithRelationInput | ProjectOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Projects. */ cursor?: ProjectWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Projects from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Projects. */ skip?: number distinct?: ProjectScalarFieldEnum | ProjectScalarFieldEnum[] } /** * Project create */ export type ProjectCreateArgs = { /** * Select specific fields to fetch from the Project */ select?: ProjectSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProjectInclude | null /** * The data needed to create a Project. */ data: XOR } /** * Project createMany */ export type ProjectCreateManyArgs = { /** * The data used to create many Projects. */ data: ProjectCreateManyInput | ProjectCreateManyInput[] skipDuplicates?: boolean } /** * Project createManyAndReturn */ export type ProjectCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Project */ select?: ProjectSelectCreateManyAndReturn | null /** * The data used to create many Projects. */ data: ProjectCreateManyInput | ProjectCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ProjectIncludeCreateManyAndReturn | null } /** * Project update */ export type ProjectUpdateArgs = { /** * Select specific fields to fetch from the Project */ select?: ProjectSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProjectInclude | null /** * The data needed to update a Project. */ data: XOR /** * Choose, which Project to update. */ where: ProjectWhereUniqueInput } /** * Project updateMany */ export type ProjectUpdateManyArgs = { /** * The data used to update Projects. */ data: XOR /** * Filter which Projects to update */ where?: ProjectWhereInput } /** * Project upsert */ export type ProjectUpsertArgs = { /** * Select specific fields to fetch from the Project */ select?: ProjectSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProjectInclude | null /** * The filter to search for the Project to update in case it exists. */ where: ProjectWhereUniqueInput /** * In case the Project found by the `where` argument doesn't exist, create a new Project with this data. */ create: XOR /** * In case the Project was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Project delete */ export type ProjectDeleteArgs = { /** * Select specific fields to fetch from the Project */ select?: ProjectSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProjectInclude | null /** * Filter which Project to delete. */ where: ProjectWhereUniqueInput } /** * Project deleteMany */ export type ProjectDeleteManyArgs = { /** * Filter which Projects to delete */ where?: ProjectWhereInput } /** * Project.lifecyclePhases */ export type Project$lifecyclePhasesArgs = { /** * Select specific fields to fetch from the LifecyclePhase */ select?: LifecyclePhaseSelect | null /** * Choose, which related nodes to fetch as well */ include?: LifecyclePhaseInclude | null where?: LifecyclePhaseWhereInput orderBy?: LifecyclePhaseOrderByWithRelationInput | LifecyclePhaseOrderByWithRelationInput[] cursor?: LifecyclePhaseWhereUniqueInput take?: number skip?: number distinct?: LifecyclePhaseScalarFieldEnum | LifecyclePhaseScalarFieldEnum[] } /** * Project.risks */ export type Project$risksArgs = { /** * Select specific fields to fetch from the Risk */ select?: RiskSelect | null /** * Choose, which related nodes to fetch as well */ include?: RiskInclude | null where?: RiskWhereInput orderBy?: RiskOrderByWithRelationInput | RiskOrderByWithRelationInput[] cursor?: RiskWhereUniqueInput take?: number skip?: number distinct?: RiskScalarFieldEnum | RiskScalarFieldEnum[] } /** * Project.indicators */ export type Project$indicatorsArgs = { /** * Select specific fields to fetch from the Indicator */ select?: IndicatorSelect | null /** * Choose, which related nodes to fetch as well */ include?: IndicatorInclude | null where?: IndicatorWhereInput orderBy?: IndicatorOrderByWithRelationInput | IndicatorOrderByWithRelationInput[] cursor?: IndicatorWhereUniqueInput take?: number skip?: number distinct?: IndicatorScalarFieldEnum | IndicatorScalarFieldEnum[] } /** * Project.experiments */ export type Project$experimentsArgs = { /** * Select specific fields to fetch from the Experiment */ select?: ExperimentSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExperimentInclude | null where?: ExperimentWhereInput orderBy?: ExperimentOrderByWithRelationInput | ExperimentOrderByWithRelationInput[] cursor?: ExperimentWhereUniqueInput take?: number skip?: number distinct?: ExperimentScalarFieldEnum | ExperimentScalarFieldEnum[] } /** * Project.gateEvaluations */ export type Project$gateEvaluationsArgs = { /** * Select specific fields to fetch from the GateEvaluation */ select?: GateEvaluationSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateEvaluationInclude | null where?: GateEvaluationWhereInput orderBy?: GateEvaluationOrderByWithRelationInput | GateEvaluationOrderByWithRelationInput[] cursor?: GateEvaluationWhereUniqueInput take?: number skip?: number distinct?: GateEvaluationScalarFieldEnum | GateEvaluationScalarFieldEnum[] } /** * Project.auditEvents */ export type Project$auditEventsArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | null where?: AuditEventWhereInput orderBy?: AuditEventOrderByWithRelationInput | AuditEventOrderByWithRelationInput[] cursor?: AuditEventWhereUniqueInput take?: number skip?: number distinct?: AuditEventScalarFieldEnum | AuditEventScalarFieldEnum[] } /** * Project.reports */ export type Project$reportsArgs = { /** * Select specific fields to fetch from the ReportExport */ select?: ReportExportSelect | null /** * Choose, which related nodes to fetch as well */ include?: ReportExportInclude | null where?: ReportExportWhereInput orderBy?: ReportExportOrderByWithRelationInput | ReportExportOrderByWithRelationInput[] cursor?: ReportExportWhereUniqueInput take?: number skip?: number distinct?: ReportExportScalarFieldEnum | ReportExportScalarFieldEnum[] } /** * Project without action */ export type ProjectDefaultArgs = { /** * Select specific fields to fetch from the Project */ select?: ProjectSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProjectInclude | null } /** * Model LifecyclePhase */ export type AggregateLifecyclePhase = { _count: LifecyclePhaseCountAggregateOutputType | null _avg: LifecyclePhaseAvgAggregateOutputType | null _sum: LifecyclePhaseSumAggregateOutputType | null _min: LifecyclePhaseMinAggregateOutputType | null _max: LifecyclePhaseMaxAggregateOutputType | null } export type LifecyclePhaseAvgAggregateOutputType = { readinessScore: number | null sequence: number | null } export type LifecyclePhaseSumAggregateOutputType = { readinessScore: number | null sequence: number | null } export type LifecyclePhaseMinAggregateOutputType = { id: string | null projectId: string | null name: string | null status: string | null readinessScore: number | null sequence: number | null createdAt: Date | null updatedAt: Date | null } export type LifecyclePhaseMaxAggregateOutputType = { id: string | null projectId: string | null name: string | null status: string | null readinessScore: number | null sequence: number | null createdAt: Date | null updatedAt: Date | null } export type LifecyclePhaseCountAggregateOutputType = { id: number projectId: number name: number status: number readinessScore: number sequence: number createdAt: number updatedAt: number _all: number } export type LifecyclePhaseAvgAggregateInputType = { readinessScore?: true sequence?: true } export type LifecyclePhaseSumAggregateInputType = { readinessScore?: true sequence?: true } export type LifecyclePhaseMinAggregateInputType = { id?: true projectId?: true name?: true status?: true readinessScore?: true sequence?: true createdAt?: true updatedAt?: true } export type LifecyclePhaseMaxAggregateInputType = { id?: true projectId?: true name?: true status?: true readinessScore?: true sequence?: true createdAt?: true updatedAt?: true } export type LifecyclePhaseCountAggregateInputType = { id?: true projectId?: true name?: true status?: true readinessScore?: true sequence?: true createdAt?: true updatedAt?: true _all?: true } export type LifecyclePhaseAggregateArgs = { /** * Filter which LifecyclePhase to aggregate. */ where?: LifecyclePhaseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LifecyclePhases to fetch. */ orderBy?: LifecyclePhaseOrderByWithRelationInput | LifecyclePhaseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: LifecyclePhaseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LifecyclePhases 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` LifecyclePhases. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned LifecyclePhases **/ _count?: true | LifecyclePhaseCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: LifecyclePhaseAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: LifecyclePhaseSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: LifecyclePhaseMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: LifecyclePhaseMaxAggregateInputType } export type GetLifecyclePhaseAggregateType = { [P in keyof T & keyof AggregateLifecyclePhase]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type LifecyclePhaseGroupByArgs = { where?: LifecyclePhaseWhereInput orderBy?: LifecyclePhaseOrderByWithAggregationInput | LifecyclePhaseOrderByWithAggregationInput[] by: LifecyclePhaseScalarFieldEnum[] | LifecyclePhaseScalarFieldEnum having?: LifecyclePhaseScalarWhereWithAggregatesInput take?: number skip?: number _count?: LifecyclePhaseCountAggregateInputType | true _avg?: LifecyclePhaseAvgAggregateInputType _sum?: LifecyclePhaseSumAggregateInputType _min?: LifecyclePhaseMinAggregateInputType _max?: LifecyclePhaseMaxAggregateInputType } export type LifecyclePhaseGroupByOutputType = { id: string projectId: string name: string status: string readinessScore: number sequence: number createdAt: Date updatedAt: Date _count: LifecyclePhaseCountAggregateOutputType | null _avg: LifecyclePhaseAvgAggregateOutputType | null _sum: LifecyclePhaseSumAggregateOutputType | null _min: LifecyclePhaseMinAggregateOutputType | null _max: LifecyclePhaseMaxAggregateOutputType | null } type GetLifecyclePhaseGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof LifecyclePhaseGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type LifecyclePhaseSelect = $Extensions.GetSelect<{ id?: boolean projectId?: boolean name?: boolean status?: boolean readinessScore?: boolean sequence?: boolean createdAt?: boolean updatedAt?: boolean project?: boolean | ProjectDefaultArgs }, ExtArgs["result"]["lifecyclePhase"]> export type LifecyclePhaseSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean projectId?: boolean name?: boolean status?: boolean readinessScore?: boolean sequence?: boolean createdAt?: boolean updatedAt?: boolean project?: boolean | ProjectDefaultArgs }, ExtArgs["result"]["lifecyclePhase"]> export type LifecyclePhaseSelectScalar = { id?: boolean projectId?: boolean name?: boolean status?: boolean readinessScore?: boolean sequence?: boolean createdAt?: boolean updatedAt?: boolean } export type LifecyclePhaseInclude = { project?: boolean | ProjectDefaultArgs } export type LifecyclePhaseIncludeCreateManyAndReturn = { project?: boolean | ProjectDefaultArgs } export type $LifecyclePhasePayload = { name: "LifecyclePhase" objects: { project: Prisma.$ProjectPayload } scalars: $Extensions.GetPayloadResult<{ id: string projectId: string name: string status: string readinessScore: number sequence: number createdAt: Date updatedAt: Date }, ExtArgs["result"]["lifecyclePhase"]> composites: {} } type LifecyclePhaseGetPayload = $Result.GetResult type LifecyclePhaseCountArgs = Omit & { select?: LifecyclePhaseCountAggregateInputType | true } export interface LifecyclePhaseDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['LifecyclePhase'], meta: { name: 'LifecyclePhase' } } /** * Find zero or one LifecyclePhase that matches the filter. * @param {LifecyclePhaseFindUniqueArgs} args - Arguments to find a LifecyclePhase * @example * // Get one LifecyclePhase * const lifecyclePhase = await prisma.lifecyclePhase.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__LifecyclePhaseClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one LifecyclePhase that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {LifecyclePhaseFindUniqueOrThrowArgs} args - Arguments to find a LifecyclePhase * @example * // Get one LifecyclePhase * const lifecyclePhase = await prisma.lifecyclePhase.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__LifecyclePhaseClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first LifecyclePhase 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 {LifecyclePhaseFindFirstArgs} args - Arguments to find a LifecyclePhase * @example * // Get one LifecyclePhase * const lifecyclePhase = await prisma.lifecyclePhase.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__LifecyclePhaseClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first LifecyclePhase 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 {LifecyclePhaseFindFirstOrThrowArgs} args - Arguments to find a LifecyclePhase * @example * // Get one LifecyclePhase * const lifecyclePhase = await prisma.lifecyclePhase.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__LifecyclePhaseClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more LifecyclePhases 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 {LifecyclePhaseFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all LifecyclePhases * const lifecyclePhases = await prisma.lifecyclePhase.findMany() * * // Get first 10 LifecyclePhases * const lifecyclePhases = await prisma.lifecyclePhase.findMany({ take: 10 }) * * // Only select the `id` * const lifecyclePhaseWithIdOnly = await prisma.lifecyclePhase.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a LifecyclePhase. * @param {LifecyclePhaseCreateArgs} args - Arguments to create a LifecyclePhase. * @example * // Create one LifecyclePhase * const LifecyclePhase = await prisma.lifecyclePhase.create({ * data: { * // ... data to create a LifecyclePhase * } * }) * */ create(args: SelectSubset>): Prisma__LifecyclePhaseClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many LifecyclePhases. * @param {LifecyclePhaseCreateManyArgs} args - Arguments to create many LifecyclePhases. * @example * // Create many LifecyclePhases * const lifecyclePhase = await prisma.lifecyclePhase.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many LifecyclePhases and returns the data saved in the database. * @param {LifecyclePhaseCreateManyAndReturnArgs} args - Arguments to create many LifecyclePhases. * @example * // Create many LifecyclePhases * const lifecyclePhase = await prisma.lifecyclePhase.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many LifecyclePhases and only return the `id` * const lifecyclePhaseWithIdOnly = await prisma.lifecyclePhase.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">> /** * Delete a LifecyclePhase. * @param {LifecyclePhaseDeleteArgs} args - Arguments to delete one LifecyclePhase. * @example * // Delete one LifecyclePhase * const LifecyclePhase = await prisma.lifecyclePhase.delete({ * where: { * // ... filter to delete one LifecyclePhase * } * }) * */ delete(args: SelectSubset>): Prisma__LifecyclePhaseClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one LifecyclePhase. * @param {LifecyclePhaseUpdateArgs} args - Arguments to update one LifecyclePhase. * @example * // Update one LifecyclePhase * const lifecyclePhase = await prisma.lifecyclePhase.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__LifecyclePhaseClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more LifecyclePhases. * @param {LifecyclePhaseDeleteManyArgs} args - Arguments to filter LifecyclePhases to delete. * @example * // Delete a few LifecyclePhases * const { count } = await prisma.lifecyclePhase.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more LifecyclePhases. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LifecyclePhaseUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many LifecyclePhases * const lifecyclePhase = await prisma.lifecyclePhase.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one LifecyclePhase. * @param {LifecyclePhaseUpsertArgs} args - Arguments to update or create a LifecyclePhase. * @example * // Update or create a LifecyclePhase * const lifecyclePhase = await prisma.lifecyclePhase.upsert({ * create: { * // ... data to create a LifecyclePhase * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the LifecyclePhase we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__LifecyclePhaseClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of LifecyclePhases. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LifecyclePhaseCountArgs} args - Arguments to filter LifecyclePhases to count. * @example * // Count the number of LifecyclePhases * const count = await prisma.lifecyclePhase.count({ * where: { * // ... the filter for the LifecyclePhases 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 LifecyclePhase. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LifecyclePhaseAggregateArgs} 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 LifecyclePhase. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LifecyclePhaseGroupByArgs} 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 LifecyclePhaseGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: LifecyclePhaseGroupByArgs['orderBy'] } : { orderBy?: LifecyclePhaseGroupByArgs['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 ? GetLifecyclePhaseGroupByPayload : Prisma.PrismaPromise /** * Fields of the LifecyclePhase model */ readonly fields: LifecyclePhaseFieldRefs; } /** * The delegate class that acts as a "Promise-like" for LifecyclePhase. * 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__LifecyclePhaseClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" project = {}>(args?: Subset>): Prisma__ProjectClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * 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 LifecyclePhase model */ interface LifecyclePhaseFieldRefs { readonly id: FieldRef<"LifecyclePhase", 'String'> readonly projectId: FieldRef<"LifecyclePhase", 'String'> readonly name: FieldRef<"LifecyclePhase", 'String'> readonly status: FieldRef<"LifecyclePhase", 'String'> readonly readinessScore: FieldRef<"LifecyclePhase", 'Int'> readonly sequence: FieldRef<"LifecyclePhase", 'Int'> readonly createdAt: FieldRef<"LifecyclePhase", 'DateTime'> readonly updatedAt: FieldRef<"LifecyclePhase", 'DateTime'> } // Custom InputTypes /** * LifecyclePhase findUnique */ export type LifecyclePhaseFindUniqueArgs = { /** * Select specific fields to fetch from the LifecyclePhase */ select?: LifecyclePhaseSelect | null /** * Choose, which related nodes to fetch as well */ include?: LifecyclePhaseInclude | null /** * Filter, which LifecyclePhase to fetch. */ where: LifecyclePhaseWhereUniqueInput } /** * LifecyclePhase findUniqueOrThrow */ export type LifecyclePhaseFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the LifecyclePhase */ select?: LifecyclePhaseSelect | null /** * Choose, which related nodes to fetch as well */ include?: LifecyclePhaseInclude | null /** * Filter, which LifecyclePhase to fetch. */ where: LifecyclePhaseWhereUniqueInput } /** * LifecyclePhase findFirst */ export type LifecyclePhaseFindFirstArgs = { /** * Select specific fields to fetch from the LifecyclePhase */ select?: LifecyclePhaseSelect | null /** * Choose, which related nodes to fetch as well */ include?: LifecyclePhaseInclude | null /** * Filter, which LifecyclePhase to fetch. */ where?: LifecyclePhaseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LifecyclePhases to fetch. */ orderBy?: LifecyclePhaseOrderByWithRelationInput | LifecyclePhaseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LifecyclePhases. */ cursor?: LifecyclePhaseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LifecyclePhases 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` LifecyclePhases. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LifecyclePhases. */ distinct?: LifecyclePhaseScalarFieldEnum | LifecyclePhaseScalarFieldEnum[] } /** * LifecyclePhase findFirstOrThrow */ export type LifecyclePhaseFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the LifecyclePhase */ select?: LifecyclePhaseSelect | null /** * Choose, which related nodes to fetch as well */ include?: LifecyclePhaseInclude | null /** * Filter, which LifecyclePhase to fetch. */ where?: LifecyclePhaseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LifecyclePhases to fetch. */ orderBy?: LifecyclePhaseOrderByWithRelationInput | LifecyclePhaseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LifecyclePhases. */ cursor?: LifecyclePhaseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LifecyclePhases 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` LifecyclePhases. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LifecyclePhases. */ distinct?: LifecyclePhaseScalarFieldEnum | LifecyclePhaseScalarFieldEnum[] } /** * LifecyclePhase findMany */ export type LifecyclePhaseFindManyArgs = { /** * Select specific fields to fetch from the LifecyclePhase */ select?: LifecyclePhaseSelect | null /** * Choose, which related nodes to fetch as well */ include?: LifecyclePhaseInclude | null /** * Filter, which LifecyclePhases to fetch. */ where?: LifecyclePhaseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LifecyclePhases to fetch. */ orderBy?: LifecyclePhaseOrderByWithRelationInput | LifecyclePhaseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing LifecyclePhases. */ cursor?: LifecyclePhaseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LifecyclePhases 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` LifecyclePhases. */ skip?: number distinct?: LifecyclePhaseScalarFieldEnum | LifecyclePhaseScalarFieldEnum[] } /** * LifecyclePhase create */ export type LifecyclePhaseCreateArgs = { /** * Select specific fields to fetch from the LifecyclePhase */ select?: LifecyclePhaseSelect | null /** * Choose, which related nodes to fetch as well */ include?: LifecyclePhaseInclude | null /** * The data needed to create a LifecyclePhase. */ data: XOR } /** * LifecyclePhase createMany */ export type LifecyclePhaseCreateManyArgs = { /** * The data used to create many LifecyclePhases. */ data: LifecyclePhaseCreateManyInput | LifecyclePhaseCreateManyInput[] skipDuplicates?: boolean } /** * LifecyclePhase createManyAndReturn */ export type LifecyclePhaseCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the LifecyclePhase */ select?: LifecyclePhaseSelectCreateManyAndReturn | null /** * The data used to create many LifecyclePhases. */ data: LifecyclePhaseCreateManyInput | LifecyclePhaseCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: LifecyclePhaseIncludeCreateManyAndReturn | null } /** * LifecyclePhase update */ export type LifecyclePhaseUpdateArgs = { /** * Select specific fields to fetch from the LifecyclePhase */ select?: LifecyclePhaseSelect | null /** * Choose, which related nodes to fetch as well */ include?: LifecyclePhaseInclude | null /** * The data needed to update a LifecyclePhase. */ data: XOR /** * Choose, which LifecyclePhase to update. */ where: LifecyclePhaseWhereUniqueInput } /** * LifecyclePhase updateMany */ export type LifecyclePhaseUpdateManyArgs = { /** * The data used to update LifecyclePhases. */ data: XOR /** * Filter which LifecyclePhases to update */ where?: LifecyclePhaseWhereInput } /** * LifecyclePhase upsert */ export type LifecyclePhaseUpsertArgs = { /** * Select specific fields to fetch from the LifecyclePhase */ select?: LifecyclePhaseSelect | null /** * Choose, which related nodes to fetch as well */ include?: LifecyclePhaseInclude | null /** * The filter to search for the LifecyclePhase to update in case it exists. */ where: LifecyclePhaseWhereUniqueInput /** * In case the LifecyclePhase found by the `where` argument doesn't exist, create a new LifecyclePhase with this data. */ create: XOR /** * In case the LifecyclePhase was found with the provided `where` argument, update it with this data. */ update: XOR } /** * LifecyclePhase delete */ export type LifecyclePhaseDeleteArgs = { /** * Select specific fields to fetch from the LifecyclePhase */ select?: LifecyclePhaseSelect | null /** * Choose, which related nodes to fetch as well */ include?: LifecyclePhaseInclude | null /** * Filter which LifecyclePhase to delete. */ where: LifecyclePhaseWhereUniqueInput } /** * LifecyclePhase deleteMany */ export type LifecyclePhaseDeleteManyArgs = { /** * Filter which LifecyclePhases to delete */ where?: LifecyclePhaseWhereInput } /** * LifecyclePhase without action */ export type LifecyclePhaseDefaultArgs = { /** * Select specific fields to fetch from the LifecyclePhase */ select?: LifecyclePhaseSelect | null /** * Choose, which related nodes to fetch as well */ include?: LifecyclePhaseInclude | null } /** * Model Risk */ export type AggregateRisk = { _count: RiskCountAggregateOutputType | null _avg: RiskAvgAggregateOutputType | null _sum: RiskSumAggregateOutputType | null _min: RiskMinAggregateOutputType | null _max: RiskMaxAggregateOutputType | null } export type RiskAvgAggregateOutputType = { probability: number | null impact: number | null detectability: number | null } export type RiskSumAggregateOutputType = { probability: number | null impact: number | null detectability: number | null } export type RiskMinAggregateOutputType = { id: string | null projectId: string | null ownerDisplayName: string | null title: string | null description: string | null dimension: string | null domain: string | null lifecyclePhase: string | null probability: number | null impact: number | null detectability: number | null status: $Enums.RiskStatus | null approvalStatus: $Enums.ApprovalStatus | null dueDate: Date | null evidenceSummary: string | null createdAt: Date | null updatedAt: Date | null } export type RiskMaxAggregateOutputType = { id: string | null projectId: string | null ownerDisplayName: string | null title: string | null description: string | null dimension: string | null domain: string | null lifecyclePhase: string | null probability: number | null impact: number | null detectability: number | null status: $Enums.RiskStatus | null approvalStatus: $Enums.ApprovalStatus | null dueDate: Date | null evidenceSummary: string | null createdAt: Date | null updatedAt: Date | null } export type RiskCountAggregateOutputType = { id: number projectId: number ownerDisplayName: number title: number description: number dimension: number domain: number lifecyclePhase: number probability: number impact: number detectability: number status: number approvalStatus: number dueDate: number evidenceSummary: number createdAt: number updatedAt: number _all: number } export type RiskAvgAggregateInputType = { probability?: true impact?: true detectability?: true } export type RiskSumAggregateInputType = { probability?: true impact?: true detectability?: true } export type RiskMinAggregateInputType = { id?: true projectId?: true ownerDisplayName?: true title?: true description?: true dimension?: true domain?: true lifecyclePhase?: true probability?: true impact?: true detectability?: true status?: true approvalStatus?: true dueDate?: true evidenceSummary?: true createdAt?: true updatedAt?: true } export type RiskMaxAggregateInputType = { id?: true projectId?: true ownerDisplayName?: true title?: true description?: true dimension?: true domain?: true lifecyclePhase?: true probability?: true impact?: true detectability?: true status?: true approvalStatus?: true dueDate?: true evidenceSummary?: true createdAt?: true updatedAt?: true } export type RiskCountAggregateInputType = { id?: true projectId?: true ownerDisplayName?: true title?: true description?: true dimension?: true domain?: true lifecyclePhase?: true probability?: true impact?: true detectability?: true status?: true approvalStatus?: true dueDate?: true evidenceSummary?: true createdAt?: true updatedAt?: true _all?: true } export type RiskAggregateArgs = { /** * Filter which Risk to aggregate. */ where?: RiskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Risks to fetch. */ orderBy?: RiskOrderByWithRelationInput | RiskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: RiskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Risks 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` Risks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Risks **/ _count?: true | RiskCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: RiskAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: RiskSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: RiskMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: RiskMaxAggregateInputType } export type GetRiskAggregateType = { [P in keyof T & keyof AggregateRisk]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type RiskGroupByArgs = { where?: RiskWhereInput orderBy?: RiskOrderByWithAggregationInput | RiskOrderByWithAggregationInput[] by: RiskScalarFieldEnum[] | RiskScalarFieldEnum having?: RiskScalarWhereWithAggregatesInput take?: number skip?: number _count?: RiskCountAggregateInputType | true _avg?: RiskAvgAggregateInputType _sum?: RiskSumAggregateInputType _min?: RiskMinAggregateInputType _max?: RiskMaxAggregateInputType } export type RiskGroupByOutputType = { id: string projectId: string ownerDisplayName: string | null title: string description: string | null dimension: string domain: string lifecyclePhase: string probability: number impact: number detectability: number status: $Enums.RiskStatus approvalStatus: $Enums.ApprovalStatus dueDate: Date | null evidenceSummary: string | null createdAt: Date updatedAt: Date _count: RiskCountAggregateOutputType | null _avg: RiskAvgAggregateOutputType | null _sum: RiskSumAggregateOutputType | null _min: RiskMinAggregateOutputType | null _max: RiskMaxAggregateOutputType | null } type GetRiskGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof RiskGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type RiskSelect = $Extensions.GetSelect<{ id?: boolean projectId?: boolean ownerDisplayName?: boolean title?: boolean description?: boolean dimension?: boolean domain?: boolean lifecyclePhase?: boolean probability?: boolean impact?: boolean detectability?: boolean status?: boolean approvalStatus?: boolean dueDate?: boolean evidenceSummary?: boolean createdAt?: boolean updatedAt?: boolean project?: boolean | ProjectDefaultArgs mitigations?: boolean | Risk$mitigationsArgs evidence?: boolean | Risk$evidenceArgs _count?: boolean | RiskCountOutputTypeDefaultArgs }, ExtArgs["result"]["risk"]> export type RiskSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean projectId?: boolean ownerDisplayName?: boolean title?: boolean description?: boolean dimension?: boolean domain?: boolean lifecyclePhase?: boolean probability?: boolean impact?: boolean detectability?: boolean status?: boolean approvalStatus?: boolean dueDate?: boolean evidenceSummary?: boolean createdAt?: boolean updatedAt?: boolean project?: boolean | ProjectDefaultArgs }, ExtArgs["result"]["risk"]> export type RiskSelectScalar = { id?: boolean projectId?: boolean ownerDisplayName?: boolean title?: boolean description?: boolean dimension?: boolean domain?: boolean lifecyclePhase?: boolean probability?: boolean impact?: boolean detectability?: boolean status?: boolean approvalStatus?: boolean dueDate?: boolean evidenceSummary?: boolean createdAt?: boolean updatedAt?: boolean } export type RiskInclude = { project?: boolean | ProjectDefaultArgs mitigations?: boolean | Risk$mitigationsArgs evidence?: boolean | Risk$evidenceArgs _count?: boolean | RiskCountOutputTypeDefaultArgs } export type RiskIncludeCreateManyAndReturn = { project?: boolean | ProjectDefaultArgs } export type $RiskPayload = { name: "Risk" objects: { project: Prisma.$ProjectPayload mitigations: Prisma.$MitigationPayload[] evidence: Prisma.$EvidencePayload[] } scalars: $Extensions.GetPayloadResult<{ id: string projectId: string ownerDisplayName: string | null title: string description: string | null dimension: string domain: string lifecyclePhase: string probability: number impact: number detectability: number status: $Enums.RiskStatus approvalStatus: $Enums.ApprovalStatus dueDate: Date | null evidenceSummary: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["risk"]> composites: {} } type RiskGetPayload = $Result.GetResult type RiskCountArgs = Omit & { select?: RiskCountAggregateInputType | true } export interface RiskDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Risk'], meta: { name: 'Risk' } } /** * Find zero or one Risk that matches the filter. * @param {RiskFindUniqueArgs} args - Arguments to find a Risk * @example * // Get one Risk * const risk = await prisma.risk.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__RiskClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Risk that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {RiskFindUniqueOrThrowArgs} args - Arguments to find a Risk * @example * // Get one Risk * const risk = await prisma.risk.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__RiskClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Risk 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 {RiskFindFirstArgs} args - Arguments to find a Risk * @example * // Get one Risk * const risk = await prisma.risk.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__RiskClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Risk 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 {RiskFindFirstOrThrowArgs} args - Arguments to find a Risk * @example * // Get one Risk * const risk = await prisma.risk.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__RiskClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Risks 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 {RiskFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Risks * const risks = await prisma.risk.findMany() * * // Get first 10 Risks * const risks = await prisma.risk.findMany({ take: 10 }) * * // Only select the `id` * const riskWithIdOnly = await prisma.risk.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Risk. * @param {RiskCreateArgs} args - Arguments to create a Risk. * @example * // Create one Risk * const Risk = await prisma.risk.create({ * data: { * // ... data to create a Risk * } * }) * */ create(args: SelectSubset>): Prisma__RiskClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Risks. * @param {RiskCreateManyArgs} args - Arguments to create many Risks. * @example * // Create many Risks * const risk = await prisma.risk.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Risks and returns the data saved in the database. * @param {RiskCreateManyAndReturnArgs} args - Arguments to create many Risks. * @example * // Create many Risks * const risk = await prisma.risk.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Risks and only return the `id` * const riskWithIdOnly = await prisma.risk.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">> /** * Delete a Risk. * @param {RiskDeleteArgs} args - Arguments to delete one Risk. * @example * // Delete one Risk * const Risk = await prisma.risk.delete({ * where: { * // ... filter to delete one Risk * } * }) * */ delete(args: SelectSubset>): Prisma__RiskClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Risk. * @param {RiskUpdateArgs} args - Arguments to update one Risk. * @example * // Update one Risk * const risk = await prisma.risk.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__RiskClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Risks. * @param {RiskDeleteManyArgs} args - Arguments to filter Risks to delete. * @example * // Delete a few Risks * const { count } = await prisma.risk.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Risks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RiskUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Risks * const risk = await prisma.risk.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Risk. * @param {RiskUpsertArgs} args - Arguments to update or create a Risk. * @example * // Update or create a Risk * const risk = await prisma.risk.upsert({ * create: { * // ... data to create a Risk * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Risk we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__RiskClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Risks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RiskCountArgs} args - Arguments to filter Risks to count. * @example * // Count the number of Risks * const count = await prisma.risk.count({ * where: { * // ... the filter for the Risks 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 Risk. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RiskAggregateArgs} 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 Risk. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RiskGroupByArgs} 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 RiskGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: RiskGroupByArgs['orderBy'] } : { orderBy?: RiskGroupByArgs['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 ? GetRiskGroupByPayload : Prisma.PrismaPromise /** * Fields of the Risk model */ readonly fields: RiskFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Risk. * 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__RiskClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" project = {}>(args?: Subset>): Prisma__ProjectClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> mitigations = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> evidence = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | 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 Risk model */ interface RiskFieldRefs { readonly id: FieldRef<"Risk", 'String'> readonly projectId: FieldRef<"Risk", 'String'> readonly ownerDisplayName: FieldRef<"Risk", 'String'> readonly title: FieldRef<"Risk", 'String'> readonly description: FieldRef<"Risk", 'String'> readonly dimension: FieldRef<"Risk", 'String'> readonly domain: FieldRef<"Risk", 'String'> readonly lifecyclePhase: FieldRef<"Risk", 'String'> readonly probability: FieldRef<"Risk", 'Int'> readonly impact: FieldRef<"Risk", 'Int'> readonly detectability: FieldRef<"Risk", 'Int'> readonly status: FieldRef<"Risk", 'RiskStatus'> readonly approvalStatus: FieldRef<"Risk", 'ApprovalStatus'> readonly dueDate: FieldRef<"Risk", 'DateTime'> readonly evidenceSummary: FieldRef<"Risk", 'String'> readonly createdAt: FieldRef<"Risk", 'DateTime'> readonly updatedAt: FieldRef<"Risk", 'DateTime'> } // Custom InputTypes /** * Risk findUnique */ export type RiskFindUniqueArgs = { /** * Select specific fields to fetch from the Risk */ select?: RiskSelect | null /** * Choose, which related nodes to fetch as well */ include?: RiskInclude | null /** * Filter, which Risk to fetch. */ where: RiskWhereUniqueInput } /** * Risk findUniqueOrThrow */ export type RiskFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Risk */ select?: RiskSelect | null /** * Choose, which related nodes to fetch as well */ include?: RiskInclude | null /** * Filter, which Risk to fetch. */ where: RiskWhereUniqueInput } /** * Risk findFirst */ export type RiskFindFirstArgs = { /** * Select specific fields to fetch from the Risk */ select?: RiskSelect | null /** * Choose, which related nodes to fetch as well */ include?: RiskInclude | null /** * Filter, which Risk to fetch. */ where?: RiskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Risks to fetch. */ orderBy?: RiskOrderByWithRelationInput | RiskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Risks. */ cursor?: RiskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Risks 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` Risks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Risks. */ distinct?: RiskScalarFieldEnum | RiskScalarFieldEnum[] } /** * Risk findFirstOrThrow */ export type RiskFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Risk */ select?: RiskSelect | null /** * Choose, which related nodes to fetch as well */ include?: RiskInclude | null /** * Filter, which Risk to fetch. */ where?: RiskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Risks to fetch. */ orderBy?: RiskOrderByWithRelationInput | RiskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Risks. */ cursor?: RiskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Risks 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` Risks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Risks. */ distinct?: RiskScalarFieldEnum | RiskScalarFieldEnum[] } /** * Risk findMany */ export type RiskFindManyArgs = { /** * Select specific fields to fetch from the Risk */ select?: RiskSelect | null /** * Choose, which related nodes to fetch as well */ include?: RiskInclude | null /** * Filter, which Risks to fetch. */ where?: RiskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Risks to fetch. */ orderBy?: RiskOrderByWithRelationInput | RiskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Risks. */ cursor?: RiskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Risks 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` Risks. */ skip?: number distinct?: RiskScalarFieldEnum | RiskScalarFieldEnum[] } /** * Risk create */ export type RiskCreateArgs = { /** * Select specific fields to fetch from the Risk */ select?: RiskSelect | null /** * Choose, which related nodes to fetch as well */ include?: RiskInclude | null /** * The data needed to create a Risk. */ data: XOR } /** * Risk createMany */ export type RiskCreateManyArgs = { /** * The data used to create many Risks. */ data: RiskCreateManyInput | RiskCreateManyInput[] skipDuplicates?: boolean } /** * Risk createManyAndReturn */ export type RiskCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Risk */ select?: RiskSelectCreateManyAndReturn | null /** * The data used to create many Risks. */ data: RiskCreateManyInput | RiskCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: RiskIncludeCreateManyAndReturn | null } /** * Risk update */ export type RiskUpdateArgs = { /** * Select specific fields to fetch from the Risk */ select?: RiskSelect | null /** * Choose, which related nodes to fetch as well */ include?: RiskInclude | null /** * The data needed to update a Risk. */ data: XOR /** * Choose, which Risk to update. */ where: RiskWhereUniqueInput } /** * Risk updateMany */ export type RiskUpdateManyArgs = { /** * The data used to update Risks. */ data: XOR /** * Filter which Risks to update */ where?: RiskWhereInput } /** * Risk upsert */ export type RiskUpsertArgs = { /** * Select specific fields to fetch from the Risk */ select?: RiskSelect | null /** * Choose, which related nodes to fetch as well */ include?: RiskInclude | null /** * The filter to search for the Risk to update in case it exists. */ where: RiskWhereUniqueInput /** * In case the Risk found by the `where` argument doesn't exist, create a new Risk with this data. */ create: XOR /** * In case the Risk was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Risk delete */ export type RiskDeleteArgs = { /** * Select specific fields to fetch from the Risk */ select?: RiskSelect | null /** * Choose, which related nodes to fetch as well */ include?: RiskInclude | null /** * Filter which Risk to delete. */ where: RiskWhereUniqueInput } /** * Risk deleteMany */ export type RiskDeleteManyArgs = { /** * Filter which Risks to delete */ where?: RiskWhereInput } /** * Risk.mitigations */ export type Risk$mitigationsArgs = { /** * Select specific fields to fetch from the Mitigation */ select?: MitigationSelect | null /** * Choose, which related nodes to fetch as well */ include?: MitigationInclude | null where?: MitigationWhereInput orderBy?: MitigationOrderByWithRelationInput | MitigationOrderByWithRelationInput[] cursor?: MitigationWhereUniqueInput take?: number skip?: number distinct?: MitigationScalarFieldEnum | MitigationScalarFieldEnum[] } /** * Risk.evidence */ export type Risk$evidenceArgs = { /** * Select specific fields to fetch from the Evidence */ select?: EvidenceSelect | null /** * Choose, which related nodes to fetch as well */ include?: EvidenceInclude | null where?: EvidenceWhereInput orderBy?: EvidenceOrderByWithRelationInput | EvidenceOrderByWithRelationInput[] cursor?: EvidenceWhereUniqueInput take?: number skip?: number distinct?: EvidenceScalarFieldEnum | EvidenceScalarFieldEnum[] } /** * Risk without action */ export type RiskDefaultArgs = { /** * Select specific fields to fetch from the Risk */ select?: RiskSelect | null /** * Choose, which related nodes to fetch as well */ include?: RiskInclude | null } /** * Model Mitigation */ export type AggregateMitigation = { _count: MitigationCountAggregateOutputType | null _avg: MitigationAvgAggregateOutputType | null _sum: MitigationSumAggregateOutputType | null _min: MitigationMinAggregateOutputType | null _max: MitigationMaxAggregateOutputType | null } export type MitigationAvgAggregateOutputType = { progressPercent: number | null effectivenessPercent: number | null sequence: number | null } export type MitigationSumAggregateOutputType = { progressPercent: number | null effectivenessPercent: number | null sequence: number | null } export type MitigationMinAggregateOutputType = { id: string | null riskId: string | null ownerDisplayName: string | null title: string | null description: string | null status: $Enums.MitigationStatus | null progressPercent: number | null effectivenessPercent: number | null dueDate: Date | null sequence: number | null createdAt: Date | null updatedAt: Date | null } export type MitigationMaxAggregateOutputType = { id: string | null riskId: string | null ownerDisplayName: string | null title: string | null description: string | null status: $Enums.MitigationStatus | null progressPercent: number | null effectivenessPercent: number | null dueDate: Date | null sequence: number | null createdAt: Date | null updatedAt: Date | null } export type MitigationCountAggregateOutputType = { id: number riskId: number ownerDisplayName: number title: number description: number status: number progressPercent: number effectivenessPercent: number dueDate: number sequence: number createdAt: number updatedAt: number _all: number } export type MitigationAvgAggregateInputType = { progressPercent?: true effectivenessPercent?: true sequence?: true } export type MitigationSumAggregateInputType = { progressPercent?: true effectivenessPercent?: true sequence?: true } export type MitigationMinAggregateInputType = { id?: true riskId?: true ownerDisplayName?: true title?: true description?: true status?: true progressPercent?: true effectivenessPercent?: true dueDate?: true sequence?: true createdAt?: true updatedAt?: true } export type MitigationMaxAggregateInputType = { id?: true riskId?: true ownerDisplayName?: true title?: true description?: true status?: true progressPercent?: true effectivenessPercent?: true dueDate?: true sequence?: true createdAt?: true updatedAt?: true } export type MitigationCountAggregateInputType = { id?: true riskId?: true ownerDisplayName?: true title?: true description?: true status?: true progressPercent?: true effectivenessPercent?: true dueDate?: true sequence?: true createdAt?: true updatedAt?: true _all?: true } export type MitigationAggregateArgs = { /** * Filter which Mitigation to aggregate. */ where?: MitigationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Mitigations to fetch. */ orderBy?: MitigationOrderByWithRelationInput | MitigationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: MitigationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Mitigations 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` Mitigations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Mitigations **/ _count?: true | MitigationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: MitigationAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: MitigationSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: MitigationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: MitigationMaxAggregateInputType } export type GetMitigationAggregateType = { [P in keyof T & keyof AggregateMitigation]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type MitigationGroupByArgs = { where?: MitigationWhereInput orderBy?: MitigationOrderByWithAggregationInput | MitigationOrderByWithAggregationInput[] by: MitigationScalarFieldEnum[] | MitigationScalarFieldEnum having?: MitigationScalarWhereWithAggregatesInput take?: number skip?: number _count?: MitigationCountAggregateInputType | true _avg?: MitigationAvgAggregateInputType _sum?: MitigationSumAggregateInputType _min?: MitigationMinAggregateInputType _max?: MitigationMaxAggregateInputType } export type MitigationGroupByOutputType = { id: string riskId: string ownerDisplayName: string | null title: string description: string | null status: $Enums.MitigationStatus progressPercent: number effectivenessPercent: number dueDate: Date | null sequence: number createdAt: Date updatedAt: Date _count: MitigationCountAggregateOutputType | null _avg: MitigationAvgAggregateOutputType | null _sum: MitigationSumAggregateOutputType | null _min: MitigationMinAggregateOutputType | null _max: MitigationMaxAggregateOutputType | null } type GetMitigationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof MitigationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type MitigationSelect = $Extensions.GetSelect<{ id?: boolean riskId?: boolean ownerDisplayName?: boolean title?: boolean description?: boolean status?: boolean progressPercent?: boolean effectivenessPercent?: boolean dueDate?: boolean sequence?: boolean createdAt?: boolean updatedAt?: boolean risk?: boolean | RiskDefaultArgs evidence?: boolean | Mitigation$evidenceArgs _count?: boolean | MitigationCountOutputTypeDefaultArgs }, ExtArgs["result"]["mitigation"]> export type MitigationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean riskId?: boolean ownerDisplayName?: boolean title?: boolean description?: boolean status?: boolean progressPercent?: boolean effectivenessPercent?: boolean dueDate?: boolean sequence?: boolean createdAt?: boolean updatedAt?: boolean risk?: boolean | RiskDefaultArgs }, ExtArgs["result"]["mitigation"]> export type MitigationSelectScalar = { id?: boolean riskId?: boolean ownerDisplayName?: boolean title?: boolean description?: boolean status?: boolean progressPercent?: boolean effectivenessPercent?: boolean dueDate?: boolean sequence?: boolean createdAt?: boolean updatedAt?: boolean } export type MitigationInclude = { risk?: boolean | RiskDefaultArgs evidence?: boolean | Mitigation$evidenceArgs _count?: boolean | MitigationCountOutputTypeDefaultArgs } export type MitigationIncludeCreateManyAndReturn = { risk?: boolean | RiskDefaultArgs } export type $MitigationPayload = { name: "Mitigation" objects: { risk: Prisma.$RiskPayload evidence: Prisma.$EvidencePayload[] } scalars: $Extensions.GetPayloadResult<{ id: string riskId: string ownerDisplayName: string | null title: string description: string | null status: $Enums.MitigationStatus progressPercent: number effectivenessPercent: number dueDate: Date | null sequence: number createdAt: Date updatedAt: Date }, ExtArgs["result"]["mitigation"]> composites: {} } type MitigationGetPayload = $Result.GetResult type MitigationCountArgs = Omit & { select?: MitigationCountAggregateInputType | true } export interface MitigationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Mitigation'], meta: { name: 'Mitigation' } } /** * Find zero or one Mitigation that matches the filter. * @param {MitigationFindUniqueArgs} args - Arguments to find a Mitigation * @example * // Get one Mitigation * const mitigation = await prisma.mitigation.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__MitigationClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Mitigation that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {MitigationFindUniqueOrThrowArgs} args - Arguments to find a Mitigation * @example * // Get one Mitigation * const mitigation = await prisma.mitigation.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__MitigationClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Mitigation 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 {MitigationFindFirstArgs} args - Arguments to find a Mitigation * @example * // Get one Mitigation * const mitigation = await prisma.mitigation.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__MitigationClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Mitigation 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 {MitigationFindFirstOrThrowArgs} args - Arguments to find a Mitigation * @example * // Get one Mitigation * const mitigation = await prisma.mitigation.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__MitigationClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Mitigations 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 {MitigationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Mitigations * const mitigations = await prisma.mitigation.findMany() * * // Get first 10 Mitigations * const mitigations = await prisma.mitigation.findMany({ take: 10 }) * * // Only select the `id` * const mitigationWithIdOnly = await prisma.mitigation.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Mitigation. * @param {MitigationCreateArgs} args - Arguments to create a Mitigation. * @example * // Create one Mitigation * const Mitigation = await prisma.mitigation.create({ * data: { * // ... data to create a Mitigation * } * }) * */ create(args: SelectSubset>): Prisma__MitigationClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Mitigations. * @param {MitigationCreateManyArgs} args - Arguments to create many Mitigations. * @example * // Create many Mitigations * const mitigation = await prisma.mitigation.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Mitigations and returns the data saved in the database. * @param {MitigationCreateManyAndReturnArgs} args - Arguments to create many Mitigations. * @example * // Create many Mitigations * const mitigation = await prisma.mitigation.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Mitigations and only return the `id` * const mitigationWithIdOnly = await prisma.mitigation.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">> /** * Delete a Mitigation. * @param {MitigationDeleteArgs} args - Arguments to delete one Mitigation. * @example * // Delete one Mitigation * const Mitigation = await prisma.mitigation.delete({ * where: { * // ... filter to delete one Mitigation * } * }) * */ delete(args: SelectSubset>): Prisma__MitigationClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Mitigation. * @param {MitigationUpdateArgs} args - Arguments to update one Mitigation. * @example * // Update one Mitigation * const mitigation = await prisma.mitigation.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__MitigationClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Mitigations. * @param {MitigationDeleteManyArgs} args - Arguments to filter Mitigations to delete. * @example * // Delete a few Mitigations * const { count } = await prisma.mitigation.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Mitigations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MitigationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Mitigations * const mitigation = await prisma.mitigation.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Mitigation. * @param {MitigationUpsertArgs} args - Arguments to update or create a Mitigation. * @example * // Update or create a Mitigation * const mitigation = await prisma.mitigation.upsert({ * create: { * // ... data to create a Mitigation * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Mitigation we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__MitigationClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Mitigations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MitigationCountArgs} args - Arguments to filter Mitigations to count. * @example * // Count the number of Mitigations * const count = await prisma.mitigation.count({ * where: { * // ... the filter for the Mitigations 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 Mitigation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MitigationAggregateArgs} 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 Mitigation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MitigationGroupByArgs} 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 MitigationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: MitigationGroupByArgs['orderBy'] } : { orderBy?: MitigationGroupByArgs['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 ? GetMitigationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Mitigation model */ readonly fields: MitigationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Mitigation. * 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__MitigationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" risk = {}>(args?: Subset>): Prisma__RiskClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> evidence = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | 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 Mitigation model */ interface MitigationFieldRefs { readonly id: FieldRef<"Mitigation", 'String'> readonly riskId: FieldRef<"Mitigation", 'String'> readonly ownerDisplayName: FieldRef<"Mitigation", 'String'> readonly title: FieldRef<"Mitigation", 'String'> readonly description: FieldRef<"Mitigation", 'String'> readonly status: FieldRef<"Mitigation", 'MitigationStatus'> readonly progressPercent: FieldRef<"Mitigation", 'Int'> readonly effectivenessPercent: FieldRef<"Mitigation", 'Int'> readonly dueDate: FieldRef<"Mitigation", 'DateTime'> readonly sequence: FieldRef<"Mitigation", 'Int'> readonly createdAt: FieldRef<"Mitigation", 'DateTime'> readonly updatedAt: FieldRef<"Mitigation", 'DateTime'> } // Custom InputTypes /** * Mitigation findUnique */ export type MitigationFindUniqueArgs = { /** * Select specific fields to fetch from the Mitigation */ select?: MitigationSelect | null /** * Choose, which related nodes to fetch as well */ include?: MitigationInclude | null /** * Filter, which Mitigation to fetch. */ where: MitigationWhereUniqueInput } /** * Mitigation findUniqueOrThrow */ export type MitigationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Mitigation */ select?: MitigationSelect | null /** * Choose, which related nodes to fetch as well */ include?: MitigationInclude | null /** * Filter, which Mitigation to fetch. */ where: MitigationWhereUniqueInput } /** * Mitigation findFirst */ export type MitigationFindFirstArgs = { /** * Select specific fields to fetch from the Mitigation */ select?: MitigationSelect | null /** * Choose, which related nodes to fetch as well */ include?: MitigationInclude | null /** * Filter, which Mitigation to fetch. */ where?: MitigationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Mitigations to fetch. */ orderBy?: MitigationOrderByWithRelationInput | MitigationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Mitigations. */ cursor?: MitigationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Mitigations 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` Mitigations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Mitigations. */ distinct?: MitigationScalarFieldEnum | MitigationScalarFieldEnum[] } /** * Mitigation findFirstOrThrow */ export type MitigationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Mitigation */ select?: MitigationSelect | null /** * Choose, which related nodes to fetch as well */ include?: MitigationInclude | null /** * Filter, which Mitigation to fetch. */ where?: MitigationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Mitigations to fetch. */ orderBy?: MitigationOrderByWithRelationInput | MitigationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Mitigations. */ cursor?: MitigationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Mitigations 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` Mitigations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Mitigations. */ distinct?: MitigationScalarFieldEnum | MitigationScalarFieldEnum[] } /** * Mitigation findMany */ export type MitigationFindManyArgs = { /** * Select specific fields to fetch from the Mitigation */ select?: MitigationSelect | null /** * Choose, which related nodes to fetch as well */ include?: MitigationInclude | null /** * Filter, which Mitigations to fetch. */ where?: MitigationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Mitigations to fetch. */ orderBy?: MitigationOrderByWithRelationInput | MitigationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Mitigations. */ cursor?: MitigationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Mitigations 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` Mitigations. */ skip?: number distinct?: MitigationScalarFieldEnum | MitigationScalarFieldEnum[] } /** * Mitigation create */ export type MitigationCreateArgs = { /** * Select specific fields to fetch from the Mitigation */ select?: MitigationSelect | null /** * Choose, which related nodes to fetch as well */ include?: MitigationInclude | null /** * The data needed to create a Mitigation. */ data: XOR } /** * Mitigation createMany */ export type MitigationCreateManyArgs = { /** * The data used to create many Mitigations. */ data: MitigationCreateManyInput | MitigationCreateManyInput[] skipDuplicates?: boolean } /** * Mitigation createManyAndReturn */ export type MitigationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Mitigation */ select?: MitigationSelectCreateManyAndReturn | null /** * The data used to create many Mitigations. */ data: MitigationCreateManyInput | MitigationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: MitigationIncludeCreateManyAndReturn | null } /** * Mitigation update */ export type MitigationUpdateArgs = { /** * Select specific fields to fetch from the Mitigation */ select?: MitigationSelect | null /** * Choose, which related nodes to fetch as well */ include?: MitigationInclude | null /** * The data needed to update a Mitigation. */ data: XOR /** * Choose, which Mitigation to update. */ where: MitigationWhereUniqueInput } /** * Mitigation updateMany */ export type MitigationUpdateManyArgs = { /** * The data used to update Mitigations. */ data: XOR /** * Filter which Mitigations to update */ where?: MitigationWhereInput } /** * Mitigation upsert */ export type MitigationUpsertArgs = { /** * Select specific fields to fetch from the Mitigation */ select?: MitigationSelect | null /** * Choose, which related nodes to fetch as well */ include?: MitigationInclude | null /** * The filter to search for the Mitigation to update in case it exists. */ where: MitigationWhereUniqueInput /** * In case the Mitigation found by the `where` argument doesn't exist, create a new Mitigation with this data. */ create: XOR /** * In case the Mitigation was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Mitigation delete */ export type MitigationDeleteArgs = { /** * Select specific fields to fetch from the Mitigation */ select?: MitigationSelect | null /** * Choose, which related nodes to fetch as well */ include?: MitigationInclude | null /** * Filter which Mitigation to delete. */ where: MitigationWhereUniqueInput } /** * Mitigation deleteMany */ export type MitigationDeleteManyArgs = { /** * Filter which Mitigations to delete */ where?: MitigationWhereInput } /** * Mitigation.evidence */ export type Mitigation$evidenceArgs = { /** * Select specific fields to fetch from the Evidence */ select?: EvidenceSelect | null /** * Choose, which related nodes to fetch as well */ include?: EvidenceInclude | null where?: EvidenceWhereInput orderBy?: EvidenceOrderByWithRelationInput | EvidenceOrderByWithRelationInput[] cursor?: EvidenceWhereUniqueInput take?: number skip?: number distinct?: EvidenceScalarFieldEnum | EvidenceScalarFieldEnum[] } /** * Mitigation without action */ export type MitigationDefaultArgs = { /** * Select specific fields to fetch from the Mitigation */ select?: MitigationSelect | null /** * Choose, which related nodes to fetch as well */ include?: MitigationInclude | null } /** * Model Evidence */ export type AggregateEvidence = { _count: EvidenceCountAggregateOutputType | null _min: EvidenceMinAggregateOutputType | null _max: EvidenceMaxAggregateOutputType | null } export type EvidenceMinAggregateOutputType = { id: string | null projectId: string | null riskId: string | null mitigationId: string | null type: string | null title: string | null uri: string | null createdById: string | null createdAt: Date | null updatedAt: Date | null } export type EvidenceMaxAggregateOutputType = { id: string | null projectId: string | null riskId: string | null mitigationId: string | null type: string | null title: string | null uri: string | null createdById: string | null createdAt: Date | null updatedAt: Date | null } export type EvidenceCountAggregateOutputType = { id: number projectId: number riskId: number mitigationId: number type: number title: number uri: number createdById: number createdAt: number updatedAt: number _all: number } export type EvidenceMinAggregateInputType = { id?: true projectId?: true riskId?: true mitigationId?: true type?: true title?: true uri?: true createdById?: true createdAt?: true updatedAt?: true } export type EvidenceMaxAggregateInputType = { id?: true projectId?: true riskId?: true mitigationId?: true type?: true title?: true uri?: true createdById?: true createdAt?: true updatedAt?: true } export type EvidenceCountAggregateInputType = { id?: true projectId?: true riskId?: true mitigationId?: true type?: true title?: true uri?: true createdById?: true createdAt?: true updatedAt?: true _all?: true } export type EvidenceAggregateArgs = { /** * Filter which Evidence to aggregate. */ where?: EvidenceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Evidences to fetch. */ orderBy?: EvidenceOrderByWithRelationInput | EvidenceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EvidenceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Evidences 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` Evidences. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Evidences **/ _count?: true | EvidenceCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EvidenceMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EvidenceMaxAggregateInputType } export type GetEvidenceAggregateType = { [P in keyof T & keyof AggregateEvidence]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type EvidenceGroupByArgs = { where?: EvidenceWhereInput orderBy?: EvidenceOrderByWithAggregationInput | EvidenceOrderByWithAggregationInput[] by: EvidenceScalarFieldEnum[] | EvidenceScalarFieldEnum having?: EvidenceScalarWhereWithAggregatesInput take?: number skip?: number _count?: EvidenceCountAggregateInputType | true _min?: EvidenceMinAggregateInputType _max?: EvidenceMaxAggregateInputType } export type EvidenceGroupByOutputType = { id: string projectId: string riskId: string | null mitigationId: string | null type: string title: string uri: string | null createdById: string | null createdAt: Date updatedAt: Date _count: EvidenceCountAggregateOutputType | null _min: EvidenceMinAggregateOutputType | null _max: EvidenceMaxAggregateOutputType | null } type GetEvidenceGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof EvidenceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type EvidenceSelect = $Extensions.GetSelect<{ id?: boolean projectId?: boolean riskId?: boolean mitigationId?: boolean type?: boolean title?: boolean uri?: boolean createdById?: boolean createdAt?: boolean updatedAt?: boolean risk?: boolean | Evidence$riskArgs mitigation?: boolean | Evidence$mitigationArgs }, ExtArgs["result"]["evidence"]> export type EvidenceSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean projectId?: boolean riskId?: boolean mitigationId?: boolean type?: boolean title?: boolean uri?: boolean createdById?: boolean createdAt?: boolean updatedAt?: boolean risk?: boolean | Evidence$riskArgs mitigation?: boolean | Evidence$mitigationArgs }, ExtArgs["result"]["evidence"]> export type EvidenceSelectScalar = { id?: boolean projectId?: boolean riskId?: boolean mitigationId?: boolean type?: boolean title?: boolean uri?: boolean createdById?: boolean createdAt?: boolean updatedAt?: boolean } export type EvidenceInclude = { risk?: boolean | Evidence$riskArgs mitigation?: boolean | Evidence$mitigationArgs } export type EvidenceIncludeCreateManyAndReturn = { risk?: boolean | Evidence$riskArgs mitigation?: boolean | Evidence$mitigationArgs } export type $EvidencePayload = { name: "Evidence" objects: { risk: Prisma.$RiskPayload | null mitigation: Prisma.$MitigationPayload | null } scalars: $Extensions.GetPayloadResult<{ id: string projectId: string riskId: string | null mitigationId: string | null type: string title: string uri: string | null createdById: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["evidence"]> composites: {} } type EvidenceGetPayload = $Result.GetResult type EvidenceCountArgs = Omit & { select?: EvidenceCountAggregateInputType | true } export interface EvidenceDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Evidence'], meta: { name: 'Evidence' } } /** * Find zero or one Evidence that matches the filter. * @param {EvidenceFindUniqueArgs} args - Arguments to find a Evidence * @example * // Get one Evidence * const evidence = await prisma.evidence.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__EvidenceClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Evidence that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EvidenceFindUniqueOrThrowArgs} args - Arguments to find a Evidence * @example * // Get one Evidence * const evidence = await prisma.evidence.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__EvidenceClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Evidence 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 {EvidenceFindFirstArgs} args - Arguments to find a Evidence * @example * // Get one Evidence * const evidence = await prisma.evidence.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__EvidenceClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Evidence 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 {EvidenceFindFirstOrThrowArgs} args - Arguments to find a Evidence * @example * // Get one Evidence * const evidence = await prisma.evidence.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__EvidenceClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Evidences 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 {EvidenceFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Evidences * const evidences = await prisma.evidence.findMany() * * // Get first 10 Evidences * const evidences = await prisma.evidence.findMany({ take: 10 }) * * // Only select the `id` * const evidenceWithIdOnly = await prisma.evidence.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Evidence. * @param {EvidenceCreateArgs} args - Arguments to create a Evidence. * @example * // Create one Evidence * const Evidence = await prisma.evidence.create({ * data: { * // ... data to create a Evidence * } * }) * */ create(args: SelectSubset>): Prisma__EvidenceClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Evidences. * @param {EvidenceCreateManyArgs} args - Arguments to create many Evidences. * @example * // Create many Evidences * const evidence = await prisma.evidence.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Evidences and returns the data saved in the database. * @param {EvidenceCreateManyAndReturnArgs} args - Arguments to create many Evidences. * @example * // Create many Evidences * const evidence = await prisma.evidence.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Evidences and only return the `id` * const evidenceWithIdOnly = await prisma.evidence.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">> /** * Delete a Evidence. * @param {EvidenceDeleteArgs} args - Arguments to delete one Evidence. * @example * // Delete one Evidence * const Evidence = await prisma.evidence.delete({ * where: { * // ... filter to delete one Evidence * } * }) * */ delete(args: SelectSubset>): Prisma__EvidenceClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Evidence. * @param {EvidenceUpdateArgs} args - Arguments to update one Evidence. * @example * // Update one Evidence * const evidence = await prisma.evidence.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__EvidenceClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Evidences. * @param {EvidenceDeleteManyArgs} args - Arguments to filter Evidences to delete. * @example * // Delete a few Evidences * const { count } = await prisma.evidence.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Evidences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EvidenceUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Evidences * const evidence = await prisma.evidence.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Evidence. * @param {EvidenceUpsertArgs} args - Arguments to update or create a Evidence. * @example * // Update or create a Evidence * const evidence = await prisma.evidence.upsert({ * create: { * // ... data to create a Evidence * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Evidence we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__EvidenceClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Evidences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EvidenceCountArgs} args - Arguments to filter Evidences to count. * @example * // Count the number of Evidences * const count = await prisma.evidence.count({ * where: { * // ... the filter for the Evidences 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 Evidence. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EvidenceAggregateArgs} 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 Evidence. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EvidenceGroupByArgs} 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 EvidenceGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EvidenceGroupByArgs['orderBy'] } : { orderBy?: EvidenceGroupByArgs['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 ? GetEvidenceGroupByPayload : Prisma.PrismaPromise /** * Fields of the Evidence model */ readonly fields: EvidenceFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Evidence. * 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__EvidenceClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" risk = {}>(args?: Subset>): Prisma__RiskClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> mitigation = {}>(args?: Subset>): Prisma__MitigationClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> /** * 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 Evidence model */ interface EvidenceFieldRefs { readonly id: FieldRef<"Evidence", 'String'> readonly projectId: FieldRef<"Evidence", 'String'> readonly riskId: FieldRef<"Evidence", 'String'> readonly mitigationId: FieldRef<"Evidence", 'String'> readonly type: FieldRef<"Evidence", 'String'> readonly title: FieldRef<"Evidence", 'String'> readonly uri: FieldRef<"Evidence", 'String'> readonly createdById: FieldRef<"Evidence", 'String'> readonly createdAt: FieldRef<"Evidence", 'DateTime'> readonly updatedAt: FieldRef<"Evidence", 'DateTime'> } // Custom InputTypes /** * Evidence findUnique */ export type EvidenceFindUniqueArgs = { /** * Select specific fields to fetch from the Evidence */ select?: EvidenceSelect | null /** * Choose, which related nodes to fetch as well */ include?: EvidenceInclude | null /** * Filter, which Evidence to fetch. */ where: EvidenceWhereUniqueInput } /** * Evidence findUniqueOrThrow */ export type EvidenceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Evidence */ select?: EvidenceSelect | null /** * Choose, which related nodes to fetch as well */ include?: EvidenceInclude | null /** * Filter, which Evidence to fetch. */ where: EvidenceWhereUniqueInput } /** * Evidence findFirst */ export type EvidenceFindFirstArgs = { /** * Select specific fields to fetch from the Evidence */ select?: EvidenceSelect | null /** * Choose, which related nodes to fetch as well */ include?: EvidenceInclude | null /** * Filter, which Evidence to fetch. */ where?: EvidenceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Evidences to fetch. */ orderBy?: EvidenceOrderByWithRelationInput | EvidenceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Evidences. */ cursor?: EvidenceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Evidences 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` Evidences. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Evidences. */ distinct?: EvidenceScalarFieldEnum | EvidenceScalarFieldEnum[] } /** * Evidence findFirstOrThrow */ export type EvidenceFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Evidence */ select?: EvidenceSelect | null /** * Choose, which related nodes to fetch as well */ include?: EvidenceInclude | null /** * Filter, which Evidence to fetch. */ where?: EvidenceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Evidences to fetch. */ orderBy?: EvidenceOrderByWithRelationInput | EvidenceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Evidences. */ cursor?: EvidenceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Evidences 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` Evidences. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Evidences. */ distinct?: EvidenceScalarFieldEnum | EvidenceScalarFieldEnum[] } /** * Evidence findMany */ export type EvidenceFindManyArgs = { /** * Select specific fields to fetch from the Evidence */ select?: EvidenceSelect | null /** * Choose, which related nodes to fetch as well */ include?: EvidenceInclude | null /** * Filter, which Evidences to fetch. */ where?: EvidenceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Evidences to fetch. */ orderBy?: EvidenceOrderByWithRelationInput | EvidenceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Evidences. */ cursor?: EvidenceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Evidences 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` Evidences. */ skip?: number distinct?: EvidenceScalarFieldEnum | EvidenceScalarFieldEnum[] } /** * Evidence create */ export type EvidenceCreateArgs = { /** * Select specific fields to fetch from the Evidence */ select?: EvidenceSelect | null /** * Choose, which related nodes to fetch as well */ include?: EvidenceInclude | null /** * The data needed to create a Evidence. */ data: XOR } /** * Evidence createMany */ export type EvidenceCreateManyArgs = { /** * The data used to create many Evidences. */ data: EvidenceCreateManyInput | EvidenceCreateManyInput[] skipDuplicates?: boolean } /** * Evidence createManyAndReturn */ export type EvidenceCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Evidence */ select?: EvidenceSelectCreateManyAndReturn | null /** * The data used to create many Evidences. */ data: EvidenceCreateManyInput | EvidenceCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: EvidenceIncludeCreateManyAndReturn | null } /** * Evidence update */ export type EvidenceUpdateArgs = { /** * Select specific fields to fetch from the Evidence */ select?: EvidenceSelect | null /** * Choose, which related nodes to fetch as well */ include?: EvidenceInclude | null /** * The data needed to update a Evidence. */ data: XOR /** * Choose, which Evidence to update. */ where: EvidenceWhereUniqueInput } /** * Evidence updateMany */ export type EvidenceUpdateManyArgs = { /** * The data used to update Evidences. */ data: XOR /** * Filter which Evidences to update */ where?: EvidenceWhereInput } /** * Evidence upsert */ export type EvidenceUpsertArgs = { /** * Select specific fields to fetch from the Evidence */ select?: EvidenceSelect | null /** * Choose, which related nodes to fetch as well */ include?: EvidenceInclude | null /** * The filter to search for the Evidence to update in case it exists. */ where: EvidenceWhereUniqueInput /** * In case the Evidence found by the `where` argument doesn't exist, create a new Evidence with this data. */ create: XOR /** * In case the Evidence was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Evidence delete */ export type EvidenceDeleteArgs = { /** * Select specific fields to fetch from the Evidence */ select?: EvidenceSelect | null /** * Choose, which related nodes to fetch as well */ include?: EvidenceInclude | null /** * Filter which Evidence to delete. */ where: EvidenceWhereUniqueInput } /** * Evidence deleteMany */ export type EvidenceDeleteManyArgs = { /** * Filter which Evidences to delete */ where?: EvidenceWhereInput } /** * Evidence.risk */ export type Evidence$riskArgs = { /** * Select specific fields to fetch from the Risk */ select?: RiskSelect | null /** * Choose, which related nodes to fetch as well */ include?: RiskInclude | null where?: RiskWhereInput } /** * Evidence.mitigation */ export type Evidence$mitigationArgs = { /** * Select specific fields to fetch from the Mitigation */ select?: MitigationSelect | null /** * Choose, which related nodes to fetch as well */ include?: MitigationInclude | null where?: MitigationWhereInput } /** * Evidence without action */ export type EvidenceDefaultArgs = { /** * Select specific fields to fetch from the Evidence */ select?: EvidenceSelect | null /** * Choose, which related nodes to fetch as well */ include?: EvidenceInclude | null } /** * Model Indicator */ export type AggregateIndicator = { _count: IndicatorCountAggregateOutputType | null _min: IndicatorMinAggregateOutputType | null _max: IndicatorMaxAggregateOutputType | null } export type IndicatorMinAggregateOutputType = { id: string | null projectId: string | null name: string | null dimension: string | null measurand: string | null unit: string | null target: string | null interpretationRule: string | null createdAt: Date | null updatedAt: Date | null } export type IndicatorMaxAggregateOutputType = { id: string | null projectId: string | null name: string | null dimension: string | null measurand: string | null unit: string | null target: string | null interpretationRule: string | null createdAt: Date | null updatedAt: Date | null } export type IndicatorCountAggregateOutputType = { id: number projectId: number name: number dimension: number measurand: number unit: number target: number interpretationRule: number createdAt: number updatedAt: number _all: number } export type IndicatorMinAggregateInputType = { id?: true projectId?: true name?: true dimension?: true measurand?: true unit?: true target?: true interpretationRule?: true createdAt?: true updatedAt?: true } export type IndicatorMaxAggregateInputType = { id?: true projectId?: true name?: true dimension?: true measurand?: true unit?: true target?: true interpretationRule?: true createdAt?: true updatedAt?: true } export type IndicatorCountAggregateInputType = { id?: true projectId?: true name?: true dimension?: true measurand?: true unit?: true target?: true interpretationRule?: true createdAt?: true updatedAt?: true _all?: true } export type IndicatorAggregateArgs = { /** * Filter which Indicator to aggregate. */ where?: IndicatorWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Indicators to fetch. */ orderBy?: IndicatorOrderByWithRelationInput | IndicatorOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: IndicatorWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Indicators 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` Indicators. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Indicators **/ _count?: true | IndicatorCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: IndicatorMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: IndicatorMaxAggregateInputType } export type GetIndicatorAggregateType = { [P in keyof T & keyof AggregateIndicator]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type IndicatorGroupByArgs = { where?: IndicatorWhereInput orderBy?: IndicatorOrderByWithAggregationInput | IndicatorOrderByWithAggregationInput[] by: IndicatorScalarFieldEnum[] | IndicatorScalarFieldEnum having?: IndicatorScalarWhereWithAggregatesInput take?: number skip?: number _count?: IndicatorCountAggregateInputType | true _min?: IndicatorMinAggregateInputType _max?: IndicatorMaxAggregateInputType } export type IndicatorGroupByOutputType = { id: string projectId: string name: string dimension: string measurand: string unit: string target: string | null interpretationRule: string | null createdAt: Date updatedAt: Date _count: IndicatorCountAggregateOutputType | null _min: IndicatorMinAggregateOutputType | null _max: IndicatorMaxAggregateOutputType | null } type GetIndicatorGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof IndicatorGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type IndicatorSelect = $Extensions.GetSelect<{ id?: boolean projectId?: boolean name?: boolean dimension?: boolean measurand?: boolean unit?: boolean target?: boolean interpretationRule?: boolean createdAt?: boolean updatedAt?: boolean project?: boolean | ProjectDefaultArgs }, ExtArgs["result"]["indicator"]> export type IndicatorSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean projectId?: boolean name?: boolean dimension?: boolean measurand?: boolean unit?: boolean target?: boolean interpretationRule?: boolean createdAt?: boolean updatedAt?: boolean project?: boolean | ProjectDefaultArgs }, ExtArgs["result"]["indicator"]> export type IndicatorSelectScalar = { id?: boolean projectId?: boolean name?: boolean dimension?: boolean measurand?: boolean unit?: boolean target?: boolean interpretationRule?: boolean createdAt?: boolean updatedAt?: boolean } export type IndicatorInclude = { project?: boolean | ProjectDefaultArgs } export type IndicatorIncludeCreateManyAndReturn = { project?: boolean | ProjectDefaultArgs } export type $IndicatorPayload = { name: "Indicator" objects: { project: Prisma.$ProjectPayload } scalars: $Extensions.GetPayloadResult<{ id: string projectId: string name: string dimension: string measurand: string unit: string target: string | null interpretationRule: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["indicator"]> composites: {} } type IndicatorGetPayload = $Result.GetResult type IndicatorCountArgs = Omit & { select?: IndicatorCountAggregateInputType | true } export interface IndicatorDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Indicator'], meta: { name: 'Indicator' } } /** * Find zero or one Indicator that matches the filter. * @param {IndicatorFindUniqueArgs} args - Arguments to find a Indicator * @example * // Get one Indicator * const indicator = await prisma.indicator.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__IndicatorClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Indicator that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {IndicatorFindUniqueOrThrowArgs} args - Arguments to find a Indicator * @example * // Get one Indicator * const indicator = await prisma.indicator.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__IndicatorClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Indicator 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 {IndicatorFindFirstArgs} args - Arguments to find a Indicator * @example * // Get one Indicator * const indicator = await prisma.indicator.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__IndicatorClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Indicator 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 {IndicatorFindFirstOrThrowArgs} args - Arguments to find a Indicator * @example * // Get one Indicator * const indicator = await prisma.indicator.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__IndicatorClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Indicators 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 {IndicatorFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Indicators * const indicators = await prisma.indicator.findMany() * * // Get first 10 Indicators * const indicators = await prisma.indicator.findMany({ take: 10 }) * * // Only select the `id` * const indicatorWithIdOnly = await prisma.indicator.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Indicator. * @param {IndicatorCreateArgs} args - Arguments to create a Indicator. * @example * // Create one Indicator * const Indicator = await prisma.indicator.create({ * data: { * // ... data to create a Indicator * } * }) * */ create(args: SelectSubset>): Prisma__IndicatorClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Indicators. * @param {IndicatorCreateManyArgs} args - Arguments to create many Indicators. * @example * // Create many Indicators * const indicator = await prisma.indicator.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Indicators and returns the data saved in the database. * @param {IndicatorCreateManyAndReturnArgs} args - Arguments to create many Indicators. * @example * // Create many Indicators * const indicator = await prisma.indicator.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Indicators and only return the `id` * const indicatorWithIdOnly = await prisma.indicator.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">> /** * Delete a Indicator. * @param {IndicatorDeleteArgs} args - Arguments to delete one Indicator. * @example * // Delete one Indicator * const Indicator = await prisma.indicator.delete({ * where: { * // ... filter to delete one Indicator * } * }) * */ delete(args: SelectSubset>): Prisma__IndicatorClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Indicator. * @param {IndicatorUpdateArgs} args - Arguments to update one Indicator. * @example * // Update one Indicator * const indicator = await prisma.indicator.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__IndicatorClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Indicators. * @param {IndicatorDeleteManyArgs} args - Arguments to filter Indicators to delete. * @example * // Delete a few Indicators * const { count } = await prisma.indicator.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Indicators. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IndicatorUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Indicators * const indicator = await prisma.indicator.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Indicator. * @param {IndicatorUpsertArgs} args - Arguments to update or create a Indicator. * @example * // Update or create a Indicator * const indicator = await prisma.indicator.upsert({ * create: { * // ... data to create a Indicator * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Indicator we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__IndicatorClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Indicators. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IndicatorCountArgs} args - Arguments to filter Indicators to count. * @example * // Count the number of Indicators * const count = await prisma.indicator.count({ * where: { * // ... the filter for the Indicators 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 Indicator. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IndicatorAggregateArgs} 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 Indicator. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IndicatorGroupByArgs} 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 IndicatorGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: IndicatorGroupByArgs['orderBy'] } : { orderBy?: IndicatorGroupByArgs['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 ? GetIndicatorGroupByPayload : Prisma.PrismaPromise /** * Fields of the Indicator model */ readonly fields: IndicatorFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Indicator. * 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__IndicatorClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" project = {}>(args?: Subset>): Prisma__ProjectClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * 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 Indicator model */ interface IndicatorFieldRefs { readonly id: FieldRef<"Indicator", 'String'> readonly projectId: FieldRef<"Indicator", 'String'> readonly name: FieldRef<"Indicator", 'String'> readonly dimension: FieldRef<"Indicator", 'String'> readonly measurand: FieldRef<"Indicator", 'String'> readonly unit: FieldRef<"Indicator", 'String'> readonly target: FieldRef<"Indicator", 'String'> readonly interpretationRule: FieldRef<"Indicator", 'String'> readonly createdAt: FieldRef<"Indicator", 'DateTime'> readonly updatedAt: FieldRef<"Indicator", 'DateTime'> } // Custom InputTypes /** * Indicator findUnique */ export type IndicatorFindUniqueArgs = { /** * Select specific fields to fetch from the Indicator */ select?: IndicatorSelect | null /** * Choose, which related nodes to fetch as well */ include?: IndicatorInclude | null /** * Filter, which Indicator to fetch. */ where: IndicatorWhereUniqueInput } /** * Indicator findUniqueOrThrow */ export type IndicatorFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Indicator */ select?: IndicatorSelect | null /** * Choose, which related nodes to fetch as well */ include?: IndicatorInclude | null /** * Filter, which Indicator to fetch. */ where: IndicatorWhereUniqueInput } /** * Indicator findFirst */ export type IndicatorFindFirstArgs = { /** * Select specific fields to fetch from the Indicator */ select?: IndicatorSelect | null /** * Choose, which related nodes to fetch as well */ include?: IndicatorInclude | null /** * Filter, which Indicator to fetch. */ where?: IndicatorWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Indicators to fetch. */ orderBy?: IndicatorOrderByWithRelationInput | IndicatorOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Indicators. */ cursor?: IndicatorWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Indicators 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` Indicators. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Indicators. */ distinct?: IndicatorScalarFieldEnum | IndicatorScalarFieldEnum[] } /** * Indicator findFirstOrThrow */ export type IndicatorFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Indicator */ select?: IndicatorSelect | null /** * Choose, which related nodes to fetch as well */ include?: IndicatorInclude | null /** * Filter, which Indicator to fetch. */ where?: IndicatorWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Indicators to fetch. */ orderBy?: IndicatorOrderByWithRelationInput | IndicatorOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Indicators. */ cursor?: IndicatorWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Indicators 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` Indicators. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Indicators. */ distinct?: IndicatorScalarFieldEnum | IndicatorScalarFieldEnum[] } /** * Indicator findMany */ export type IndicatorFindManyArgs = { /** * Select specific fields to fetch from the Indicator */ select?: IndicatorSelect | null /** * Choose, which related nodes to fetch as well */ include?: IndicatorInclude | null /** * Filter, which Indicators to fetch. */ where?: IndicatorWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Indicators to fetch. */ orderBy?: IndicatorOrderByWithRelationInput | IndicatorOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Indicators. */ cursor?: IndicatorWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Indicators 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` Indicators. */ skip?: number distinct?: IndicatorScalarFieldEnum | IndicatorScalarFieldEnum[] } /** * Indicator create */ export type IndicatorCreateArgs = { /** * Select specific fields to fetch from the Indicator */ select?: IndicatorSelect | null /** * Choose, which related nodes to fetch as well */ include?: IndicatorInclude | null /** * The data needed to create a Indicator. */ data: XOR } /** * Indicator createMany */ export type IndicatorCreateManyArgs = { /** * The data used to create many Indicators. */ data: IndicatorCreateManyInput | IndicatorCreateManyInput[] skipDuplicates?: boolean } /** * Indicator createManyAndReturn */ export type IndicatorCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Indicator */ select?: IndicatorSelectCreateManyAndReturn | null /** * The data used to create many Indicators. */ data: IndicatorCreateManyInput | IndicatorCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: IndicatorIncludeCreateManyAndReturn | null } /** * Indicator update */ export type IndicatorUpdateArgs = { /** * Select specific fields to fetch from the Indicator */ select?: IndicatorSelect | null /** * Choose, which related nodes to fetch as well */ include?: IndicatorInclude | null /** * The data needed to update a Indicator. */ data: XOR /** * Choose, which Indicator to update. */ where: IndicatorWhereUniqueInput } /** * Indicator updateMany */ export type IndicatorUpdateManyArgs = { /** * The data used to update Indicators. */ data: XOR /** * Filter which Indicators to update */ where?: IndicatorWhereInput } /** * Indicator upsert */ export type IndicatorUpsertArgs = { /** * Select specific fields to fetch from the Indicator */ select?: IndicatorSelect | null /** * Choose, which related nodes to fetch as well */ include?: IndicatorInclude | null /** * The filter to search for the Indicator to update in case it exists. */ where: IndicatorWhereUniqueInput /** * In case the Indicator found by the `where` argument doesn't exist, create a new Indicator with this data. */ create: XOR /** * In case the Indicator was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Indicator delete */ export type IndicatorDeleteArgs = { /** * Select specific fields to fetch from the Indicator */ select?: IndicatorSelect | null /** * Choose, which related nodes to fetch as well */ include?: IndicatorInclude | null /** * Filter which Indicator to delete. */ where: IndicatorWhereUniqueInput } /** * Indicator deleteMany */ export type IndicatorDeleteManyArgs = { /** * Filter which Indicators to delete */ where?: IndicatorWhereInput } /** * Indicator without action */ export type IndicatorDefaultArgs = { /** * Select specific fields to fetch from the Indicator */ select?: IndicatorSelect | null /** * Choose, which related nodes to fetch as well */ include?: IndicatorInclude | null } /** * Model Experiment */ export type AggregateExperiment = { _count: ExperimentCountAggregateOutputType | null _min: ExperimentMinAggregateOutputType | null _max: ExperimentMaxAggregateOutputType | null } export type ExperimentMinAggregateOutputType = { id: string | null projectId: string | null name: string | null modelName: string | null selected: boolean | null createdAt: Date | null updatedAt: Date | null } export type ExperimentMaxAggregateOutputType = { id: string | null projectId: string | null name: string | null modelName: string | null selected: boolean | null createdAt: Date | null updatedAt: Date | null } export type ExperimentCountAggregateOutputType = { id: number projectId: number name: number modelName: number selected: number createdAt: number updatedAt: number _all: number } export type ExperimentMinAggregateInputType = { id?: true projectId?: true name?: true modelName?: true selected?: true createdAt?: true updatedAt?: true } export type ExperimentMaxAggregateInputType = { id?: true projectId?: true name?: true modelName?: true selected?: true createdAt?: true updatedAt?: true } export type ExperimentCountAggregateInputType = { id?: true projectId?: true name?: true modelName?: true selected?: true createdAt?: true updatedAt?: true _all?: true } export type ExperimentAggregateArgs = { /** * Filter which Experiment to aggregate. */ where?: ExperimentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Experiments to fetch. */ orderBy?: ExperimentOrderByWithRelationInput | ExperimentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ExperimentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Experiments 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` Experiments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Experiments **/ _count?: true | ExperimentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ExperimentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ExperimentMaxAggregateInputType } export type GetExperimentAggregateType = { [P in keyof T & keyof AggregateExperiment]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ExperimentGroupByArgs = { where?: ExperimentWhereInput orderBy?: ExperimentOrderByWithAggregationInput | ExperimentOrderByWithAggregationInput[] by: ExperimentScalarFieldEnum[] | ExperimentScalarFieldEnum having?: ExperimentScalarWhereWithAggregatesInput take?: number skip?: number _count?: ExperimentCountAggregateInputType | true _min?: ExperimentMinAggregateInputType _max?: ExperimentMaxAggregateInputType } export type ExperimentGroupByOutputType = { id: string projectId: string name: string modelName: string | null selected: boolean createdAt: Date updatedAt: Date _count: ExperimentCountAggregateOutputType | null _min: ExperimentMinAggregateOutputType | null _max: ExperimentMaxAggregateOutputType | null } type GetExperimentGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ExperimentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ExperimentSelect = $Extensions.GetSelect<{ id?: boolean projectId?: boolean name?: boolean modelName?: boolean selected?: boolean createdAt?: boolean updatedAt?: boolean project?: boolean | ProjectDefaultArgs metrics?: boolean | Experiment$metricsArgs _count?: boolean | ExperimentCountOutputTypeDefaultArgs }, ExtArgs["result"]["experiment"]> export type ExperimentSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean projectId?: boolean name?: boolean modelName?: boolean selected?: boolean createdAt?: boolean updatedAt?: boolean project?: boolean | ProjectDefaultArgs }, ExtArgs["result"]["experiment"]> export type ExperimentSelectScalar = { id?: boolean projectId?: boolean name?: boolean modelName?: boolean selected?: boolean createdAt?: boolean updatedAt?: boolean } export type ExperimentInclude = { project?: boolean | ProjectDefaultArgs metrics?: boolean | Experiment$metricsArgs _count?: boolean | ExperimentCountOutputTypeDefaultArgs } export type ExperimentIncludeCreateManyAndReturn = { project?: boolean | ProjectDefaultArgs } export type $ExperimentPayload = { name: "Experiment" objects: { project: Prisma.$ProjectPayload metrics: Prisma.$ModelMetricPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string projectId: string name: string modelName: string | null selected: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["experiment"]> composites: {} } type ExperimentGetPayload = $Result.GetResult type ExperimentCountArgs = Omit & { select?: ExperimentCountAggregateInputType | true } export interface ExperimentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Experiment'], meta: { name: 'Experiment' } } /** * Find zero or one Experiment that matches the filter. * @param {ExperimentFindUniqueArgs} args - Arguments to find a Experiment * @example * // Get one Experiment * const experiment = await prisma.experiment.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ExperimentClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Experiment that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ExperimentFindUniqueOrThrowArgs} args - Arguments to find a Experiment * @example * // Get one Experiment * const experiment = await prisma.experiment.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ExperimentClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Experiment 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 {ExperimentFindFirstArgs} args - Arguments to find a Experiment * @example * // Get one Experiment * const experiment = await prisma.experiment.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ExperimentClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Experiment 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 {ExperimentFindFirstOrThrowArgs} args - Arguments to find a Experiment * @example * // Get one Experiment * const experiment = await prisma.experiment.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ExperimentClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Experiments 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 {ExperimentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Experiments * const experiments = await prisma.experiment.findMany() * * // Get first 10 Experiments * const experiments = await prisma.experiment.findMany({ take: 10 }) * * // Only select the `id` * const experimentWithIdOnly = await prisma.experiment.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Experiment. * @param {ExperimentCreateArgs} args - Arguments to create a Experiment. * @example * // Create one Experiment * const Experiment = await prisma.experiment.create({ * data: { * // ... data to create a Experiment * } * }) * */ create(args: SelectSubset>): Prisma__ExperimentClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Experiments. * @param {ExperimentCreateManyArgs} args - Arguments to create many Experiments. * @example * // Create many Experiments * const experiment = await prisma.experiment.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Experiments and returns the data saved in the database. * @param {ExperimentCreateManyAndReturnArgs} args - Arguments to create many Experiments. * @example * // Create many Experiments * const experiment = await prisma.experiment.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Experiments and only return the `id` * const experimentWithIdOnly = await prisma.experiment.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">> /** * Delete a Experiment. * @param {ExperimentDeleteArgs} args - Arguments to delete one Experiment. * @example * // Delete one Experiment * const Experiment = await prisma.experiment.delete({ * where: { * // ... filter to delete one Experiment * } * }) * */ delete(args: SelectSubset>): Prisma__ExperimentClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Experiment. * @param {ExperimentUpdateArgs} args - Arguments to update one Experiment. * @example * // Update one Experiment * const experiment = await prisma.experiment.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ExperimentClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Experiments. * @param {ExperimentDeleteManyArgs} args - Arguments to filter Experiments to delete. * @example * // Delete a few Experiments * const { count } = await prisma.experiment.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Experiments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ExperimentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Experiments * const experiment = await prisma.experiment.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Experiment. * @param {ExperimentUpsertArgs} args - Arguments to update or create a Experiment. * @example * // Update or create a Experiment * const experiment = await prisma.experiment.upsert({ * create: { * // ... data to create a Experiment * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Experiment we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ExperimentClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Experiments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ExperimentCountArgs} args - Arguments to filter Experiments to count. * @example * // Count the number of Experiments * const count = await prisma.experiment.count({ * where: { * // ... the filter for the Experiments 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 Experiment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ExperimentAggregateArgs} 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 Experiment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ExperimentGroupByArgs} 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 ExperimentGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ExperimentGroupByArgs['orderBy'] } : { orderBy?: ExperimentGroupByArgs['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 ? GetExperimentGroupByPayload : Prisma.PrismaPromise /** * Fields of the Experiment model */ readonly fields: ExperimentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Experiment. * 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__ExperimentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" project = {}>(args?: Subset>): Prisma__ProjectClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> metrics = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | 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 Experiment model */ interface ExperimentFieldRefs { readonly id: FieldRef<"Experiment", 'String'> readonly projectId: FieldRef<"Experiment", 'String'> readonly name: FieldRef<"Experiment", 'String'> readonly modelName: FieldRef<"Experiment", 'String'> readonly selected: FieldRef<"Experiment", 'Boolean'> readonly createdAt: FieldRef<"Experiment", 'DateTime'> readonly updatedAt: FieldRef<"Experiment", 'DateTime'> } // Custom InputTypes /** * Experiment findUnique */ export type ExperimentFindUniqueArgs = { /** * Select specific fields to fetch from the Experiment */ select?: ExperimentSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExperimentInclude | null /** * Filter, which Experiment to fetch. */ where: ExperimentWhereUniqueInput } /** * Experiment findUniqueOrThrow */ export type ExperimentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Experiment */ select?: ExperimentSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExperimentInclude | null /** * Filter, which Experiment to fetch. */ where: ExperimentWhereUniqueInput } /** * Experiment findFirst */ export type ExperimentFindFirstArgs = { /** * Select specific fields to fetch from the Experiment */ select?: ExperimentSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExperimentInclude | null /** * Filter, which Experiment to fetch. */ where?: ExperimentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Experiments to fetch. */ orderBy?: ExperimentOrderByWithRelationInput | ExperimentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Experiments. */ cursor?: ExperimentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Experiments 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` Experiments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Experiments. */ distinct?: ExperimentScalarFieldEnum | ExperimentScalarFieldEnum[] } /** * Experiment findFirstOrThrow */ export type ExperimentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Experiment */ select?: ExperimentSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExperimentInclude | null /** * Filter, which Experiment to fetch. */ where?: ExperimentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Experiments to fetch. */ orderBy?: ExperimentOrderByWithRelationInput | ExperimentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Experiments. */ cursor?: ExperimentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Experiments 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` Experiments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Experiments. */ distinct?: ExperimentScalarFieldEnum | ExperimentScalarFieldEnum[] } /** * Experiment findMany */ export type ExperimentFindManyArgs = { /** * Select specific fields to fetch from the Experiment */ select?: ExperimentSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExperimentInclude | null /** * Filter, which Experiments to fetch. */ where?: ExperimentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Experiments to fetch. */ orderBy?: ExperimentOrderByWithRelationInput | ExperimentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Experiments. */ cursor?: ExperimentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Experiments 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` Experiments. */ skip?: number distinct?: ExperimentScalarFieldEnum | ExperimentScalarFieldEnum[] } /** * Experiment create */ export type ExperimentCreateArgs = { /** * Select specific fields to fetch from the Experiment */ select?: ExperimentSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExperimentInclude | null /** * The data needed to create a Experiment. */ data: XOR } /** * Experiment createMany */ export type ExperimentCreateManyArgs = { /** * The data used to create many Experiments. */ data: ExperimentCreateManyInput | ExperimentCreateManyInput[] skipDuplicates?: boolean } /** * Experiment createManyAndReturn */ export type ExperimentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Experiment */ select?: ExperimentSelectCreateManyAndReturn | null /** * The data used to create many Experiments. */ data: ExperimentCreateManyInput | ExperimentCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ExperimentIncludeCreateManyAndReturn | null } /** * Experiment update */ export type ExperimentUpdateArgs = { /** * Select specific fields to fetch from the Experiment */ select?: ExperimentSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExperimentInclude | null /** * The data needed to update a Experiment. */ data: XOR /** * Choose, which Experiment to update. */ where: ExperimentWhereUniqueInput } /** * Experiment updateMany */ export type ExperimentUpdateManyArgs = { /** * The data used to update Experiments. */ data: XOR /** * Filter which Experiments to update */ where?: ExperimentWhereInput } /** * Experiment upsert */ export type ExperimentUpsertArgs = { /** * Select specific fields to fetch from the Experiment */ select?: ExperimentSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExperimentInclude | null /** * The filter to search for the Experiment to update in case it exists. */ where: ExperimentWhereUniqueInput /** * In case the Experiment found by the `where` argument doesn't exist, create a new Experiment with this data. */ create: XOR /** * In case the Experiment was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Experiment delete */ export type ExperimentDeleteArgs = { /** * Select specific fields to fetch from the Experiment */ select?: ExperimentSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExperimentInclude | null /** * Filter which Experiment to delete. */ where: ExperimentWhereUniqueInput } /** * Experiment deleteMany */ export type ExperimentDeleteManyArgs = { /** * Filter which Experiments to delete */ where?: ExperimentWhereInput } /** * Experiment.metrics */ export type Experiment$metricsArgs = { /** * Select specific fields to fetch from the ModelMetric */ select?: ModelMetricSelect | null /** * Choose, which related nodes to fetch as well */ include?: ModelMetricInclude | null where?: ModelMetricWhereInput orderBy?: ModelMetricOrderByWithRelationInput | ModelMetricOrderByWithRelationInput[] cursor?: ModelMetricWhereUniqueInput take?: number skip?: number distinct?: ModelMetricScalarFieldEnum | ModelMetricScalarFieldEnum[] } /** * Experiment without action */ export type ExperimentDefaultArgs = { /** * Select specific fields to fetch from the Experiment */ select?: ExperimentSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExperimentInclude | null } /** * Model ModelMetric */ export type AggregateModelMetric = { _count: ModelMetricCountAggregateOutputType | null _avg: ModelMetricAvgAggregateOutputType | null _sum: ModelMetricSumAggregateOutputType | null _min: ModelMetricMinAggregateOutputType | null _max: ModelMetricMaxAggregateOutputType | null } export type ModelMetricAvgAggregateOutputType = { metricValue: number | null thresholdValue: number | null } export type ModelMetricSumAggregateOutputType = { metricValue: number | null thresholdValue: number | null } export type ModelMetricMinAggregateOutputType = { id: string | null experimentId: string | null metricName: string | null metricValue: number | null thresholdValue: number | null status: string | null measuredAt: Date | null createdAt: Date | null updatedAt: Date | null } export type ModelMetricMaxAggregateOutputType = { id: string | null experimentId: string | null metricName: string | null metricValue: number | null thresholdValue: number | null status: string | null measuredAt: Date | null createdAt: Date | null updatedAt: Date | null } export type ModelMetricCountAggregateOutputType = { id: number experimentId: number metricName: number metricValue: number thresholdValue: number status: number measuredAt: number createdAt: number updatedAt: number _all: number } export type ModelMetricAvgAggregateInputType = { metricValue?: true thresholdValue?: true } export type ModelMetricSumAggregateInputType = { metricValue?: true thresholdValue?: true } export type ModelMetricMinAggregateInputType = { id?: true experimentId?: true metricName?: true metricValue?: true thresholdValue?: true status?: true measuredAt?: true createdAt?: true updatedAt?: true } export type ModelMetricMaxAggregateInputType = { id?: true experimentId?: true metricName?: true metricValue?: true thresholdValue?: true status?: true measuredAt?: true createdAt?: true updatedAt?: true } export type ModelMetricCountAggregateInputType = { id?: true experimentId?: true metricName?: true metricValue?: true thresholdValue?: true status?: true measuredAt?: true createdAt?: true updatedAt?: true _all?: true } export type ModelMetricAggregateArgs = { /** * Filter which ModelMetric to aggregate. */ where?: ModelMetricWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ModelMetrics to fetch. */ orderBy?: ModelMetricOrderByWithRelationInput | ModelMetricOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ModelMetricWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ModelMetrics 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` ModelMetrics. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ModelMetrics **/ _count?: true | ModelMetricCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ModelMetricAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ModelMetricSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ModelMetricMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ModelMetricMaxAggregateInputType } export type GetModelMetricAggregateType = { [P in keyof T & keyof AggregateModelMetric]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ModelMetricGroupByArgs = { where?: ModelMetricWhereInput orderBy?: ModelMetricOrderByWithAggregationInput | ModelMetricOrderByWithAggregationInput[] by: ModelMetricScalarFieldEnum[] | ModelMetricScalarFieldEnum having?: ModelMetricScalarWhereWithAggregatesInput take?: number skip?: number _count?: ModelMetricCountAggregateInputType | true _avg?: ModelMetricAvgAggregateInputType _sum?: ModelMetricSumAggregateInputType _min?: ModelMetricMinAggregateInputType _max?: ModelMetricMaxAggregateInputType } export type ModelMetricGroupByOutputType = { id: string experimentId: string metricName: string metricValue: number thresholdValue: number | null status: string measuredAt: Date | null createdAt: Date updatedAt: Date _count: ModelMetricCountAggregateOutputType | null _avg: ModelMetricAvgAggregateOutputType | null _sum: ModelMetricSumAggregateOutputType | null _min: ModelMetricMinAggregateOutputType | null _max: ModelMetricMaxAggregateOutputType | null } type GetModelMetricGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ModelMetricGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ModelMetricSelect = $Extensions.GetSelect<{ id?: boolean experimentId?: boolean metricName?: boolean metricValue?: boolean thresholdValue?: boolean status?: boolean measuredAt?: boolean createdAt?: boolean updatedAt?: boolean experiment?: boolean | ExperimentDefaultArgs }, ExtArgs["result"]["modelMetric"]> export type ModelMetricSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean experimentId?: boolean metricName?: boolean metricValue?: boolean thresholdValue?: boolean status?: boolean measuredAt?: boolean createdAt?: boolean updatedAt?: boolean experiment?: boolean | ExperimentDefaultArgs }, ExtArgs["result"]["modelMetric"]> export type ModelMetricSelectScalar = { id?: boolean experimentId?: boolean metricName?: boolean metricValue?: boolean thresholdValue?: boolean status?: boolean measuredAt?: boolean createdAt?: boolean updatedAt?: boolean } export type ModelMetricInclude = { experiment?: boolean | ExperimentDefaultArgs } export type ModelMetricIncludeCreateManyAndReturn = { experiment?: boolean | ExperimentDefaultArgs } export type $ModelMetricPayload = { name: "ModelMetric" objects: { experiment: Prisma.$ExperimentPayload } scalars: $Extensions.GetPayloadResult<{ id: string experimentId: string metricName: string metricValue: number thresholdValue: number | null status: string measuredAt: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["modelMetric"]> composites: {} } type ModelMetricGetPayload = $Result.GetResult type ModelMetricCountArgs = Omit & { select?: ModelMetricCountAggregateInputType | true } export interface ModelMetricDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ModelMetric'], meta: { name: 'ModelMetric' } } /** * Find zero or one ModelMetric that matches the filter. * @param {ModelMetricFindUniqueArgs} args - Arguments to find a ModelMetric * @example * // Get one ModelMetric * const modelMetric = await prisma.modelMetric.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ModelMetricClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one ModelMetric that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ModelMetricFindUniqueOrThrowArgs} args - Arguments to find a ModelMetric * @example * // Get one ModelMetric * const modelMetric = await prisma.modelMetric.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ModelMetricClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first ModelMetric 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 {ModelMetricFindFirstArgs} args - Arguments to find a ModelMetric * @example * // Get one ModelMetric * const modelMetric = await prisma.modelMetric.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ModelMetricClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first ModelMetric 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 {ModelMetricFindFirstOrThrowArgs} args - Arguments to find a ModelMetric * @example * // Get one ModelMetric * const modelMetric = await prisma.modelMetric.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ModelMetricClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more ModelMetrics 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 {ModelMetricFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ModelMetrics * const modelMetrics = await prisma.modelMetric.findMany() * * // Get first 10 ModelMetrics * const modelMetrics = await prisma.modelMetric.findMany({ take: 10 }) * * // Only select the `id` * const modelMetricWithIdOnly = await prisma.modelMetric.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a ModelMetric. * @param {ModelMetricCreateArgs} args - Arguments to create a ModelMetric. * @example * // Create one ModelMetric * const ModelMetric = await prisma.modelMetric.create({ * data: { * // ... data to create a ModelMetric * } * }) * */ create(args: SelectSubset>): Prisma__ModelMetricClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many ModelMetrics. * @param {ModelMetricCreateManyArgs} args - Arguments to create many ModelMetrics. * @example * // Create many ModelMetrics * const modelMetric = await prisma.modelMetric.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ModelMetrics and returns the data saved in the database. * @param {ModelMetricCreateManyAndReturnArgs} args - Arguments to create many ModelMetrics. * @example * // Create many ModelMetrics * const modelMetric = await prisma.modelMetric.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ModelMetrics and only return the `id` * const modelMetricWithIdOnly = await prisma.modelMetric.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">> /** * Delete a ModelMetric. * @param {ModelMetricDeleteArgs} args - Arguments to delete one ModelMetric. * @example * // Delete one ModelMetric * const ModelMetric = await prisma.modelMetric.delete({ * where: { * // ... filter to delete one ModelMetric * } * }) * */ delete(args: SelectSubset>): Prisma__ModelMetricClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one ModelMetric. * @param {ModelMetricUpdateArgs} args - Arguments to update one ModelMetric. * @example * // Update one ModelMetric * const modelMetric = await prisma.modelMetric.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ModelMetricClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more ModelMetrics. * @param {ModelMetricDeleteManyArgs} args - Arguments to filter ModelMetrics to delete. * @example * // Delete a few ModelMetrics * const { count } = await prisma.modelMetric.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ModelMetrics. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ModelMetricUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ModelMetrics * const modelMetric = await prisma.modelMetric.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one ModelMetric. * @param {ModelMetricUpsertArgs} args - Arguments to update or create a ModelMetric. * @example * // Update or create a ModelMetric * const modelMetric = await prisma.modelMetric.upsert({ * create: { * // ... data to create a ModelMetric * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ModelMetric we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ModelMetricClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of ModelMetrics. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ModelMetricCountArgs} args - Arguments to filter ModelMetrics to count. * @example * // Count the number of ModelMetrics * const count = await prisma.modelMetric.count({ * where: { * // ... the filter for the ModelMetrics 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 ModelMetric. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ModelMetricAggregateArgs} 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 ModelMetric. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ModelMetricGroupByArgs} 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 ModelMetricGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ModelMetricGroupByArgs['orderBy'] } : { orderBy?: ModelMetricGroupByArgs['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 ? GetModelMetricGroupByPayload : Prisma.PrismaPromise /** * Fields of the ModelMetric model */ readonly fields: ModelMetricFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ModelMetric. * 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__ModelMetricClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" experiment = {}>(args?: Subset>): Prisma__ExperimentClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * 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 ModelMetric model */ interface ModelMetricFieldRefs { readonly id: FieldRef<"ModelMetric", 'String'> readonly experimentId: FieldRef<"ModelMetric", 'String'> readonly metricName: FieldRef<"ModelMetric", 'String'> readonly metricValue: FieldRef<"ModelMetric", 'Float'> readonly thresholdValue: FieldRef<"ModelMetric", 'Float'> readonly status: FieldRef<"ModelMetric", 'String'> readonly measuredAt: FieldRef<"ModelMetric", 'DateTime'> readonly createdAt: FieldRef<"ModelMetric", 'DateTime'> readonly updatedAt: FieldRef<"ModelMetric", 'DateTime'> } // Custom InputTypes /** * ModelMetric findUnique */ export type ModelMetricFindUniqueArgs = { /** * Select specific fields to fetch from the ModelMetric */ select?: ModelMetricSelect | null /** * Choose, which related nodes to fetch as well */ include?: ModelMetricInclude | null /** * Filter, which ModelMetric to fetch. */ where: ModelMetricWhereUniqueInput } /** * ModelMetric findUniqueOrThrow */ export type ModelMetricFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ModelMetric */ select?: ModelMetricSelect | null /** * Choose, which related nodes to fetch as well */ include?: ModelMetricInclude | null /** * Filter, which ModelMetric to fetch. */ where: ModelMetricWhereUniqueInput } /** * ModelMetric findFirst */ export type ModelMetricFindFirstArgs = { /** * Select specific fields to fetch from the ModelMetric */ select?: ModelMetricSelect | null /** * Choose, which related nodes to fetch as well */ include?: ModelMetricInclude | null /** * Filter, which ModelMetric to fetch. */ where?: ModelMetricWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ModelMetrics to fetch. */ orderBy?: ModelMetricOrderByWithRelationInput | ModelMetricOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ModelMetrics. */ cursor?: ModelMetricWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ModelMetrics 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` ModelMetrics. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ModelMetrics. */ distinct?: ModelMetricScalarFieldEnum | ModelMetricScalarFieldEnum[] } /** * ModelMetric findFirstOrThrow */ export type ModelMetricFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ModelMetric */ select?: ModelMetricSelect | null /** * Choose, which related nodes to fetch as well */ include?: ModelMetricInclude | null /** * Filter, which ModelMetric to fetch. */ where?: ModelMetricWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ModelMetrics to fetch. */ orderBy?: ModelMetricOrderByWithRelationInput | ModelMetricOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ModelMetrics. */ cursor?: ModelMetricWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ModelMetrics 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` ModelMetrics. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ModelMetrics. */ distinct?: ModelMetricScalarFieldEnum | ModelMetricScalarFieldEnum[] } /** * ModelMetric findMany */ export type ModelMetricFindManyArgs = { /** * Select specific fields to fetch from the ModelMetric */ select?: ModelMetricSelect | null /** * Choose, which related nodes to fetch as well */ include?: ModelMetricInclude | null /** * Filter, which ModelMetrics to fetch. */ where?: ModelMetricWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ModelMetrics to fetch. */ orderBy?: ModelMetricOrderByWithRelationInput | ModelMetricOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ModelMetrics. */ cursor?: ModelMetricWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ModelMetrics 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` ModelMetrics. */ skip?: number distinct?: ModelMetricScalarFieldEnum | ModelMetricScalarFieldEnum[] } /** * ModelMetric create */ export type ModelMetricCreateArgs = { /** * Select specific fields to fetch from the ModelMetric */ select?: ModelMetricSelect | null /** * Choose, which related nodes to fetch as well */ include?: ModelMetricInclude | null /** * The data needed to create a ModelMetric. */ data: XOR } /** * ModelMetric createMany */ export type ModelMetricCreateManyArgs = { /** * The data used to create many ModelMetrics. */ data: ModelMetricCreateManyInput | ModelMetricCreateManyInput[] skipDuplicates?: boolean } /** * ModelMetric createManyAndReturn */ export type ModelMetricCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ModelMetric */ select?: ModelMetricSelectCreateManyAndReturn | null /** * The data used to create many ModelMetrics. */ data: ModelMetricCreateManyInput | ModelMetricCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ModelMetricIncludeCreateManyAndReturn | null } /** * ModelMetric update */ export type ModelMetricUpdateArgs = { /** * Select specific fields to fetch from the ModelMetric */ select?: ModelMetricSelect | null /** * Choose, which related nodes to fetch as well */ include?: ModelMetricInclude | null /** * The data needed to update a ModelMetric. */ data: XOR /** * Choose, which ModelMetric to update. */ where: ModelMetricWhereUniqueInput } /** * ModelMetric updateMany */ export type ModelMetricUpdateManyArgs = { /** * The data used to update ModelMetrics. */ data: XOR /** * Filter which ModelMetrics to update */ where?: ModelMetricWhereInput } /** * ModelMetric upsert */ export type ModelMetricUpsertArgs = { /** * Select specific fields to fetch from the ModelMetric */ select?: ModelMetricSelect | null /** * Choose, which related nodes to fetch as well */ include?: ModelMetricInclude | null /** * The filter to search for the ModelMetric to update in case it exists. */ where: ModelMetricWhereUniqueInput /** * In case the ModelMetric found by the `where` argument doesn't exist, create a new ModelMetric with this data. */ create: XOR /** * In case the ModelMetric was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ModelMetric delete */ export type ModelMetricDeleteArgs = { /** * Select specific fields to fetch from the ModelMetric */ select?: ModelMetricSelect | null /** * Choose, which related nodes to fetch as well */ include?: ModelMetricInclude | null /** * Filter which ModelMetric to delete. */ where: ModelMetricWhereUniqueInput } /** * ModelMetric deleteMany */ export type ModelMetricDeleteManyArgs = { /** * Filter which ModelMetrics to delete */ where?: ModelMetricWhereInput } /** * ModelMetric without action */ export type ModelMetricDefaultArgs = { /** * Select specific fields to fetch from the ModelMetric */ select?: ModelMetricSelect | null /** * Choose, which related nodes to fetch as well */ include?: ModelMetricInclude | null } /** * Model GateEvaluation */ export type AggregateGateEvaluation = { _count: GateEvaluationCountAggregateOutputType | null _min: GateEvaluationMinAggregateOutputType | null _max: GateEvaluationMaxAggregateOutputType | null } export type GateEvaluationMinAggregateOutputType = { id: string | null projectId: string | null status: $Enums.GateStatus | null reviewStatus: string | null summary: string | null evaluatedByUserId: string | null evaluatedAt: Date | null reviewedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type GateEvaluationMaxAggregateOutputType = { id: string | null projectId: string | null status: $Enums.GateStatus | null reviewStatus: string | null summary: string | null evaluatedByUserId: string | null evaluatedAt: Date | null reviewedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type GateEvaluationCountAggregateOutputType = { id: number projectId: number status: number reviewStatus: number summary: number evaluatedByUserId: number evaluatedAt: number reviewedAt: number createdAt: number updatedAt: number _all: number } export type GateEvaluationMinAggregateInputType = { id?: true projectId?: true status?: true reviewStatus?: true summary?: true evaluatedByUserId?: true evaluatedAt?: true reviewedAt?: true createdAt?: true updatedAt?: true } export type GateEvaluationMaxAggregateInputType = { id?: true projectId?: true status?: true reviewStatus?: true summary?: true evaluatedByUserId?: true evaluatedAt?: true reviewedAt?: true createdAt?: true updatedAt?: true } export type GateEvaluationCountAggregateInputType = { id?: true projectId?: true status?: true reviewStatus?: true summary?: true evaluatedByUserId?: true evaluatedAt?: true reviewedAt?: true createdAt?: true updatedAt?: true _all?: true } export type GateEvaluationAggregateArgs = { /** * Filter which GateEvaluation to aggregate. */ where?: GateEvaluationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GateEvaluations to fetch. */ orderBy?: GateEvaluationOrderByWithRelationInput | GateEvaluationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: GateEvaluationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GateEvaluations 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` GateEvaluations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned GateEvaluations **/ _count?: true | GateEvaluationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: GateEvaluationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: GateEvaluationMaxAggregateInputType } export type GetGateEvaluationAggregateType = { [P in keyof T & keyof AggregateGateEvaluation]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type GateEvaluationGroupByArgs = { where?: GateEvaluationWhereInput orderBy?: GateEvaluationOrderByWithAggregationInput | GateEvaluationOrderByWithAggregationInput[] by: GateEvaluationScalarFieldEnum[] | GateEvaluationScalarFieldEnum having?: GateEvaluationScalarWhereWithAggregatesInput take?: number skip?: number _count?: GateEvaluationCountAggregateInputType | true _min?: GateEvaluationMinAggregateInputType _max?: GateEvaluationMaxAggregateInputType } export type GateEvaluationGroupByOutputType = { id: string projectId: string status: $Enums.GateStatus reviewStatus: string summary: string evaluatedByUserId: string | null evaluatedAt: Date reviewedAt: Date | null createdAt: Date updatedAt: Date _count: GateEvaluationCountAggregateOutputType | null _min: GateEvaluationMinAggregateOutputType | null _max: GateEvaluationMaxAggregateOutputType | null } type GetGateEvaluationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof GateEvaluationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type GateEvaluationSelect = $Extensions.GetSelect<{ id?: boolean projectId?: boolean status?: boolean reviewStatus?: boolean summary?: boolean evaluatedByUserId?: boolean evaluatedAt?: boolean reviewedAt?: boolean createdAt?: boolean updatedAt?: boolean project?: boolean | ProjectDefaultArgs criteria?: boolean | GateEvaluation$criteriaArgs decisions?: boolean | GateEvaluation$decisionsArgs _count?: boolean | GateEvaluationCountOutputTypeDefaultArgs }, ExtArgs["result"]["gateEvaluation"]> export type GateEvaluationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean projectId?: boolean status?: boolean reviewStatus?: boolean summary?: boolean evaluatedByUserId?: boolean evaluatedAt?: boolean reviewedAt?: boolean createdAt?: boolean updatedAt?: boolean project?: boolean | ProjectDefaultArgs }, ExtArgs["result"]["gateEvaluation"]> export type GateEvaluationSelectScalar = { id?: boolean projectId?: boolean status?: boolean reviewStatus?: boolean summary?: boolean evaluatedByUserId?: boolean evaluatedAt?: boolean reviewedAt?: boolean createdAt?: boolean updatedAt?: boolean } export type GateEvaluationInclude = { project?: boolean | ProjectDefaultArgs criteria?: boolean | GateEvaluation$criteriaArgs decisions?: boolean | GateEvaluation$decisionsArgs _count?: boolean | GateEvaluationCountOutputTypeDefaultArgs } export type GateEvaluationIncludeCreateManyAndReturn = { project?: boolean | ProjectDefaultArgs } export type $GateEvaluationPayload = { name: "GateEvaluation" objects: { project: Prisma.$ProjectPayload criteria: Prisma.$GateCriterionPayload[] decisions: Prisma.$GateDecisionPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string projectId: string status: $Enums.GateStatus reviewStatus: string summary: string evaluatedByUserId: string | null evaluatedAt: Date reviewedAt: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["gateEvaluation"]> composites: {} } type GateEvaluationGetPayload = $Result.GetResult type GateEvaluationCountArgs = Omit & { select?: GateEvaluationCountAggregateInputType | true } export interface GateEvaluationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['GateEvaluation'], meta: { name: 'GateEvaluation' } } /** * Find zero or one GateEvaluation that matches the filter. * @param {GateEvaluationFindUniqueArgs} args - Arguments to find a GateEvaluation * @example * // Get one GateEvaluation * const gateEvaluation = await prisma.gateEvaluation.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__GateEvaluationClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one GateEvaluation that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {GateEvaluationFindUniqueOrThrowArgs} args - Arguments to find a GateEvaluation * @example * // Get one GateEvaluation * const gateEvaluation = await prisma.gateEvaluation.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__GateEvaluationClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first GateEvaluation 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 {GateEvaluationFindFirstArgs} args - Arguments to find a GateEvaluation * @example * // Get one GateEvaluation * const gateEvaluation = await prisma.gateEvaluation.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__GateEvaluationClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first GateEvaluation 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 {GateEvaluationFindFirstOrThrowArgs} args - Arguments to find a GateEvaluation * @example * // Get one GateEvaluation * const gateEvaluation = await prisma.gateEvaluation.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__GateEvaluationClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more GateEvaluations 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 {GateEvaluationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all GateEvaluations * const gateEvaluations = await prisma.gateEvaluation.findMany() * * // Get first 10 GateEvaluations * const gateEvaluations = await prisma.gateEvaluation.findMany({ take: 10 }) * * // Only select the `id` * const gateEvaluationWithIdOnly = await prisma.gateEvaluation.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a GateEvaluation. * @param {GateEvaluationCreateArgs} args - Arguments to create a GateEvaluation. * @example * // Create one GateEvaluation * const GateEvaluation = await prisma.gateEvaluation.create({ * data: { * // ... data to create a GateEvaluation * } * }) * */ create(args: SelectSubset>): Prisma__GateEvaluationClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many GateEvaluations. * @param {GateEvaluationCreateManyArgs} args - Arguments to create many GateEvaluations. * @example * // Create many GateEvaluations * const gateEvaluation = await prisma.gateEvaluation.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many GateEvaluations and returns the data saved in the database. * @param {GateEvaluationCreateManyAndReturnArgs} args - Arguments to create many GateEvaluations. * @example * // Create many GateEvaluations * const gateEvaluation = await prisma.gateEvaluation.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many GateEvaluations and only return the `id` * const gateEvaluationWithIdOnly = await prisma.gateEvaluation.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">> /** * Delete a GateEvaluation. * @param {GateEvaluationDeleteArgs} args - Arguments to delete one GateEvaluation. * @example * // Delete one GateEvaluation * const GateEvaluation = await prisma.gateEvaluation.delete({ * where: { * // ... filter to delete one GateEvaluation * } * }) * */ delete(args: SelectSubset>): Prisma__GateEvaluationClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one GateEvaluation. * @param {GateEvaluationUpdateArgs} args - Arguments to update one GateEvaluation. * @example * // Update one GateEvaluation * const gateEvaluation = await prisma.gateEvaluation.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__GateEvaluationClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more GateEvaluations. * @param {GateEvaluationDeleteManyArgs} args - Arguments to filter GateEvaluations to delete. * @example * // Delete a few GateEvaluations * const { count } = await prisma.gateEvaluation.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more GateEvaluations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GateEvaluationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many GateEvaluations * const gateEvaluation = await prisma.gateEvaluation.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one GateEvaluation. * @param {GateEvaluationUpsertArgs} args - Arguments to update or create a GateEvaluation. * @example * // Update or create a GateEvaluation * const gateEvaluation = await prisma.gateEvaluation.upsert({ * create: { * // ... data to create a GateEvaluation * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the GateEvaluation we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__GateEvaluationClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of GateEvaluations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GateEvaluationCountArgs} args - Arguments to filter GateEvaluations to count. * @example * // Count the number of GateEvaluations * const count = await prisma.gateEvaluation.count({ * where: { * // ... the filter for the GateEvaluations 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 GateEvaluation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GateEvaluationAggregateArgs} 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 GateEvaluation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GateEvaluationGroupByArgs} 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 GateEvaluationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: GateEvaluationGroupByArgs['orderBy'] } : { orderBy?: GateEvaluationGroupByArgs['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 ? GetGateEvaluationGroupByPayload : Prisma.PrismaPromise /** * Fields of the GateEvaluation model */ readonly fields: GateEvaluationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for GateEvaluation. * 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__GateEvaluationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" project = {}>(args?: Subset>): Prisma__ProjectClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> criteria = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> decisions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | 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 GateEvaluation model */ interface GateEvaluationFieldRefs { readonly id: FieldRef<"GateEvaluation", 'String'> readonly projectId: FieldRef<"GateEvaluation", 'String'> readonly status: FieldRef<"GateEvaluation", 'GateStatus'> readonly reviewStatus: FieldRef<"GateEvaluation", 'String'> readonly summary: FieldRef<"GateEvaluation", 'String'> readonly evaluatedByUserId: FieldRef<"GateEvaluation", 'String'> readonly evaluatedAt: FieldRef<"GateEvaluation", 'DateTime'> readonly reviewedAt: FieldRef<"GateEvaluation", 'DateTime'> readonly createdAt: FieldRef<"GateEvaluation", 'DateTime'> readonly updatedAt: FieldRef<"GateEvaluation", 'DateTime'> } // Custom InputTypes /** * GateEvaluation findUnique */ export type GateEvaluationFindUniqueArgs = { /** * Select specific fields to fetch from the GateEvaluation */ select?: GateEvaluationSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateEvaluationInclude | null /** * Filter, which GateEvaluation to fetch. */ where: GateEvaluationWhereUniqueInput } /** * GateEvaluation findUniqueOrThrow */ export type GateEvaluationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the GateEvaluation */ select?: GateEvaluationSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateEvaluationInclude | null /** * Filter, which GateEvaluation to fetch. */ where: GateEvaluationWhereUniqueInput } /** * GateEvaluation findFirst */ export type GateEvaluationFindFirstArgs = { /** * Select specific fields to fetch from the GateEvaluation */ select?: GateEvaluationSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateEvaluationInclude | null /** * Filter, which GateEvaluation to fetch. */ where?: GateEvaluationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GateEvaluations to fetch. */ orderBy?: GateEvaluationOrderByWithRelationInput | GateEvaluationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for GateEvaluations. */ cursor?: GateEvaluationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GateEvaluations 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` GateEvaluations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of GateEvaluations. */ distinct?: GateEvaluationScalarFieldEnum | GateEvaluationScalarFieldEnum[] } /** * GateEvaluation findFirstOrThrow */ export type GateEvaluationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the GateEvaluation */ select?: GateEvaluationSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateEvaluationInclude | null /** * Filter, which GateEvaluation to fetch. */ where?: GateEvaluationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GateEvaluations to fetch. */ orderBy?: GateEvaluationOrderByWithRelationInput | GateEvaluationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for GateEvaluations. */ cursor?: GateEvaluationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GateEvaluations 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` GateEvaluations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of GateEvaluations. */ distinct?: GateEvaluationScalarFieldEnum | GateEvaluationScalarFieldEnum[] } /** * GateEvaluation findMany */ export type GateEvaluationFindManyArgs = { /** * Select specific fields to fetch from the GateEvaluation */ select?: GateEvaluationSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateEvaluationInclude | null /** * Filter, which GateEvaluations to fetch. */ where?: GateEvaluationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GateEvaluations to fetch. */ orderBy?: GateEvaluationOrderByWithRelationInput | GateEvaluationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing GateEvaluations. */ cursor?: GateEvaluationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GateEvaluations 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` GateEvaluations. */ skip?: number distinct?: GateEvaluationScalarFieldEnum | GateEvaluationScalarFieldEnum[] } /** * GateEvaluation create */ export type GateEvaluationCreateArgs = { /** * Select specific fields to fetch from the GateEvaluation */ select?: GateEvaluationSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateEvaluationInclude | null /** * The data needed to create a GateEvaluation. */ data: XOR } /** * GateEvaluation createMany */ export type GateEvaluationCreateManyArgs = { /** * The data used to create many GateEvaluations. */ data: GateEvaluationCreateManyInput | GateEvaluationCreateManyInput[] skipDuplicates?: boolean } /** * GateEvaluation createManyAndReturn */ export type GateEvaluationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the GateEvaluation */ select?: GateEvaluationSelectCreateManyAndReturn | null /** * The data used to create many GateEvaluations. */ data: GateEvaluationCreateManyInput | GateEvaluationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: GateEvaluationIncludeCreateManyAndReturn | null } /** * GateEvaluation update */ export type GateEvaluationUpdateArgs = { /** * Select specific fields to fetch from the GateEvaluation */ select?: GateEvaluationSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateEvaluationInclude | null /** * The data needed to update a GateEvaluation. */ data: XOR /** * Choose, which GateEvaluation to update. */ where: GateEvaluationWhereUniqueInput } /** * GateEvaluation updateMany */ export type GateEvaluationUpdateManyArgs = { /** * The data used to update GateEvaluations. */ data: XOR /** * Filter which GateEvaluations to update */ where?: GateEvaluationWhereInput } /** * GateEvaluation upsert */ export type GateEvaluationUpsertArgs = { /** * Select specific fields to fetch from the GateEvaluation */ select?: GateEvaluationSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateEvaluationInclude | null /** * The filter to search for the GateEvaluation to update in case it exists. */ where: GateEvaluationWhereUniqueInput /** * In case the GateEvaluation found by the `where` argument doesn't exist, create a new GateEvaluation with this data. */ create: XOR /** * In case the GateEvaluation was found with the provided `where` argument, update it with this data. */ update: XOR } /** * GateEvaluation delete */ export type GateEvaluationDeleteArgs = { /** * Select specific fields to fetch from the GateEvaluation */ select?: GateEvaluationSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateEvaluationInclude | null /** * Filter which GateEvaluation to delete. */ where: GateEvaluationWhereUniqueInput } /** * GateEvaluation deleteMany */ export type GateEvaluationDeleteManyArgs = { /** * Filter which GateEvaluations to delete */ where?: GateEvaluationWhereInput } /** * GateEvaluation.criteria */ export type GateEvaluation$criteriaArgs = { /** * Select specific fields to fetch from the GateCriterion */ select?: GateCriterionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateCriterionInclude | null where?: GateCriterionWhereInput orderBy?: GateCriterionOrderByWithRelationInput | GateCriterionOrderByWithRelationInput[] cursor?: GateCriterionWhereUniqueInput take?: number skip?: number distinct?: GateCriterionScalarFieldEnum | GateCriterionScalarFieldEnum[] } /** * GateEvaluation.decisions */ export type GateEvaluation$decisionsArgs = { /** * Select specific fields to fetch from the GateDecision */ select?: GateDecisionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateDecisionInclude | null where?: GateDecisionWhereInput orderBy?: GateDecisionOrderByWithRelationInput | GateDecisionOrderByWithRelationInput[] cursor?: GateDecisionWhereUniqueInput take?: number skip?: number distinct?: GateDecisionScalarFieldEnum | GateDecisionScalarFieldEnum[] } /** * GateEvaluation without action */ export type GateEvaluationDefaultArgs = { /** * Select specific fields to fetch from the GateEvaluation */ select?: GateEvaluationSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateEvaluationInclude | null } /** * Model GateCriterion */ export type AggregateGateCriterion = { _count: GateCriterionCountAggregateOutputType | null _min: GateCriterionMinAggregateOutputType | null _max: GateCriterionMaxAggregateOutputType | null } export type GateCriterionMinAggregateOutputType = { id: string | null gateId: string | null name: string | null actualValue: string | null expectedRule: string | null status: string | null blocking: boolean | null evidenceTitle: string | null evidenceUri: string | null reviewerStatus: string | null reviewerNote: string | null createdAt: Date | null updatedAt: Date | null } export type GateCriterionMaxAggregateOutputType = { id: string | null gateId: string | null name: string | null actualValue: string | null expectedRule: string | null status: string | null blocking: boolean | null evidenceTitle: string | null evidenceUri: string | null reviewerStatus: string | null reviewerNote: string | null createdAt: Date | null updatedAt: Date | null } export type GateCriterionCountAggregateOutputType = { id: number gateId: number name: number actualValue: number expectedRule: number status: number blocking: number evidenceTitle: number evidenceUri: number reviewerStatus: number reviewerNote: number createdAt: number updatedAt: number _all: number } export type GateCriterionMinAggregateInputType = { id?: true gateId?: true name?: true actualValue?: true expectedRule?: true status?: true blocking?: true evidenceTitle?: true evidenceUri?: true reviewerStatus?: true reviewerNote?: true createdAt?: true updatedAt?: true } export type GateCriterionMaxAggregateInputType = { id?: true gateId?: true name?: true actualValue?: true expectedRule?: true status?: true blocking?: true evidenceTitle?: true evidenceUri?: true reviewerStatus?: true reviewerNote?: true createdAt?: true updatedAt?: true } export type GateCriterionCountAggregateInputType = { id?: true gateId?: true name?: true actualValue?: true expectedRule?: true status?: true blocking?: true evidenceTitle?: true evidenceUri?: true reviewerStatus?: true reviewerNote?: true createdAt?: true updatedAt?: true _all?: true } export type GateCriterionAggregateArgs = { /** * Filter which GateCriterion to aggregate. */ where?: GateCriterionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GateCriteria to fetch. */ orderBy?: GateCriterionOrderByWithRelationInput | GateCriterionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: GateCriterionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GateCriteria 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` GateCriteria. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned GateCriteria **/ _count?: true | GateCriterionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: GateCriterionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: GateCriterionMaxAggregateInputType } export type GetGateCriterionAggregateType = { [P in keyof T & keyof AggregateGateCriterion]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type GateCriterionGroupByArgs = { where?: GateCriterionWhereInput orderBy?: GateCriterionOrderByWithAggregationInput | GateCriterionOrderByWithAggregationInput[] by: GateCriterionScalarFieldEnum[] | GateCriterionScalarFieldEnum having?: GateCriterionScalarWhereWithAggregatesInput take?: number skip?: number _count?: GateCriterionCountAggregateInputType | true _min?: GateCriterionMinAggregateInputType _max?: GateCriterionMaxAggregateInputType } export type GateCriterionGroupByOutputType = { id: string gateId: string name: string actualValue: string expectedRule: string status: string blocking: boolean evidenceTitle: string | null evidenceUri: string | null reviewerStatus: string reviewerNote: string | null createdAt: Date updatedAt: Date _count: GateCriterionCountAggregateOutputType | null _min: GateCriterionMinAggregateOutputType | null _max: GateCriterionMaxAggregateOutputType | null } type GetGateCriterionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof GateCriterionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type GateCriterionSelect = $Extensions.GetSelect<{ id?: boolean gateId?: boolean name?: boolean actualValue?: boolean expectedRule?: boolean status?: boolean blocking?: boolean evidenceTitle?: boolean evidenceUri?: boolean reviewerStatus?: boolean reviewerNote?: boolean createdAt?: boolean updatedAt?: boolean gate?: boolean | GateEvaluationDefaultArgs }, ExtArgs["result"]["gateCriterion"]> export type GateCriterionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean gateId?: boolean name?: boolean actualValue?: boolean expectedRule?: boolean status?: boolean blocking?: boolean evidenceTitle?: boolean evidenceUri?: boolean reviewerStatus?: boolean reviewerNote?: boolean createdAt?: boolean updatedAt?: boolean gate?: boolean | GateEvaluationDefaultArgs }, ExtArgs["result"]["gateCriterion"]> export type GateCriterionSelectScalar = { id?: boolean gateId?: boolean name?: boolean actualValue?: boolean expectedRule?: boolean status?: boolean blocking?: boolean evidenceTitle?: boolean evidenceUri?: boolean reviewerStatus?: boolean reviewerNote?: boolean createdAt?: boolean updatedAt?: boolean } export type GateCriterionInclude = { gate?: boolean | GateEvaluationDefaultArgs } export type GateCriterionIncludeCreateManyAndReturn = { gate?: boolean | GateEvaluationDefaultArgs } export type $GateCriterionPayload = { name: "GateCriterion" objects: { gate: Prisma.$GateEvaluationPayload } scalars: $Extensions.GetPayloadResult<{ id: string gateId: string name: string actualValue: string expectedRule: string status: string blocking: boolean evidenceTitle: string | null evidenceUri: string | null reviewerStatus: string reviewerNote: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["gateCriterion"]> composites: {} } type GateCriterionGetPayload = $Result.GetResult type GateCriterionCountArgs = Omit & { select?: GateCriterionCountAggregateInputType | true } export interface GateCriterionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['GateCriterion'], meta: { name: 'GateCriterion' } } /** * Find zero or one GateCriterion that matches the filter. * @param {GateCriterionFindUniqueArgs} args - Arguments to find a GateCriterion * @example * // Get one GateCriterion * const gateCriterion = await prisma.gateCriterion.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__GateCriterionClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one GateCriterion that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {GateCriterionFindUniqueOrThrowArgs} args - Arguments to find a GateCriterion * @example * // Get one GateCriterion * const gateCriterion = await prisma.gateCriterion.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__GateCriterionClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first GateCriterion 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 {GateCriterionFindFirstArgs} args - Arguments to find a GateCriterion * @example * // Get one GateCriterion * const gateCriterion = await prisma.gateCriterion.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__GateCriterionClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first GateCriterion 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 {GateCriterionFindFirstOrThrowArgs} args - Arguments to find a GateCriterion * @example * // Get one GateCriterion * const gateCriterion = await prisma.gateCriterion.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__GateCriterionClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more GateCriteria 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 {GateCriterionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all GateCriteria * const gateCriteria = await prisma.gateCriterion.findMany() * * // Get first 10 GateCriteria * const gateCriteria = await prisma.gateCriterion.findMany({ take: 10 }) * * // Only select the `id` * const gateCriterionWithIdOnly = await prisma.gateCriterion.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a GateCriterion. * @param {GateCriterionCreateArgs} args - Arguments to create a GateCriterion. * @example * // Create one GateCriterion * const GateCriterion = await prisma.gateCriterion.create({ * data: { * // ... data to create a GateCriterion * } * }) * */ create(args: SelectSubset>): Prisma__GateCriterionClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many GateCriteria. * @param {GateCriterionCreateManyArgs} args - Arguments to create many GateCriteria. * @example * // Create many GateCriteria * const gateCriterion = await prisma.gateCriterion.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many GateCriteria and returns the data saved in the database. * @param {GateCriterionCreateManyAndReturnArgs} args - Arguments to create many GateCriteria. * @example * // Create many GateCriteria * const gateCriterion = await prisma.gateCriterion.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many GateCriteria and only return the `id` * const gateCriterionWithIdOnly = await prisma.gateCriterion.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">> /** * Delete a GateCriterion. * @param {GateCriterionDeleteArgs} args - Arguments to delete one GateCriterion. * @example * // Delete one GateCriterion * const GateCriterion = await prisma.gateCriterion.delete({ * where: { * // ... filter to delete one GateCriterion * } * }) * */ delete(args: SelectSubset>): Prisma__GateCriterionClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one GateCriterion. * @param {GateCriterionUpdateArgs} args - Arguments to update one GateCriterion. * @example * // Update one GateCriterion * const gateCriterion = await prisma.gateCriterion.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__GateCriterionClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more GateCriteria. * @param {GateCriterionDeleteManyArgs} args - Arguments to filter GateCriteria to delete. * @example * // Delete a few GateCriteria * const { count } = await prisma.gateCriterion.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more GateCriteria. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GateCriterionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many GateCriteria * const gateCriterion = await prisma.gateCriterion.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one GateCriterion. * @param {GateCriterionUpsertArgs} args - Arguments to update or create a GateCriterion. * @example * // Update or create a GateCriterion * const gateCriterion = await prisma.gateCriterion.upsert({ * create: { * // ... data to create a GateCriterion * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the GateCriterion we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__GateCriterionClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of GateCriteria. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GateCriterionCountArgs} args - Arguments to filter GateCriteria to count. * @example * // Count the number of GateCriteria * const count = await prisma.gateCriterion.count({ * where: { * // ... the filter for the GateCriteria 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 GateCriterion. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GateCriterionAggregateArgs} 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 GateCriterion. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GateCriterionGroupByArgs} 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 GateCriterionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: GateCriterionGroupByArgs['orderBy'] } : { orderBy?: GateCriterionGroupByArgs['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 ? GetGateCriterionGroupByPayload : Prisma.PrismaPromise /** * Fields of the GateCriterion model */ readonly fields: GateCriterionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for GateCriterion. * 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__GateCriterionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" gate = {}>(args?: Subset>): Prisma__GateEvaluationClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * 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 GateCriterion model */ interface GateCriterionFieldRefs { readonly id: FieldRef<"GateCriterion", 'String'> readonly gateId: FieldRef<"GateCriterion", 'String'> readonly name: FieldRef<"GateCriterion", 'String'> readonly actualValue: FieldRef<"GateCriterion", 'String'> readonly expectedRule: FieldRef<"GateCriterion", 'String'> readonly status: FieldRef<"GateCriterion", 'String'> readonly blocking: FieldRef<"GateCriterion", 'Boolean'> readonly evidenceTitle: FieldRef<"GateCriterion", 'String'> readonly evidenceUri: FieldRef<"GateCriterion", 'String'> readonly reviewerStatus: FieldRef<"GateCriterion", 'String'> readonly reviewerNote: FieldRef<"GateCriterion", 'String'> readonly createdAt: FieldRef<"GateCriterion", 'DateTime'> readonly updatedAt: FieldRef<"GateCriterion", 'DateTime'> } // Custom InputTypes /** * GateCriterion findUnique */ export type GateCriterionFindUniqueArgs = { /** * Select specific fields to fetch from the GateCriterion */ select?: GateCriterionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateCriterionInclude | null /** * Filter, which GateCriterion to fetch. */ where: GateCriterionWhereUniqueInput } /** * GateCriterion findUniqueOrThrow */ export type GateCriterionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the GateCriterion */ select?: GateCriterionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateCriterionInclude | null /** * Filter, which GateCriterion to fetch. */ where: GateCriterionWhereUniqueInput } /** * GateCriterion findFirst */ export type GateCriterionFindFirstArgs = { /** * Select specific fields to fetch from the GateCriterion */ select?: GateCriterionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateCriterionInclude | null /** * Filter, which GateCriterion to fetch. */ where?: GateCriterionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GateCriteria to fetch. */ orderBy?: GateCriterionOrderByWithRelationInput | GateCriterionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for GateCriteria. */ cursor?: GateCriterionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GateCriteria 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` GateCriteria. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of GateCriteria. */ distinct?: GateCriterionScalarFieldEnum | GateCriterionScalarFieldEnum[] } /** * GateCriterion findFirstOrThrow */ export type GateCriterionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the GateCriterion */ select?: GateCriterionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateCriterionInclude | null /** * Filter, which GateCriterion to fetch. */ where?: GateCriterionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GateCriteria to fetch. */ orderBy?: GateCriterionOrderByWithRelationInput | GateCriterionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for GateCriteria. */ cursor?: GateCriterionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GateCriteria 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` GateCriteria. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of GateCriteria. */ distinct?: GateCriterionScalarFieldEnum | GateCriterionScalarFieldEnum[] } /** * GateCriterion findMany */ export type GateCriterionFindManyArgs = { /** * Select specific fields to fetch from the GateCriterion */ select?: GateCriterionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateCriterionInclude | null /** * Filter, which GateCriteria to fetch. */ where?: GateCriterionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GateCriteria to fetch. */ orderBy?: GateCriterionOrderByWithRelationInput | GateCriterionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing GateCriteria. */ cursor?: GateCriterionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GateCriteria 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` GateCriteria. */ skip?: number distinct?: GateCriterionScalarFieldEnum | GateCriterionScalarFieldEnum[] } /** * GateCriterion create */ export type GateCriterionCreateArgs = { /** * Select specific fields to fetch from the GateCriterion */ select?: GateCriterionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateCriterionInclude | null /** * The data needed to create a GateCriterion. */ data: XOR } /** * GateCriterion createMany */ export type GateCriterionCreateManyArgs = { /** * The data used to create many GateCriteria. */ data: GateCriterionCreateManyInput | GateCriterionCreateManyInput[] skipDuplicates?: boolean } /** * GateCriterion createManyAndReturn */ export type GateCriterionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the GateCriterion */ select?: GateCriterionSelectCreateManyAndReturn | null /** * The data used to create many GateCriteria. */ data: GateCriterionCreateManyInput | GateCriterionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: GateCriterionIncludeCreateManyAndReturn | null } /** * GateCriterion update */ export type GateCriterionUpdateArgs = { /** * Select specific fields to fetch from the GateCriterion */ select?: GateCriterionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateCriterionInclude | null /** * The data needed to update a GateCriterion. */ data: XOR /** * Choose, which GateCriterion to update. */ where: GateCriterionWhereUniqueInput } /** * GateCriterion updateMany */ export type GateCriterionUpdateManyArgs = { /** * The data used to update GateCriteria. */ data: XOR /** * Filter which GateCriteria to update */ where?: GateCriterionWhereInput } /** * GateCriterion upsert */ export type GateCriterionUpsertArgs = { /** * Select specific fields to fetch from the GateCriterion */ select?: GateCriterionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateCriterionInclude | null /** * The filter to search for the GateCriterion to update in case it exists. */ where: GateCriterionWhereUniqueInput /** * In case the GateCriterion found by the `where` argument doesn't exist, create a new GateCriterion with this data. */ create: XOR /** * In case the GateCriterion was found with the provided `where` argument, update it with this data. */ update: XOR } /** * GateCriterion delete */ export type GateCriterionDeleteArgs = { /** * Select specific fields to fetch from the GateCriterion */ select?: GateCriterionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateCriterionInclude | null /** * Filter which GateCriterion to delete. */ where: GateCriterionWhereUniqueInput } /** * GateCriterion deleteMany */ export type GateCriterionDeleteManyArgs = { /** * Filter which GateCriteria to delete */ where?: GateCriterionWhereInput } /** * GateCriterion without action */ export type GateCriterionDefaultArgs = { /** * Select specific fields to fetch from the GateCriterion */ select?: GateCriterionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateCriterionInclude | null } /** * Model GateDecision */ export type AggregateGateDecision = { _count: GateDecisionCountAggregateOutputType | null _min: GateDecisionMinAggregateOutputType | null _max: GateDecisionMaxAggregateOutputType | null } export type GateDecisionMinAggregateOutputType = { id: string | null gateId: string | null decision: $Enums.GateDecisionValue | null reviewerName: string | null reason: string | null createdByUserId: string | null decidedAt: Date | null createdAt: Date | null } export type GateDecisionMaxAggregateOutputType = { id: string | null gateId: string | null decision: $Enums.GateDecisionValue | null reviewerName: string | null reason: string | null createdByUserId: string | null decidedAt: Date | null createdAt: Date | null } export type GateDecisionCountAggregateOutputType = { id: number gateId: number decision: number reviewerName: number reason: number createdByUserId: number decidedAt: number createdAt: number _all: number } export type GateDecisionMinAggregateInputType = { id?: true gateId?: true decision?: true reviewerName?: true reason?: true createdByUserId?: true decidedAt?: true createdAt?: true } export type GateDecisionMaxAggregateInputType = { id?: true gateId?: true decision?: true reviewerName?: true reason?: true createdByUserId?: true decidedAt?: true createdAt?: true } export type GateDecisionCountAggregateInputType = { id?: true gateId?: true decision?: true reviewerName?: true reason?: true createdByUserId?: true decidedAt?: true createdAt?: true _all?: true } export type GateDecisionAggregateArgs = { /** * Filter which GateDecision to aggregate. */ where?: GateDecisionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GateDecisions to fetch. */ orderBy?: GateDecisionOrderByWithRelationInput | GateDecisionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: GateDecisionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GateDecisions 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` GateDecisions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned GateDecisions **/ _count?: true | GateDecisionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: GateDecisionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: GateDecisionMaxAggregateInputType } export type GetGateDecisionAggregateType = { [P in keyof T & keyof AggregateGateDecision]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type GateDecisionGroupByArgs = { where?: GateDecisionWhereInput orderBy?: GateDecisionOrderByWithAggregationInput | GateDecisionOrderByWithAggregationInput[] by: GateDecisionScalarFieldEnum[] | GateDecisionScalarFieldEnum having?: GateDecisionScalarWhereWithAggregatesInput take?: number skip?: number _count?: GateDecisionCountAggregateInputType | true _min?: GateDecisionMinAggregateInputType _max?: GateDecisionMaxAggregateInputType } export type GateDecisionGroupByOutputType = { id: string gateId: string decision: $Enums.GateDecisionValue reviewerName: string reason: string | null createdByUserId: string | null decidedAt: Date createdAt: Date _count: GateDecisionCountAggregateOutputType | null _min: GateDecisionMinAggregateOutputType | null _max: GateDecisionMaxAggregateOutputType | null } type GetGateDecisionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof GateDecisionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type GateDecisionSelect = $Extensions.GetSelect<{ id?: boolean gateId?: boolean decision?: boolean reviewerName?: boolean reason?: boolean createdByUserId?: boolean decidedAt?: boolean createdAt?: boolean gate?: boolean | GateEvaluationDefaultArgs }, ExtArgs["result"]["gateDecision"]> export type GateDecisionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean gateId?: boolean decision?: boolean reviewerName?: boolean reason?: boolean createdByUserId?: boolean decidedAt?: boolean createdAt?: boolean gate?: boolean | GateEvaluationDefaultArgs }, ExtArgs["result"]["gateDecision"]> export type GateDecisionSelectScalar = { id?: boolean gateId?: boolean decision?: boolean reviewerName?: boolean reason?: boolean createdByUserId?: boolean decidedAt?: boolean createdAt?: boolean } export type GateDecisionInclude = { gate?: boolean | GateEvaluationDefaultArgs } export type GateDecisionIncludeCreateManyAndReturn = { gate?: boolean | GateEvaluationDefaultArgs } export type $GateDecisionPayload = { name: "GateDecision" objects: { gate: Prisma.$GateEvaluationPayload } scalars: $Extensions.GetPayloadResult<{ id: string gateId: string decision: $Enums.GateDecisionValue reviewerName: string reason: string | null createdByUserId: string | null decidedAt: Date createdAt: Date }, ExtArgs["result"]["gateDecision"]> composites: {} } type GateDecisionGetPayload = $Result.GetResult type GateDecisionCountArgs = Omit & { select?: GateDecisionCountAggregateInputType | true } export interface GateDecisionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['GateDecision'], meta: { name: 'GateDecision' } } /** * Find zero or one GateDecision that matches the filter. * @param {GateDecisionFindUniqueArgs} args - Arguments to find a GateDecision * @example * // Get one GateDecision * const gateDecision = await prisma.gateDecision.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__GateDecisionClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one GateDecision that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {GateDecisionFindUniqueOrThrowArgs} args - Arguments to find a GateDecision * @example * // Get one GateDecision * const gateDecision = await prisma.gateDecision.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__GateDecisionClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first GateDecision 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 {GateDecisionFindFirstArgs} args - Arguments to find a GateDecision * @example * // Get one GateDecision * const gateDecision = await prisma.gateDecision.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__GateDecisionClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first GateDecision 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 {GateDecisionFindFirstOrThrowArgs} args - Arguments to find a GateDecision * @example * // Get one GateDecision * const gateDecision = await prisma.gateDecision.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__GateDecisionClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more GateDecisions 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 {GateDecisionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all GateDecisions * const gateDecisions = await prisma.gateDecision.findMany() * * // Get first 10 GateDecisions * const gateDecisions = await prisma.gateDecision.findMany({ take: 10 }) * * // Only select the `id` * const gateDecisionWithIdOnly = await prisma.gateDecision.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a GateDecision. * @param {GateDecisionCreateArgs} args - Arguments to create a GateDecision. * @example * // Create one GateDecision * const GateDecision = await prisma.gateDecision.create({ * data: { * // ... data to create a GateDecision * } * }) * */ create(args: SelectSubset>): Prisma__GateDecisionClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many GateDecisions. * @param {GateDecisionCreateManyArgs} args - Arguments to create many GateDecisions. * @example * // Create many GateDecisions * const gateDecision = await prisma.gateDecision.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many GateDecisions and returns the data saved in the database. * @param {GateDecisionCreateManyAndReturnArgs} args - Arguments to create many GateDecisions. * @example * // Create many GateDecisions * const gateDecision = await prisma.gateDecision.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many GateDecisions and only return the `id` * const gateDecisionWithIdOnly = await prisma.gateDecision.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">> /** * Delete a GateDecision. * @param {GateDecisionDeleteArgs} args - Arguments to delete one GateDecision. * @example * // Delete one GateDecision * const GateDecision = await prisma.gateDecision.delete({ * where: { * // ... filter to delete one GateDecision * } * }) * */ delete(args: SelectSubset>): Prisma__GateDecisionClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one GateDecision. * @param {GateDecisionUpdateArgs} args - Arguments to update one GateDecision. * @example * // Update one GateDecision * const gateDecision = await prisma.gateDecision.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__GateDecisionClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more GateDecisions. * @param {GateDecisionDeleteManyArgs} args - Arguments to filter GateDecisions to delete. * @example * // Delete a few GateDecisions * const { count } = await prisma.gateDecision.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more GateDecisions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GateDecisionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many GateDecisions * const gateDecision = await prisma.gateDecision.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one GateDecision. * @param {GateDecisionUpsertArgs} args - Arguments to update or create a GateDecision. * @example * // Update or create a GateDecision * const gateDecision = await prisma.gateDecision.upsert({ * create: { * // ... data to create a GateDecision * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the GateDecision we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__GateDecisionClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of GateDecisions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GateDecisionCountArgs} args - Arguments to filter GateDecisions to count. * @example * // Count the number of GateDecisions * const count = await prisma.gateDecision.count({ * where: { * // ... the filter for the GateDecisions 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 GateDecision. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GateDecisionAggregateArgs} 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 GateDecision. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GateDecisionGroupByArgs} 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 GateDecisionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: GateDecisionGroupByArgs['orderBy'] } : { orderBy?: GateDecisionGroupByArgs['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 ? GetGateDecisionGroupByPayload : Prisma.PrismaPromise /** * Fields of the GateDecision model */ readonly fields: GateDecisionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for GateDecision. * 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__GateDecisionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" gate = {}>(args?: Subset>): Prisma__GateEvaluationClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * 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 GateDecision model */ interface GateDecisionFieldRefs { readonly id: FieldRef<"GateDecision", 'String'> readonly gateId: FieldRef<"GateDecision", 'String'> readonly decision: FieldRef<"GateDecision", 'GateDecisionValue'> readonly reviewerName: FieldRef<"GateDecision", 'String'> readonly reason: FieldRef<"GateDecision", 'String'> readonly createdByUserId: FieldRef<"GateDecision", 'String'> readonly decidedAt: FieldRef<"GateDecision", 'DateTime'> readonly createdAt: FieldRef<"GateDecision", 'DateTime'> } // Custom InputTypes /** * GateDecision findUnique */ export type GateDecisionFindUniqueArgs = { /** * Select specific fields to fetch from the GateDecision */ select?: GateDecisionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateDecisionInclude | null /** * Filter, which GateDecision to fetch. */ where: GateDecisionWhereUniqueInput } /** * GateDecision findUniqueOrThrow */ export type GateDecisionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the GateDecision */ select?: GateDecisionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateDecisionInclude | null /** * Filter, which GateDecision to fetch. */ where: GateDecisionWhereUniqueInput } /** * GateDecision findFirst */ export type GateDecisionFindFirstArgs = { /** * Select specific fields to fetch from the GateDecision */ select?: GateDecisionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateDecisionInclude | null /** * Filter, which GateDecision to fetch. */ where?: GateDecisionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GateDecisions to fetch. */ orderBy?: GateDecisionOrderByWithRelationInput | GateDecisionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for GateDecisions. */ cursor?: GateDecisionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GateDecisions 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` GateDecisions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of GateDecisions. */ distinct?: GateDecisionScalarFieldEnum | GateDecisionScalarFieldEnum[] } /** * GateDecision findFirstOrThrow */ export type GateDecisionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the GateDecision */ select?: GateDecisionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateDecisionInclude | null /** * Filter, which GateDecision to fetch. */ where?: GateDecisionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GateDecisions to fetch. */ orderBy?: GateDecisionOrderByWithRelationInput | GateDecisionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for GateDecisions. */ cursor?: GateDecisionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GateDecisions 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` GateDecisions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of GateDecisions. */ distinct?: GateDecisionScalarFieldEnum | GateDecisionScalarFieldEnum[] } /** * GateDecision findMany */ export type GateDecisionFindManyArgs = { /** * Select specific fields to fetch from the GateDecision */ select?: GateDecisionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateDecisionInclude | null /** * Filter, which GateDecisions to fetch. */ where?: GateDecisionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of GateDecisions to fetch. */ orderBy?: GateDecisionOrderByWithRelationInput | GateDecisionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing GateDecisions. */ cursor?: GateDecisionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` GateDecisions 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` GateDecisions. */ skip?: number distinct?: GateDecisionScalarFieldEnum | GateDecisionScalarFieldEnum[] } /** * GateDecision create */ export type GateDecisionCreateArgs = { /** * Select specific fields to fetch from the GateDecision */ select?: GateDecisionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateDecisionInclude | null /** * The data needed to create a GateDecision. */ data: XOR } /** * GateDecision createMany */ export type GateDecisionCreateManyArgs = { /** * The data used to create many GateDecisions. */ data: GateDecisionCreateManyInput | GateDecisionCreateManyInput[] skipDuplicates?: boolean } /** * GateDecision createManyAndReturn */ export type GateDecisionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the GateDecision */ select?: GateDecisionSelectCreateManyAndReturn | null /** * The data used to create many GateDecisions. */ data: GateDecisionCreateManyInput | GateDecisionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: GateDecisionIncludeCreateManyAndReturn | null } /** * GateDecision update */ export type GateDecisionUpdateArgs = { /** * Select specific fields to fetch from the GateDecision */ select?: GateDecisionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateDecisionInclude | null /** * The data needed to update a GateDecision. */ data: XOR /** * Choose, which GateDecision to update. */ where: GateDecisionWhereUniqueInput } /** * GateDecision updateMany */ export type GateDecisionUpdateManyArgs = { /** * The data used to update GateDecisions. */ data: XOR /** * Filter which GateDecisions to update */ where?: GateDecisionWhereInput } /** * GateDecision upsert */ export type GateDecisionUpsertArgs = { /** * Select specific fields to fetch from the GateDecision */ select?: GateDecisionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateDecisionInclude | null /** * The filter to search for the GateDecision to update in case it exists. */ where: GateDecisionWhereUniqueInput /** * In case the GateDecision found by the `where` argument doesn't exist, create a new GateDecision with this data. */ create: XOR /** * In case the GateDecision was found with the provided `where` argument, update it with this data. */ update: XOR } /** * GateDecision delete */ export type GateDecisionDeleteArgs = { /** * Select specific fields to fetch from the GateDecision */ select?: GateDecisionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateDecisionInclude | null /** * Filter which GateDecision to delete. */ where: GateDecisionWhereUniqueInput } /** * GateDecision deleteMany */ export type GateDecisionDeleteManyArgs = { /** * Filter which GateDecisions to delete */ where?: GateDecisionWhereInput } /** * GateDecision without action */ export type GateDecisionDefaultArgs = { /** * Select specific fields to fetch from the GateDecision */ select?: GateDecisionSelect | null /** * Choose, which related nodes to fetch as well */ include?: GateDecisionInclude | null } /** * Model Integration */ export type AggregateIntegration = { _count: IntegrationCountAggregateOutputType | null _min: IntegrationMinAggregateOutputType | null _max: IntegrationMaxAggregateOutputType | null } export type IntegrationMinAggregateOutputType = { id: string | null workspaceId: string | null provider: $Enums.IntegrationProvider | null workspaceName: string | null externalProjectKey: string | null baseUrl: string | null authMode: string | null connectionStatus: $Enums.IntegrationStatus | null syncDirection: string | null liveEnabled: boolean | null lastSyncAt: Date | null createdAt: Date | null updatedAt: Date | null } export type IntegrationMaxAggregateOutputType = { id: string | null workspaceId: string | null provider: $Enums.IntegrationProvider | null workspaceName: string | null externalProjectKey: string | null baseUrl: string | null authMode: string | null connectionStatus: $Enums.IntegrationStatus | null syncDirection: string | null liveEnabled: boolean | null lastSyncAt: Date | null createdAt: Date | null updatedAt: Date | null } export type IntegrationCountAggregateOutputType = { id: number workspaceId: number provider: number workspaceName: number externalProjectKey: number baseUrl: number authMode: number connectionStatus: number syncDirection: number liveEnabled: number liveConfig: number lastSyncAt: number createdAt: number updatedAt: number _all: number } export type IntegrationMinAggregateInputType = { id?: true workspaceId?: true provider?: true workspaceName?: true externalProjectKey?: true baseUrl?: true authMode?: true connectionStatus?: true syncDirection?: true liveEnabled?: true lastSyncAt?: true createdAt?: true updatedAt?: true } export type IntegrationMaxAggregateInputType = { id?: true workspaceId?: true provider?: true workspaceName?: true externalProjectKey?: true baseUrl?: true authMode?: true connectionStatus?: true syncDirection?: true liveEnabled?: true lastSyncAt?: true createdAt?: true updatedAt?: true } export type IntegrationCountAggregateInputType = { id?: true workspaceId?: true provider?: true workspaceName?: true externalProjectKey?: true baseUrl?: true authMode?: true connectionStatus?: true syncDirection?: true liveEnabled?: true liveConfig?: true lastSyncAt?: true createdAt?: true updatedAt?: true _all?: true } export type IntegrationAggregateArgs = { /** * Filter which Integration to aggregate. */ where?: IntegrationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Integrations to fetch. */ orderBy?: IntegrationOrderByWithRelationInput | IntegrationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: IntegrationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Integrations 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` Integrations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Integrations **/ _count?: true | IntegrationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: IntegrationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: IntegrationMaxAggregateInputType } export type GetIntegrationAggregateType = { [P in keyof T & keyof AggregateIntegration]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type IntegrationGroupByArgs = { where?: IntegrationWhereInput orderBy?: IntegrationOrderByWithAggregationInput | IntegrationOrderByWithAggregationInput[] by: IntegrationScalarFieldEnum[] | IntegrationScalarFieldEnum having?: IntegrationScalarWhereWithAggregatesInput take?: number skip?: number _count?: IntegrationCountAggregateInputType | true _min?: IntegrationMinAggregateInputType _max?: IntegrationMaxAggregateInputType } export type IntegrationGroupByOutputType = { id: string workspaceId: string provider: $Enums.IntegrationProvider workspaceName: string externalProjectKey: string | null baseUrl: string | null authMode: string connectionStatus: $Enums.IntegrationStatus syncDirection: string liveEnabled: boolean liveConfig: JsonValue lastSyncAt: Date | null createdAt: Date updatedAt: Date _count: IntegrationCountAggregateOutputType | null _min: IntegrationMinAggregateOutputType | null _max: IntegrationMaxAggregateOutputType | null } type GetIntegrationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof IntegrationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type IntegrationSelect = $Extensions.GetSelect<{ id?: boolean workspaceId?: boolean provider?: boolean workspaceName?: boolean externalProjectKey?: boolean baseUrl?: boolean authMode?: boolean connectionStatus?: boolean syncDirection?: boolean liveEnabled?: boolean liveConfig?: boolean lastSyncAt?: boolean createdAt?: boolean updatedAt?: boolean workspace?: boolean | WorkspaceDefaultArgs mappings?: boolean | Integration$mappingsArgs syncRuns?: boolean | Integration$syncRunsArgs _count?: boolean | IntegrationCountOutputTypeDefaultArgs }, ExtArgs["result"]["integration"]> export type IntegrationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean workspaceId?: boolean provider?: boolean workspaceName?: boolean externalProjectKey?: boolean baseUrl?: boolean authMode?: boolean connectionStatus?: boolean syncDirection?: boolean liveEnabled?: boolean liveConfig?: boolean lastSyncAt?: boolean createdAt?: boolean updatedAt?: boolean workspace?: boolean | WorkspaceDefaultArgs }, ExtArgs["result"]["integration"]> export type IntegrationSelectScalar = { id?: boolean workspaceId?: boolean provider?: boolean workspaceName?: boolean externalProjectKey?: boolean baseUrl?: boolean authMode?: boolean connectionStatus?: boolean syncDirection?: boolean liveEnabled?: boolean liveConfig?: boolean lastSyncAt?: boolean createdAt?: boolean updatedAt?: boolean } export type IntegrationInclude = { workspace?: boolean | WorkspaceDefaultArgs mappings?: boolean | Integration$mappingsArgs syncRuns?: boolean | Integration$syncRunsArgs _count?: boolean | IntegrationCountOutputTypeDefaultArgs } export type IntegrationIncludeCreateManyAndReturn = { workspace?: boolean | WorkspaceDefaultArgs } export type $IntegrationPayload = { name: "Integration" objects: { workspace: Prisma.$WorkspacePayload mappings: Prisma.$ExternalWorkItemMappingPayload[] syncRuns: Prisma.$IntegrationSyncRunPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string workspaceId: string provider: $Enums.IntegrationProvider workspaceName: string externalProjectKey: string | null baseUrl: string | null authMode: string connectionStatus: $Enums.IntegrationStatus syncDirection: string liveEnabled: boolean liveConfig: Prisma.JsonValue lastSyncAt: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["integration"]> composites: {} } type IntegrationGetPayload = $Result.GetResult type IntegrationCountArgs = Omit & { select?: IntegrationCountAggregateInputType | true } export interface IntegrationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Integration'], meta: { name: 'Integration' } } /** * Find zero or one Integration that matches the filter. * @param {IntegrationFindUniqueArgs} args - Arguments to find a Integration * @example * // Get one Integration * const integration = await prisma.integration.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__IntegrationClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Integration that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {IntegrationFindUniqueOrThrowArgs} args - Arguments to find a Integration * @example * // Get one Integration * const integration = await prisma.integration.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__IntegrationClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Integration 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 {IntegrationFindFirstArgs} args - Arguments to find a Integration * @example * // Get one Integration * const integration = await prisma.integration.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__IntegrationClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Integration 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 {IntegrationFindFirstOrThrowArgs} args - Arguments to find a Integration * @example * // Get one Integration * const integration = await prisma.integration.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__IntegrationClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Integrations 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 {IntegrationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Integrations * const integrations = await prisma.integration.findMany() * * // Get first 10 Integrations * const integrations = await prisma.integration.findMany({ take: 10 }) * * // Only select the `id` * const integrationWithIdOnly = await prisma.integration.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Integration. * @param {IntegrationCreateArgs} args - Arguments to create a Integration. * @example * // Create one Integration * const Integration = await prisma.integration.create({ * data: { * // ... data to create a Integration * } * }) * */ create(args: SelectSubset>): Prisma__IntegrationClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Integrations. * @param {IntegrationCreateManyArgs} args - Arguments to create many Integrations. * @example * // Create many Integrations * const integration = await prisma.integration.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Integrations and returns the data saved in the database. * @param {IntegrationCreateManyAndReturnArgs} args - Arguments to create many Integrations. * @example * // Create many Integrations * const integration = await prisma.integration.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Integrations and only return the `id` * const integrationWithIdOnly = await prisma.integration.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">> /** * Delete a Integration. * @param {IntegrationDeleteArgs} args - Arguments to delete one Integration. * @example * // Delete one Integration * const Integration = await prisma.integration.delete({ * where: { * // ... filter to delete one Integration * } * }) * */ delete(args: SelectSubset>): Prisma__IntegrationClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Integration. * @param {IntegrationUpdateArgs} args - Arguments to update one Integration. * @example * // Update one Integration * const integration = await prisma.integration.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__IntegrationClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Integrations. * @param {IntegrationDeleteManyArgs} args - Arguments to filter Integrations to delete. * @example * // Delete a few Integrations * const { count } = await prisma.integration.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Integrations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IntegrationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Integrations * const integration = await prisma.integration.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Integration. * @param {IntegrationUpsertArgs} args - Arguments to update or create a Integration. * @example * // Update or create a Integration * const integration = await prisma.integration.upsert({ * create: { * // ... data to create a Integration * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Integration we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__IntegrationClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Integrations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IntegrationCountArgs} args - Arguments to filter Integrations to count. * @example * // Count the number of Integrations * const count = await prisma.integration.count({ * where: { * // ... the filter for the Integrations 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 Integration. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IntegrationAggregateArgs} 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 Integration. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IntegrationGroupByArgs} 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 IntegrationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: IntegrationGroupByArgs['orderBy'] } : { orderBy?: IntegrationGroupByArgs['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 ? GetIntegrationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Integration model */ readonly fields: IntegrationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Integration. * 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__IntegrationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" workspace = {}>(args?: Subset>): Prisma__WorkspaceClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> mappings = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> syncRuns = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | 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 Integration model */ interface IntegrationFieldRefs { readonly id: FieldRef<"Integration", 'String'> readonly workspaceId: FieldRef<"Integration", 'String'> readonly provider: FieldRef<"Integration", 'IntegrationProvider'> readonly workspaceName: FieldRef<"Integration", 'String'> readonly externalProjectKey: FieldRef<"Integration", 'String'> readonly baseUrl: FieldRef<"Integration", 'String'> readonly authMode: FieldRef<"Integration", 'String'> readonly connectionStatus: FieldRef<"Integration", 'IntegrationStatus'> readonly syncDirection: FieldRef<"Integration", 'String'> readonly liveEnabled: FieldRef<"Integration", 'Boolean'> readonly liveConfig: FieldRef<"Integration", 'Json'> readonly lastSyncAt: FieldRef<"Integration", 'DateTime'> readonly createdAt: FieldRef<"Integration", 'DateTime'> readonly updatedAt: FieldRef<"Integration", 'DateTime'> } // Custom InputTypes /** * Integration findUnique */ export type IntegrationFindUniqueArgs = { /** * Select specific fields to fetch from the Integration */ select?: IntegrationSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationInclude | null /** * Filter, which Integration to fetch. */ where: IntegrationWhereUniqueInput } /** * Integration findUniqueOrThrow */ export type IntegrationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Integration */ select?: IntegrationSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationInclude | null /** * Filter, which Integration to fetch. */ where: IntegrationWhereUniqueInput } /** * Integration findFirst */ export type IntegrationFindFirstArgs = { /** * Select specific fields to fetch from the Integration */ select?: IntegrationSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationInclude | null /** * Filter, which Integration to fetch. */ where?: IntegrationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Integrations to fetch. */ orderBy?: IntegrationOrderByWithRelationInput | IntegrationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Integrations. */ cursor?: IntegrationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Integrations 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` Integrations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Integrations. */ distinct?: IntegrationScalarFieldEnum | IntegrationScalarFieldEnum[] } /** * Integration findFirstOrThrow */ export type IntegrationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Integration */ select?: IntegrationSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationInclude | null /** * Filter, which Integration to fetch. */ where?: IntegrationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Integrations to fetch. */ orderBy?: IntegrationOrderByWithRelationInput | IntegrationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Integrations. */ cursor?: IntegrationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Integrations 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` Integrations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Integrations. */ distinct?: IntegrationScalarFieldEnum | IntegrationScalarFieldEnum[] } /** * Integration findMany */ export type IntegrationFindManyArgs = { /** * Select specific fields to fetch from the Integration */ select?: IntegrationSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationInclude | null /** * Filter, which Integrations to fetch. */ where?: IntegrationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Integrations to fetch. */ orderBy?: IntegrationOrderByWithRelationInput | IntegrationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Integrations. */ cursor?: IntegrationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Integrations 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` Integrations. */ skip?: number distinct?: IntegrationScalarFieldEnum | IntegrationScalarFieldEnum[] } /** * Integration create */ export type IntegrationCreateArgs = { /** * Select specific fields to fetch from the Integration */ select?: IntegrationSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationInclude | null /** * The data needed to create a Integration. */ data: XOR } /** * Integration createMany */ export type IntegrationCreateManyArgs = { /** * The data used to create many Integrations. */ data: IntegrationCreateManyInput | IntegrationCreateManyInput[] skipDuplicates?: boolean } /** * Integration createManyAndReturn */ export type IntegrationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Integration */ select?: IntegrationSelectCreateManyAndReturn | null /** * The data used to create many Integrations. */ data: IntegrationCreateManyInput | IntegrationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: IntegrationIncludeCreateManyAndReturn | null } /** * Integration update */ export type IntegrationUpdateArgs = { /** * Select specific fields to fetch from the Integration */ select?: IntegrationSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationInclude | null /** * The data needed to update a Integration. */ data: XOR /** * Choose, which Integration to update. */ where: IntegrationWhereUniqueInput } /** * Integration updateMany */ export type IntegrationUpdateManyArgs = { /** * The data used to update Integrations. */ data: XOR /** * Filter which Integrations to update */ where?: IntegrationWhereInput } /** * Integration upsert */ export type IntegrationUpsertArgs = { /** * Select specific fields to fetch from the Integration */ select?: IntegrationSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationInclude | null /** * The filter to search for the Integration to update in case it exists. */ where: IntegrationWhereUniqueInput /** * In case the Integration found by the `where` argument doesn't exist, create a new Integration with this data. */ create: XOR /** * In case the Integration was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Integration delete */ export type IntegrationDeleteArgs = { /** * Select specific fields to fetch from the Integration */ select?: IntegrationSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationInclude | null /** * Filter which Integration to delete. */ where: IntegrationWhereUniqueInput } /** * Integration deleteMany */ export type IntegrationDeleteManyArgs = { /** * Filter which Integrations to delete */ where?: IntegrationWhereInput } /** * Integration.mappings */ export type Integration$mappingsArgs = { /** * Select specific fields to fetch from the ExternalWorkItemMapping */ select?: ExternalWorkItemMappingSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExternalWorkItemMappingInclude | null where?: ExternalWorkItemMappingWhereInput orderBy?: ExternalWorkItemMappingOrderByWithRelationInput | ExternalWorkItemMappingOrderByWithRelationInput[] cursor?: ExternalWorkItemMappingWhereUniqueInput take?: number skip?: number distinct?: ExternalWorkItemMappingScalarFieldEnum | ExternalWorkItemMappingScalarFieldEnum[] } /** * Integration.syncRuns */ export type Integration$syncRunsArgs = { /** * Select specific fields to fetch from the IntegrationSyncRun */ select?: IntegrationSyncRunSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationSyncRunInclude | null where?: IntegrationSyncRunWhereInput orderBy?: IntegrationSyncRunOrderByWithRelationInput | IntegrationSyncRunOrderByWithRelationInput[] cursor?: IntegrationSyncRunWhereUniqueInput take?: number skip?: number distinct?: IntegrationSyncRunScalarFieldEnum | IntegrationSyncRunScalarFieldEnum[] } /** * Integration without action */ export type IntegrationDefaultArgs = { /** * Select specific fields to fetch from the Integration */ select?: IntegrationSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationInclude | null } /** * Model ExternalWorkItemMapping */ export type AggregateExternalWorkItemMapping = { _count: ExternalWorkItemMappingCountAggregateOutputType | null _min: ExternalWorkItemMappingMinAggregateOutputType | null _max: ExternalWorkItemMappingMaxAggregateOutputType | null } export type ExternalWorkItemMappingMinAggregateOutputType = { id: string | null integrationId: string | null projectId: string | null localEntityType: string | null localEntityId: string | null localTitle: string | null externalItemType: string | null externalItemId: string | null externalItemKey: string | null externalUrl: string | null externalStatus: string | null syncStatus: string | null lastSyncedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type ExternalWorkItemMappingMaxAggregateOutputType = { id: string | null integrationId: string | null projectId: string | null localEntityType: string | null localEntityId: string | null localTitle: string | null externalItemType: string | null externalItemId: string | null externalItemKey: string | null externalUrl: string | null externalStatus: string | null syncStatus: string | null lastSyncedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type ExternalWorkItemMappingCountAggregateOutputType = { id: number integrationId: number projectId: number localEntityType: number localEntityId: number localTitle: number externalItemType: number externalItemId: number externalItemKey: number externalUrl: number externalStatus: number syncStatus: number fieldMapping: number lastSyncedAt: number createdAt: number updatedAt: number _all: number } export type ExternalWorkItemMappingMinAggregateInputType = { id?: true integrationId?: true projectId?: true localEntityType?: true localEntityId?: true localTitle?: true externalItemType?: true externalItemId?: true externalItemKey?: true externalUrl?: true externalStatus?: true syncStatus?: true lastSyncedAt?: true createdAt?: true updatedAt?: true } export type ExternalWorkItemMappingMaxAggregateInputType = { id?: true integrationId?: true projectId?: true localEntityType?: true localEntityId?: true localTitle?: true externalItemType?: true externalItemId?: true externalItemKey?: true externalUrl?: true externalStatus?: true syncStatus?: true lastSyncedAt?: true createdAt?: true updatedAt?: true } export type ExternalWorkItemMappingCountAggregateInputType = { id?: true integrationId?: true projectId?: true localEntityType?: true localEntityId?: true localTitle?: true externalItemType?: true externalItemId?: true externalItemKey?: true externalUrl?: true externalStatus?: true syncStatus?: true fieldMapping?: true lastSyncedAt?: true createdAt?: true updatedAt?: true _all?: true } export type ExternalWorkItemMappingAggregateArgs = { /** * Filter which ExternalWorkItemMapping to aggregate. */ where?: ExternalWorkItemMappingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ExternalWorkItemMappings to fetch. */ orderBy?: ExternalWorkItemMappingOrderByWithRelationInput | ExternalWorkItemMappingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ExternalWorkItemMappingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ExternalWorkItemMappings 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` ExternalWorkItemMappings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ExternalWorkItemMappings **/ _count?: true | ExternalWorkItemMappingCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ExternalWorkItemMappingMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ExternalWorkItemMappingMaxAggregateInputType } export type GetExternalWorkItemMappingAggregateType = { [P in keyof T & keyof AggregateExternalWorkItemMapping]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ExternalWorkItemMappingGroupByArgs = { where?: ExternalWorkItemMappingWhereInput orderBy?: ExternalWorkItemMappingOrderByWithAggregationInput | ExternalWorkItemMappingOrderByWithAggregationInput[] by: ExternalWorkItemMappingScalarFieldEnum[] | ExternalWorkItemMappingScalarFieldEnum having?: ExternalWorkItemMappingScalarWhereWithAggregatesInput take?: number skip?: number _count?: ExternalWorkItemMappingCountAggregateInputType | true _min?: ExternalWorkItemMappingMinAggregateInputType _max?: ExternalWorkItemMappingMaxAggregateInputType } export type ExternalWorkItemMappingGroupByOutputType = { id: string integrationId: string projectId: string localEntityType: string localEntityId: string localTitle: string externalItemType: string externalItemId: string externalItemKey: string externalUrl: string | null externalStatus: string syncStatus: string fieldMapping: JsonValue lastSyncedAt: Date | null createdAt: Date updatedAt: Date _count: ExternalWorkItemMappingCountAggregateOutputType | null _min: ExternalWorkItemMappingMinAggregateOutputType | null _max: ExternalWorkItemMappingMaxAggregateOutputType | null } type GetExternalWorkItemMappingGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ExternalWorkItemMappingGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ExternalWorkItemMappingSelect = $Extensions.GetSelect<{ id?: boolean integrationId?: boolean projectId?: boolean localEntityType?: boolean localEntityId?: boolean localTitle?: boolean externalItemType?: boolean externalItemId?: boolean externalItemKey?: boolean externalUrl?: boolean externalStatus?: boolean syncStatus?: boolean fieldMapping?: boolean lastSyncedAt?: boolean createdAt?: boolean updatedAt?: boolean integration?: boolean | IntegrationDefaultArgs }, ExtArgs["result"]["externalWorkItemMapping"]> export type ExternalWorkItemMappingSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean integrationId?: boolean projectId?: boolean localEntityType?: boolean localEntityId?: boolean localTitle?: boolean externalItemType?: boolean externalItemId?: boolean externalItemKey?: boolean externalUrl?: boolean externalStatus?: boolean syncStatus?: boolean fieldMapping?: boolean lastSyncedAt?: boolean createdAt?: boolean updatedAt?: boolean integration?: boolean | IntegrationDefaultArgs }, ExtArgs["result"]["externalWorkItemMapping"]> export type ExternalWorkItemMappingSelectScalar = { id?: boolean integrationId?: boolean projectId?: boolean localEntityType?: boolean localEntityId?: boolean localTitle?: boolean externalItemType?: boolean externalItemId?: boolean externalItemKey?: boolean externalUrl?: boolean externalStatus?: boolean syncStatus?: boolean fieldMapping?: boolean lastSyncedAt?: boolean createdAt?: boolean updatedAt?: boolean } export type ExternalWorkItemMappingInclude = { integration?: boolean | IntegrationDefaultArgs } export type ExternalWorkItemMappingIncludeCreateManyAndReturn = { integration?: boolean | IntegrationDefaultArgs } export type $ExternalWorkItemMappingPayload = { name: "ExternalWorkItemMapping" objects: { integration: Prisma.$IntegrationPayload } scalars: $Extensions.GetPayloadResult<{ id: string integrationId: string projectId: string localEntityType: string localEntityId: string localTitle: string externalItemType: string externalItemId: string externalItemKey: string externalUrl: string | null externalStatus: string syncStatus: string fieldMapping: Prisma.JsonValue lastSyncedAt: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["externalWorkItemMapping"]> composites: {} } type ExternalWorkItemMappingGetPayload = $Result.GetResult type ExternalWorkItemMappingCountArgs = Omit & { select?: ExternalWorkItemMappingCountAggregateInputType | true } export interface ExternalWorkItemMappingDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ExternalWorkItemMapping'], meta: { name: 'ExternalWorkItemMapping' } } /** * Find zero or one ExternalWorkItemMapping that matches the filter. * @param {ExternalWorkItemMappingFindUniqueArgs} args - Arguments to find a ExternalWorkItemMapping * @example * // Get one ExternalWorkItemMapping * const externalWorkItemMapping = await prisma.externalWorkItemMapping.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ExternalWorkItemMappingClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one ExternalWorkItemMapping that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ExternalWorkItemMappingFindUniqueOrThrowArgs} args - Arguments to find a ExternalWorkItemMapping * @example * // Get one ExternalWorkItemMapping * const externalWorkItemMapping = await prisma.externalWorkItemMapping.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ExternalWorkItemMappingClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first ExternalWorkItemMapping 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 {ExternalWorkItemMappingFindFirstArgs} args - Arguments to find a ExternalWorkItemMapping * @example * // Get one ExternalWorkItemMapping * const externalWorkItemMapping = await prisma.externalWorkItemMapping.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ExternalWorkItemMappingClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first ExternalWorkItemMapping 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 {ExternalWorkItemMappingFindFirstOrThrowArgs} args - Arguments to find a ExternalWorkItemMapping * @example * // Get one ExternalWorkItemMapping * const externalWorkItemMapping = await prisma.externalWorkItemMapping.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ExternalWorkItemMappingClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more ExternalWorkItemMappings 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 {ExternalWorkItemMappingFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ExternalWorkItemMappings * const externalWorkItemMappings = await prisma.externalWorkItemMapping.findMany() * * // Get first 10 ExternalWorkItemMappings * const externalWorkItemMappings = await prisma.externalWorkItemMapping.findMany({ take: 10 }) * * // Only select the `id` * const externalWorkItemMappingWithIdOnly = await prisma.externalWorkItemMapping.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a ExternalWorkItemMapping. * @param {ExternalWorkItemMappingCreateArgs} args - Arguments to create a ExternalWorkItemMapping. * @example * // Create one ExternalWorkItemMapping * const ExternalWorkItemMapping = await prisma.externalWorkItemMapping.create({ * data: { * // ... data to create a ExternalWorkItemMapping * } * }) * */ create(args: SelectSubset>): Prisma__ExternalWorkItemMappingClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many ExternalWorkItemMappings. * @param {ExternalWorkItemMappingCreateManyArgs} args - Arguments to create many ExternalWorkItemMappings. * @example * // Create many ExternalWorkItemMappings * const externalWorkItemMapping = await prisma.externalWorkItemMapping.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ExternalWorkItemMappings and returns the data saved in the database. * @param {ExternalWorkItemMappingCreateManyAndReturnArgs} args - Arguments to create many ExternalWorkItemMappings. * @example * // Create many ExternalWorkItemMappings * const externalWorkItemMapping = await prisma.externalWorkItemMapping.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ExternalWorkItemMappings and only return the `id` * const externalWorkItemMappingWithIdOnly = await prisma.externalWorkItemMapping.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">> /** * Delete a ExternalWorkItemMapping. * @param {ExternalWorkItemMappingDeleteArgs} args - Arguments to delete one ExternalWorkItemMapping. * @example * // Delete one ExternalWorkItemMapping * const ExternalWorkItemMapping = await prisma.externalWorkItemMapping.delete({ * where: { * // ... filter to delete one ExternalWorkItemMapping * } * }) * */ delete(args: SelectSubset>): Prisma__ExternalWorkItemMappingClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one ExternalWorkItemMapping. * @param {ExternalWorkItemMappingUpdateArgs} args - Arguments to update one ExternalWorkItemMapping. * @example * // Update one ExternalWorkItemMapping * const externalWorkItemMapping = await prisma.externalWorkItemMapping.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ExternalWorkItemMappingClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more ExternalWorkItemMappings. * @param {ExternalWorkItemMappingDeleteManyArgs} args - Arguments to filter ExternalWorkItemMappings to delete. * @example * // Delete a few ExternalWorkItemMappings * const { count } = await prisma.externalWorkItemMapping.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ExternalWorkItemMappings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ExternalWorkItemMappingUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ExternalWorkItemMappings * const externalWorkItemMapping = await prisma.externalWorkItemMapping.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one ExternalWorkItemMapping. * @param {ExternalWorkItemMappingUpsertArgs} args - Arguments to update or create a ExternalWorkItemMapping. * @example * // Update or create a ExternalWorkItemMapping * const externalWorkItemMapping = await prisma.externalWorkItemMapping.upsert({ * create: { * // ... data to create a ExternalWorkItemMapping * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ExternalWorkItemMapping we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ExternalWorkItemMappingClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of ExternalWorkItemMappings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ExternalWorkItemMappingCountArgs} args - Arguments to filter ExternalWorkItemMappings to count. * @example * // Count the number of ExternalWorkItemMappings * const count = await prisma.externalWorkItemMapping.count({ * where: { * // ... the filter for the ExternalWorkItemMappings 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 ExternalWorkItemMapping. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ExternalWorkItemMappingAggregateArgs} 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 ExternalWorkItemMapping. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ExternalWorkItemMappingGroupByArgs} 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 ExternalWorkItemMappingGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ExternalWorkItemMappingGroupByArgs['orderBy'] } : { orderBy?: ExternalWorkItemMappingGroupByArgs['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 ? GetExternalWorkItemMappingGroupByPayload : Prisma.PrismaPromise /** * Fields of the ExternalWorkItemMapping model */ readonly fields: ExternalWorkItemMappingFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ExternalWorkItemMapping. * 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__ExternalWorkItemMappingClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" integration = {}>(args?: Subset>): Prisma__IntegrationClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * 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 ExternalWorkItemMapping model */ interface ExternalWorkItemMappingFieldRefs { readonly id: FieldRef<"ExternalWorkItemMapping", 'String'> readonly integrationId: FieldRef<"ExternalWorkItemMapping", 'String'> readonly projectId: FieldRef<"ExternalWorkItemMapping", 'String'> readonly localEntityType: FieldRef<"ExternalWorkItemMapping", 'String'> readonly localEntityId: FieldRef<"ExternalWorkItemMapping", 'String'> readonly localTitle: FieldRef<"ExternalWorkItemMapping", 'String'> readonly externalItemType: FieldRef<"ExternalWorkItemMapping", 'String'> readonly externalItemId: FieldRef<"ExternalWorkItemMapping", 'String'> readonly externalItemKey: FieldRef<"ExternalWorkItemMapping", 'String'> readonly externalUrl: FieldRef<"ExternalWorkItemMapping", 'String'> readonly externalStatus: FieldRef<"ExternalWorkItemMapping", 'String'> readonly syncStatus: FieldRef<"ExternalWorkItemMapping", 'String'> readonly fieldMapping: FieldRef<"ExternalWorkItemMapping", 'Json'> readonly lastSyncedAt: FieldRef<"ExternalWorkItemMapping", 'DateTime'> readonly createdAt: FieldRef<"ExternalWorkItemMapping", 'DateTime'> readonly updatedAt: FieldRef<"ExternalWorkItemMapping", 'DateTime'> } // Custom InputTypes /** * ExternalWorkItemMapping findUnique */ export type ExternalWorkItemMappingFindUniqueArgs = { /** * Select specific fields to fetch from the ExternalWorkItemMapping */ select?: ExternalWorkItemMappingSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExternalWorkItemMappingInclude | null /** * Filter, which ExternalWorkItemMapping to fetch. */ where: ExternalWorkItemMappingWhereUniqueInput } /** * ExternalWorkItemMapping findUniqueOrThrow */ export type ExternalWorkItemMappingFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ExternalWorkItemMapping */ select?: ExternalWorkItemMappingSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExternalWorkItemMappingInclude | null /** * Filter, which ExternalWorkItemMapping to fetch. */ where: ExternalWorkItemMappingWhereUniqueInput } /** * ExternalWorkItemMapping findFirst */ export type ExternalWorkItemMappingFindFirstArgs = { /** * Select specific fields to fetch from the ExternalWorkItemMapping */ select?: ExternalWorkItemMappingSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExternalWorkItemMappingInclude | null /** * Filter, which ExternalWorkItemMapping to fetch. */ where?: ExternalWorkItemMappingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ExternalWorkItemMappings to fetch. */ orderBy?: ExternalWorkItemMappingOrderByWithRelationInput | ExternalWorkItemMappingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ExternalWorkItemMappings. */ cursor?: ExternalWorkItemMappingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ExternalWorkItemMappings 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` ExternalWorkItemMappings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ExternalWorkItemMappings. */ distinct?: ExternalWorkItemMappingScalarFieldEnum | ExternalWorkItemMappingScalarFieldEnum[] } /** * ExternalWorkItemMapping findFirstOrThrow */ export type ExternalWorkItemMappingFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ExternalWorkItemMapping */ select?: ExternalWorkItemMappingSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExternalWorkItemMappingInclude | null /** * Filter, which ExternalWorkItemMapping to fetch. */ where?: ExternalWorkItemMappingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ExternalWorkItemMappings to fetch. */ orderBy?: ExternalWorkItemMappingOrderByWithRelationInput | ExternalWorkItemMappingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ExternalWorkItemMappings. */ cursor?: ExternalWorkItemMappingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ExternalWorkItemMappings 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` ExternalWorkItemMappings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ExternalWorkItemMappings. */ distinct?: ExternalWorkItemMappingScalarFieldEnum | ExternalWorkItemMappingScalarFieldEnum[] } /** * ExternalWorkItemMapping findMany */ export type ExternalWorkItemMappingFindManyArgs = { /** * Select specific fields to fetch from the ExternalWorkItemMapping */ select?: ExternalWorkItemMappingSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExternalWorkItemMappingInclude | null /** * Filter, which ExternalWorkItemMappings to fetch. */ where?: ExternalWorkItemMappingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ExternalWorkItemMappings to fetch. */ orderBy?: ExternalWorkItemMappingOrderByWithRelationInput | ExternalWorkItemMappingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ExternalWorkItemMappings. */ cursor?: ExternalWorkItemMappingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ExternalWorkItemMappings 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` ExternalWorkItemMappings. */ skip?: number distinct?: ExternalWorkItemMappingScalarFieldEnum | ExternalWorkItemMappingScalarFieldEnum[] } /** * ExternalWorkItemMapping create */ export type ExternalWorkItemMappingCreateArgs = { /** * Select specific fields to fetch from the ExternalWorkItemMapping */ select?: ExternalWorkItemMappingSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExternalWorkItemMappingInclude | null /** * The data needed to create a ExternalWorkItemMapping. */ data: XOR } /** * ExternalWorkItemMapping createMany */ export type ExternalWorkItemMappingCreateManyArgs = { /** * The data used to create many ExternalWorkItemMappings. */ data: ExternalWorkItemMappingCreateManyInput | ExternalWorkItemMappingCreateManyInput[] skipDuplicates?: boolean } /** * ExternalWorkItemMapping createManyAndReturn */ export type ExternalWorkItemMappingCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ExternalWorkItemMapping */ select?: ExternalWorkItemMappingSelectCreateManyAndReturn | null /** * The data used to create many ExternalWorkItemMappings. */ data: ExternalWorkItemMappingCreateManyInput | ExternalWorkItemMappingCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ExternalWorkItemMappingIncludeCreateManyAndReturn | null } /** * ExternalWorkItemMapping update */ export type ExternalWorkItemMappingUpdateArgs = { /** * Select specific fields to fetch from the ExternalWorkItemMapping */ select?: ExternalWorkItemMappingSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExternalWorkItemMappingInclude | null /** * The data needed to update a ExternalWorkItemMapping. */ data: XOR /** * Choose, which ExternalWorkItemMapping to update. */ where: ExternalWorkItemMappingWhereUniqueInput } /** * ExternalWorkItemMapping updateMany */ export type ExternalWorkItemMappingUpdateManyArgs = { /** * The data used to update ExternalWorkItemMappings. */ data: XOR /** * Filter which ExternalWorkItemMappings to update */ where?: ExternalWorkItemMappingWhereInput } /** * ExternalWorkItemMapping upsert */ export type ExternalWorkItemMappingUpsertArgs = { /** * Select specific fields to fetch from the ExternalWorkItemMapping */ select?: ExternalWorkItemMappingSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExternalWorkItemMappingInclude | null /** * The filter to search for the ExternalWorkItemMapping to update in case it exists. */ where: ExternalWorkItemMappingWhereUniqueInput /** * In case the ExternalWorkItemMapping found by the `where` argument doesn't exist, create a new ExternalWorkItemMapping with this data. */ create: XOR /** * In case the ExternalWorkItemMapping was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ExternalWorkItemMapping delete */ export type ExternalWorkItemMappingDeleteArgs = { /** * Select specific fields to fetch from the ExternalWorkItemMapping */ select?: ExternalWorkItemMappingSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExternalWorkItemMappingInclude | null /** * Filter which ExternalWorkItemMapping to delete. */ where: ExternalWorkItemMappingWhereUniqueInput } /** * ExternalWorkItemMapping deleteMany */ export type ExternalWorkItemMappingDeleteManyArgs = { /** * Filter which ExternalWorkItemMappings to delete */ where?: ExternalWorkItemMappingWhereInput } /** * ExternalWorkItemMapping without action */ export type ExternalWorkItemMappingDefaultArgs = { /** * Select specific fields to fetch from the ExternalWorkItemMapping */ select?: ExternalWorkItemMappingSelect | null /** * Choose, which related nodes to fetch as well */ include?: ExternalWorkItemMappingInclude | null } /** * Model IntegrationSyncRun */ export type AggregateIntegrationSyncRun = { _count: IntegrationSyncRunCountAggregateOutputType | null _avg: IntegrationSyncRunAvgAggregateOutputType | null _sum: IntegrationSyncRunSumAggregateOutputType | null _min: IntegrationSyncRunMinAggregateOutputType | null _max: IntegrationSyncRunMaxAggregateOutputType | null } export type IntegrationSyncRunAvgAggregateOutputType = { createdCount: number | null updatedCount: number | null failedCount: number | null } export type IntegrationSyncRunSumAggregateOutputType = { createdCount: number | null updatedCount: number | null failedCount: number | null } export type IntegrationSyncRunMinAggregateOutputType = { id: string | null integrationId: string | null projectId: string | null provider: $Enums.IntegrationProvider | null status: string | null startedAt: Date | null finishedAt: Date | null createdCount: number | null updatedCount: number | null failedCount: number | null summary: string | null createdAt: Date | null } export type IntegrationSyncRunMaxAggregateOutputType = { id: string | null integrationId: string | null projectId: string | null provider: $Enums.IntegrationProvider | null status: string | null startedAt: Date | null finishedAt: Date | null createdCount: number | null updatedCount: number | null failedCount: number | null summary: string | null createdAt: Date | null } export type IntegrationSyncRunCountAggregateOutputType = { id: number integrationId: number projectId: number provider: number status: number startedAt: number finishedAt: number createdCount: number updatedCount: number failedCount: number summary: number failureLog: number createdAt: number _all: number } export type IntegrationSyncRunAvgAggregateInputType = { createdCount?: true updatedCount?: true failedCount?: true } export type IntegrationSyncRunSumAggregateInputType = { createdCount?: true updatedCount?: true failedCount?: true } export type IntegrationSyncRunMinAggregateInputType = { id?: true integrationId?: true projectId?: true provider?: true status?: true startedAt?: true finishedAt?: true createdCount?: true updatedCount?: true failedCount?: true summary?: true createdAt?: true } export type IntegrationSyncRunMaxAggregateInputType = { id?: true integrationId?: true projectId?: true provider?: true status?: true startedAt?: true finishedAt?: true createdCount?: true updatedCount?: true failedCount?: true summary?: true createdAt?: true } export type IntegrationSyncRunCountAggregateInputType = { id?: true integrationId?: true projectId?: true provider?: true status?: true startedAt?: true finishedAt?: true createdCount?: true updatedCount?: true failedCount?: true summary?: true failureLog?: true createdAt?: true _all?: true } export type IntegrationSyncRunAggregateArgs = { /** * Filter which IntegrationSyncRun to aggregate. */ where?: IntegrationSyncRunWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IntegrationSyncRuns to fetch. */ orderBy?: IntegrationSyncRunOrderByWithRelationInput | IntegrationSyncRunOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: IntegrationSyncRunWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IntegrationSyncRuns 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` IntegrationSyncRuns. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned IntegrationSyncRuns **/ _count?: true | IntegrationSyncRunCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: IntegrationSyncRunAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: IntegrationSyncRunSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: IntegrationSyncRunMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: IntegrationSyncRunMaxAggregateInputType } export type GetIntegrationSyncRunAggregateType = { [P in keyof T & keyof AggregateIntegrationSyncRun]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type IntegrationSyncRunGroupByArgs = { where?: IntegrationSyncRunWhereInput orderBy?: IntegrationSyncRunOrderByWithAggregationInput | IntegrationSyncRunOrderByWithAggregationInput[] by: IntegrationSyncRunScalarFieldEnum[] | IntegrationSyncRunScalarFieldEnum having?: IntegrationSyncRunScalarWhereWithAggregatesInput take?: number skip?: number _count?: IntegrationSyncRunCountAggregateInputType | true _avg?: IntegrationSyncRunAvgAggregateInputType _sum?: IntegrationSyncRunSumAggregateInputType _min?: IntegrationSyncRunMinAggregateInputType _max?: IntegrationSyncRunMaxAggregateInputType } export type IntegrationSyncRunGroupByOutputType = { id: string integrationId: string projectId: string provider: $Enums.IntegrationProvider status: string startedAt: Date finishedAt: Date | null createdCount: number updatedCount: number failedCount: number summary: string | null failureLog: JsonValue createdAt: Date _count: IntegrationSyncRunCountAggregateOutputType | null _avg: IntegrationSyncRunAvgAggregateOutputType | null _sum: IntegrationSyncRunSumAggregateOutputType | null _min: IntegrationSyncRunMinAggregateOutputType | null _max: IntegrationSyncRunMaxAggregateOutputType | null } type GetIntegrationSyncRunGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof IntegrationSyncRunGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type IntegrationSyncRunSelect = $Extensions.GetSelect<{ id?: boolean integrationId?: boolean projectId?: boolean provider?: boolean status?: boolean startedAt?: boolean finishedAt?: boolean createdCount?: boolean updatedCount?: boolean failedCount?: boolean summary?: boolean failureLog?: boolean createdAt?: boolean integration?: boolean | IntegrationDefaultArgs }, ExtArgs["result"]["integrationSyncRun"]> export type IntegrationSyncRunSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean integrationId?: boolean projectId?: boolean provider?: boolean status?: boolean startedAt?: boolean finishedAt?: boolean createdCount?: boolean updatedCount?: boolean failedCount?: boolean summary?: boolean failureLog?: boolean createdAt?: boolean integration?: boolean | IntegrationDefaultArgs }, ExtArgs["result"]["integrationSyncRun"]> export type IntegrationSyncRunSelectScalar = { id?: boolean integrationId?: boolean projectId?: boolean provider?: boolean status?: boolean startedAt?: boolean finishedAt?: boolean createdCount?: boolean updatedCount?: boolean failedCount?: boolean summary?: boolean failureLog?: boolean createdAt?: boolean } export type IntegrationSyncRunInclude = { integration?: boolean | IntegrationDefaultArgs } export type IntegrationSyncRunIncludeCreateManyAndReturn = { integration?: boolean | IntegrationDefaultArgs } export type $IntegrationSyncRunPayload = { name: "IntegrationSyncRun" objects: { integration: Prisma.$IntegrationPayload } scalars: $Extensions.GetPayloadResult<{ id: string integrationId: string projectId: string provider: $Enums.IntegrationProvider status: string startedAt: Date finishedAt: Date | null createdCount: number updatedCount: number failedCount: number summary: string | null failureLog: Prisma.JsonValue createdAt: Date }, ExtArgs["result"]["integrationSyncRun"]> composites: {} } type IntegrationSyncRunGetPayload = $Result.GetResult type IntegrationSyncRunCountArgs = Omit & { select?: IntegrationSyncRunCountAggregateInputType | true } export interface IntegrationSyncRunDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['IntegrationSyncRun'], meta: { name: 'IntegrationSyncRun' } } /** * Find zero or one IntegrationSyncRun that matches the filter. * @param {IntegrationSyncRunFindUniqueArgs} args - Arguments to find a IntegrationSyncRun * @example * // Get one IntegrationSyncRun * const integrationSyncRun = await prisma.integrationSyncRun.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__IntegrationSyncRunClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one IntegrationSyncRun that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {IntegrationSyncRunFindUniqueOrThrowArgs} args - Arguments to find a IntegrationSyncRun * @example * // Get one IntegrationSyncRun * const integrationSyncRun = await prisma.integrationSyncRun.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__IntegrationSyncRunClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first IntegrationSyncRun 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 {IntegrationSyncRunFindFirstArgs} args - Arguments to find a IntegrationSyncRun * @example * // Get one IntegrationSyncRun * const integrationSyncRun = await prisma.integrationSyncRun.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__IntegrationSyncRunClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first IntegrationSyncRun 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 {IntegrationSyncRunFindFirstOrThrowArgs} args - Arguments to find a IntegrationSyncRun * @example * // Get one IntegrationSyncRun * const integrationSyncRun = await prisma.integrationSyncRun.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__IntegrationSyncRunClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more IntegrationSyncRuns 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 {IntegrationSyncRunFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all IntegrationSyncRuns * const integrationSyncRuns = await prisma.integrationSyncRun.findMany() * * // Get first 10 IntegrationSyncRuns * const integrationSyncRuns = await prisma.integrationSyncRun.findMany({ take: 10 }) * * // Only select the `id` * const integrationSyncRunWithIdOnly = await prisma.integrationSyncRun.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a IntegrationSyncRun. * @param {IntegrationSyncRunCreateArgs} args - Arguments to create a IntegrationSyncRun. * @example * // Create one IntegrationSyncRun * const IntegrationSyncRun = await prisma.integrationSyncRun.create({ * data: { * // ... data to create a IntegrationSyncRun * } * }) * */ create(args: SelectSubset>): Prisma__IntegrationSyncRunClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many IntegrationSyncRuns. * @param {IntegrationSyncRunCreateManyArgs} args - Arguments to create many IntegrationSyncRuns. * @example * // Create many IntegrationSyncRuns * const integrationSyncRun = await prisma.integrationSyncRun.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many IntegrationSyncRuns and returns the data saved in the database. * @param {IntegrationSyncRunCreateManyAndReturnArgs} args - Arguments to create many IntegrationSyncRuns. * @example * // Create many IntegrationSyncRuns * const integrationSyncRun = await prisma.integrationSyncRun.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many IntegrationSyncRuns and only return the `id` * const integrationSyncRunWithIdOnly = await prisma.integrationSyncRun.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">> /** * Delete a IntegrationSyncRun. * @param {IntegrationSyncRunDeleteArgs} args - Arguments to delete one IntegrationSyncRun. * @example * // Delete one IntegrationSyncRun * const IntegrationSyncRun = await prisma.integrationSyncRun.delete({ * where: { * // ... filter to delete one IntegrationSyncRun * } * }) * */ delete(args: SelectSubset>): Prisma__IntegrationSyncRunClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one IntegrationSyncRun. * @param {IntegrationSyncRunUpdateArgs} args - Arguments to update one IntegrationSyncRun. * @example * // Update one IntegrationSyncRun * const integrationSyncRun = await prisma.integrationSyncRun.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__IntegrationSyncRunClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more IntegrationSyncRuns. * @param {IntegrationSyncRunDeleteManyArgs} args - Arguments to filter IntegrationSyncRuns to delete. * @example * // Delete a few IntegrationSyncRuns * const { count } = await prisma.integrationSyncRun.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more IntegrationSyncRuns. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IntegrationSyncRunUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many IntegrationSyncRuns * const integrationSyncRun = await prisma.integrationSyncRun.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one IntegrationSyncRun. * @param {IntegrationSyncRunUpsertArgs} args - Arguments to update or create a IntegrationSyncRun. * @example * // Update or create a IntegrationSyncRun * const integrationSyncRun = await prisma.integrationSyncRun.upsert({ * create: { * // ... data to create a IntegrationSyncRun * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the IntegrationSyncRun we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__IntegrationSyncRunClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of IntegrationSyncRuns. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IntegrationSyncRunCountArgs} args - Arguments to filter IntegrationSyncRuns to count. * @example * // Count the number of IntegrationSyncRuns * const count = await prisma.integrationSyncRun.count({ * where: { * // ... the filter for the IntegrationSyncRuns 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 IntegrationSyncRun. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IntegrationSyncRunAggregateArgs} 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 IntegrationSyncRun. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IntegrationSyncRunGroupByArgs} 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 IntegrationSyncRunGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: IntegrationSyncRunGroupByArgs['orderBy'] } : { orderBy?: IntegrationSyncRunGroupByArgs['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 ? GetIntegrationSyncRunGroupByPayload : Prisma.PrismaPromise /** * Fields of the IntegrationSyncRun model */ readonly fields: IntegrationSyncRunFieldRefs; } /** * The delegate class that acts as a "Promise-like" for IntegrationSyncRun. * 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__IntegrationSyncRunClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" integration = {}>(args?: Subset>): Prisma__IntegrationClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * 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 IntegrationSyncRun model */ interface IntegrationSyncRunFieldRefs { readonly id: FieldRef<"IntegrationSyncRun", 'String'> readonly integrationId: FieldRef<"IntegrationSyncRun", 'String'> readonly projectId: FieldRef<"IntegrationSyncRun", 'String'> readonly provider: FieldRef<"IntegrationSyncRun", 'IntegrationProvider'> readonly status: FieldRef<"IntegrationSyncRun", 'String'> readonly startedAt: FieldRef<"IntegrationSyncRun", 'DateTime'> readonly finishedAt: FieldRef<"IntegrationSyncRun", 'DateTime'> readonly createdCount: FieldRef<"IntegrationSyncRun", 'Int'> readonly updatedCount: FieldRef<"IntegrationSyncRun", 'Int'> readonly failedCount: FieldRef<"IntegrationSyncRun", 'Int'> readonly summary: FieldRef<"IntegrationSyncRun", 'String'> readonly failureLog: FieldRef<"IntegrationSyncRun", 'Json'> readonly createdAt: FieldRef<"IntegrationSyncRun", 'DateTime'> } // Custom InputTypes /** * IntegrationSyncRun findUnique */ export type IntegrationSyncRunFindUniqueArgs = { /** * Select specific fields to fetch from the IntegrationSyncRun */ select?: IntegrationSyncRunSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationSyncRunInclude | null /** * Filter, which IntegrationSyncRun to fetch. */ where: IntegrationSyncRunWhereUniqueInput } /** * IntegrationSyncRun findUniqueOrThrow */ export type IntegrationSyncRunFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the IntegrationSyncRun */ select?: IntegrationSyncRunSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationSyncRunInclude | null /** * Filter, which IntegrationSyncRun to fetch. */ where: IntegrationSyncRunWhereUniqueInput } /** * IntegrationSyncRun findFirst */ export type IntegrationSyncRunFindFirstArgs = { /** * Select specific fields to fetch from the IntegrationSyncRun */ select?: IntegrationSyncRunSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationSyncRunInclude | null /** * Filter, which IntegrationSyncRun to fetch. */ where?: IntegrationSyncRunWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IntegrationSyncRuns to fetch. */ orderBy?: IntegrationSyncRunOrderByWithRelationInput | IntegrationSyncRunOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for IntegrationSyncRuns. */ cursor?: IntegrationSyncRunWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IntegrationSyncRuns 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` IntegrationSyncRuns. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of IntegrationSyncRuns. */ distinct?: IntegrationSyncRunScalarFieldEnum | IntegrationSyncRunScalarFieldEnum[] } /** * IntegrationSyncRun findFirstOrThrow */ export type IntegrationSyncRunFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the IntegrationSyncRun */ select?: IntegrationSyncRunSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationSyncRunInclude | null /** * Filter, which IntegrationSyncRun to fetch. */ where?: IntegrationSyncRunWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IntegrationSyncRuns to fetch. */ orderBy?: IntegrationSyncRunOrderByWithRelationInput | IntegrationSyncRunOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for IntegrationSyncRuns. */ cursor?: IntegrationSyncRunWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IntegrationSyncRuns 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` IntegrationSyncRuns. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of IntegrationSyncRuns. */ distinct?: IntegrationSyncRunScalarFieldEnum | IntegrationSyncRunScalarFieldEnum[] } /** * IntegrationSyncRun findMany */ export type IntegrationSyncRunFindManyArgs = { /** * Select specific fields to fetch from the IntegrationSyncRun */ select?: IntegrationSyncRunSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationSyncRunInclude | null /** * Filter, which IntegrationSyncRuns to fetch. */ where?: IntegrationSyncRunWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IntegrationSyncRuns to fetch. */ orderBy?: IntegrationSyncRunOrderByWithRelationInput | IntegrationSyncRunOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing IntegrationSyncRuns. */ cursor?: IntegrationSyncRunWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IntegrationSyncRuns 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` IntegrationSyncRuns. */ skip?: number distinct?: IntegrationSyncRunScalarFieldEnum | IntegrationSyncRunScalarFieldEnum[] } /** * IntegrationSyncRun create */ export type IntegrationSyncRunCreateArgs = { /** * Select specific fields to fetch from the IntegrationSyncRun */ select?: IntegrationSyncRunSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationSyncRunInclude | null /** * The data needed to create a IntegrationSyncRun. */ data: XOR } /** * IntegrationSyncRun createMany */ export type IntegrationSyncRunCreateManyArgs = { /** * The data used to create many IntegrationSyncRuns. */ data: IntegrationSyncRunCreateManyInput | IntegrationSyncRunCreateManyInput[] skipDuplicates?: boolean } /** * IntegrationSyncRun createManyAndReturn */ export type IntegrationSyncRunCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the IntegrationSyncRun */ select?: IntegrationSyncRunSelectCreateManyAndReturn | null /** * The data used to create many IntegrationSyncRuns. */ data: IntegrationSyncRunCreateManyInput | IntegrationSyncRunCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: IntegrationSyncRunIncludeCreateManyAndReturn | null } /** * IntegrationSyncRun update */ export type IntegrationSyncRunUpdateArgs = { /** * Select specific fields to fetch from the IntegrationSyncRun */ select?: IntegrationSyncRunSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationSyncRunInclude | null /** * The data needed to update a IntegrationSyncRun. */ data: XOR /** * Choose, which IntegrationSyncRun to update. */ where: IntegrationSyncRunWhereUniqueInput } /** * IntegrationSyncRun updateMany */ export type IntegrationSyncRunUpdateManyArgs = { /** * The data used to update IntegrationSyncRuns. */ data: XOR /** * Filter which IntegrationSyncRuns to update */ where?: IntegrationSyncRunWhereInput } /** * IntegrationSyncRun upsert */ export type IntegrationSyncRunUpsertArgs = { /** * Select specific fields to fetch from the IntegrationSyncRun */ select?: IntegrationSyncRunSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationSyncRunInclude | null /** * The filter to search for the IntegrationSyncRun to update in case it exists. */ where: IntegrationSyncRunWhereUniqueInput /** * In case the IntegrationSyncRun found by the `where` argument doesn't exist, create a new IntegrationSyncRun with this data. */ create: XOR /** * In case the IntegrationSyncRun was found with the provided `where` argument, update it with this data. */ update: XOR } /** * IntegrationSyncRun delete */ export type IntegrationSyncRunDeleteArgs = { /** * Select specific fields to fetch from the IntegrationSyncRun */ select?: IntegrationSyncRunSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationSyncRunInclude | null /** * Filter which IntegrationSyncRun to delete. */ where: IntegrationSyncRunWhereUniqueInput } /** * IntegrationSyncRun deleteMany */ export type IntegrationSyncRunDeleteManyArgs = { /** * Filter which IntegrationSyncRuns to delete */ where?: IntegrationSyncRunWhereInput } /** * IntegrationSyncRun without action */ export type IntegrationSyncRunDefaultArgs = { /** * Select specific fields to fetch from the IntegrationSyncRun */ select?: IntegrationSyncRunSelect | null /** * Choose, which related nodes to fetch as well */ include?: IntegrationSyncRunInclude | null } /** * Model OAuthToken */ export type AggregateOAuthToken = { _count: OAuthTokenCountAggregateOutputType | null _min: OAuthTokenMinAggregateOutputType | null _max: OAuthTokenMaxAggregateOutputType | null } export type OAuthTokenMinAggregateOutputType = { id: string | null organizationId: string | null provider: $Enums.IntegrationProvider | null integrationId: string | null redactedToken: string | null expiresAt: Date | null createdAt: Date | null updatedAt: Date | null } export type OAuthTokenMaxAggregateOutputType = { id: string | null organizationId: string | null provider: $Enums.IntegrationProvider | null integrationId: string | null redactedToken: string | null expiresAt: Date | null createdAt: Date | null updatedAt: Date | null } export type OAuthTokenCountAggregateOutputType = { id: number organizationId: number provider: number integrationId: number encryptedToken: number redactedToken: number expiresAt: number createdAt: number updatedAt: number _all: number } export type OAuthTokenMinAggregateInputType = { id?: true organizationId?: true provider?: true integrationId?: true redactedToken?: true expiresAt?: true createdAt?: true updatedAt?: true } export type OAuthTokenMaxAggregateInputType = { id?: true organizationId?: true provider?: true integrationId?: true redactedToken?: true expiresAt?: true createdAt?: true updatedAt?: true } export type OAuthTokenCountAggregateInputType = { id?: true organizationId?: true provider?: true integrationId?: true encryptedToken?: true redactedToken?: true expiresAt?: true createdAt?: true updatedAt?: true _all?: true } export type OAuthTokenAggregateArgs = { /** * Filter which OAuthToken to aggregate. */ where?: OAuthTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OAuthTokens to fetch. */ orderBy?: OAuthTokenOrderByWithRelationInput | OAuthTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: OAuthTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OAuthTokens 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` OAuthTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned OAuthTokens **/ _count?: true | OAuthTokenCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: OAuthTokenMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: OAuthTokenMaxAggregateInputType } export type GetOAuthTokenAggregateType = { [P in keyof T & keyof AggregateOAuthToken]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type OAuthTokenGroupByArgs = { where?: OAuthTokenWhereInput orderBy?: OAuthTokenOrderByWithAggregationInput | OAuthTokenOrderByWithAggregationInput[] by: OAuthTokenScalarFieldEnum[] | OAuthTokenScalarFieldEnum having?: OAuthTokenScalarWhereWithAggregatesInput take?: number skip?: number _count?: OAuthTokenCountAggregateInputType | true _min?: OAuthTokenMinAggregateInputType _max?: OAuthTokenMaxAggregateInputType } export type OAuthTokenGroupByOutputType = { id: string organizationId: string provider: $Enums.IntegrationProvider integrationId: string | null encryptedToken: JsonValue redactedToken: string expiresAt: Date | null createdAt: Date updatedAt: Date _count: OAuthTokenCountAggregateOutputType | null _min: OAuthTokenMinAggregateOutputType | null _max: OAuthTokenMaxAggregateOutputType | null } type GetOAuthTokenGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof OAuthTokenGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type OAuthTokenSelect = $Extensions.GetSelect<{ id?: boolean organizationId?: boolean provider?: boolean integrationId?: boolean encryptedToken?: boolean redactedToken?: boolean expiresAt?: boolean createdAt?: boolean updatedAt?: boolean organization?: boolean | OrganizationDefaultArgs }, ExtArgs["result"]["oAuthToken"]> export type OAuthTokenSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean organizationId?: boolean provider?: boolean integrationId?: boolean encryptedToken?: boolean redactedToken?: boolean expiresAt?: boolean createdAt?: boolean updatedAt?: boolean organization?: boolean | OrganizationDefaultArgs }, ExtArgs["result"]["oAuthToken"]> export type OAuthTokenSelectScalar = { id?: boolean organizationId?: boolean provider?: boolean integrationId?: boolean encryptedToken?: boolean redactedToken?: boolean expiresAt?: boolean createdAt?: boolean updatedAt?: boolean } export type OAuthTokenInclude = { organization?: boolean | OrganizationDefaultArgs } export type OAuthTokenIncludeCreateManyAndReturn = { organization?: boolean | OrganizationDefaultArgs } export type $OAuthTokenPayload = { name: "OAuthToken" objects: { organization: Prisma.$OrganizationPayload } scalars: $Extensions.GetPayloadResult<{ id: string organizationId: string provider: $Enums.IntegrationProvider integrationId: string | null encryptedToken: Prisma.JsonValue redactedToken: string expiresAt: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["oAuthToken"]> composites: {} } type OAuthTokenGetPayload = $Result.GetResult type OAuthTokenCountArgs = Omit & { select?: OAuthTokenCountAggregateInputType | true } export interface OAuthTokenDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['OAuthToken'], meta: { name: 'OAuthToken' } } /** * Find zero or one OAuthToken that matches the filter. * @param {OAuthTokenFindUniqueArgs} args - Arguments to find a OAuthToken * @example * // Get one OAuthToken * const oAuthToken = await prisma.oAuthToken.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__OAuthTokenClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one OAuthToken that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {OAuthTokenFindUniqueOrThrowArgs} args - Arguments to find a OAuthToken * @example * // Get one OAuthToken * const oAuthToken = await prisma.oAuthToken.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__OAuthTokenClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first OAuthToken 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 {OAuthTokenFindFirstArgs} args - Arguments to find a OAuthToken * @example * // Get one OAuthToken * const oAuthToken = await prisma.oAuthToken.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__OAuthTokenClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first OAuthToken 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 {OAuthTokenFindFirstOrThrowArgs} args - Arguments to find a OAuthToken * @example * // Get one OAuthToken * const oAuthToken = await prisma.oAuthToken.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__OAuthTokenClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more OAuthTokens 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 {OAuthTokenFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all OAuthTokens * const oAuthTokens = await prisma.oAuthToken.findMany() * * // Get first 10 OAuthTokens * const oAuthTokens = await prisma.oAuthToken.findMany({ take: 10 }) * * // Only select the `id` * const oAuthTokenWithIdOnly = await prisma.oAuthToken.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a OAuthToken. * @param {OAuthTokenCreateArgs} args - Arguments to create a OAuthToken. * @example * // Create one OAuthToken * const OAuthToken = await prisma.oAuthToken.create({ * data: { * // ... data to create a OAuthToken * } * }) * */ create(args: SelectSubset>): Prisma__OAuthTokenClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many OAuthTokens. * @param {OAuthTokenCreateManyArgs} args - Arguments to create many OAuthTokens. * @example * // Create many OAuthTokens * const oAuthToken = await prisma.oAuthToken.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many OAuthTokens and returns the data saved in the database. * @param {OAuthTokenCreateManyAndReturnArgs} args - Arguments to create many OAuthTokens. * @example * // Create many OAuthTokens * const oAuthToken = await prisma.oAuthToken.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many OAuthTokens and only return the `id` * const oAuthTokenWithIdOnly = await prisma.oAuthToken.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">> /** * Delete a OAuthToken. * @param {OAuthTokenDeleteArgs} args - Arguments to delete one OAuthToken. * @example * // Delete one OAuthToken * const OAuthToken = await prisma.oAuthToken.delete({ * where: { * // ... filter to delete one OAuthToken * } * }) * */ delete(args: SelectSubset>): Prisma__OAuthTokenClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one OAuthToken. * @param {OAuthTokenUpdateArgs} args - Arguments to update one OAuthToken. * @example * // Update one OAuthToken * const oAuthToken = await prisma.oAuthToken.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__OAuthTokenClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more OAuthTokens. * @param {OAuthTokenDeleteManyArgs} args - Arguments to filter OAuthTokens to delete. * @example * // Delete a few OAuthTokens * const { count } = await prisma.oAuthToken.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more OAuthTokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OAuthTokenUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many OAuthTokens * const oAuthToken = await prisma.oAuthToken.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one OAuthToken. * @param {OAuthTokenUpsertArgs} args - Arguments to update or create a OAuthToken. * @example * // Update or create a OAuthToken * const oAuthToken = await prisma.oAuthToken.upsert({ * create: { * // ... data to create a OAuthToken * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the OAuthToken we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__OAuthTokenClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of OAuthTokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OAuthTokenCountArgs} args - Arguments to filter OAuthTokens to count. * @example * // Count the number of OAuthTokens * const count = await prisma.oAuthToken.count({ * where: { * // ... the filter for the OAuthTokens 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 OAuthToken. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OAuthTokenAggregateArgs} 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 OAuthToken. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OAuthTokenGroupByArgs} 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 OAuthTokenGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: OAuthTokenGroupByArgs['orderBy'] } : { orderBy?: OAuthTokenGroupByArgs['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 ? GetOAuthTokenGroupByPayload : Prisma.PrismaPromise /** * Fields of the OAuthToken model */ readonly fields: OAuthTokenFieldRefs; } /** * The delegate class that acts as a "Promise-like" for OAuthToken. * 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__OAuthTokenClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * 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 OAuthToken model */ interface OAuthTokenFieldRefs { readonly id: FieldRef<"OAuthToken", 'String'> readonly organizationId: FieldRef<"OAuthToken", 'String'> readonly provider: FieldRef<"OAuthToken", 'IntegrationProvider'> readonly integrationId: FieldRef<"OAuthToken", 'String'> readonly encryptedToken: FieldRef<"OAuthToken", 'Json'> readonly redactedToken: FieldRef<"OAuthToken", 'String'> readonly expiresAt: FieldRef<"OAuthToken", 'DateTime'> readonly createdAt: FieldRef<"OAuthToken", 'DateTime'> readonly updatedAt: FieldRef<"OAuthToken", 'DateTime'> } // Custom InputTypes /** * OAuthToken findUnique */ export type OAuthTokenFindUniqueArgs = { /** * Select specific fields to fetch from the OAuthToken */ select?: OAuthTokenSelect | null /** * Choose, which related nodes to fetch as well */ include?: OAuthTokenInclude | null /** * Filter, which OAuthToken to fetch. */ where: OAuthTokenWhereUniqueInput } /** * OAuthToken findUniqueOrThrow */ export type OAuthTokenFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the OAuthToken */ select?: OAuthTokenSelect | null /** * Choose, which related nodes to fetch as well */ include?: OAuthTokenInclude | null /** * Filter, which OAuthToken to fetch. */ where: OAuthTokenWhereUniqueInput } /** * OAuthToken findFirst */ export type OAuthTokenFindFirstArgs = { /** * Select specific fields to fetch from the OAuthToken */ select?: OAuthTokenSelect | null /** * Choose, which related nodes to fetch as well */ include?: OAuthTokenInclude | null /** * Filter, which OAuthToken to fetch. */ where?: OAuthTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OAuthTokens to fetch. */ orderBy?: OAuthTokenOrderByWithRelationInput | OAuthTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OAuthTokens. */ cursor?: OAuthTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OAuthTokens 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` OAuthTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OAuthTokens. */ distinct?: OAuthTokenScalarFieldEnum | OAuthTokenScalarFieldEnum[] } /** * OAuthToken findFirstOrThrow */ export type OAuthTokenFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the OAuthToken */ select?: OAuthTokenSelect | null /** * Choose, which related nodes to fetch as well */ include?: OAuthTokenInclude | null /** * Filter, which OAuthToken to fetch. */ where?: OAuthTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OAuthTokens to fetch. */ orderBy?: OAuthTokenOrderByWithRelationInput | OAuthTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OAuthTokens. */ cursor?: OAuthTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OAuthTokens 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` OAuthTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OAuthTokens. */ distinct?: OAuthTokenScalarFieldEnum | OAuthTokenScalarFieldEnum[] } /** * OAuthToken findMany */ export type OAuthTokenFindManyArgs = { /** * Select specific fields to fetch from the OAuthToken */ select?: OAuthTokenSelect | null /** * Choose, which related nodes to fetch as well */ include?: OAuthTokenInclude | null /** * Filter, which OAuthTokens to fetch. */ where?: OAuthTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OAuthTokens to fetch. */ orderBy?: OAuthTokenOrderByWithRelationInput | OAuthTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing OAuthTokens. */ cursor?: OAuthTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OAuthTokens 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` OAuthTokens. */ skip?: number distinct?: OAuthTokenScalarFieldEnum | OAuthTokenScalarFieldEnum[] } /** * OAuthToken create */ export type OAuthTokenCreateArgs = { /** * Select specific fields to fetch from the OAuthToken */ select?: OAuthTokenSelect | null /** * Choose, which related nodes to fetch as well */ include?: OAuthTokenInclude | null /** * The data needed to create a OAuthToken. */ data: XOR } /** * OAuthToken createMany */ export type OAuthTokenCreateManyArgs = { /** * The data used to create many OAuthTokens. */ data: OAuthTokenCreateManyInput | OAuthTokenCreateManyInput[] skipDuplicates?: boolean } /** * OAuthToken createManyAndReturn */ export type OAuthTokenCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the OAuthToken */ select?: OAuthTokenSelectCreateManyAndReturn | null /** * The data used to create many OAuthTokens. */ data: OAuthTokenCreateManyInput | OAuthTokenCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: OAuthTokenIncludeCreateManyAndReturn | null } /** * OAuthToken update */ export type OAuthTokenUpdateArgs = { /** * Select specific fields to fetch from the OAuthToken */ select?: OAuthTokenSelect | null /** * Choose, which related nodes to fetch as well */ include?: OAuthTokenInclude | null /** * The data needed to update a OAuthToken. */ data: XOR /** * Choose, which OAuthToken to update. */ where: OAuthTokenWhereUniqueInput } /** * OAuthToken updateMany */ export type OAuthTokenUpdateManyArgs = { /** * The data used to update OAuthTokens. */ data: XOR /** * Filter which OAuthTokens to update */ where?: OAuthTokenWhereInput } /** * OAuthToken upsert */ export type OAuthTokenUpsertArgs = { /** * Select specific fields to fetch from the OAuthToken */ select?: OAuthTokenSelect | null /** * Choose, which related nodes to fetch as well */ include?: OAuthTokenInclude | null /** * The filter to search for the OAuthToken to update in case it exists. */ where: OAuthTokenWhereUniqueInput /** * In case the OAuthToken found by the `where` argument doesn't exist, create a new OAuthToken with this data. */ create: XOR /** * In case the OAuthToken was found with the provided `where` argument, update it with this data. */ update: XOR } /** * OAuthToken delete */ export type OAuthTokenDeleteArgs = { /** * Select specific fields to fetch from the OAuthToken */ select?: OAuthTokenSelect | null /** * Choose, which related nodes to fetch as well */ include?: OAuthTokenInclude | null /** * Filter which OAuthToken to delete. */ where: OAuthTokenWhereUniqueInput } /** * OAuthToken deleteMany */ export type OAuthTokenDeleteManyArgs = { /** * Filter which OAuthTokens to delete */ where?: OAuthTokenWhereInput } /** * OAuthToken without action */ export type OAuthTokenDefaultArgs = { /** * Select specific fields to fetch from the OAuthToken */ select?: OAuthTokenSelect | null /** * Choose, which related nodes to fetch as well */ include?: OAuthTokenInclude | null } /** * Model ReportExport */ export type AggregateReportExport = { _count: ReportExportCountAggregateOutputType | null _min: ReportExportMinAggregateOutputType | null _max: ReportExportMaxAggregateOutputType | null } export type ReportExportMinAggregateOutputType = { id: string | null workspaceId: string | null projectId: string | null reportType: string | null format: string | null status: string | null createdById: string | null createdAt: Date | null } export type ReportExportMaxAggregateOutputType = { id: string | null workspaceId: string | null projectId: string | null reportType: string | null format: string | null status: string | null createdById: string | null createdAt: Date | null } export type ReportExportCountAggregateOutputType = { id: number workspaceId: number projectId: number reportType: number format: number status: number metadata: number createdById: number createdAt: number _all: number } export type ReportExportMinAggregateInputType = { id?: true workspaceId?: true projectId?: true reportType?: true format?: true status?: true createdById?: true createdAt?: true } export type ReportExportMaxAggregateInputType = { id?: true workspaceId?: true projectId?: true reportType?: true format?: true status?: true createdById?: true createdAt?: true } export type ReportExportCountAggregateInputType = { id?: true workspaceId?: true projectId?: true reportType?: true format?: true status?: true metadata?: true createdById?: true createdAt?: true _all?: true } export type ReportExportAggregateArgs = { /** * Filter which ReportExport to aggregate. */ where?: ReportExportWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ReportExports to fetch. */ orderBy?: ReportExportOrderByWithRelationInput | ReportExportOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ReportExportWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ReportExports 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` ReportExports. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ReportExports **/ _count?: true | ReportExportCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ReportExportMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ReportExportMaxAggregateInputType } export type GetReportExportAggregateType = { [P in keyof T & keyof AggregateReportExport]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ReportExportGroupByArgs = { where?: ReportExportWhereInput orderBy?: ReportExportOrderByWithAggregationInput | ReportExportOrderByWithAggregationInput[] by: ReportExportScalarFieldEnum[] | ReportExportScalarFieldEnum having?: ReportExportScalarWhereWithAggregatesInput take?: number skip?: number _count?: ReportExportCountAggregateInputType | true _min?: ReportExportMinAggregateInputType _max?: ReportExportMaxAggregateInputType } export type ReportExportGroupByOutputType = { id: string workspaceId: string projectId: string reportType: string format: string status: string metadata: JsonValue createdById: string | null createdAt: Date _count: ReportExportCountAggregateOutputType | null _min: ReportExportMinAggregateOutputType | null _max: ReportExportMaxAggregateOutputType | null } type GetReportExportGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ReportExportGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ReportExportSelect = $Extensions.GetSelect<{ id?: boolean workspaceId?: boolean projectId?: boolean reportType?: boolean format?: boolean status?: boolean metadata?: boolean createdById?: boolean createdAt?: boolean workspace?: boolean | WorkspaceDefaultArgs project?: boolean | ProjectDefaultArgs }, ExtArgs["result"]["reportExport"]> export type ReportExportSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean workspaceId?: boolean projectId?: boolean reportType?: boolean format?: boolean status?: boolean metadata?: boolean createdById?: boolean createdAt?: boolean workspace?: boolean | WorkspaceDefaultArgs project?: boolean | ProjectDefaultArgs }, ExtArgs["result"]["reportExport"]> export type ReportExportSelectScalar = { id?: boolean workspaceId?: boolean projectId?: boolean reportType?: boolean format?: boolean status?: boolean metadata?: boolean createdById?: boolean createdAt?: boolean } export type ReportExportInclude = { workspace?: boolean | WorkspaceDefaultArgs project?: boolean | ProjectDefaultArgs } export type ReportExportIncludeCreateManyAndReturn = { workspace?: boolean | WorkspaceDefaultArgs project?: boolean | ProjectDefaultArgs } export type $ReportExportPayload = { name: "ReportExport" objects: { workspace: Prisma.$WorkspacePayload project: Prisma.$ProjectPayload } scalars: $Extensions.GetPayloadResult<{ id: string workspaceId: string projectId: string reportType: string format: string status: string metadata: Prisma.JsonValue createdById: string | null createdAt: Date }, ExtArgs["result"]["reportExport"]> composites: {} } type ReportExportGetPayload = $Result.GetResult type ReportExportCountArgs = Omit & { select?: ReportExportCountAggregateInputType | true } export interface ReportExportDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ReportExport'], meta: { name: 'ReportExport' } } /** * Find zero or one ReportExport that matches the filter. * @param {ReportExportFindUniqueArgs} args - Arguments to find a ReportExport * @example * // Get one ReportExport * const reportExport = await prisma.reportExport.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ReportExportClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one ReportExport that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ReportExportFindUniqueOrThrowArgs} args - Arguments to find a ReportExport * @example * // Get one ReportExport * const reportExport = await prisma.reportExport.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ReportExportClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first ReportExport 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 {ReportExportFindFirstArgs} args - Arguments to find a ReportExport * @example * // Get one ReportExport * const reportExport = await prisma.reportExport.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ReportExportClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first ReportExport 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 {ReportExportFindFirstOrThrowArgs} args - Arguments to find a ReportExport * @example * // Get one ReportExport * const reportExport = await prisma.reportExport.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ReportExportClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more ReportExports 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 {ReportExportFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ReportExports * const reportExports = await prisma.reportExport.findMany() * * // Get first 10 ReportExports * const reportExports = await prisma.reportExport.findMany({ take: 10 }) * * // Only select the `id` * const reportExportWithIdOnly = await prisma.reportExport.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a ReportExport. * @param {ReportExportCreateArgs} args - Arguments to create a ReportExport. * @example * // Create one ReportExport * const ReportExport = await prisma.reportExport.create({ * data: { * // ... data to create a ReportExport * } * }) * */ create(args: SelectSubset>): Prisma__ReportExportClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many ReportExports. * @param {ReportExportCreateManyArgs} args - Arguments to create many ReportExports. * @example * // Create many ReportExports * const reportExport = await prisma.reportExport.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ReportExports and returns the data saved in the database. * @param {ReportExportCreateManyAndReturnArgs} args - Arguments to create many ReportExports. * @example * // Create many ReportExports * const reportExport = await prisma.reportExport.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ReportExports and only return the `id` * const reportExportWithIdOnly = await prisma.reportExport.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">> /** * Delete a ReportExport. * @param {ReportExportDeleteArgs} args - Arguments to delete one ReportExport. * @example * // Delete one ReportExport * const ReportExport = await prisma.reportExport.delete({ * where: { * // ... filter to delete one ReportExport * } * }) * */ delete(args: SelectSubset>): Prisma__ReportExportClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one ReportExport. * @param {ReportExportUpdateArgs} args - Arguments to update one ReportExport. * @example * // Update one ReportExport * const reportExport = await prisma.reportExport.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ReportExportClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more ReportExports. * @param {ReportExportDeleteManyArgs} args - Arguments to filter ReportExports to delete. * @example * // Delete a few ReportExports * const { count } = await prisma.reportExport.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ReportExports. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ReportExportUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ReportExports * const reportExport = await prisma.reportExport.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one ReportExport. * @param {ReportExportUpsertArgs} args - Arguments to update or create a ReportExport. * @example * // Update or create a ReportExport * const reportExport = await prisma.reportExport.upsert({ * create: { * // ... data to create a ReportExport * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ReportExport we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ReportExportClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of ReportExports. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ReportExportCountArgs} args - Arguments to filter ReportExports to count. * @example * // Count the number of ReportExports * const count = await prisma.reportExport.count({ * where: { * // ... the filter for the ReportExports 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 ReportExport. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ReportExportAggregateArgs} 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 ReportExport. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ReportExportGroupByArgs} 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 ReportExportGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ReportExportGroupByArgs['orderBy'] } : { orderBy?: ReportExportGroupByArgs['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 ? GetReportExportGroupByPayload : Prisma.PrismaPromise /** * Fields of the ReportExport model */ readonly fields: ReportExportFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ReportExport. * 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__ReportExportClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" workspace = {}>(args?: Subset>): Prisma__WorkspaceClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> project = {}>(args?: Subset>): Prisma__ProjectClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * 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 ReportExport model */ interface ReportExportFieldRefs { readonly id: FieldRef<"ReportExport", 'String'> readonly workspaceId: FieldRef<"ReportExport", 'String'> readonly projectId: FieldRef<"ReportExport", 'String'> readonly reportType: FieldRef<"ReportExport", 'String'> readonly format: FieldRef<"ReportExport", 'String'> readonly status: FieldRef<"ReportExport", 'String'> readonly metadata: FieldRef<"ReportExport", 'Json'> readonly createdById: FieldRef<"ReportExport", 'String'> readonly createdAt: FieldRef<"ReportExport", 'DateTime'> } // Custom InputTypes /** * ReportExport findUnique */ export type ReportExportFindUniqueArgs = { /** * Select specific fields to fetch from the ReportExport */ select?: ReportExportSelect | null /** * Choose, which related nodes to fetch as well */ include?: ReportExportInclude | null /** * Filter, which ReportExport to fetch. */ where: ReportExportWhereUniqueInput } /** * ReportExport findUniqueOrThrow */ export type ReportExportFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ReportExport */ select?: ReportExportSelect | null /** * Choose, which related nodes to fetch as well */ include?: ReportExportInclude | null /** * Filter, which ReportExport to fetch. */ where: ReportExportWhereUniqueInput } /** * ReportExport findFirst */ export type ReportExportFindFirstArgs = { /** * Select specific fields to fetch from the ReportExport */ select?: ReportExportSelect | null /** * Choose, which related nodes to fetch as well */ include?: ReportExportInclude | null /** * Filter, which ReportExport to fetch. */ where?: ReportExportWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ReportExports to fetch. */ orderBy?: ReportExportOrderByWithRelationInput | ReportExportOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ReportExports. */ cursor?: ReportExportWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ReportExports 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` ReportExports. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ReportExports. */ distinct?: ReportExportScalarFieldEnum | ReportExportScalarFieldEnum[] } /** * ReportExport findFirstOrThrow */ export type ReportExportFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ReportExport */ select?: ReportExportSelect | null /** * Choose, which related nodes to fetch as well */ include?: ReportExportInclude | null /** * Filter, which ReportExport to fetch. */ where?: ReportExportWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ReportExports to fetch. */ orderBy?: ReportExportOrderByWithRelationInput | ReportExportOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ReportExports. */ cursor?: ReportExportWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ReportExports 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` ReportExports. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ReportExports. */ distinct?: ReportExportScalarFieldEnum | ReportExportScalarFieldEnum[] } /** * ReportExport findMany */ export type ReportExportFindManyArgs = { /** * Select specific fields to fetch from the ReportExport */ select?: ReportExportSelect | null /** * Choose, which related nodes to fetch as well */ include?: ReportExportInclude | null /** * Filter, which ReportExports to fetch. */ where?: ReportExportWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ReportExports to fetch. */ orderBy?: ReportExportOrderByWithRelationInput | ReportExportOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ReportExports. */ cursor?: ReportExportWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ReportExports 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` ReportExports. */ skip?: number distinct?: ReportExportScalarFieldEnum | ReportExportScalarFieldEnum[] } /** * ReportExport create */ export type ReportExportCreateArgs = { /** * Select specific fields to fetch from the ReportExport */ select?: ReportExportSelect | null /** * Choose, which related nodes to fetch as well */ include?: ReportExportInclude | null /** * The data needed to create a ReportExport. */ data: XOR } /** * ReportExport createMany */ export type ReportExportCreateManyArgs = { /** * The data used to create many ReportExports. */ data: ReportExportCreateManyInput | ReportExportCreateManyInput[] skipDuplicates?: boolean } /** * ReportExport createManyAndReturn */ export type ReportExportCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ReportExport */ select?: ReportExportSelectCreateManyAndReturn | null /** * The data used to create many ReportExports. */ data: ReportExportCreateManyInput | ReportExportCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ReportExportIncludeCreateManyAndReturn | null } /** * ReportExport update */ export type ReportExportUpdateArgs = { /** * Select specific fields to fetch from the ReportExport */ select?: ReportExportSelect | null /** * Choose, which related nodes to fetch as well */ include?: ReportExportInclude | null /** * The data needed to update a ReportExport. */ data: XOR /** * Choose, which ReportExport to update. */ where: ReportExportWhereUniqueInput } /** * ReportExport updateMany */ export type ReportExportUpdateManyArgs = { /** * The data used to update ReportExports. */ data: XOR /** * Filter which ReportExports to update */ where?: ReportExportWhereInput } /** * ReportExport upsert */ export type ReportExportUpsertArgs = { /** * Select specific fields to fetch from the ReportExport */ select?: ReportExportSelect | null /** * Choose, which related nodes to fetch as well */ include?: ReportExportInclude | null /** * The filter to search for the ReportExport to update in case it exists. */ where: ReportExportWhereUniqueInput /** * In case the ReportExport found by the `where` argument doesn't exist, create a new ReportExport with this data. */ create: XOR /** * In case the ReportExport was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ReportExport delete */ export type ReportExportDeleteArgs = { /** * Select specific fields to fetch from the ReportExport */ select?: ReportExportSelect | null /** * Choose, which related nodes to fetch as well */ include?: ReportExportInclude | null /** * Filter which ReportExport to delete. */ where: ReportExportWhereUniqueInput } /** * ReportExport deleteMany */ export type ReportExportDeleteManyArgs = { /** * Filter which ReportExports to delete */ where?: ReportExportWhereInput } /** * ReportExport without action */ export type ReportExportDefaultArgs = { /** * Select specific fields to fetch from the ReportExport */ select?: ReportExportSelect | null /** * Choose, which related nodes to fetch as well */ include?: ReportExportInclude | null } /** * Model AuditEvent */ export type AggregateAuditEvent = { _count: AuditEventCountAggregateOutputType | null _min: AuditEventMinAggregateOutputType | null _max: AuditEventMaxAggregateOutputType | null } export type AuditEventMinAggregateOutputType = { id: string | null organizationId: string | null workspaceId: string | null projectId: string | null actorUserId: string | null entityType: string | null entityId: string | null action: string | null ipAddress: string | null userAgent: string | null createdAt: Date | null } export type AuditEventMaxAggregateOutputType = { id: string | null organizationId: string | null workspaceId: string | null projectId: string | null actorUserId: string | null entityType: string | null entityId: string | null action: string | null ipAddress: string | null userAgent: string | null createdAt: Date | null } export type AuditEventCountAggregateOutputType = { id: number organizationId: number workspaceId: number projectId: number actorUserId: number entityType: number entityId: number action: number beforeJson: number afterJson: number ipAddress: number userAgent: number createdAt: number _all: number } export type AuditEventMinAggregateInputType = { id?: true organizationId?: true workspaceId?: true projectId?: true actorUserId?: true entityType?: true entityId?: true action?: true ipAddress?: true userAgent?: true createdAt?: true } export type AuditEventMaxAggregateInputType = { id?: true organizationId?: true workspaceId?: true projectId?: true actorUserId?: true entityType?: true entityId?: true action?: true ipAddress?: true userAgent?: true createdAt?: true } export type AuditEventCountAggregateInputType = { id?: true organizationId?: true workspaceId?: true projectId?: true actorUserId?: true entityType?: true entityId?: true action?: true beforeJson?: true afterJson?: true ipAddress?: true userAgent?: 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 organizationId: string workspaceId: string | null projectId: string | null actorUserId: string | null entityType: string entityId: string action: string beforeJson: JsonValue | null afterJson: JsonValue | null ipAddress: string | null userAgent: string | 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 organizationId?: boolean workspaceId?: boolean projectId?: boolean actorUserId?: boolean entityType?: boolean entityId?: boolean action?: boolean beforeJson?: boolean afterJson?: boolean ipAddress?: boolean userAgent?: boolean createdAt?: boolean organization?: boolean | OrganizationDefaultArgs workspace?: boolean | AuditEvent$workspaceArgs project?: boolean | AuditEvent$projectArgs actor?: boolean | AuditEvent$actorArgs }, ExtArgs["result"]["auditEvent"]> export type AuditEventSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean organizationId?: boolean workspaceId?: boolean projectId?: boolean actorUserId?: boolean entityType?: boolean entityId?: boolean action?: boolean beforeJson?: boolean afterJson?: boolean ipAddress?: boolean userAgent?: boolean createdAt?: boolean organization?: boolean | OrganizationDefaultArgs workspace?: boolean | AuditEvent$workspaceArgs project?: boolean | AuditEvent$projectArgs actor?: boolean | AuditEvent$actorArgs }, ExtArgs["result"]["auditEvent"]> export type AuditEventSelectScalar = { id?: boolean organizationId?: boolean workspaceId?: boolean projectId?: boolean actorUserId?: boolean entityType?: boolean entityId?: boolean action?: boolean beforeJson?: boolean afterJson?: boolean ipAddress?: boolean userAgent?: boolean createdAt?: boolean } export type AuditEventInclude = { organization?: boolean | OrganizationDefaultArgs workspace?: boolean | AuditEvent$workspaceArgs project?: boolean | AuditEvent$projectArgs actor?: boolean | AuditEvent$actorArgs } export type AuditEventIncludeCreateManyAndReturn = { organization?: boolean | OrganizationDefaultArgs workspace?: boolean | AuditEvent$workspaceArgs project?: boolean | AuditEvent$projectArgs actor?: boolean | AuditEvent$actorArgs } export type $AuditEventPayload = { name: "AuditEvent" objects: { organization: Prisma.$OrganizationPayload workspace: Prisma.$WorkspacePayload | null project: Prisma.$ProjectPayload | null actor: Prisma.$UserPayload | null } scalars: $Extensions.GetPayloadResult<{ id: string organizationId: string workspaceId: string | null projectId: string | null actorUserId: string | null entityType: string entityId: string action: string beforeJson: Prisma.JsonValue | null afterJson: Prisma.JsonValue | null ipAddress: string | null userAgent: string | 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"> | null, null, ExtArgs> /** * 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">, never, ExtArgs> /** * 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"> | null, null, ExtArgs> /** * 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">, never, ExtArgs> /** * 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">> /** * 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">, never, ExtArgs> /** * 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">> /** * 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">, never, ExtArgs> /** * 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">, never, ExtArgs> /** * 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 /** * 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">, never, ExtArgs> /** * 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" organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> workspace = {}>(args?: Subset>): Prisma__WorkspaceClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> project = {}>(args?: Subset>): Prisma__ProjectClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> actor = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> /** * 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 organizationId: FieldRef<"AuditEvent", 'String'> readonly workspaceId: FieldRef<"AuditEvent", 'String'> readonly projectId: FieldRef<"AuditEvent", 'String'> readonly actorUserId: FieldRef<"AuditEvent", 'String'> readonly entityType: FieldRef<"AuditEvent", 'String'> readonly entityId: FieldRef<"AuditEvent", 'String'> readonly action: FieldRef<"AuditEvent", 'String'> readonly beforeJson: FieldRef<"AuditEvent", 'Json'> readonly afterJson: FieldRef<"AuditEvent", 'Json'> readonly ipAddress: FieldRef<"AuditEvent", 'String'> readonly userAgent: FieldRef<"AuditEvent", 'String'> readonly createdAt: FieldRef<"AuditEvent", 'DateTime'> } // Custom InputTypes /** * AuditEvent findUnique */ export type AuditEventFindUniqueArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | null /** * Filter, which AuditEvent to fetch. */ where: AuditEventWhereUniqueInput } /** * AuditEvent findUniqueOrThrow */ export type AuditEventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | null /** * Filter, which AuditEvent to fetch. */ where: AuditEventWhereUniqueInput } /** * AuditEvent findFirst */ export type AuditEventFindFirstArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | 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 /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | 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 /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | 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 /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | 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 /** * The data used to create many AuditEvents. */ data: AuditEventCreateManyInput | AuditEventCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: AuditEventIncludeCreateManyAndReturn | null } /** * AuditEvent update */ export type AuditEventUpdateArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | 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 } /** * AuditEvent upsert */ export type AuditEventUpsertArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | 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 /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | null /** * Filter which AuditEvent to delete. */ where: AuditEventWhereUniqueInput } /** * AuditEvent deleteMany */ export type AuditEventDeleteManyArgs = { /** * Filter which AuditEvents to delete */ where?: AuditEventWhereInput } /** * AuditEvent.workspace */ export type AuditEvent$workspaceArgs = { /** * Select specific fields to fetch from the Workspace */ select?: WorkspaceSelect | null /** * Choose, which related nodes to fetch as well */ include?: WorkspaceInclude | null where?: WorkspaceWhereInput } /** * AuditEvent.project */ export type AuditEvent$projectArgs = { /** * Select specific fields to fetch from the Project */ select?: ProjectSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProjectInclude | null where?: ProjectWhereInput } /** * AuditEvent.actor */ export type AuditEvent$actorArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * AuditEvent without action */ export type AuditEventDefaultArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: AuditEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: AuditEventInclude | null } /** * Model UsageEvent */ export type AggregateUsageEvent = { _count: UsageEventCountAggregateOutputType | null _avg: UsageEventAvgAggregateOutputType | null _sum: UsageEventSumAggregateOutputType | null _min: UsageEventMinAggregateOutputType | null _max: UsageEventMaxAggregateOutputType | null } export type UsageEventAvgAggregateOutputType = { quantity: number | null } export type UsageEventSumAggregateOutputType = { quantity: number | null } export type UsageEventMinAggregateOutputType = { id: string | null organizationId: string | null metric: string | null quantity: number | null createdAt: Date | null } export type UsageEventMaxAggregateOutputType = { id: string | null organizationId: string | null metric: string | null quantity: number | null createdAt: Date | null } export type UsageEventCountAggregateOutputType = { id: number organizationId: number metric: number quantity: number metadata: number createdAt: number _all: number } export type UsageEventAvgAggregateInputType = { quantity?: true } export type UsageEventSumAggregateInputType = { quantity?: true } export type UsageEventMinAggregateInputType = { id?: true organizationId?: true metric?: true quantity?: true createdAt?: true } export type UsageEventMaxAggregateInputType = { id?: true organizationId?: true metric?: true quantity?: true createdAt?: true } export type UsageEventCountAggregateInputType = { id?: true organizationId?: true metric?: true quantity?: true metadata?: true createdAt?: true _all?: true } export type UsageEventAggregateArgs = { /** * Filter which UsageEvent to aggregate. */ where?: UsageEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UsageEvents to fetch. */ orderBy?: UsageEventOrderByWithRelationInput | UsageEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UsageEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UsageEvents 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` UsageEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned UsageEvents **/ _count?: true | UsageEventCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: UsageEventAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: UsageEventSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UsageEventMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UsageEventMaxAggregateInputType } export type GetUsageEventAggregateType = { [P in keyof T & keyof AggregateUsageEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UsageEventGroupByArgs = { where?: UsageEventWhereInput orderBy?: UsageEventOrderByWithAggregationInput | UsageEventOrderByWithAggregationInput[] by: UsageEventScalarFieldEnum[] | UsageEventScalarFieldEnum having?: UsageEventScalarWhereWithAggregatesInput take?: number skip?: number _count?: UsageEventCountAggregateInputType | true _avg?: UsageEventAvgAggregateInputType _sum?: UsageEventSumAggregateInputType _min?: UsageEventMinAggregateInputType _max?: UsageEventMaxAggregateInputType } export type UsageEventGroupByOutputType = { id: string organizationId: string metric: string quantity: number metadata: JsonValue createdAt: Date _count: UsageEventCountAggregateOutputType | null _avg: UsageEventAvgAggregateOutputType | null _sum: UsageEventSumAggregateOutputType | null _min: UsageEventMinAggregateOutputType | null _max: UsageEventMaxAggregateOutputType | null } type GetUsageEventGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UsageEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UsageEventSelect = $Extensions.GetSelect<{ id?: boolean organizationId?: boolean metric?: boolean quantity?: boolean metadata?: boolean createdAt?: boolean organization?: boolean | OrganizationDefaultArgs }, ExtArgs["result"]["usageEvent"]> export type UsageEventSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean organizationId?: boolean metric?: boolean quantity?: boolean metadata?: boolean createdAt?: boolean organization?: boolean | OrganizationDefaultArgs }, ExtArgs["result"]["usageEvent"]> export type UsageEventSelectScalar = { id?: boolean organizationId?: boolean metric?: boolean quantity?: boolean metadata?: boolean createdAt?: boolean } export type UsageEventInclude = { organization?: boolean | OrganizationDefaultArgs } export type UsageEventIncludeCreateManyAndReturn = { organization?: boolean | OrganizationDefaultArgs } export type $UsageEventPayload = { name: "UsageEvent" objects: { organization: Prisma.$OrganizationPayload } scalars: $Extensions.GetPayloadResult<{ id: string organizationId: string metric: string quantity: number metadata: Prisma.JsonValue createdAt: Date }, ExtArgs["result"]["usageEvent"]> composites: {} } type UsageEventGetPayload = $Result.GetResult type UsageEventCountArgs = Omit & { select?: UsageEventCountAggregateInputType | true } export interface UsageEventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['UsageEvent'], meta: { name: 'UsageEvent' } } /** * Find zero or one UsageEvent that matches the filter. * @param {UsageEventFindUniqueArgs} args - Arguments to find a UsageEvent * @example * // Get one UsageEvent * const usageEvent = await prisma.usageEvent.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UsageEventClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one UsageEvent that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UsageEventFindUniqueOrThrowArgs} args - Arguments to find a UsageEvent * @example * // Get one UsageEvent * const usageEvent = await prisma.usageEvent.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__UsageEventClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first UsageEvent 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 {UsageEventFindFirstArgs} args - Arguments to find a UsageEvent * @example * // Get one UsageEvent * const usageEvent = await prisma.usageEvent.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__UsageEventClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first UsageEvent 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 {UsageEventFindFirstOrThrowArgs} args - Arguments to find a UsageEvent * @example * // Get one UsageEvent * const usageEvent = await prisma.usageEvent.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__UsageEventClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more UsageEvents 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 {UsageEventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all UsageEvents * const usageEvents = await prisma.usageEvent.findMany() * * // Get first 10 UsageEvents * const usageEvents = await prisma.usageEvent.findMany({ take: 10 }) * * // Only select the `id` * const usageEventWithIdOnly = await prisma.usageEvent.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a UsageEvent. * @param {UsageEventCreateArgs} args - Arguments to create a UsageEvent. * @example * // Create one UsageEvent * const UsageEvent = await prisma.usageEvent.create({ * data: { * // ... data to create a UsageEvent * } * }) * */ create(args: SelectSubset>): Prisma__UsageEventClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many UsageEvents. * @param {UsageEventCreateManyArgs} args - Arguments to create many UsageEvents. * @example * // Create many UsageEvents * const usageEvent = await prisma.usageEvent.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many UsageEvents and returns the data saved in the database. * @param {UsageEventCreateManyAndReturnArgs} args - Arguments to create many UsageEvents. * @example * // Create many UsageEvents * const usageEvent = await prisma.usageEvent.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many UsageEvents and only return the `id` * const usageEventWithIdOnly = await prisma.usageEvent.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">> /** * Delete a UsageEvent. * @param {UsageEventDeleteArgs} args - Arguments to delete one UsageEvent. * @example * // Delete one UsageEvent * const UsageEvent = await prisma.usageEvent.delete({ * where: { * // ... filter to delete one UsageEvent * } * }) * */ delete(args: SelectSubset>): Prisma__UsageEventClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one UsageEvent. * @param {UsageEventUpdateArgs} args - Arguments to update one UsageEvent. * @example * // Update one UsageEvent * const usageEvent = await prisma.usageEvent.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__UsageEventClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more UsageEvents. * @param {UsageEventDeleteManyArgs} args - Arguments to filter UsageEvents to delete. * @example * // Delete a few UsageEvents * const { count } = await prisma.usageEvent.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UsageEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UsageEventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many UsageEvents * const usageEvent = await prisma.usageEvent.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one UsageEvent. * @param {UsageEventUpsertArgs} args - Arguments to update or create a UsageEvent. * @example * // Update or create a UsageEvent * const usageEvent = await prisma.usageEvent.upsert({ * create: { * // ... data to create a UsageEvent * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the UsageEvent we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UsageEventClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of UsageEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UsageEventCountArgs} args - Arguments to filter UsageEvents to count. * @example * // Count the number of UsageEvents * const count = await prisma.usageEvent.count({ * where: { * // ... the filter for the UsageEvents 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 UsageEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UsageEventAggregateArgs} 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 UsageEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UsageEventGroupByArgs} 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 UsageEventGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UsageEventGroupByArgs['orderBy'] } : { orderBy?: UsageEventGroupByArgs['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 ? GetUsageEventGroupByPayload : Prisma.PrismaPromise /** * Fields of the UsageEvent model */ readonly fields: UsageEventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for UsageEvent. * 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__UsageEventClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" organization = {}>(args?: Subset>): Prisma__OrganizationClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * 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 UsageEvent model */ interface UsageEventFieldRefs { readonly id: FieldRef<"UsageEvent", 'String'> readonly organizationId: FieldRef<"UsageEvent", 'String'> readonly metric: FieldRef<"UsageEvent", 'String'> readonly quantity: FieldRef<"UsageEvent", 'Int'> readonly metadata: FieldRef<"UsageEvent", 'Json'> readonly createdAt: FieldRef<"UsageEvent", 'DateTime'> } // Custom InputTypes /** * UsageEvent findUnique */ export type UsageEventFindUniqueArgs = { /** * Select specific fields to fetch from the UsageEvent */ select?: UsageEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: UsageEventInclude | null /** * Filter, which UsageEvent to fetch. */ where: UsageEventWhereUniqueInput } /** * UsageEvent findUniqueOrThrow */ export type UsageEventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the UsageEvent */ select?: UsageEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: UsageEventInclude | null /** * Filter, which UsageEvent to fetch. */ where: UsageEventWhereUniqueInput } /** * UsageEvent findFirst */ export type UsageEventFindFirstArgs = { /** * Select specific fields to fetch from the UsageEvent */ select?: UsageEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: UsageEventInclude | null /** * Filter, which UsageEvent to fetch. */ where?: UsageEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UsageEvents to fetch. */ orderBy?: UsageEventOrderByWithRelationInput | UsageEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UsageEvents. */ cursor?: UsageEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UsageEvents 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` UsageEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UsageEvents. */ distinct?: UsageEventScalarFieldEnum | UsageEventScalarFieldEnum[] } /** * UsageEvent findFirstOrThrow */ export type UsageEventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the UsageEvent */ select?: UsageEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: UsageEventInclude | null /** * Filter, which UsageEvent to fetch. */ where?: UsageEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UsageEvents to fetch. */ orderBy?: UsageEventOrderByWithRelationInput | UsageEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UsageEvents. */ cursor?: UsageEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UsageEvents 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` UsageEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UsageEvents. */ distinct?: UsageEventScalarFieldEnum | UsageEventScalarFieldEnum[] } /** * UsageEvent findMany */ export type UsageEventFindManyArgs = { /** * Select specific fields to fetch from the UsageEvent */ select?: UsageEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: UsageEventInclude | null /** * Filter, which UsageEvents to fetch. */ where?: UsageEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UsageEvents to fetch. */ orderBy?: UsageEventOrderByWithRelationInput | UsageEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing UsageEvents. */ cursor?: UsageEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UsageEvents 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` UsageEvents. */ skip?: number distinct?: UsageEventScalarFieldEnum | UsageEventScalarFieldEnum[] } /** * UsageEvent create */ export type UsageEventCreateArgs = { /** * Select specific fields to fetch from the UsageEvent */ select?: UsageEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: UsageEventInclude | null /** * The data needed to create a UsageEvent. */ data: XOR } /** * UsageEvent createMany */ export type UsageEventCreateManyArgs = { /** * The data used to create many UsageEvents. */ data: UsageEventCreateManyInput | UsageEventCreateManyInput[] skipDuplicates?: boolean } /** * UsageEvent createManyAndReturn */ export type UsageEventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the UsageEvent */ select?: UsageEventSelectCreateManyAndReturn | null /** * The data used to create many UsageEvents. */ data: UsageEventCreateManyInput | UsageEventCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: UsageEventIncludeCreateManyAndReturn | null } /** * UsageEvent update */ export type UsageEventUpdateArgs = { /** * Select specific fields to fetch from the UsageEvent */ select?: UsageEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: UsageEventInclude | null /** * The data needed to update a UsageEvent. */ data: XOR /** * Choose, which UsageEvent to update. */ where: UsageEventWhereUniqueInput } /** * UsageEvent updateMany */ export type UsageEventUpdateManyArgs = { /** * The data used to update UsageEvents. */ data: XOR /** * Filter which UsageEvents to update */ where?: UsageEventWhereInput } /** * UsageEvent upsert */ export type UsageEventUpsertArgs = { /** * Select specific fields to fetch from the UsageEvent */ select?: UsageEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: UsageEventInclude | null /** * The filter to search for the UsageEvent to update in case it exists. */ where: UsageEventWhereUniqueInput /** * In case the UsageEvent found by the `where` argument doesn't exist, create a new UsageEvent with this data. */ create: XOR /** * In case the UsageEvent was found with the provided `where` argument, update it with this data. */ update: XOR } /** * UsageEvent delete */ export type UsageEventDeleteArgs = { /** * Select specific fields to fetch from the UsageEvent */ select?: UsageEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: UsageEventInclude | null /** * Filter which UsageEvent to delete. */ where: UsageEventWhereUniqueInput } /** * UsageEvent deleteMany */ export type UsageEventDeleteManyArgs = { /** * Filter which UsageEvents to delete */ where?: UsageEventWhereInput } /** * UsageEvent without action */ export type UsageEventDefaultArgs = { /** * Select specific fields to fetch from the UsageEvent */ select?: UsageEventSelect | null /** * Choose, which related nodes to fetch as well */ include?: UsageEventInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const OrganizationScalarFieldEnum: { id: 'id', name: 'name', slug: 'slug', status: 'status', planCode: 'planCode', manualBilling: 'manualBilling', stripeCustomerId: 'stripeCustomerId', ssoEnforced: 'ssoEnforced', allowedDomains: 'allowedDomains', dataRetentionDays: 'dataRetentionDays', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type OrganizationScalarFieldEnum = (typeof OrganizationScalarFieldEnum)[keyof typeof OrganizationScalarFieldEnum] export const WorkspaceScalarFieldEnum: { id: 'id', organizationId: 'organizationId', name: 'name', slug: 'slug', type: 'type', status: 'status', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type WorkspaceScalarFieldEnum = (typeof WorkspaceScalarFieldEnum)[keyof typeof WorkspaceScalarFieldEnum] export const UserScalarFieldEnum: { id: 'id', email: 'email', displayName: 'displayName', passwordHash: 'passwordHash', emailVerifiedAt: 'emailVerifiedAt', lastLoginAt: 'lastLoginAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] export const SessionScalarFieldEnum: { id: 'id', userId: 'userId', token: 'token', expiresAt: 'expiresAt', createdAt: 'createdAt' }; export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] export const RoleScalarFieldEnum: { id: 'id', code: 'code', name: 'name', permissions: 'permissions', system: 'system', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type RoleScalarFieldEnum = (typeof RoleScalarFieldEnum)[keyof typeof RoleScalarFieldEnum] export const MembershipScalarFieldEnum: { id: 'id', organizationId: 'organizationId', userId: 'userId', roleId: 'roleId', status: 'status', workspaceScope: 'workspaceScope', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type MembershipScalarFieldEnum = (typeof MembershipScalarFieldEnum)[keyof typeof MembershipScalarFieldEnum] export const InvitationScalarFieldEnum: { id: 'id', organizationId: 'organizationId', email: 'email', roleCode: 'roleCode', tokenHash: 'tokenHash', expiresAt: 'expiresAt', acceptedAt: 'acceptedAt', invitedById: 'invitedById', createdAt: 'createdAt' }; export type InvitationScalarFieldEnum = (typeof InvitationScalarFieldEnum)[keyof typeof InvitationScalarFieldEnum] export const SubscriptionScalarFieldEnum: { id: 'id', organizationId: 'organizationId', source: 'source', status: 'status', planCode: 'planCode', stripeSubscriptionId: 'stripeSubscriptionId', currentPeriodEnd: 'currentPeriodEnd', userLimit: 'userLimit', projectLimit: 'projectLimit', reportLimitMonthly: 'reportLimitMonthly', integrationLimit: 'integrationLimit', storageMbLimit: 'storageMbLimit', adminOverride: 'adminOverride', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type SubscriptionScalarFieldEnum = (typeof SubscriptionScalarFieldEnum)[keyof typeof SubscriptionScalarFieldEnum] export const ProjectScalarFieldEnum: { id: 'id', workspaceId: 'workspaceId', name: 'name', subtitle: 'subtitle', projectType: 'projectType', currentLifecyclePhase: 'currentLifecyclePhase', riskAppetite: 'riskAppetite', assessmentDate: 'assessmentDate', status: 'status', ownerDisplayName: 'ownerDisplayName', description: 'description', thresholds: 'thresholds', reviews: 'reviews', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum] export const LifecyclePhaseScalarFieldEnum: { id: 'id', projectId: 'projectId', name: 'name', status: 'status', readinessScore: 'readinessScore', sequence: 'sequence', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type LifecyclePhaseScalarFieldEnum = (typeof LifecyclePhaseScalarFieldEnum)[keyof typeof LifecyclePhaseScalarFieldEnum] export const RiskScalarFieldEnum: { id: 'id', projectId: 'projectId', ownerDisplayName: 'ownerDisplayName', title: 'title', description: 'description', dimension: 'dimension', domain: 'domain', lifecyclePhase: 'lifecyclePhase', probability: 'probability', impact: 'impact', detectability: 'detectability', status: 'status', approvalStatus: 'approvalStatus', dueDate: 'dueDate', evidenceSummary: 'evidenceSummary', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type RiskScalarFieldEnum = (typeof RiskScalarFieldEnum)[keyof typeof RiskScalarFieldEnum] export const MitigationScalarFieldEnum: { id: 'id', riskId: 'riskId', ownerDisplayName: 'ownerDisplayName', title: 'title', description: 'description', status: 'status', progressPercent: 'progressPercent', effectivenessPercent: 'effectivenessPercent', dueDate: 'dueDate', sequence: 'sequence', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type MitigationScalarFieldEnum = (typeof MitigationScalarFieldEnum)[keyof typeof MitigationScalarFieldEnum] export const EvidenceScalarFieldEnum: { id: 'id', projectId: 'projectId', riskId: 'riskId', mitigationId: 'mitigationId', type: 'type', title: 'title', uri: 'uri', createdById: 'createdById', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type EvidenceScalarFieldEnum = (typeof EvidenceScalarFieldEnum)[keyof typeof EvidenceScalarFieldEnum] export const IndicatorScalarFieldEnum: { id: 'id', projectId: 'projectId', name: 'name', dimension: 'dimension', measurand: 'measurand', unit: 'unit', target: 'target', interpretationRule: 'interpretationRule', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type IndicatorScalarFieldEnum = (typeof IndicatorScalarFieldEnum)[keyof typeof IndicatorScalarFieldEnum] export const ExperimentScalarFieldEnum: { id: 'id', projectId: 'projectId', name: 'name', modelName: 'modelName', selected: 'selected', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type ExperimentScalarFieldEnum = (typeof ExperimentScalarFieldEnum)[keyof typeof ExperimentScalarFieldEnum] export const ModelMetricScalarFieldEnum: { id: 'id', experimentId: 'experimentId', metricName: 'metricName', metricValue: 'metricValue', thresholdValue: 'thresholdValue', status: 'status', measuredAt: 'measuredAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type ModelMetricScalarFieldEnum = (typeof ModelMetricScalarFieldEnum)[keyof typeof ModelMetricScalarFieldEnum] export const GateEvaluationScalarFieldEnum: { id: 'id', projectId: 'projectId', status: 'status', reviewStatus: 'reviewStatus', summary: 'summary', evaluatedByUserId: 'evaluatedByUserId', evaluatedAt: 'evaluatedAt', reviewedAt: 'reviewedAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type GateEvaluationScalarFieldEnum = (typeof GateEvaluationScalarFieldEnum)[keyof typeof GateEvaluationScalarFieldEnum] export const GateCriterionScalarFieldEnum: { id: 'id', gateId: 'gateId', name: 'name', actualValue: 'actualValue', expectedRule: 'expectedRule', status: 'status', blocking: 'blocking', evidenceTitle: 'evidenceTitle', evidenceUri: 'evidenceUri', reviewerStatus: 'reviewerStatus', reviewerNote: 'reviewerNote', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type GateCriterionScalarFieldEnum = (typeof GateCriterionScalarFieldEnum)[keyof typeof GateCriterionScalarFieldEnum] export const GateDecisionScalarFieldEnum: { id: 'id', gateId: 'gateId', decision: 'decision', reviewerName: 'reviewerName', reason: 'reason', createdByUserId: 'createdByUserId', decidedAt: 'decidedAt', createdAt: 'createdAt' }; export type GateDecisionScalarFieldEnum = (typeof GateDecisionScalarFieldEnum)[keyof typeof GateDecisionScalarFieldEnum] export const IntegrationScalarFieldEnum: { id: 'id', workspaceId: 'workspaceId', provider: 'provider', workspaceName: 'workspaceName', externalProjectKey: 'externalProjectKey', baseUrl: 'baseUrl', authMode: 'authMode', connectionStatus: 'connectionStatus', syncDirection: 'syncDirection', liveEnabled: 'liveEnabled', liveConfig: 'liveConfig', lastSyncAt: 'lastSyncAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum] export const ExternalWorkItemMappingScalarFieldEnum: { id: 'id', integrationId: 'integrationId', projectId: 'projectId', localEntityType: 'localEntityType', localEntityId: 'localEntityId', localTitle: 'localTitle', externalItemType: 'externalItemType', externalItemId: 'externalItemId', externalItemKey: 'externalItemKey', externalUrl: 'externalUrl', externalStatus: 'externalStatus', syncStatus: 'syncStatus', fieldMapping: 'fieldMapping', lastSyncedAt: 'lastSyncedAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type ExternalWorkItemMappingScalarFieldEnum = (typeof ExternalWorkItemMappingScalarFieldEnum)[keyof typeof ExternalWorkItemMappingScalarFieldEnum] export const IntegrationSyncRunScalarFieldEnum: { id: 'id', integrationId: 'integrationId', projectId: 'projectId', provider: 'provider', status: 'status', startedAt: 'startedAt', finishedAt: 'finishedAt', createdCount: 'createdCount', updatedCount: 'updatedCount', failedCount: 'failedCount', summary: 'summary', failureLog: 'failureLog', createdAt: 'createdAt' }; export type IntegrationSyncRunScalarFieldEnum = (typeof IntegrationSyncRunScalarFieldEnum)[keyof typeof IntegrationSyncRunScalarFieldEnum] export const OAuthTokenScalarFieldEnum: { id: 'id', organizationId: 'organizationId', provider: 'provider', integrationId: 'integrationId', encryptedToken: 'encryptedToken', redactedToken: 'redactedToken', expiresAt: 'expiresAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type OAuthTokenScalarFieldEnum = (typeof OAuthTokenScalarFieldEnum)[keyof typeof OAuthTokenScalarFieldEnum] export const ReportExportScalarFieldEnum: { id: 'id', workspaceId: 'workspaceId', projectId: 'projectId', reportType: 'reportType', format: 'format', status: 'status', metadata: 'metadata', createdById: 'createdById', createdAt: 'createdAt' }; export type ReportExportScalarFieldEnum = (typeof ReportExportScalarFieldEnum)[keyof typeof ReportExportScalarFieldEnum] export const AuditEventScalarFieldEnum: { id: 'id', organizationId: 'organizationId', workspaceId: 'workspaceId', projectId: 'projectId', actorUserId: 'actorUserId', entityType: 'entityType', entityId: 'entityId', action: 'action', beforeJson: 'beforeJson', afterJson: 'afterJson', ipAddress: 'ipAddress', userAgent: 'userAgent', createdAt: 'createdAt' }; export type AuditEventScalarFieldEnum = (typeof AuditEventScalarFieldEnum)[keyof typeof AuditEventScalarFieldEnum] export const UsageEventScalarFieldEnum: { id: 'id', organizationId: 'organizationId', metric: 'metric', quantity: 'quantity', metadata: 'metadata', createdAt: 'createdAt' }; export type UsageEventScalarFieldEnum = (typeof UsageEventScalarFieldEnum)[keyof typeof UsageEventScalarFieldEnum] 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 NullsOrder: { first: 'first', last: 'last' }; export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] export const JsonNullValueFilter: { DbNull: typeof DbNull, JsonNull: typeof JsonNull, AnyNull: typeof AnyNull }; export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] /** * Field references */ /** * Reference to a field of type '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 'OrganizationStatus' */ export type EnumOrganizationStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'OrganizationStatus'> /** * Reference to a field of type 'OrganizationStatus[]' */ export type ListEnumOrganizationStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'OrganizationStatus[]'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * 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 '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 'WorkspaceType' */ export type EnumWorkspaceTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkspaceType'> /** * Reference to a field of type 'WorkspaceType[]' */ export type ListEnumWorkspaceTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkspaceType[]'> /** * Reference to a field of type 'MembershipStatus' */ export type EnumMembershipStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MembershipStatus'> /** * Reference to a field of type 'MembershipStatus[]' */ export type ListEnumMembershipStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MembershipStatus[]'> /** * Reference to a field of type 'SubscriptionSource' */ export type EnumSubscriptionSourceFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'SubscriptionSource'> /** * Reference to a field of type 'SubscriptionSource[]' */ export type ListEnumSubscriptionSourceFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'SubscriptionSource[]'> /** * Reference to a field of type 'SubscriptionStatus' */ export type EnumSubscriptionStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'SubscriptionStatus'> /** * Reference to a field of type 'SubscriptionStatus[]' */ export type ListEnumSubscriptionStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'SubscriptionStatus[]'> /** * Reference to a field of type 'Json' */ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> /** * Reference to a field of type 'RiskStatus' */ export type EnumRiskStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RiskStatus'> /** * Reference to a field of type 'RiskStatus[]' */ export type ListEnumRiskStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RiskStatus[]'> /** * Reference to a field of type 'ApprovalStatus' */ export type EnumApprovalStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ApprovalStatus'> /** * Reference to a field of type 'ApprovalStatus[]' */ export type ListEnumApprovalStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ApprovalStatus[]'> /** * Reference to a field of type 'MitigationStatus' */ export type EnumMitigationStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MitigationStatus'> /** * Reference to a field of type 'MitigationStatus[]' */ export type ListEnumMitigationStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MitigationStatus[]'> /** * 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 'GateStatus' */ export type EnumGateStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'GateStatus'> /** * Reference to a field of type 'GateStatus[]' */ export type ListEnumGateStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'GateStatus[]'> /** * Reference to a field of type 'GateDecisionValue' */ export type EnumGateDecisionValueFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'GateDecisionValue'> /** * Reference to a field of type 'GateDecisionValue[]' */ export type ListEnumGateDecisionValueFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'GateDecisionValue[]'> /** * Reference to a field of type 'IntegrationProvider' */ export type EnumIntegrationProviderFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'IntegrationProvider'> /** * Reference to a field of type 'IntegrationProvider[]' */ export type ListEnumIntegrationProviderFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'IntegrationProvider[]'> /** * Reference to a field of type 'IntegrationStatus' */ export type EnumIntegrationStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'IntegrationStatus'> /** * Reference to a field of type 'IntegrationStatus[]' */ export type ListEnumIntegrationStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'IntegrationStatus[]'> /** * Deep Input Types */ export type OrganizationWhereInput = { AND?: OrganizationWhereInput | OrganizationWhereInput[] OR?: OrganizationWhereInput[] NOT?: OrganizationWhereInput | OrganizationWhereInput[] id?: StringFilter<"Organization"> | string name?: StringFilter<"Organization"> | string slug?: StringFilter<"Organization"> | string status?: EnumOrganizationStatusFilter<"Organization"> | $Enums.OrganizationStatus planCode?: StringFilter<"Organization"> | string manualBilling?: BoolFilter<"Organization"> | boolean stripeCustomerId?: StringNullableFilter<"Organization"> | string | null ssoEnforced?: BoolFilter<"Organization"> | boolean allowedDomains?: StringNullableListFilter<"Organization"> dataRetentionDays?: IntNullableFilter<"Organization"> | number | null createdAt?: DateTimeFilter<"Organization"> | Date | string updatedAt?: DateTimeFilter<"Organization"> | Date | string workspaces?: WorkspaceListRelationFilter memberships?: MembershipListRelationFilter subscriptions?: SubscriptionListRelationFilter auditEvents?: AuditEventListRelationFilter usageEvents?: UsageEventListRelationFilter invitations?: InvitationListRelationFilter oauthTokens?: OAuthTokenListRelationFilter } export type OrganizationOrderByWithRelationInput = { id?: SortOrder name?: SortOrder slug?: SortOrder status?: SortOrder planCode?: SortOrder manualBilling?: SortOrder stripeCustomerId?: SortOrderInput | SortOrder ssoEnforced?: SortOrder allowedDomains?: SortOrder dataRetentionDays?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder workspaces?: WorkspaceOrderByRelationAggregateInput memberships?: MembershipOrderByRelationAggregateInput subscriptions?: SubscriptionOrderByRelationAggregateInput auditEvents?: AuditEventOrderByRelationAggregateInput usageEvents?: UsageEventOrderByRelationAggregateInput invitations?: InvitationOrderByRelationAggregateInput oauthTokens?: OAuthTokenOrderByRelationAggregateInput } export type OrganizationWhereUniqueInput = Prisma.AtLeast<{ id?: string slug?: string AND?: OrganizationWhereInput | OrganizationWhereInput[] OR?: OrganizationWhereInput[] NOT?: OrganizationWhereInput | OrganizationWhereInput[] name?: StringFilter<"Organization"> | string status?: EnumOrganizationStatusFilter<"Organization"> | $Enums.OrganizationStatus planCode?: StringFilter<"Organization"> | string manualBilling?: BoolFilter<"Organization"> | boolean stripeCustomerId?: StringNullableFilter<"Organization"> | string | null ssoEnforced?: BoolFilter<"Organization"> | boolean allowedDomains?: StringNullableListFilter<"Organization"> dataRetentionDays?: IntNullableFilter<"Organization"> | number | null createdAt?: DateTimeFilter<"Organization"> | Date | string updatedAt?: DateTimeFilter<"Organization"> | Date | string workspaces?: WorkspaceListRelationFilter memberships?: MembershipListRelationFilter subscriptions?: SubscriptionListRelationFilter auditEvents?: AuditEventListRelationFilter usageEvents?: UsageEventListRelationFilter invitations?: InvitationListRelationFilter oauthTokens?: OAuthTokenListRelationFilter }, "id" | "slug"> export type OrganizationOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder slug?: SortOrder status?: SortOrder planCode?: SortOrder manualBilling?: SortOrder stripeCustomerId?: SortOrderInput | SortOrder ssoEnforced?: SortOrder allowedDomains?: SortOrder dataRetentionDays?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: OrganizationCountOrderByAggregateInput _avg?: OrganizationAvgOrderByAggregateInput _max?: OrganizationMaxOrderByAggregateInput _min?: OrganizationMinOrderByAggregateInput _sum?: OrganizationSumOrderByAggregateInput } export type OrganizationScalarWhereWithAggregatesInput = { AND?: OrganizationScalarWhereWithAggregatesInput | OrganizationScalarWhereWithAggregatesInput[] OR?: OrganizationScalarWhereWithAggregatesInput[] NOT?: OrganizationScalarWhereWithAggregatesInput | OrganizationScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Organization"> | string name?: StringWithAggregatesFilter<"Organization"> | string slug?: StringWithAggregatesFilter<"Organization"> | string status?: EnumOrganizationStatusWithAggregatesFilter<"Organization"> | $Enums.OrganizationStatus planCode?: StringWithAggregatesFilter<"Organization"> | string manualBilling?: BoolWithAggregatesFilter<"Organization"> | boolean stripeCustomerId?: StringNullableWithAggregatesFilter<"Organization"> | string | null ssoEnforced?: BoolWithAggregatesFilter<"Organization"> | boolean allowedDomains?: StringNullableListFilter<"Organization"> dataRetentionDays?: IntNullableWithAggregatesFilter<"Organization"> | number | null createdAt?: DateTimeWithAggregatesFilter<"Organization"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Organization"> | Date | string } export type WorkspaceWhereInput = { AND?: WorkspaceWhereInput | WorkspaceWhereInput[] OR?: WorkspaceWhereInput[] NOT?: WorkspaceWhereInput | WorkspaceWhereInput[] id?: StringFilter<"Workspace"> | string organizationId?: StringFilter<"Workspace"> | string name?: StringFilter<"Workspace"> | string slug?: StringFilter<"Workspace"> | string type?: EnumWorkspaceTypeFilter<"Workspace"> | $Enums.WorkspaceType status?: EnumOrganizationStatusFilter<"Workspace"> | $Enums.OrganizationStatus createdAt?: DateTimeFilter<"Workspace"> | Date | string updatedAt?: DateTimeFilter<"Workspace"> | Date | string organization?: XOR projects?: ProjectListRelationFilter integrations?: IntegrationListRelationFilter reports?: ReportExportListRelationFilter auditEvents?: AuditEventListRelationFilter } export type WorkspaceOrderByWithRelationInput = { id?: SortOrder organizationId?: SortOrder name?: SortOrder slug?: SortOrder type?: SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder organization?: OrganizationOrderByWithRelationInput projects?: ProjectOrderByRelationAggregateInput integrations?: IntegrationOrderByRelationAggregateInput reports?: ReportExportOrderByRelationAggregateInput auditEvents?: AuditEventOrderByRelationAggregateInput } export type WorkspaceWhereUniqueInput = Prisma.AtLeast<{ id?: string organizationId_slug?: WorkspaceOrganizationIdSlugCompoundUniqueInput AND?: WorkspaceWhereInput | WorkspaceWhereInput[] OR?: WorkspaceWhereInput[] NOT?: WorkspaceWhereInput | WorkspaceWhereInput[] organizationId?: StringFilter<"Workspace"> | string name?: StringFilter<"Workspace"> | string slug?: StringFilter<"Workspace"> | string type?: EnumWorkspaceTypeFilter<"Workspace"> | $Enums.WorkspaceType status?: EnumOrganizationStatusFilter<"Workspace"> | $Enums.OrganizationStatus createdAt?: DateTimeFilter<"Workspace"> | Date | string updatedAt?: DateTimeFilter<"Workspace"> | Date | string organization?: XOR projects?: ProjectListRelationFilter integrations?: IntegrationListRelationFilter reports?: ReportExportListRelationFilter auditEvents?: AuditEventListRelationFilter }, "id" | "organizationId_slug"> export type WorkspaceOrderByWithAggregationInput = { id?: SortOrder organizationId?: SortOrder name?: SortOrder slug?: SortOrder type?: SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: WorkspaceCountOrderByAggregateInput _max?: WorkspaceMaxOrderByAggregateInput _min?: WorkspaceMinOrderByAggregateInput } export type WorkspaceScalarWhereWithAggregatesInput = { AND?: WorkspaceScalarWhereWithAggregatesInput | WorkspaceScalarWhereWithAggregatesInput[] OR?: WorkspaceScalarWhereWithAggregatesInput[] NOT?: WorkspaceScalarWhereWithAggregatesInput | WorkspaceScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Workspace"> | string organizationId?: StringWithAggregatesFilter<"Workspace"> | string name?: StringWithAggregatesFilter<"Workspace"> | string slug?: StringWithAggregatesFilter<"Workspace"> | string type?: EnumWorkspaceTypeWithAggregatesFilter<"Workspace"> | $Enums.WorkspaceType status?: EnumOrganizationStatusWithAggregatesFilter<"Workspace"> | $Enums.OrganizationStatus createdAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string } export type UserWhereInput = { AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] id?: StringFilter<"User"> | string email?: StringFilter<"User"> | string displayName?: StringFilter<"User"> | string passwordHash?: StringNullableFilter<"User"> | string | null emailVerifiedAt?: DateTimeNullableFilter<"User"> | Date | string | null lastLoginAt?: DateTimeNullableFilter<"User"> | Date | string | null createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string memberships?: MembershipListRelationFilter invitationsSent?: InvitationListRelationFilter auditEvents?: AuditEventListRelationFilter sessions?: SessionListRelationFilter } export type UserOrderByWithRelationInput = { id?: SortOrder email?: SortOrder displayName?: SortOrder passwordHash?: SortOrderInput | SortOrder emailVerifiedAt?: SortOrderInput | SortOrder lastLoginAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder memberships?: MembershipOrderByRelationAggregateInput invitationsSent?: InvitationOrderByRelationAggregateInput auditEvents?: AuditEventOrderByRelationAggregateInput sessions?: SessionOrderByRelationAggregateInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ id?: string email?: string AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] displayName?: StringFilter<"User"> | string passwordHash?: StringNullableFilter<"User"> | string | null emailVerifiedAt?: DateTimeNullableFilter<"User"> | Date | string | null lastLoginAt?: DateTimeNullableFilter<"User"> | Date | string | null createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string memberships?: MembershipListRelationFilter invitationsSent?: InvitationListRelationFilter auditEvents?: AuditEventListRelationFilter sessions?: SessionListRelationFilter }, "id" | "email"> export type UserOrderByWithAggregationInput = { id?: SortOrder email?: SortOrder displayName?: SortOrder passwordHash?: SortOrderInput | SortOrder emailVerifiedAt?: SortOrderInput | SortOrder lastLoginAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: UserCountOrderByAggregateInput _max?: UserMaxOrderByAggregateInput _min?: UserMinOrderByAggregateInput } export type UserScalarWhereWithAggregatesInput = { AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] OR?: UserScalarWhereWithAggregatesInput[] NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"User"> | string email?: StringWithAggregatesFilter<"User"> | string displayName?: StringWithAggregatesFilter<"User"> | string passwordHash?: StringNullableWithAggregatesFilter<"User"> | string | null emailVerifiedAt?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null lastLoginAt?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string } export type SessionWhereInput = { AND?: SessionWhereInput | SessionWhereInput[] OR?: SessionWhereInput[] NOT?: SessionWhereInput | SessionWhereInput[] id?: StringFilter<"Session"> | string userId?: StringFilter<"Session"> | string token?: StringFilter<"Session"> | string expiresAt?: DateTimeFilter<"Session"> | Date | string createdAt?: DateTimeFilter<"Session"> | Date | string user?: XOR } export type SessionOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder token?: SortOrder expiresAt?: SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput } export type SessionWhereUniqueInput = Prisma.AtLeast<{ id?: string token?: string AND?: SessionWhereInput | SessionWhereInput[] OR?: SessionWhereInput[] NOT?: SessionWhereInput | SessionWhereInput[] userId?: StringFilter<"Session"> | string expiresAt?: DateTimeFilter<"Session"> | Date | string createdAt?: DateTimeFilter<"Session"> | Date | string user?: XOR }, "id" | "token"> export type SessionOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder token?: SortOrder expiresAt?: SortOrder createdAt?: SortOrder _count?: SessionCountOrderByAggregateInput _max?: SessionMaxOrderByAggregateInput _min?: SessionMinOrderByAggregateInput } export type SessionScalarWhereWithAggregatesInput = { AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[] OR?: SessionScalarWhereWithAggregatesInput[] NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Session"> | string userId?: StringWithAggregatesFilter<"Session"> | string token?: StringWithAggregatesFilter<"Session"> | string expiresAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string createdAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string } export type RoleWhereInput = { AND?: RoleWhereInput | RoleWhereInput[] OR?: RoleWhereInput[] NOT?: RoleWhereInput | RoleWhereInput[] id?: StringFilter<"Role"> | string code?: StringFilter<"Role"> | string name?: StringFilter<"Role"> | string permissions?: StringNullableListFilter<"Role"> system?: BoolFilter<"Role"> | boolean createdAt?: DateTimeFilter<"Role"> | Date | string updatedAt?: DateTimeFilter<"Role"> | Date | string memberships?: MembershipListRelationFilter } export type RoleOrderByWithRelationInput = { id?: SortOrder code?: SortOrder name?: SortOrder permissions?: SortOrder system?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder memberships?: MembershipOrderByRelationAggregateInput } export type RoleWhereUniqueInput = Prisma.AtLeast<{ id?: string code?: string AND?: RoleWhereInput | RoleWhereInput[] OR?: RoleWhereInput[] NOT?: RoleWhereInput | RoleWhereInput[] name?: StringFilter<"Role"> | string permissions?: StringNullableListFilter<"Role"> system?: BoolFilter<"Role"> | boolean createdAt?: DateTimeFilter<"Role"> | Date | string updatedAt?: DateTimeFilter<"Role"> | Date | string memberships?: MembershipListRelationFilter }, "id" | "code"> export type RoleOrderByWithAggregationInput = { id?: SortOrder code?: SortOrder name?: SortOrder permissions?: SortOrder system?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: RoleCountOrderByAggregateInput _max?: RoleMaxOrderByAggregateInput _min?: RoleMinOrderByAggregateInput } export type RoleScalarWhereWithAggregatesInput = { AND?: RoleScalarWhereWithAggregatesInput | RoleScalarWhereWithAggregatesInput[] OR?: RoleScalarWhereWithAggregatesInput[] NOT?: RoleScalarWhereWithAggregatesInput | RoleScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Role"> | string code?: StringWithAggregatesFilter<"Role"> | string name?: StringWithAggregatesFilter<"Role"> | string permissions?: StringNullableListFilter<"Role"> system?: BoolWithAggregatesFilter<"Role"> | boolean createdAt?: DateTimeWithAggregatesFilter<"Role"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Role"> | Date | string } export type MembershipWhereInput = { AND?: MembershipWhereInput | MembershipWhereInput[] OR?: MembershipWhereInput[] NOT?: MembershipWhereInput | MembershipWhereInput[] id?: StringFilter<"Membership"> | string organizationId?: StringFilter<"Membership"> | string userId?: StringFilter<"Membership"> | string roleId?: StringFilter<"Membership"> | string status?: EnumMembershipStatusFilter<"Membership"> | $Enums.MembershipStatus workspaceScope?: StringNullableListFilter<"Membership"> createdAt?: DateTimeFilter<"Membership"> | Date | string updatedAt?: DateTimeFilter<"Membership"> | Date | string organization?: XOR user?: XOR role?: XOR } export type MembershipOrderByWithRelationInput = { id?: SortOrder organizationId?: SortOrder userId?: SortOrder roleId?: SortOrder status?: SortOrder workspaceScope?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder organization?: OrganizationOrderByWithRelationInput user?: UserOrderByWithRelationInput role?: RoleOrderByWithRelationInput } export type MembershipWhereUniqueInput = Prisma.AtLeast<{ id?: string organizationId_userId?: MembershipOrganizationIdUserIdCompoundUniqueInput AND?: MembershipWhereInput | MembershipWhereInput[] OR?: MembershipWhereInput[] NOT?: MembershipWhereInput | MembershipWhereInput[] organizationId?: StringFilter<"Membership"> | string userId?: StringFilter<"Membership"> | string roleId?: StringFilter<"Membership"> | string status?: EnumMembershipStatusFilter<"Membership"> | $Enums.MembershipStatus workspaceScope?: StringNullableListFilter<"Membership"> createdAt?: DateTimeFilter<"Membership"> | Date | string updatedAt?: DateTimeFilter<"Membership"> | Date | string organization?: XOR user?: XOR role?: XOR }, "id" | "organizationId_userId"> export type MembershipOrderByWithAggregationInput = { id?: SortOrder organizationId?: SortOrder userId?: SortOrder roleId?: SortOrder status?: SortOrder workspaceScope?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: MembershipCountOrderByAggregateInput _max?: MembershipMaxOrderByAggregateInput _min?: MembershipMinOrderByAggregateInput } export type MembershipScalarWhereWithAggregatesInput = { AND?: MembershipScalarWhereWithAggregatesInput | MembershipScalarWhereWithAggregatesInput[] OR?: MembershipScalarWhereWithAggregatesInput[] NOT?: MembershipScalarWhereWithAggregatesInput | MembershipScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Membership"> | string organizationId?: StringWithAggregatesFilter<"Membership"> | string userId?: StringWithAggregatesFilter<"Membership"> | string roleId?: StringWithAggregatesFilter<"Membership"> | string status?: EnumMembershipStatusWithAggregatesFilter<"Membership"> | $Enums.MembershipStatus workspaceScope?: StringNullableListFilter<"Membership"> createdAt?: DateTimeWithAggregatesFilter<"Membership"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Membership"> | Date | string } export type InvitationWhereInput = { AND?: InvitationWhereInput | InvitationWhereInput[] OR?: InvitationWhereInput[] NOT?: InvitationWhereInput | InvitationWhereInput[] id?: StringFilter<"Invitation"> | string organizationId?: StringFilter<"Invitation"> | string email?: StringFilter<"Invitation"> | string roleCode?: StringFilter<"Invitation"> | string tokenHash?: StringFilter<"Invitation"> | string expiresAt?: DateTimeFilter<"Invitation"> | Date | string acceptedAt?: DateTimeNullableFilter<"Invitation"> | Date | string | null invitedById?: StringNullableFilter<"Invitation"> | string | null createdAt?: DateTimeFilter<"Invitation"> | Date | string organization?: XOR invitedBy?: XOR | null } export type InvitationOrderByWithRelationInput = { id?: SortOrder organizationId?: SortOrder email?: SortOrder roleCode?: SortOrder tokenHash?: SortOrder expiresAt?: SortOrder acceptedAt?: SortOrderInput | SortOrder invitedById?: SortOrderInput | SortOrder createdAt?: SortOrder organization?: OrganizationOrderByWithRelationInput invitedBy?: UserOrderByWithRelationInput } export type InvitationWhereUniqueInput = Prisma.AtLeast<{ id?: string tokenHash?: string AND?: InvitationWhereInput | InvitationWhereInput[] OR?: InvitationWhereInput[] NOT?: InvitationWhereInput | InvitationWhereInput[] organizationId?: StringFilter<"Invitation"> | string email?: StringFilter<"Invitation"> | string roleCode?: StringFilter<"Invitation"> | string expiresAt?: DateTimeFilter<"Invitation"> | Date | string acceptedAt?: DateTimeNullableFilter<"Invitation"> | Date | string | null invitedById?: StringNullableFilter<"Invitation"> | string | null createdAt?: DateTimeFilter<"Invitation"> | Date | string organization?: XOR invitedBy?: XOR | null }, "id" | "tokenHash"> export type InvitationOrderByWithAggregationInput = { id?: SortOrder organizationId?: SortOrder email?: SortOrder roleCode?: SortOrder tokenHash?: SortOrder expiresAt?: SortOrder acceptedAt?: SortOrderInput | SortOrder invitedById?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: InvitationCountOrderByAggregateInput _max?: InvitationMaxOrderByAggregateInput _min?: InvitationMinOrderByAggregateInput } export type InvitationScalarWhereWithAggregatesInput = { AND?: InvitationScalarWhereWithAggregatesInput | InvitationScalarWhereWithAggregatesInput[] OR?: InvitationScalarWhereWithAggregatesInput[] NOT?: InvitationScalarWhereWithAggregatesInput | InvitationScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Invitation"> | string organizationId?: StringWithAggregatesFilter<"Invitation"> | string email?: StringWithAggregatesFilter<"Invitation"> | string roleCode?: StringWithAggregatesFilter<"Invitation"> | string tokenHash?: StringWithAggregatesFilter<"Invitation"> | string expiresAt?: DateTimeWithAggregatesFilter<"Invitation"> | Date | string acceptedAt?: DateTimeNullableWithAggregatesFilter<"Invitation"> | Date | string | null invitedById?: StringNullableWithAggregatesFilter<"Invitation"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Invitation"> | Date | string } export type SubscriptionWhereInput = { AND?: SubscriptionWhereInput | SubscriptionWhereInput[] OR?: SubscriptionWhereInput[] NOT?: SubscriptionWhereInput | SubscriptionWhereInput[] id?: StringFilter<"Subscription"> | string organizationId?: StringFilter<"Subscription"> | string source?: EnumSubscriptionSourceFilter<"Subscription"> | $Enums.SubscriptionSource status?: EnumSubscriptionStatusFilter<"Subscription"> | $Enums.SubscriptionStatus planCode?: StringFilter<"Subscription"> | string stripeSubscriptionId?: StringNullableFilter<"Subscription"> | string | null currentPeriodEnd?: DateTimeNullableFilter<"Subscription"> | Date | string | null userLimit?: IntFilter<"Subscription"> | number projectLimit?: IntFilter<"Subscription"> | number reportLimitMonthly?: IntFilter<"Subscription"> | number integrationLimit?: IntFilter<"Subscription"> | number storageMbLimit?: IntFilter<"Subscription"> | number adminOverride?: BoolFilter<"Subscription"> | boolean createdAt?: DateTimeFilter<"Subscription"> | Date | string updatedAt?: DateTimeFilter<"Subscription"> | Date | string organization?: XOR } export type SubscriptionOrderByWithRelationInput = { id?: SortOrder organizationId?: SortOrder source?: SortOrder status?: SortOrder planCode?: SortOrder stripeSubscriptionId?: SortOrderInput | SortOrder currentPeriodEnd?: SortOrderInput | SortOrder userLimit?: SortOrder projectLimit?: SortOrder reportLimitMonthly?: SortOrder integrationLimit?: SortOrder storageMbLimit?: SortOrder adminOverride?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder organization?: OrganizationOrderByWithRelationInput } export type SubscriptionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: SubscriptionWhereInput | SubscriptionWhereInput[] OR?: SubscriptionWhereInput[] NOT?: SubscriptionWhereInput | SubscriptionWhereInput[] organizationId?: StringFilter<"Subscription"> | string source?: EnumSubscriptionSourceFilter<"Subscription"> | $Enums.SubscriptionSource status?: EnumSubscriptionStatusFilter<"Subscription"> | $Enums.SubscriptionStatus planCode?: StringFilter<"Subscription"> | string stripeSubscriptionId?: StringNullableFilter<"Subscription"> | string | null currentPeriodEnd?: DateTimeNullableFilter<"Subscription"> | Date | string | null userLimit?: IntFilter<"Subscription"> | number projectLimit?: IntFilter<"Subscription"> | number reportLimitMonthly?: IntFilter<"Subscription"> | number integrationLimit?: IntFilter<"Subscription"> | number storageMbLimit?: IntFilter<"Subscription"> | number adminOverride?: BoolFilter<"Subscription"> | boolean createdAt?: DateTimeFilter<"Subscription"> | Date | string updatedAt?: DateTimeFilter<"Subscription"> | Date | string organization?: XOR }, "id"> export type SubscriptionOrderByWithAggregationInput = { id?: SortOrder organizationId?: SortOrder source?: SortOrder status?: SortOrder planCode?: SortOrder stripeSubscriptionId?: SortOrderInput | SortOrder currentPeriodEnd?: SortOrderInput | SortOrder userLimit?: SortOrder projectLimit?: SortOrder reportLimitMonthly?: SortOrder integrationLimit?: SortOrder storageMbLimit?: SortOrder adminOverride?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: SubscriptionCountOrderByAggregateInput _avg?: SubscriptionAvgOrderByAggregateInput _max?: SubscriptionMaxOrderByAggregateInput _min?: SubscriptionMinOrderByAggregateInput _sum?: SubscriptionSumOrderByAggregateInput } export type SubscriptionScalarWhereWithAggregatesInput = { AND?: SubscriptionScalarWhereWithAggregatesInput | SubscriptionScalarWhereWithAggregatesInput[] OR?: SubscriptionScalarWhereWithAggregatesInput[] NOT?: SubscriptionScalarWhereWithAggregatesInput | SubscriptionScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Subscription"> | string organizationId?: StringWithAggregatesFilter<"Subscription"> | string source?: EnumSubscriptionSourceWithAggregatesFilter<"Subscription"> | $Enums.SubscriptionSource status?: EnumSubscriptionStatusWithAggregatesFilter<"Subscription"> | $Enums.SubscriptionStatus planCode?: StringWithAggregatesFilter<"Subscription"> | string stripeSubscriptionId?: StringNullableWithAggregatesFilter<"Subscription"> | string | null currentPeriodEnd?: DateTimeNullableWithAggregatesFilter<"Subscription"> | Date | string | null userLimit?: IntWithAggregatesFilter<"Subscription"> | number projectLimit?: IntWithAggregatesFilter<"Subscription"> | number reportLimitMonthly?: IntWithAggregatesFilter<"Subscription"> | number integrationLimit?: IntWithAggregatesFilter<"Subscription"> | number storageMbLimit?: IntWithAggregatesFilter<"Subscription"> | number adminOverride?: BoolWithAggregatesFilter<"Subscription"> | boolean createdAt?: DateTimeWithAggregatesFilter<"Subscription"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Subscription"> | Date | string } export type ProjectWhereInput = { AND?: ProjectWhereInput | ProjectWhereInput[] OR?: ProjectWhereInput[] NOT?: ProjectWhereInput | ProjectWhereInput[] id?: StringFilter<"Project"> | string workspaceId?: StringFilter<"Project"> | string name?: StringFilter<"Project"> | string subtitle?: StringNullableFilter<"Project"> | string | null projectType?: StringFilter<"Project"> | string currentLifecyclePhase?: StringNullableFilter<"Project"> | string | null riskAppetite?: IntFilter<"Project"> | number assessmentDate?: DateTimeNullableFilter<"Project"> | Date | string | null status?: StringFilter<"Project"> | string ownerDisplayName?: StringNullableFilter<"Project"> | string | null description?: StringNullableFilter<"Project"> | string | null thresholds?: JsonFilter<"Project"> reviews?: JsonFilter<"Project"> createdAt?: DateTimeFilter<"Project"> | Date | string updatedAt?: DateTimeFilter<"Project"> | Date | string workspace?: XOR lifecyclePhases?: LifecyclePhaseListRelationFilter risks?: RiskListRelationFilter indicators?: IndicatorListRelationFilter experiments?: ExperimentListRelationFilter gateEvaluations?: GateEvaluationListRelationFilter auditEvents?: AuditEventListRelationFilter reports?: ReportExportListRelationFilter } export type ProjectOrderByWithRelationInput = { id?: SortOrder workspaceId?: SortOrder name?: SortOrder subtitle?: SortOrderInput | SortOrder projectType?: SortOrder currentLifecyclePhase?: SortOrderInput | SortOrder riskAppetite?: SortOrder assessmentDate?: SortOrderInput | SortOrder status?: SortOrder ownerDisplayName?: SortOrderInput | SortOrder description?: SortOrderInput | SortOrder thresholds?: SortOrder reviews?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder workspace?: WorkspaceOrderByWithRelationInput lifecyclePhases?: LifecyclePhaseOrderByRelationAggregateInput risks?: RiskOrderByRelationAggregateInput indicators?: IndicatorOrderByRelationAggregateInput experiments?: ExperimentOrderByRelationAggregateInput gateEvaluations?: GateEvaluationOrderByRelationAggregateInput auditEvents?: AuditEventOrderByRelationAggregateInput reports?: ReportExportOrderByRelationAggregateInput } export type ProjectWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: ProjectWhereInput | ProjectWhereInput[] OR?: ProjectWhereInput[] NOT?: ProjectWhereInput | ProjectWhereInput[] workspaceId?: StringFilter<"Project"> | string name?: StringFilter<"Project"> | string subtitle?: StringNullableFilter<"Project"> | string | null projectType?: StringFilter<"Project"> | string currentLifecyclePhase?: StringNullableFilter<"Project"> | string | null riskAppetite?: IntFilter<"Project"> | number assessmentDate?: DateTimeNullableFilter<"Project"> | Date | string | null status?: StringFilter<"Project"> | string ownerDisplayName?: StringNullableFilter<"Project"> | string | null description?: StringNullableFilter<"Project"> | string | null thresholds?: JsonFilter<"Project"> reviews?: JsonFilter<"Project"> createdAt?: DateTimeFilter<"Project"> | Date | string updatedAt?: DateTimeFilter<"Project"> | Date | string workspace?: XOR lifecyclePhases?: LifecyclePhaseListRelationFilter risks?: RiskListRelationFilter indicators?: IndicatorListRelationFilter experiments?: ExperimentListRelationFilter gateEvaluations?: GateEvaluationListRelationFilter auditEvents?: AuditEventListRelationFilter reports?: ReportExportListRelationFilter }, "id"> export type ProjectOrderByWithAggregationInput = { id?: SortOrder workspaceId?: SortOrder name?: SortOrder subtitle?: SortOrderInput | SortOrder projectType?: SortOrder currentLifecyclePhase?: SortOrderInput | SortOrder riskAppetite?: SortOrder assessmentDate?: SortOrderInput | SortOrder status?: SortOrder ownerDisplayName?: SortOrderInput | SortOrder description?: SortOrderInput | SortOrder thresholds?: SortOrder reviews?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: ProjectCountOrderByAggregateInput _avg?: ProjectAvgOrderByAggregateInput _max?: ProjectMaxOrderByAggregateInput _min?: ProjectMinOrderByAggregateInput _sum?: ProjectSumOrderByAggregateInput } export type ProjectScalarWhereWithAggregatesInput = { AND?: ProjectScalarWhereWithAggregatesInput | ProjectScalarWhereWithAggregatesInput[] OR?: ProjectScalarWhereWithAggregatesInput[] NOT?: ProjectScalarWhereWithAggregatesInput | ProjectScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Project"> | string workspaceId?: StringWithAggregatesFilter<"Project"> | string name?: StringWithAggregatesFilter<"Project"> | string subtitle?: StringNullableWithAggregatesFilter<"Project"> | string | null projectType?: StringWithAggregatesFilter<"Project"> | string currentLifecyclePhase?: StringNullableWithAggregatesFilter<"Project"> | string | null riskAppetite?: IntWithAggregatesFilter<"Project"> | number assessmentDate?: DateTimeNullableWithAggregatesFilter<"Project"> | Date | string | null status?: StringWithAggregatesFilter<"Project"> | string ownerDisplayName?: StringNullableWithAggregatesFilter<"Project"> | string | null description?: StringNullableWithAggregatesFilter<"Project"> | string | null thresholds?: JsonWithAggregatesFilter<"Project"> reviews?: JsonWithAggregatesFilter<"Project"> createdAt?: DateTimeWithAggregatesFilter<"Project"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Project"> | Date | string } export type LifecyclePhaseWhereInput = { AND?: LifecyclePhaseWhereInput | LifecyclePhaseWhereInput[] OR?: LifecyclePhaseWhereInput[] NOT?: LifecyclePhaseWhereInput | LifecyclePhaseWhereInput[] id?: StringFilter<"LifecyclePhase"> | string projectId?: StringFilter<"LifecyclePhase"> | string name?: StringFilter<"LifecyclePhase"> | string status?: StringFilter<"LifecyclePhase"> | string readinessScore?: IntFilter<"LifecyclePhase"> | number sequence?: IntFilter<"LifecyclePhase"> | number createdAt?: DateTimeFilter<"LifecyclePhase"> | Date | string updatedAt?: DateTimeFilter<"LifecyclePhase"> | Date | string project?: XOR } export type LifecyclePhaseOrderByWithRelationInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder status?: SortOrder readinessScore?: SortOrder sequence?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder project?: ProjectOrderByWithRelationInput } export type LifecyclePhaseWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: LifecyclePhaseWhereInput | LifecyclePhaseWhereInput[] OR?: LifecyclePhaseWhereInput[] NOT?: LifecyclePhaseWhereInput | LifecyclePhaseWhereInput[] projectId?: StringFilter<"LifecyclePhase"> | string name?: StringFilter<"LifecyclePhase"> | string status?: StringFilter<"LifecyclePhase"> | string readinessScore?: IntFilter<"LifecyclePhase"> | number sequence?: IntFilter<"LifecyclePhase"> | number createdAt?: DateTimeFilter<"LifecyclePhase"> | Date | string updatedAt?: DateTimeFilter<"LifecyclePhase"> | Date | string project?: XOR }, "id"> export type LifecyclePhaseOrderByWithAggregationInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder status?: SortOrder readinessScore?: SortOrder sequence?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: LifecyclePhaseCountOrderByAggregateInput _avg?: LifecyclePhaseAvgOrderByAggregateInput _max?: LifecyclePhaseMaxOrderByAggregateInput _min?: LifecyclePhaseMinOrderByAggregateInput _sum?: LifecyclePhaseSumOrderByAggregateInput } export type LifecyclePhaseScalarWhereWithAggregatesInput = { AND?: LifecyclePhaseScalarWhereWithAggregatesInput | LifecyclePhaseScalarWhereWithAggregatesInput[] OR?: LifecyclePhaseScalarWhereWithAggregatesInput[] NOT?: LifecyclePhaseScalarWhereWithAggregatesInput | LifecyclePhaseScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"LifecyclePhase"> | string projectId?: StringWithAggregatesFilter<"LifecyclePhase"> | string name?: StringWithAggregatesFilter<"LifecyclePhase"> | string status?: StringWithAggregatesFilter<"LifecyclePhase"> | string readinessScore?: IntWithAggregatesFilter<"LifecyclePhase"> | number sequence?: IntWithAggregatesFilter<"LifecyclePhase"> | number createdAt?: DateTimeWithAggregatesFilter<"LifecyclePhase"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"LifecyclePhase"> | Date | string } export type RiskWhereInput = { AND?: RiskWhereInput | RiskWhereInput[] OR?: RiskWhereInput[] NOT?: RiskWhereInput | RiskWhereInput[] id?: StringFilter<"Risk"> | string projectId?: StringFilter<"Risk"> | string ownerDisplayName?: StringNullableFilter<"Risk"> | string | null title?: StringFilter<"Risk"> | string description?: StringNullableFilter<"Risk"> | string | null dimension?: StringFilter<"Risk"> | string domain?: StringFilter<"Risk"> | string lifecyclePhase?: StringFilter<"Risk"> | string probability?: IntFilter<"Risk"> | number impact?: IntFilter<"Risk"> | number detectability?: IntFilter<"Risk"> | number status?: EnumRiskStatusFilter<"Risk"> | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFilter<"Risk"> | $Enums.ApprovalStatus dueDate?: DateTimeNullableFilter<"Risk"> | Date | string | null evidenceSummary?: StringNullableFilter<"Risk"> | string | null createdAt?: DateTimeFilter<"Risk"> | Date | string updatedAt?: DateTimeFilter<"Risk"> | Date | string project?: XOR mitigations?: MitigationListRelationFilter evidence?: EvidenceListRelationFilter } export type RiskOrderByWithRelationInput = { id?: SortOrder projectId?: SortOrder ownerDisplayName?: SortOrderInput | SortOrder title?: SortOrder description?: SortOrderInput | SortOrder dimension?: SortOrder domain?: SortOrder lifecyclePhase?: SortOrder probability?: SortOrder impact?: SortOrder detectability?: SortOrder status?: SortOrder approvalStatus?: SortOrder dueDate?: SortOrderInput | SortOrder evidenceSummary?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder project?: ProjectOrderByWithRelationInput mitigations?: MitigationOrderByRelationAggregateInput evidence?: EvidenceOrderByRelationAggregateInput } export type RiskWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: RiskWhereInput | RiskWhereInput[] OR?: RiskWhereInput[] NOT?: RiskWhereInput | RiskWhereInput[] projectId?: StringFilter<"Risk"> | string ownerDisplayName?: StringNullableFilter<"Risk"> | string | null title?: StringFilter<"Risk"> | string description?: StringNullableFilter<"Risk"> | string | null dimension?: StringFilter<"Risk"> | string domain?: StringFilter<"Risk"> | string lifecyclePhase?: StringFilter<"Risk"> | string probability?: IntFilter<"Risk"> | number impact?: IntFilter<"Risk"> | number detectability?: IntFilter<"Risk"> | number status?: EnumRiskStatusFilter<"Risk"> | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFilter<"Risk"> | $Enums.ApprovalStatus dueDate?: DateTimeNullableFilter<"Risk"> | Date | string | null evidenceSummary?: StringNullableFilter<"Risk"> | string | null createdAt?: DateTimeFilter<"Risk"> | Date | string updatedAt?: DateTimeFilter<"Risk"> | Date | string project?: XOR mitigations?: MitigationListRelationFilter evidence?: EvidenceListRelationFilter }, "id"> export type RiskOrderByWithAggregationInput = { id?: SortOrder projectId?: SortOrder ownerDisplayName?: SortOrderInput | SortOrder title?: SortOrder description?: SortOrderInput | SortOrder dimension?: SortOrder domain?: SortOrder lifecyclePhase?: SortOrder probability?: SortOrder impact?: SortOrder detectability?: SortOrder status?: SortOrder approvalStatus?: SortOrder dueDate?: SortOrderInput | SortOrder evidenceSummary?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: RiskCountOrderByAggregateInput _avg?: RiskAvgOrderByAggregateInput _max?: RiskMaxOrderByAggregateInput _min?: RiskMinOrderByAggregateInput _sum?: RiskSumOrderByAggregateInput } export type RiskScalarWhereWithAggregatesInput = { AND?: RiskScalarWhereWithAggregatesInput | RiskScalarWhereWithAggregatesInput[] OR?: RiskScalarWhereWithAggregatesInput[] NOT?: RiskScalarWhereWithAggregatesInput | RiskScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Risk"> | string projectId?: StringWithAggregatesFilter<"Risk"> | string ownerDisplayName?: StringNullableWithAggregatesFilter<"Risk"> | string | null title?: StringWithAggregatesFilter<"Risk"> | string description?: StringNullableWithAggregatesFilter<"Risk"> | string | null dimension?: StringWithAggregatesFilter<"Risk"> | string domain?: StringWithAggregatesFilter<"Risk"> | string lifecyclePhase?: StringWithAggregatesFilter<"Risk"> | string probability?: IntWithAggregatesFilter<"Risk"> | number impact?: IntWithAggregatesFilter<"Risk"> | number detectability?: IntWithAggregatesFilter<"Risk"> | number status?: EnumRiskStatusWithAggregatesFilter<"Risk"> | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusWithAggregatesFilter<"Risk"> | $Enums.ApprovalStatus dueDate?: DateTimeNullableWithAggregatesFilter<"Risk"> | Date | string | null evidenceSummary?: StringNullableWithAggregatesFilter<"Risk"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Risk"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Risk"> | Date | string } export type MitigationWhereInput = { AND?: MitigationWhereInput | MitigationWhereInput[] OR?: MitigationWhereInput[] NOT?: MitigationWhereInput | MitigationWhereInput[] id?: StringFilter<"Mitigation"> | string riskId?: StringFilter<"Mitigation"> | string ownerDisplayName?: StringNullableFilter<"Mitigation"> | string | null title?: StringFilter<"Mitigation"> | string description?: StringNullableFilter<"Mitigation"> | string | null status?: EnumMitigationStatusFilter<"Mitigation"> | $Enums.MitigationStatus progressPercent?: IntFilter<"Mitigation"> | number effectivenessPercent?: IntFilter<"Mitigation"> | number dueDate?: DateTimeNullableFilter<"Mitigation"> | Date | string | null sequence?: IntFilter<"Mitigation"> | number createdAt?: DateTimeFilter<"Mitigation"> | Date | string updatedAt?: DateTimeFilter<"Mitigation"> | Date | string risk?: XOR evidence?: EvidenceListRelationFilter } export type MitigationOrderByWithRelationInput = { id?: SortOrder riskId?: SortOrder ownerDisplayName?: SortOrderInput | SortOrder title?: SortOrder description?: SortOrderInput | SortOrder status?: SortOrder progressPercent?: SortOrder effectivenessPercent?: SortOrder dueDate?: SortOrderInput | SortOrder sequence?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder risk?: RiskOrderByWithRelationInput evidence?: EvidenceOrderByRelationAggregateInput } export type MitigationWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: MitigationWhereInput | MitigationWhereInput[] OR?: MitigationWhereInput[] NOT?: MitigationWhereInput | MitigationWhereInput[] riskId?: StringFilter<"Mitigation"> | string ownerDisplayName?: StringNullableFilter<"Mitigation"> | string | null title?: StringFilter<"Mitigation"> | string description?: StringNullableFilter<"Mitigation"> | string | null status?: EnumMitigationStatusFilter<"Mitigation"> | $Enums.MitigationStatus progressPercent?: IntFilter<"Mitigation"> | number effectivenessPercent?: IntFilter<"Mitigation"> | number dueDate?: DateTimeNullableFilter<"Mitigation"> | Date | string | null sequence?: IntFilter<"Mitigation"> | number createdAt?: DateTimeFilter<"Mitigation"> | Date | string updatedAt?: DateTimeFilter<"Mitigation"> | Date | string risk?: XOR evidence?: EvidenceListRelationFilter }, "id"> export type MitigationOrderByWithAggregationInput = { id?: SortOrder riskId?: SortOrder ownerDisplayName?: SortOrderInput | SortOrder title?: SortOrder description?: SortOrderInput | SortOrder status?: SortOrder progressPercent?: SortOrder effectivenessPercent?: SortOrder dueDate?: SortOrderInput | SortOrder sequence?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: MitigationCountOrderByAggregateInput _avg?: MitigationAvgOrderByAggregateInput _max?: MitigationMaxOrderByAggregateInput _min?: MitigationMinOrderByAggregateInput _sum?: MitigationSumOrderByAggregateInput } export type MitigationScalarWhereWithAggregatesInput = { AND?: MitigationScalarWhereWithAggregatesInput | MitigationScalarWhereWithAggregatesInput[] OR?: MitigationScalarWhereWithAggregatesInput[] NOT?: MitigationScalarWhereWithAggregatesInput | MitigationScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Mitigation"> | string riskId?: StringWithAggregatesFilter<"Mitigation"> | string ownerDisplayName?: StringNullableWithAggregatesFilter<"Mitigation"> | string | null title?: StringWithAggregatesFilter<"Mitigation"> | string description?: StringNullableWithAggregatesFilter<"Mitigation"> | string | null status?: EnumMitigationStatusWithAggregatesFilter<"Mitigation"> | $Enums.MitigationStatus progressPercent?: IntWithAggregatesFilter<"Mitigation"> | number effectivenessPercent?: IntWithAggregatesFilter<"Mitigation"> | number dueDate?: DateTimeNullableWithAggregatesFilter<"Mitigation"> | Date | string | null sequence?: IntWithAggregatesFilter<"Mitigation"> | number createdAt?: DateTimeWithAggregatesFilter<"Mitigation"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Mitigation"> | Date | string } export type EvidenceWhereInput = { AND?: EvidenceWhereInput | EvidenceWhereInput[] OR?: EvidenceWhereInput[] NOT?: EvidenceWhereInput | EvidenceWhereInput[] id?: StringFilter<"Evidence"> | string projectId?: StringFilter<"Evidence"> | string riskId?: StringNullableFilter<"Evidence"> | string | null mitigationId?: StringNullableFilter<"Evidence"> | string | null type?: StringFilter<"Evidence"> | string title?: StringFilter<"Evidence"> | string uri?: StringNullableFilter<"Evidence"> | string | null createdById?: StringNullableFilter<"Evidence"> | string | null createdAt?: DateTimeFilter<"Evidence"> | Date | string updatedAt?: DateTimeFilter<"Evidence"> | Date | string risk?: XOR | null mitigation?: XOR | null } export type EvidenceOrderByWithRelationInput = { id?: SortOrder projectId?: SortOrder riskId?: SortOrderInput | SortOrder mitigationId?: SortOrderInput | SortOrder type?: SortOrder title?: SortOrder uri?: SortOrderInput | SortOrder createdById?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder risk?: RiskOrderByWithRelationInput mitigation?: MitigationOrderByWithRelationInput } export type EvidenceWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: EvidenceWhereInput | EvidenceWhereInput[] OR?: EvidenceWhereInput[] NOT?: EvidenceWhereInput | EvidenceWhereInput[] projectId?: StringFilter<"Evidence"> | string riskId?: StringNullableFilter<"Evidence"> | string | null mitigationId?: StringNullableFilter<"Evidence"> | string | null type?: StringFilter<"Evidence"> | string title?: StringFilter<"Evidence"> | string uri?: StringNullableFilter<"Evidence"> | string | null createdById?: StringNullableFilter<"Evidence"> | string | null createdAt?: DateTimeFilter<"Evidence"> | Date | string updatedAt?: DateTimeFilter<"Evidence"> | Date | string risk?: XOR | null mitigation?: XOR | null }, "id"> export type EvidenceOrderByWithAggregationInput = { id?: SortOrder projectId?: SortOrder riskId?: SortOrderInput | SortOrder mitigationId?: SortOrderInput | SortOrder type?: SortOrder title?: SortOrder uri?: SortOrderInput | SortOrder createdById?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: EvidenceCountOrderByAggregateInput _max?: EvidenceMaxOrderByAggregateInput _min?: EvidenceMinOrderByAggregateInput } export type EvidenceScalarWhereWithAggregatesInput = { AND?: EvidenceScalarWhereWithAggregatesInput | EvidenceScalarWhereWithAggregatesInput[] OR?: EvidenceScalarWhereWithAggregatesInput[] NOT?: EvidenceScalarWhereWithAggregatesInput | EvidenceScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Evidence"> | string projectId?: StringWithAggregatesFilter<"Evidence"> | string riskId?: StringNullableWithAggregatesFilter<"Evidence"> | string | null mitigationId?: StringNullableWithAggregatesFilter<"Evidence"> | string | null type?: StringWithAggregatesFilter<"Evidence"> | string title?: StringWithAggregatesFilter<"Evidence"> | string uri?: StringNullableWithAggregatesFilter<"Evidence"> | string | null createdById?: StringNullableWithAggregatesFilter<"Evidence"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Evidence"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Evidence"> | Date | string } export type IndicatorWhereInput = { AND?: IndicatorWhereInput | IndicatorWhereInput[] OR?: IndicatorWhereInput[] NOT?: IndicatorWhereInput | IndicatorWhereInput[] id?: StringFilter<"Indicator"> | string projectId?: StringFilter<"Indicator"> | string name?: StringFilter<"Indicator"> | string dimension?: StringFilter<"Indicator"> | string measurand?: StringFilter<"Indicator"> | string unit?: StringFilter<"Indicator"> | string target?: StringNullableFilter<"Indicator"> | string | null interpretationRule?: StringNullableFilter<"Indicator"> | string | null createdAt?: DateTimeFilter<"Indicator"> | Date | string updatedAt?: DateTimeFilter<"Indicator"> | Date | string project?: XOR } export type IndicatorOrderByWithRelationInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder dimension?: SortOrder measurand?: SortOrder unit?: SortOrder target?: SortOrderInput | SortOrder interpretationRule?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder project?: ProjectOrderByWithRelationInput } export type IndicatorWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: IndicatorWhereInput | IndicatorWhereInput[] OR?: IndicatorWhereInput[] NOT?: IndicatorWhereInput | IndicatorWhereInput[] projectId?: StringFilter<"Indicator"> | string name?: StringFilter<"Indicator"> | string dimension?: StringFilter<"Indicator"> | string measurand?: StringFilter<"Indicator"> | string unit?: StringFilter<"Indicator"> | string target?: StringNullableFilter<"Indicator"> | string | null interpretationRule?: StringNullableFilter<"Indicator"> | string | null createdAt?: DateTimeFilter<"Indicator"> | Date | string updatedAt?: DateTimeFilter<"Indicator"> | Date | string project?: XOR }, "id"> export type IndicatorOrderByWithAggregationInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder dimension?: SortOrder measurand?: SortOrder unit?: SortOrder target?: SortOrderInput | SortOrder interpretationRule?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: IndicatorCountOrderByAggregateInput _max?: IndicatorMaxOrderByAggregateInput _min?: IndicatorMinOrderByAggregateInput } export type IndicatorScalarWhereWithAggregatesInput = { AND?: IndicatorScalarWhereWithAggregatesInput | IndicatorScalarWhereWithAggregatesInput[] OR?: IndicatorScalarWhereWithAggregatesInput[] NOT?: IndicatorScalarWhereWithAggregatesInput | IndicatorScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Indicator"> | string projectId?: StringWithAggregatesFilter<"Indicator"> | string name?: StringWithAggregatesFilter<"Indicator"> | string dimension?: StringWithAggregatesFilter<"Indicator"> | string measurand?: StringWithAggregatesFilter<"Indicator"> | string unit?: StringWithAggregatesFilter<"Indicator"> | string target?: StringNullableWithAggregatesFilter<"Indicator"> | string | null interpretationRule?: StringNullableWithAggregatesFilter<"Indicator"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Indicator"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Indicator"> | Date | string } export type ExperimentWhereInput = { AND?: ExperimentWhereInput | ExperimentWhereInput[] OR?: ExperimentWhereInput[] NOT?: ExperimentWhereInput | ExperimentWhereInput[] id?: StringFilter<"Experiment"> | string projectId?: StringFilter<"Experiment"> | string name?: StringFilter<"Experiment"> | string modelName?: StringNullableFilter<"Experiment"> | string | null selected?: BoolFilter<"Experiment"> | boolean createdAt?: DateTimeFilter<"Experiment"> | Date | string updatedAt?: DateTimeFilter<"Experiment"> | Date | string project?: XOR metrics?: ModelMetricListRelationFilter } export type ExperimentOrderByWithRelationInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder modelName?: SortOrderInput | SortOrder selected?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder project?: ProjectOrderByWithRelationInput metrics?: ModelMetricOrderByRelationAggregateInput } export type ExperimentWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: ExperimentWhereInput | ExperimentWhereInput[] OR?: ExperimentWhereInput[] NOT?: ExperimentWhereInput | ExperimentWhereInput[] projectId?: StringFilter<"Experiment"> | string name?: StringFilter<"Experiment"> | string modelName?: StringNullableFilter<"Experiment"> | string | null selected?: BoolFilter<"Experiment"> | boolean createdAt?: DateTimeFilter<"Experiment"> | Date | string updatedAt?: DateTimeFilter<"Experiment"> | Date | string project?: XOR metrics?: ModelMetricListRelationFilter }, "id"> export type ExperimentOrderByWithAggregationInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder modelName?: SortOrderInput | SortOrder selected?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: ExperimentCountOrderByAggregateInput _max?: ExperimentMaxOrderByAggregateInput _min?: ExperimentMinOrderByAggregateInput } export type ExperimentScalarWhereWithAggregatesInput = { AND?: ExperimentScalarWhereWithAggregatesInput | ExperimentScalarWhereWithAggregatesInput[] OR?: ExperimentScalarWhereWithAggregatesInput[] NOT?: ExperimentScalarWhereWithAggregatesInput | ExperimentScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Experiment"> | string projectId?: StringWithAggregatesFilter<"Experiment"> | string name?: StringWithAggregatesFilter<"Experiment"> | string modelName?: StringNullableWithAggregatesFilter<"Experiment"> | string | null selected?: BoolWithAggregatesFilter<"Experiment"> | boolean createdAt?: DateTimeWithAggregatesFilter<"Experiment"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Experiment"> | Date | string } export type ModelMetricWhereInput = { AND?: ModelMetricWhereInput | ModelMetricWhereInput[] OR?: ModelMetricWhereInput[] NOT?: ModelMetricWhereInput | ModelMetricWhereInput[] id?: StringFilter<"ModelMetric"> | string experimentId?: StringFilter<"ModelMetric"> | string metricName?: StringFilter<"ModelMetric"> | string metricValue?: FloatFilter<"ModelMetric"> | number thresholdValue?: FloatNullableFilter<"ModelMetric"> | number | null status?: StringFilter<"ModelMetric"> | string measuredAt?: DateTimeNullableFilter<"ModelMetric"> | Date | string | null createdAt?: DateTimeFilter<"ModelMetric"> | Date | string updatedAt?: DateTimeFilter<"ModelMetric"> | Date | string experiment?: XOR } export type ModelMetricOrderByWithRelationInput = { id?: SortOrder experimentId?: SortOrder metricName?: SortOrder metricValue?: SortOrder thresholdValue?: SortOrderInput | SortOrder status?: SortOrder measuredAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder experiment?: ExperimentOrderByWithRelationInput } export type ModelMetricWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: ModelMetricWhereInput | ModelMetricWhereInput[] OR?: ModelMetricWhereInput[] NOT?: ModelMetricWhereInput | ModelMetricWhereInput[] experimentId?: StringFilter<"ModelMetric"> | string metricName?: StringFilter<"ModelMetric"> | string metricValue?: FloatFilter<"ModelMetric"> | number thresholdValue?: FloatNullableFilter<"ModelMetric"> | number | null status?: StringFilter<"ModelMetric"> | string measuredAt?: DateTimeNullableFilter<"ModelMetric"> | Date | string | null createdAt?: DateTimeFilter<"ModelMetric"> | Date | string updatedAt?: DateTimeFilter<"ModelMetric"> | Date | string experiment?: XOR }, "id"> export type ModelMetricOrderByWithAggregationInput = { id?: SortOrder experimentId?: SortOrder metricName?: SortOrder metricValue?: SortOrder thresholdValue?: SortOrderInput | SortOrder status?: SortOrder measuredAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: ModelMetricCountOrderByAggregateInput _avg?: ModelMetricAvgOrderByAggregateInput _max?: ModelMetricMaxOrderByAggregateInput _min?: ModelMetricMinOrderByAggregateInput _sum?: ModelMetricSumOrderByAggregateInput } export type ModelMetricScalarWhereWithAggregatesInput = { AND?: ModelMetricScalarWhereWithAggregatesInput | ModelMetricScalarWhereWithAggregatesInput[] OR?: ModelMetricScalarWhereWithAggregatesInput[] NOT?: ModelMetricScalarWhereWithAggregatesInput | ModelMetricScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"ModelMetric"> | string experimentId?: StringWithAggregatesFilter<"ModelMetric"> | string metricName?: StringWithAggregatesFilter<"ModelMetric"> | string metricValue?: FloatWithAggregatesFilter<"ModelMetric"> | number thresholdValue?: FloatNullableWithAggregatesFilter<"ModelMetric"> | number | null status?: StringWithAggregatesFilter<"ModelMetric"> | string measuredAt?: DateTimeNullableWithAggregatesFilter<"ModelMetric"> | Date | string | null createdAt?: DateTimeWithAggregatesFilter<"ModelMetric"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"ModelMetric"> | Date | string } export type GateEvaluationWhereInput = { AND?: GateEvaluationWhereInput | GateEvaluationWhereInput[] OR?: GateEvaluationWhereInput[] NOT?: GateEvaluationWhereInput | GateEvaluationWhereInput[] id?: StringFilter<"GateEvaluation"> | string projectId?: StringFilter<"GateEvaluation"> | string status?: EnumGateStatusFilter<"GateEvaluation"> | $Enums.GateStatus reviewStatus?: StringFilter<"GateEvaluation"> | string summary?: StringFilter<"GateEvaluation"> | string evaluatedByUserId?: StringNullableFilter<"GateEvaluation"> | string | null evaluatedAt?: DateTimeFilter<"GateEvaluation"> | Date | string reviewedAt?: DateTimeNullableFilter<"GateEvaluation"> | Date | string | null createdAt?: DateTimeFilter<"GateEvaluation"> | Date | string updatedAt?: DateTimeFilter<"GateEvaluation"> | Date | string project?: XOR criteria?: GateCriterionListRelationFilter decisions?: GateDecisionListRelationFilter } export type GateEvaluationOrderByWithRelationInput = { id?: SortOrder projectId?: SortOrder status?: SortOrder reviewStatus?: SortOrder summary?: SortOrder evaluatedByUserId?: SortOrderInput | SortOrder evaluatedAt?: SortOrder reviewedAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder project?: ProjectOrderByWithRelationInput criteria?: GateCriterionOrderByRelationAggregateInput decisions?: GateDecisionOrderByRelationAggregateInput } export type GateEvaluationWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: GateEvaluationWhereInput | GateEvaluationWhereInput[] OR?: GateEvaluationWhereInput[] NOT?: GateEvaluationWhereInput | GateEvaluationWhereInput[] projectId?: StringFilter<"GateEvaluation"> | string status?: EnumGateStatusFilter<"GateEvaluation"> | $Enums.GateStatus reviewStatus?: StringFilter<"GateEvaluation"> | string summary?: StringFilter<"GateEvaluation"> | string evaluatedByUserId?: StringNullableFilter<"GateEvaluation"> | string | null evaluatedAt?: DateTimeFilter<"GateEvaluation"> | Date | string reviewedAt?: DateTimeNullableFilter<"GateEvaluation"> | Date | string | null createdAt?: DateTimeFilter<"GateEvaluation"> | Date | string updatedAt?: DateTimeFilter<"GateEvaluation"> | Date | string project?: XOR criteria?: GateCriterionListRelationFilter decisions?: GateDecisionListRelationFilter }, "id"> export type GateEvaluationOrderByWithAggregationInput = { id?: SortOrder projectId?: SortOrder status?: SortOrder reviewStatus?: SortOrder summary?: SortOrder evaluatedByUserId?: SortOrderInput | SortOrder evaluatedAt?: SortOrder reviewedAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: GateEvaluationCountOrderByAggregateInput _max?: GateEvaluationMaxOrderByAggregateInput _min?: GateEvaluationMinOrderByAggregateInput } export type GateEvaluationScalarWhereWithAggregatesInput = { AND?: GateEvaluationScalarWhereWithAggregatesInput | GateEvaluationScalarWhereWithAggregatesInput[] OR?: GateEvaluationScalarWhereWithAggregatesInput[] NOT?: GateEvaluationScalarWhereWithAggregatesInput | GateEvaluationScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"GateEvaluation"> | string projectId?: StringWithAggregatesFilter<"GateEvaluation"> | string status?: EnumGateStatusWithAggregatesFilter<"GateEvaluation"> | $Enums.GateStatus reviewStatus?: StringWithAggregatesFilter<"GateEvaluation"> | string summary?: StringWithAggregatesFilter<"GateEvaluation"> | string evaluatedByUserId?: StringNullableWithAggregatesFilter<"GateEvaluation"> | string | null evaluatedAt?: DateTimeWithAggregatesFilter<"GateEvaluation"> | Date | string reviewedAt?: DateTimeNullableWithAggregatesFilter<"GateEvaluation"> | Date | string | null createdAt?: DateTimeWithAggregatesFilter<"GateEvaluation"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"GateEvaluation"> | Date | string } export type GateCriterionWhereInput = { AND?: GateCriterionWhereInput | GateCriterionWhereInput[] OR?: GateCriterionWhereInput[] NOT?: GateCriterionWhereInput | GateCriterionWhereInput[] id?: StringFilter<"GateCriterion"> | string gateId?: StringFilter<"GateCriterion"> | string name?: StringFilter<"GateCriterion"> | string actualValue?: StringFilter<"GateCriterion"> | string expectedRule?: StringFilter<"GateCriterion"> | string status?: StringFilter<"GateCriterion"> | string blocking?: BoolFilter<"GateCriterion"> | boolean evidenceTitle?: StringNullableFilter<"GateCriterion"> | string | null evidenceUri?: StringNullableFilter<"GateCriterion"> | string | null reviewerStatus?: StringFilter<"GateCriterion"> | string reviewerNote?: StringNullableFilter<"GateCriterion"> | string | null createdAt?: DateTimeFilter<"GateCriterion"> | Date | string updatedAt?: DateTimeFilter<"GateCriterion"> | Date | string gate?: XOR } export type GateCriterionOrderByWithRelationInput = { id?: SortOrder gateId?: SortOrder name?: SortOrder actualValue?: SortOrder expectedRule?: SortOrder status?: SortOrder blocking?: SortOrder evidenceTitle?: SortOrderInput | SortOrder evidenceUri?: SortOrderInput | SortOrder reviewerStatus?: SortOrder reviewerNote?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder gate?: GateEvaluationOrderByWithRelationInput } export type GateCriterionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: GateCriterionWhereInput | GateCriterionWhereInput[] OR?: GateCriterionWhereInput[] NOT?: GateCriterionWhereInput | GateCriterionWhereInput[] gateId?: StringFilter<"GateCriterion"> | string name?: StringFilter<"GateCriterion"> | string actualValue?: StringFilter<"GateCriterion"> | string expectedRule?: StringFilter<"GateCriterion"> | string status?: StringFilter<"GateCriterion"> | string blocking?: BoolFilter<"GateCriterion"> | boolean evidenceTitle?: StringNullableFilter<"GateCriterion"> | string | null evidenceUri?: StringNullableFilter<"GateCriterion"> | string | null reviewerStatus?: StringFilter<"GateCriterion"> | string reviewerNote?: StringNullableFilter<"GateCriterion"> | string | null createdAt?: DateTimeFilter<"GateCriterion"> | Date | string updatedAt?: DateTimeFilter<"GateCriterion"> | Date | string gate?: XOR }, "id"> export type GateCriterionOrderByWithAggregationInput = { id?: SortOrder gateId?: SortOrder name?: SortOrder actualValue?: SortOrder expectedRule?: SortOrder status?: SortOrder blocking?: SortOrder evidenceTitle?: SortOrderInput | SortOrder evidenceUri?: SortOrderInput | SortOrder reviewerStatus?: SortOrder reviewerNote?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: GateCriterionCountOrderByAggregateInput _max?: GateCriterionMaxOrderByAggregateInput _min?: GateCriterionMinOrderByAggregateInput } export type GateCriterionScalarWhereWithAggregatesInput = { AND?: GateCriterionScalarWhereWithAggregatesInput | GateCriterionScalarWhereWithAggregatesInput[] OR?: GateCriterionScalarWhereWithAggregatesInput[] NOT?: GateCriterionScalarWhereWithAggregatesInput | GateCriterionScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"GateCriterion"> | string gateId?: StringWithAggregatesFilter<"GateCriterion"> | string name?: StringWithAggregatesFilter<"GateCriterion"> | string actualValue?: StringWithAggregatesFilter<"GateCriterion"> | string expectedRule?: StringWithAggregatesFilter<"GateCriterion"> | string status?: StringWithAggregatesFilter<"GateCriterion"> | string blocking?: BoolWithAggregatesFilter<"GateCriterion"> | boolean evidenceTitle?: StringNullableWithAggregatesFilter<"GateCriterion"> | string | null evidenceUri?: StringNullableWithAggregatesFilter<"GateCriterion"> | string | null reviewerStatus?: StringWithAggregatesFilter<"GateCriterion"> | string reviewerNote?: StringNullableWithAggregatesFilter<"GateCriterion"> | string | null createdAt?: DateTimeWithAggregatesFilter<"GateCriterion"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"GateCriterion"> | Date | string } export type GateDecisionWhereInput = { AND?: GateDecisionWhereInput | GateDecisionWhereInput[] OR?: GateDecisionWhereInput[] NOT?: GateDecisionWhereInput | GateDecisionWhereInput[] id?: StringFilter<"GateDecision"> | string gateId?: StringFilter<"GateDecision"> | string decision?: EnumGateDecisionValueFilter<"GateDecision"> | $Enums.GateDecisionValue reviewerName?: StringFilter<"GateDecision"> | string reason?: StringNullableFilter<"GateDecision"> | string | null createdByUserId?: StringNullableFilter<"GateDecision"> | string | null decidedAt?: DateTimeFilter<"GateDecision"> | Date | string createdAt?: DateTimeFilter<"GateDecision"> | Date | string gate?: XOR } export type GateDecisionOrderByWithRelationInput = { id?: SortOrder gateId?: SortOrder decision?: SortOrder reviewerName?: SortOrder reason?: SortOrderInput | SortOrder createdByUserId?: SortOrderInput | SortOrder decidedAt?: SortOrder createdAt?: SortOrder gate?: GateEvaluationOrderByWithRelationInput } export type GateDecisionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: GateDecisionWhereInput | GateDecisionWhereInput[] OR?: GateDecisionWhereInput[] NOT?: GateDecisionWhereInput | GateDecisionWhereInput[] gateId?: StringFilter<"GateDecision"> | string decision?: EnumGateDecisionValueFilter<"GateDecision"> | $Enums.GateDecisionValue reviewerName?: StringFilter<"GateDecision"> | string reason?: StringNullableFilter<"GateDecision"> | string | null createdByUserId?: StringNullableFilter<"GateDecision"> | string | null decidedAt?: DateTimeFilter<"GateDecision"> | Date | string createdAt?: DateTimeFilter<"GateDecision"> | Date | string gate?: XOR }, "id"> export type GateDecisionOrderByWithAggregationInput = { id?: SortOrder gateId?: SortOrder decision?: SortOrder reviewerName?: SortOrder reason?: SortOrderInput | SortOrder createdByUserId?: SortOrderInput | SortOrder decidedAt?: SortOrder createdAt?: SortOrder _count?: GateDecisionCountOrderByAggregateInput _max?: GateDecisionMaxOrderByAggregateInput _min?: GateDecisionMinOrderByAggregateInput } export type GateDecisionScalarWhereWithAggregatesInput = { AND?: GateDecisionScalarWhereWithAggregatesInput | GateDecisionScalarWhereWithAggregatesInput[] OR?: GateDecisionScalarWhereWithAggregatesInput[] NOT?: GateDecisionScalarWhereWithAggregatesInput | GateDecisionScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"GateDecision"> | string gateId?: StringWithAggregatesFilter<"GateDecision"> | string decision?: EnumGateDecisionValueWithAggregatesFilter<"GateDecision"> | $Enums.GateDecisionValue reviewerName?: StringWithAggregatesFilter<"GateDecision"> | string reason?: StringNullableWithAggregatesFilter<"GateDecision"> | string | null createdByUserId?: StringNullableWithAggregatesFilter<"GateDecision"> | string | null decidedAt?: DateTimeWithAggregatesFilter<"GateDecision"> | Date | string createdAt?: DateTimeWithAggregatesFilter<"GateDecision"> | Date | string } export type IntegrationWhereInput = { AND?: IntegrationWhereInput | IntegrationWhereInput[] OR?: IntegrationWhereInput[] NOT?: IntegrationWhereInput | IntegrationWhereInput[] id?: StringFilter<"Integration"> | string workspaceId?: StringFilter<"Integration"> | string provider?: EnumIntegrationProviderFilter<"Integration"> | $Enums.IntegrationProvider workspaceName?: StringFilter<"Integration"> | string externalProjectKey?: StringNullableFilter<"Integration"> | string | null baseUrl?: StringNullableFilter<"Integration"> | string | null authMode?: StringFilter<"Integration"> | string connectionStatus?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus syncDirection?: StringFilter<"Integration"> | string liveEnabled?: BoolFilter<"Integration"> | boolean liveConfig?: JsonFilter<"Integration"> lastSyncAt?: DateTimeNullableFilter<"Integration"> | Date | string | null createdAt?: DateTimeFilter<"Integration"> | Date | string updatedAt?: DateTimeFilter<"Integration"> | Date | string workspace?: XOR mappings?: ExternalWorkItemMappingListRelationFilter syncRuns?: IntegrationSyncRunListRelationFilter } export type IntegrationOrderByWithRelationInput = { id?: SortOrder workspaceId?: SortOrder provider?: SortOrder workspaceName?: SortOrder externalProjectKey?: SortOrderInput | SortOrder baseUrl?: SortOrderInput | SortOrder authMode?: SortOrder connectionStatus?: SortOrder syncDirection?: SortOrder liveEnabled?: SortOrder liveConfig?: SortOrder lastSyncAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder workspace?: WorkspaceOrderByWithRelationInput mappings?: ExternalWorkItemMappingOrderByRelationAggregateInput syncRuns?: IntegrationSyncRunOrderByRelationAggregateInput } export type IntegrationWhereUniqueInput = Prisma.AtLeast<{ id?: string workspaceId_provider?: IntegrationWorkspaceIdProviderCompoundUniqueInput AND?: IntegrationWhereInput | IntegrationWhereInput[] OR?: IntegrationWhereInput[] NOT?: IntegrationWhereInput | IntegrationWhereInput[] workspaceId?: StringFilter<"Integration"> | string provider?: EnumIntegrationProviderFilter<"Integration"> | $Enums.IntegrationProvider workspaceName?: StringFilter<"Integration"> | string externalProjectKey?: StringNullableFilter<"Integration"> | string | null baseUrl?: StringNullableFilter<"Integration"> | string | null authMode?: StringFilter<"Integration"> | string connectionStatus?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus syncDirection?: StringFilter<"Integration"> | string liveEnabled?: BoolFilter<"Integration"> | boolean liveConfig?: JsonFilter<"Integration"> lastSyncAt?: DateTimeNullableFilter<"Integration"> | Date | string | null createdAt?: DateTimeFilter<"Integration"> | Date | string updatedAt?: DateTimeFilter<"Integration"> | Date | string workspace?: XOR mappings?: ExternalWorkItemMappingListRelationFilter syncRuns?: IntegrationSyncRunListRelationFilter }, "id" | "workspaceId_provider"> export type IntegrationOrderByWithAggregationInput = { id?: SortOrder workspaceId?: SortOrder provider?: SortOrder workspaceName?: SortOrder externalProjectKey?: SortOrderInput | SortOrder baseUrl?: SortOrderInput | SortOrder authMode?: SortOrder connectionStatus?: SortOrder syncDirection?: SortOrder liveEnabled?: SortOrder liveConfig?: SortOrder lastSyncAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: IntegrationCountOrderByAggregateInput _max?: IntegrationMaxOrderByAggregateInput _min?: IntegrationMinOrderByAggregateInput } export type IntegrationScalarWhereWithAggregatesInput = { AND?: IntegrationScalarWhereWithAggregatesInput | IntegrationScalarWhereWithAggregatesInput[] OR?: IntegrationScalarWhereWithAggregatesInput[] NOT?: IntegrationScalarWhereWithAggregatesInput | IntegrationScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Integration"> | string workspaceId?: StringWithAggregatesFilter<"Integration"> | string provider?: EnumIntegrationProviderWithAggregatesFilter<"Integration"> | $Enums.IntegrationProvider workspaceName?: StringWithAggregatesFilter<"Integration"> | string externalProjectKey?: StringNullableWithAggregatesFilter<"Integration"> | string | null baseUrl?: StringNullableWithAggregatesFilter<"Integration"> | string | null authMode?: StringWithAggregatesFilter<"Integration"> | string connectionStatus?: EnumIntegrationStatusWithAggregatesFilter<"Integration"> | $Enums.IntegrationStatus syncDirection?: StringWithAggregatesFilter<"Integration"> | string liveEnabled?: BoolWithAggregatesFilter<"Integration"> | boolean liveConfig?: JsonWithAggregatesFilter<"Integration"> lastSyncAt?: DateTimeNullableWithAggregatesFilter<"Integration"> | Date | string | null createdAt?: DateTimeWithAggregatesFilter<"Integration"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Integration"> | Date | string } export type ExternalWorkItemMappingWhereInput = { AND?: ExternalWorkItemMappingWhereInput | ExternalWorkItemMappingWhereInput[] OR?: ExternalWorkItemMappingWhereInput[] NOT?: ExternalWorkItemMappingWhereInput | ExternalWorkItemMappingWhereInput[] id?: StringFilter<"ExternalWorkItemMapping"> | string integrationId?: StringFilter<"ExternalWorkItemMapping"> | string projectId?: StringFilter<"ExternalWorkItemMapping"> | string localEntityType?: StringFilter<"ExternalWorkItemMapping"> | string localEntityId?: StringFilter<"ExternalWorkItemMapping"> | string localTitle?: StringFilter<"ExternalWorkItemMapping"> | string externalItemType?: StringFilter<"ExternalWorkItemMapping"> | string externalItemId?: StringFilter<"ExternalWorkItemMapping"> | string externalItemKey?: StringFilter<"ExternalWorkItemMapping"> | string externalUrl?: StringNullableFilter<"ExternalWorkItemMapping"> | string | null externalStatus?: StringFilter<"ExternalWorkItemMapping"> | string syncStatus?: StringFilter<"ExternalWorkItemMapping"> | string fieldMapping?: JsonFilter<"ExternalWorkItemMapping"> lastSyncedAt?: DateTimeNullableFilter<"ExternalWorkItemMapping"> | Date | string | null createdAt?: DateTimeFilter<"ExternalWorkItemMapping"> | Date | string updatedAt?: DateTimeFilter<"ExternalWorkItemMapping"> | Date | string integration?: XOR } export type ExternalWorkItemMappingOrderByWithRelationInput = { id?: SortOrder integrationId?: SortOrder projectId?: SortOrder localEntityType?: SortOrder localEntityId?: SortOrder localTitle?: SortOrder externalItemType?: SortOrder externalItemId?: SortOrder externalItemKey?: SortOrder externalUrl?: SortOrderInput | SortOrder externalStatus?: SortOrder syncStatus?: SortOrder fieldMapping?: SortOrder lastSyncedAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder integration?: IntegrationOrderByWithRelationInput } export type ExternalWorkItemMappingWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: ExternalWorkItemMappingWhereInput | ExternalWorkItemMappingWhereInput[] OR?: ExternalWorkItemMappingWhereInput[] NOT?: ExternalWorkItemMappingWhereInput | ExternalWorkItemMappingWhereInput[] integrationId?: StringFilter<"ExternalWorkItemMapping"> | string projectId?: StringFilter<"ExternalWorkItemMapping"> | string localEntityType?: StringFilter<"ExternalWorkItemMapping"> | string localEntityId?: StringFilter<"ExternalWorkItemMapping"> | string localTitle?: StringFilter<"ExternalWorkItemMapping"> | string externalItemType?: StringFilter<"ExternalWorkItemMapping"> | string externalItemId?: StringFilter<"ExternalWorkItemMapping"> | string externalItemKey?: StringFilter<"ExternalWorkItemMapping"> | string externalUrl?: StringNullableFilter<"ExternalWorkItemMapping"> | string | null externalStatus?: StringFilter<"ExternalWorkItemMapping"> | string syncStatus?: StringFilter<"ExternalWorkItemMapping"> | string fieldMapping?: JsonFilter<"ExternalWorkItemMapping"> lastSyncedAt?: DateTimeNullableFilter<"ExternalWorkItemMapping"> | Date | string | null createdAt?: DateTimeFilter<"ExternalWorkItemMapping"> | Date | string updatedAt?: DateTimeFilter<"ExternalWorkItemMapping"> | Date | string integration?: XOR }, "id"> export type ExternalWorkItemMappingOrderByWithAggregationInput = { id?: SortOrder integrationId?: SortOrder projectId?: SortOrder localEntityType?: SortOrder localEntityId?: SortOrder localTitle?: SortOrder externalItemType?: SortOrder externalItemId?: SortOrder externalItemKey?: SortOrder externalUrl?: SortOrderInput | SortOrder externalStatus?: SortOrder syncStatus?: SortOrder fieldMapping?: SortOrder lastSyncedAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: ExternalWorkItemMappingCountOrderByAggregateInput _max?: ExternalWorkItemMappingMaxOrderByAggregateInput _min?: ExternalWorkItemMappingMinOrderByAggregateInput } export type ExternalWorkItemMappingScalarWhereWithAggregatesInput = { AND?: ExternalWorkItemMappingScalarWhereWithAggregatesInput | ExternalWorkItemMappingScalarWhereWithAggregatesInput[] OR?: ExternalWorkItemMappingScalarWhereWithAggregatesInput[] NOT?: ExternalWorkItemMappingScalarWhereWithAggregatesInput | ExternalWorkItemMappingScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"ExternalWorkItemMapping"> | string integrationId?: StringWithAggregatesFilter<"ExternalWorkItemMapping"> | string projectId?: StringWithAggregatesFilter<"ExternalWorkItemMapping"> | string localEntityType?: StringWithAggregatesFilter<"ExternalWorkItemMapping"> | string localEntityId?: StringWithAggregatesFilter<"ExternalWorkItemMapping"> | string localTitle?: StringWithAggregatesFilter<"ExternalWorkItemMapping"> | string externalItemType?: StringWithAggregatesFilter<"ExternalWorkItemMapping"> | string externalItemId?: StringWithAggregatesFilter<"ExternalWorkItemMapping"> | string externalItemKey?: StringWithAggregatesFilter<"ExternalWorkItemMapping"> | string externalUrl?: StringNullableWithAggregatesFilter<"ExternalWorkItemMapping"> | string | null externalStatus?: StringWithAggregatesFilter<"ExternalWorkItemMapping"> | string syncStatus?: StringWithAggregatesFilter<"ExternalWorkItemMapping"> | string fieldMapping?: JsonWithAggregatesFilter<"ExternalWorkItemMapping"> lastSyncedAt?: DateTimeNullableWithAggregatesFilter<"ExternalWorkItemMapping"> | Date | string | null createdAt?: DateTimeWithAggregatesFilter<"ExternalWorkItemMapping"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"ExternalWorkItemMapping"> | Date | string } export type IntegrationSyncRunWhereInput = { AND?: IntegrationSyncRunWhereInput | IntegrationSyncRunWhereInput[] OR?: IntegrationSyncRunWhereInput[] NOT?: IntegrationSyncRunWhereInput | IntegrationSyncRunWhereInput[] id?: StringFilter<"IntegrationSyncRun"> | string integrationId?: StringFilter<"IntegrationSyncRun"> | string projectId?: StringFilter<"IntegrationSyncRun"> | string provider?: EnumIntegrationProviderFilter<"IntegrationSyncRun"> | $Enums.IntegrationProvider status?: StringFilter<"IntegrationSyncRun"> | string startedAt?: DateTimeFilter<"IntegrationSyncRun"> | Date | string finishedAt?: DateTimeNullableFilter<"IntegrationSyncRun"> | Date | string | null createdCount?: IntFilter<"IntegrationSyncRun"> | number updatedCount?: IntFilter<"IntegrationSyncRun"> | number failedCount?: IntFilter<"IntegrationSyncRun"> | number summary?: StringNullableFilter<"IntegrationSyncRun"> | string | null failureLog?: JsonFilter<"IntegrationSyncRun"> createdAt?: DateTimeFilter<"IntegrationSyncRun"> | Date | string integration?: XOR } export type IntegrationSyncRunOrderByWithRelationInput = { id?: SortOrder integrationId?: SortOrder projectId?: SortOrder provider?: SortOrder status?: SortOrder startedAt?: SortOrder finishedAt?: SortOrderInput | SortOrder createdCount?: SortOrder updatedCount?: SortOrder failedCount?: SortOrder summary?: SortOrderInput | SortOrder failureLog?: SortOrder createdAt?: SortOrder integration?: IntegrationOrderByWithRelationInput } export type IntegrationSyncRunWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: IntegrationSyncRunWhereInput | IntegrationSyncRunWhereInput[] OR?: IntegrationSyncRunWhereInput[] NOT?: IntegrationSyncRunWhereInput | IntegrationSyncRunWhereInput[] integrationId?: StringFilter<"IntegrationSyncRun"> | string projectId?: StringFilter<"IntegrationSyncRun"> | string provider?: EnumIntegrationProviderFilter<"IntegrationSyncRun"> | $Enums.IntegrationProvider status?: StringFilter<"IntegrationSyncRun"> | string startedAt?: DateTimeFilter<"IntegrationSyncRun"> | Date | string finishedAt?: DateTimeNullableFilter<"IntegrationSyncRun"> | Date | string | null createdCount?: IntFilter<"IntegrationSyncRun"> | number updatedCount?: IntFilter<"IntegrationSyncRun"> | number failedCount?: IntFilter<"IntegrationSyncRun"> | number summary?: StringNullableFilter<"IntegrationSyncRun"> | string | null failureLog?: JsonFilter<"IntegrationSyncRun"> createdAt?: DateTimeFilter<"IntegrationSyncRun"> | Date | string integration?: XOR }, "id"> export type IntegrationSyncRunOrderByWithAggregationInput = { id?: SortOrder integrationId?: SortOrder projectId?: SortOrder provider?: SortOrder status?: SortOrder startedAt?: SortOrder finishedAt?: SortOrderInput | SortOrder createdCount?: SortOrder updatedCount?: SortOrder failedCount?: SortOrder summary?: SortOrderInput | SortOrder failureLog?: SortOrder createdAt?: SortOrder _count?: IntegrationSyncRunCountOrderByAggregateInput _avg?: IntegrationSyncRunAvgOrderByAggregateInput _max?: IntegrationSyncRunMaxOrderByAggregateInput _min?: IntegrationSyncRunMinOrderByAggregateInput _sum?: IntegrationSyncRunSumOrderByAggregateInput } export type IntegrationSyncRunScalarWhereWithAggregatesInput = { AND?: IntegrationSyncRunScalarWhereWithAggregatesInput | IntegrationSyncRunScalarWhereWithAggregatesInput[] OR?: IntegrationSyncRunScalarWhereWithAggregatesInput[] NOT?: IntegrationSyncRunScalarWhereWithAggregatesInput | IntegrationSyncRunScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"IntegrationSyncRun"> | string integrationId?: StringWithAggregatesFilter<"IntegrationSyncRun"> | string projectId?: StringWithAggregatesFilter<"IntegrationSyncRun"> | string provider?: EnumIntegrationProviderWithAggregatesFilter<"IntegrationSyncRun"> | $Enums.IntegrationProvider status?: StringWithAggregatesFilter<"IntegrationSyncRun"> | string startedAt?: DateTimeWithAggregatesFilter<"IntegrationSyncRun"> | Date | string finishedAt?: DateTimeNullableWithAggregatesFilter<"IntegrationSyncRun"> | Date | string | null createdCount?: IntWithAggregatesFilter<"IntegrationSyncRun"> | number updatedCount?: IntWithAggregatesFilter<"IntegrationSyncRun"> | number failedCount?: IntWithAggregatesFilter<"IntegrationSyncRun"> | number summary?: StringNullableWithAggregatesFilter<"IntegrationSyncRun"> | string | null failureLog?: JsonWithAggregatesFilter<"IntegrationSyncRun"> createdAt?: DateTimeWithAggregatesFilter<"IntegrationSyncRun"> | Date | string } export type OAuthTokenWhereInput = { AND?: OAuthTokenWhereInput | OAuthTokenWhereInput[] OR?: OAuthTokenWhereInput[] NOT?: OAuthTokenWhereInput | OAuthTokenWhereInput[] id?: StringFilter<"OAuthToken"> | string organizationId?: StringFilter<"OAuthToken"> | string provider?: EnumIntegrationProviderFilter<"OAuthToken"> | $Enums.IntegrationProvider integrationId?: StringNullableFilter<"OAuthToken"> | string | null encryptedToken?: JsonFilter<"OAuthToken"> redactedToken?: StringFilter<"OAuthToken"> | string expiresAt?: DateTimeNullableFilter<"OAuthToken"> | Date | string | null createdAt?: DateTimeFilter<"OAuthToken"> | Date | string updatedAt?: DateTimeFilter<"OAuthToken"> | Date | string organization?: XOR } export type OAuthTokenOrderByWithRelationInput = { id?: SortOrder organizationId?: SortOrder provider?: SortOrder integrationId?: SortOrderInput | SortOrder encryptedToken?: SortOrder redactedToken?: SortOrder expiresAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder organization?: OrganizationOrderByWithRelationInput } export type OAuthTokenWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: OAuthTokenWhereInput | OAuthTokenWhereInput[] OR?: OAuthTokenWhereInput[] NOT?: OAuthTokenWhereInput | OAuthTokenWhereInput[] organizationId?: StringFilter<"OAuthToken"> | string provider?: EnumIntegrationProviderFilter<"OAuthToken"> | $Enums.IntegrationProvider integrationId?: StringNullableFilter<"OAuthToken"> | string | null encryptedToken?: JsonFilter<"OAuthToken"> redactedToken?: StringFilter<"OAuthToken"> | string expiresAt?: DateTimeNullableFilter<"OAuthToken"> | Date | string | null createdAt?: DateTimeFilter<"OAuthToken"> | Date | string updatedAt?: DateTimeFilter<"OAuthToken"> | Date | string organization?: XOR }, "id"> export type OAuthTokenOrderByWithAggregationInput = { id?: SortOrder organizationId?: SortOrder provider?: SortOrder integrationId?: SortOrderInput | SortOrder encryptedToken?: SortOrder redactedToken?: SortOrder expiresAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: OAuthTokenCountOrderByAggregateInput _max?: OAuthTokenMaxOrderByAggregateInput _min?: OAuthTokenMinOrderByAggregateInput } export type OAuthTokenScalarWhereWithAggregatesInput = { AND?: OAuthTokenScalarWhereWithAggregatesInput | OAuthTokenScalarWhereWithAggregatesInput[] OR?: OAuthTokenScalarWhereWithAggregatesInput[] NOT?: OAuthTokenScalarWhereWithAggregatesInput | OAuthTokenScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"OAuthToken"> | string organizationId?: StringWithAggregatesFilter<"OAuthToken"> | string provider?: EnumIntegrationProviderWithAggregatesFilter<"OAuthToken"> | $Enums.IntegrationProvider integrationId?: StringNullableWithAggregatesFilter<"OAuthToken"> | string | null encryptedToken?: JsonWithAggregatesFilter<"OAuthToken"> redactedToken?: StringWithAggregatesFilter<"OAuthToken"> | string expiresAt?: DateTimeNullableWithAggregatesFilter<"OAuthToken"> | Date | string | null createdAt?: DateTimeWithAggregatesFilter<"OAuthToken"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"OAuthToken"> | Date | string } export type ReportExportWhereInput = { AND?: ReportExportWhereInput | ReportExportWhereInput[] OR?: ReportExportWhereInput[] NOT?: ReportExportWhereInput | ReportExportWhereInput[] id?: StringFilter<"ReportExport"> | string workspaceId?: StringFilter<"ReportExport"> | string projectId?: StringFilter<"ReportExport"> | string reportType?: StringFilter<"ReportExport"> | string format?: StringFilter<"ReportExport"> | string status?: StringFilter<"ReportExport"> | string metadata?: JsonFilter<"ReportExport"> createdById?: StringNullableFilter<"ReportExport"> | string | null createdAt?: DateTimeFilter<"ReportExport"> | Date | string workspace?: XOR project?: XOR } export type ReportExportOrderByWithRelationInput = { id?: SortOrder workspaceId?: SortOrder projectId?: SortOrder reportType?: SortOrder format?: SortOrder status?: SortOrder metadata?: SortOrder createdById?: SortOrderInput | SortOrder createdAt?: SortOrder workspace?: WorkspaceOrderByWithRelationInput project?: ProjectOrderByWithRelationInput } export type ReportExportWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: ReportExportWhereInput | ReportExportWhereInput[] OR?: ReportExportWhereInput[] NOT?: ReportExportWhereInput | ReportExportWhereInput[] workspaceId?: StringFilter<"ReportExport"> | string projectId?: StringFilter<"ReportExport"> | string reportType?: StringFilter<"ReportExport"> | string format?: StringFilter<"ReportExport"> | string status?: StringFilter<"ReportExport"> | string metadata?: JsonFilter<"ReportExport"> createdById?: StringNullableFilter<"ReportExport"> | string | null createdAt?: DateTimeFilter<"ReportExport"> | Date | string workspace?: XOR project?: XOR }, "id"> export type ReportExportOrderByWithAggregationInput = { id?: SortOrder workspaceId?: SortOrder projectId?: SortOrder reportType?: SortOrder format?: SortOrder status?: SortOrder metadata?: SortOrder createdById?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: ReportExportCountOrderByAggregateInput _max?: ReportExportMaxOrderByAggregateInput _min?: ReportExportMinOrderByAggregateInput } export type ReportExportScalarWhereWithAggregatesInput = { AND?: ReportExportScalarWhereWithAggregatesInput | ReportExportScalarWhereWithAggregatesInput[] OR?: ReportExportScalarWhereWithAggregatesInput[] NOT?: ReportExportScalarWhereWithAggregatesInput | ReportExportScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"ReportExport"> | string workspaceId?: StringWithAggregatesFilter<"ReportExport"> | string projectId?: StringWithAggregatesFilter<"ReportExport"> | string reportType?: StringWithAggregatesFilter<"ReportExport"> | string format?: StringWithAggregatesFilter<"ReportExport"> | string status?: StringWithAggregatesFilter<"ReportExport"> | string metadata?: JsonWithAggregatesFilter<"ReportExport"> createdById?: StringNullableWithAggregatesFilter<"ReportExport"> | string | null createdAt?: DateTimeWithAggregatesFilter<"ReportExport"> | Date | string } export type AuditEventWhereInput = { AND?: AuditEventWhereInput | AuditEventWhereInput[] OR?: AuditEventWhereInput[] NOT?: AuditEventWhereInput | AuditEventWhereInput[] id?: StringFilter<"AuditEvent"> | string organizationId?: StringFilter<"AuditEvent"> | string workspaceId?: StringNullableFilter<"AuditEvent"> | string | null projectId?: StringNullableFilter<"AuditEvent"> | string | null actorUserId?: StringNullableFilter<"AuditEvent"> | string | null entityType?: StringFilter<"AuditEvent"> | string entityId?: StringFilter<"AuditEvent"> | string action?: StringFilter<"AuditEvent"> | string beforeJson?: JsonNullableFilter<"AuditEvent"> afterJson?: JsonNullableFilter<"AuditEvent"> ipAddress?: StringNullableFilter<"AuditEvent"> | string | null userAgent?: StringNullableFilter<"AuditEvent"> | string | null createdAt?: DateTimeFilter<"AuditEvent"> | Date | string organization?: XOR workspace?: XOR | null project?: XOR | null actor?: XOR | null } export type AuditEventOrderByWithRelationInput = { id?: SortOrder organizationId?: SortOrder workspaceId?: SortOrderInput | SortOrder projectId?: SortOrderInput | SortOrder actorUserId?: SortOrderInput | SortOrder entityType?: SortOrder entityId?: SortOrder action?: SortOrder beforeJson?: SortOrderInput | SortOrder afterJson?: SortOrderInput | SortOrder ipAddress?: SortOrderInput | SortOrder userAgent?: SortOrderInput | SortOrder createdAt?: SortOrder organization?: OrganizationOrderByWithRelationInput workspace?: WorkspaceOrderByWithRelationInput project?: ProjectOrderByWithRelationInput actor?: UserOrderByWithRelationInput } export type AuditEventWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: AuditEventWhereInput | AuditEventWhereInput[] OR?: AuditEventWhereInput[] NOT?: AuditEventWhereInput | AuditEventWhereInput[] organizationId?: StringFilter<"AuditEvent"> | string workspaceId?: StringNullableFilter<"AuditEvent"> | string | null projectId?: StringNullableFilter<"AuditEvent"> | string | null actorUserId?: StringNullableFilter<"AuditEvent"> | string | null entityType?: StringFilter<"AuditEvent"> | string entityId?: StringFilter<"AuditEvent"> | string action?: StringFilter<"AuditEvent"> | string beforeJson?: JsonNullableFilter<"AuditEvent"> afterJson?: JsonNullableFilter<"AuditEvent"> ipAddress?: StringNullableFilter<"AuditEvent"> | string | null userAgent?: StringNullableFilter<"AuditEvent"> | string | null createdAt?: DateTimeFilter<"AuditEvent"> | Date | string organization?: XOR workspace?: XOR | null project?: XOR | null actor?: XOR | null }, "id"> export type AuditEventOrderByWithAggregationInput = { id?: SortOrder organizationId?: SortOrder workspaceId?: SortOrderInput | SortOrder projectId?: SortOrderInput | SortOrder actorUserId?: SortOrderInput | SortOrder entityType?: SortOrder entityId?: SortOrder action?: SortOrder beforeJson?: SortOrderInput | SortOrder afterJson?: SortOrderInput | SortOrder ipAddress?: SortOrderInput | SortOrder userAgent?: 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 organizationId?: StringWithAggregatesFilter<"AuditEvent"> | string workspaceId?: StringNullableWithAggregatesFilter<"AuditEvent"> | string | null projectId?: StringNullableWithAggregatesFilter<"AuditEvent"> | string | null actorUserId?: StringNullableWithAggregatesFilter<"AuditEvent"> | string | null entityType?: StringWithAggregatesFilter<"AuditEvent"> | string entityId?: StringWithAggregatesFilter<"AuditEvent"> | string action?: StringWithAggregatesFilter<"AuditEvent"> | string beforeJson?: JsonNullableWithAggregatesFilter<"AuditEvent"> afterJson?: JsonNullableWithAggregatesFilter<"AuditEvent"> ipAddress?: StringNullableWithAggregatesFilter<"AuditEvent"> | string | null userAgent?: StringNullableWithAggregatesFilter<"AuditEvent"> | string | null createdAt?: DateTimeWithAggregatesFilter<"AuditEvent"> | Date | string } export type UsageEventWhereInput = { AND?: UsageEventWhereInput | UsageEventWhereInput[] OR?: UsageEventWhereInput[] NOT?: UsageEventWhereInput | UsageEventWhereInput[] id?: StringFilter<"UsageEvent"> | string organizationId?: StringFilter<"UsageEvent"> | string metric?: StringFilter<"UsageEvent"> | string quantity?: IntFilter<"UsageEvent"> | number metadata?: JsonFilter<"UsageEvent"> createdAt?: DateTimeFilter<"UsageEvent"> | Date | string organization?: XOR } export type UsageEventOrderByWithRelationInput = { id?: SortOrder organizationId?: SortOrder metric?: SortOrder quantity?: SortOrder metadata?: SortOrder createdAt?: SortOrder organization?: OrganizationOrderByWithRelationInput } export type UsageEventWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: UsageEventWhereInput | UsageEventWhereInput[] OR?: UsageEventWhereInput[] NOT?: UsageEventWhereInput | UsageEventWhereInput[] organizationId?: StringFilter<"UsageEvent"> | string metric?: StringFilter<"UsageEvent"> | string quantity?: IntFilter<"UsageEvent"> | number metadata?: JsonFilter<"UsageEvent"> createdAt?: DateTimeFilter<"UsageEvent"> | Date | string organization?: XOR }, "id"> export type UsageEventOrderByWithAggregationInput = { id?: SortOrder organizationId?: SortOrder metric?: SortOrder quantity?: SortOrder metadata?: SortOrder createdAt?: SortOrder _count?: UsageEventCountOrderByAggregateInput _avg?: UsageEventAvgOrderByAggregateInput _max?: UsageEventMaxOrderByAggregateInput _min?: UsageEventMinOrderByAggregateInput _sum?: UsageEventSumOrderByAggregateInput } export type UsageEventScalarWhereWithAggregatesInput = { AND?: UsageEventScalarWhereWithAggregatesInput | UsageEventScalarWhereWithAggregatesInput[] OR?: UsageEventScalarWhereWithAggregatesInput[] NOT?: UsageEventScalarWhereWithAggregatesInput | UsageEventScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"UsageEvent"> | string organizationId?: StringWithAggregatesFilter<"UsageEvent"> | string metric?: StringWithAggregatesFilter<"UsageEvent"> | string quantity?: IntWithAggregatesFilter<"UsageEvent"> | number metadata?: JsonWithAggregatesFilter<"UsageEvent"> createdAt?: DateTimeWithAggregatesFilter<"UsageEvent"> | Date | string } export type OrganizationCreateInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceCreateNestedManyWithoutOrganizationInput memberships?: MembershipCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventCreateNestedManyWithoutOrganizationInput invitations?: InvitationCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenCreateNestedManyWithoutOrganizationInput } export type OrganizationUncheckedCreateInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceUncheckedCreateNestedManyWithoutOrganizationInput memberships?: MembershipUncheckedCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionUncheckedCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventUncheckedCreateNestedManyWithoutOrganizationInput invitations?: InvitationUncheckedCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenUncheckedCreateNestedManyWithoutOrganizationInput } export type OrganizationUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUpdateManyWithoutOrganizationNestedInput memberships?: MembershipUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUpdateManyWithoutOrganizationNestedInput } export type OrganizationUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUncheckedUpdateManyWithoutOrganizationNestedInput memberships?: MembershipUncheckedUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUncheckedUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUncheckedUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUncheckedUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUncheckedUpdateManyWithoutOrganizationNestedInput } export type OrganizationCreateManyInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string } export type OrganizationUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type OrganizationUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type WorkspaceCreateInput = { id?: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string organization: OrganizationCreateNestedOneWithoutWorkspacesInput projects?: ProjectCreateNestedManyWithoutWorkspaceInput integrations?: IntegrationCreateNestedManyWithoutWorkspaceInput reports?: ReportExportCreateNestedManyWithoutWorkspaceInput auditEvents?: AuditEventCreateNestedManyWithoutWorkspaceInput } export type WorkspaceUncheckedCreateInput = { id?: string organizationId: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string projects?: ProjectUncheckedCreateNestedManyWithoutWorkspaceInput integrations?: IntegrationUncheckedCreateNestedManyWithoutWorkspaceInput reports?: ReportExportUncheckedCreateNestedManyWithoutWorkspaceInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutWorkspaceInput } export type WorkspaceUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutWorkspacesNestedInput projects?: ProjectUpdateManyWithoutWorkspaceNestedInput integrations?: IntegrationUpdateManyWithoutWorkspaceNestedInput reports?: ReportExportUpdateManyWithoutWorkspaceNestedInput auditEvents?: AuditEventUpdateManyWithoutWorkspaceNestedInput } export type WorkspaceUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string projects?: ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput integrations?: IntegrationUncheckedUpdateManyWithoutWorkspaceNestedInput reports?: ReportExportUncheckedUpdateManyWithoutWorkspaceNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutWorkspaceNestedInput } export type WorkspaceCreateManyInput = { id?: string organizationId: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string } export type WorkspaceUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type WorkspaceUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserCreateInput = { id?: string email: string displayName: string passwordHash?: string | null emailVerifiedAt?: Date | string | null lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string memberships?: MembershipCreateNestedManyWithoutUserInput invitationsSent?: InvitationCreateNestedManyWithoutInvitedByInput auditEvents?: AuditEventCreateNestedManyWithoutActorInput sessions?: SessionCreateNestedManyWithoutUserInput } export type UserUncheckedCreateInput = { id?: string email: string displayName: string passwordHash?: string | null emailVerifiedAt?: Date | string | null lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string memberships?: MembershipUncheckedCreateNestedManyWithoutUserInput invitationsSent?: InvitationUncheckedCreateNestedManyWithoutInvitedByInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutActorInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput } export type UserUpdateInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string displayName?: StringFieldUpdateOperationsInput | string passwordHash?: NullableStringFieldUpdateOperationsInput | string | null emailVerifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string memberships?: MembershipUpdateManyWithoutUserNestedInput invitationsSent?: InvitationUpdateManyWithoutInvitedByNestedInput auditEvents?: AuditEventUpdateManyWithoutActorNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string displayName?: StringFieldUpdateOperationsInput | string passwordHash?: NullableStringFieldUpdateOperationsInput | string | null emailVerifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string memberships?: MembershipUncheckedUpdateManyWithoutUserNestedInput invitationsSent?: InvitationUncheckedUpdateManyWithoutInvitedByNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutActorNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateManyInput = { id?: string email: string displayName: string passwordHash?: string | null emailVerifiedAt?: Date | string | null lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type UserUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string displayName?: StringFieldUpdateOperationsInput | string passwordHash?: NullableStringFieldUpdateOperationsInput | string | null emailVerifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string displayName?: StringFieldUpdateOperationsInput | string passwordHash?: NullableStringFieldUpdateOperationsInput | string | null emailVerifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionCreateInput = { id?: string token: string expiresAt: Date | string createdAt?: Date | string user: UserCreateNestedOneWithoutSessionsInput } export type SessionUncheckedCreateInput = { id?: string userId: string token: string expiresAt: Date | string createdAt?: Date | string } export type SessionUpdateInput = { id?: StringFieldUpdateOperationsInput | string token?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutSessionsNestedInput } export type SessionUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string token?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionCreateManyInput = { id?: string userId: string token: string expiresAt: Date | string createdAt?: Date | string } export type SessionUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string token?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string token?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type RoleCreateInput = { id?: string code: string name: string permissions?: RoleCreatepermissionsInput | string[] system?: boolean createdAt?: Date | string updatedAt?: Date | string memberships?: MembershipCreateNestedManyWithoutRoleInput } export type RoleUncheckedCreateInput = { id?: string code: string name: string permissions?: RoleCreatepermissionsInput | string[] system?: boolean createdAt?: Date | string updatedAt?: Date | string memberships?: MembershipUncheckedCreateNestedManyWithoutRoleInput } export type RoleUpdateInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string permissions?: RoleUpdatepermissionsInput | string[] system?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string memberships?: MembershipUpdateManyWithoutRoleNestedInput } export type RoleUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string permissions?: RoleUpdatepermissionsInput | string[] system?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string memberships?: MembershipUncheckedUpdateManyWithoutRoleNestedInput } export type RoleCreateManyInput = { id?: string code: string name: string permissions?: RoleCreatepermissionsInput | string[] system?: boolean createdAt?: Date | string updatedAt?: Date | string } export type RoleUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string permissions?: RoleUpdatepermissionsInput | string[] system?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type RoleUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string permissions?: RoleUpdatepermissionsInput | string[] system?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MembershipCreateInput = { id?: string status?: $Enums.MembershipStatus workspaceScope?: MembershipCreateworkspaceScopeInput | string[] createdAt?: Date | string updatedAt?: Date | string organization: OrganizationCreateNestedOneWithoutMembershipsInput user: UserCreateNestedOneWithoutMembershipsInput role: RoleCreateNestedOneWithoutMembershipsInput } export type MembershipUncheckedCreateInput = { id?: string organizationId: string userId: string roleId: string status?: $Enums.MembershipStatus workspaceScope?: MembershipCreateworkspaceScopeInput | string[] createdAt?: Date | string updatedAt?: Date | string } export type MembershipUpdateInput = { id?: StringFieldUpdateOperationsInput | string status?: EnumMembershipStatusFieldUpdateOperationsInput | $Enums.MembershipStatus workspaceScope?: MembershipUpdateworkspaceScopeInput | string[] createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutMembershipsNestedInput user?: UserUpdateOneRequiredWithoutMembershipsNestedInput role?: RoleUpdateOneRequiredWithoutMembershipsNestedInput } export type MembershipUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string roleId?: StringFieldUpdateOperationsInput | string status?: EnumMembershipStatusFieldUpdateOperationsInput | $Enums.MembershipStatus workspaceScope?: MembershipUpdateworkspaceScopeInput | string[] createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MembershipCreateManyInput = { id?: string organizationId: string userId: string roleId: string status?: $Enums.MembershipStatus workspaceScope?: MembershipCreateworkspaceScopeInput | string[] createdAt?: Date | string updatedAt?: Date | string } export type MembershipUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string status?: EnumMembershipStatusFieldUpdateOperationsInput | $Enums.MembershipStatus workspaceScope?: MembershipUpdateworkspaceScopeInput | string[] createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MembershipUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string roleId?: StringFieldUpdateOperationsInput | string status?: EnumMembershipStatusFieldUpdateOperationsInput | $Enums.MembershipStatus workspaceScope?: MembershipUpdateworkspaceScopeInput | string[] createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InvitationCreateInput = { id?: string email: string roleCode: string tokenHash: string expiresAt: Date | string acceptedAt?: Date | string | null createdAt?: Date | string organization: OrganizationCreateNestedOneWithoutInvitationsInput invitedBy?: UserCreateNestedOneWithoutInvitationsSentInput } export type InvitationUncheckedCreateInput = { id?: string organizationId: string email: string roleCode: string tokenHash: string expiresAt: Date | string acceptedAt?: Date | string | null invitedById?: string | null createdAt?: Date | string } export type InvitationUpdateInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string roleCode?: StringFieldUpdateOperationsInput | string tokenHash?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string acceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutInvitationsNestedInput invitedBy?: UserUpdateOneWithoutInvitationsSentNestedInput } export type InvitationUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string roleCode?: StringFieldUpdateOperationsInput | string tokenHash?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string acceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null invitedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InvitationCreateManyInput = { id?: string organizationId: string email: string roleCode: string tokenHash: string expiresAt: Date | string acceptedAt?: Date | string | null invitedById?: string | null createdAt?: Date | string } export type InvitationUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string roleCode?: StringFieldUpdateOperationsInput | string tokenHash?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string acceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InvitationUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string roleCode?: StringFieldUpdateOperationsInput | string tokenHash?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string acceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null invitedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SubscriptionCreateInput = { id?: string source?: $Enums.SubscriptionSource status?: $Enums.SubscriptionStatus planCode?: string stripeSubscriptionId?: string | null currentPeriodEnd?: Date | string | null userLimit?: number projectLimit?: number reportLimitMonthly?: number integrationLimit?: number storageMbLimit?: number adminOverride?: boolean createdAt?: Date | string updatedAt?: Date | string organization: OrganizationCreateNestedOneWithoutSubscriptionsInput } export type SubscriptionUncheckedCreateInput = { id?: string organizationId: string source?: $Enums.SubscriptionSource status?: $Enums.SubscriptionStatus planCode?: string stripeSubscriptionId?: string | null currentPeriodEnd?: Date | string | null userLimit?: number projectLimit?: number reportLimitMonthly?: number integrationLimit?: number storageMbLimit?: number adminOverride?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SubscriptionUpdateInput = { id?: StringFieldUpdateOperationsInput | string source?: EnumSubscriptionSourceFieldUpdateOperationsInput | $Enums.SubscriptionSource status?: EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus planCode?: StringFieldUpdateOperationsInput | string stripeSubscriptionId?: NullableStringFieldUpdateOperationsInput | string | null currentPeriodEnd?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null userLimit?: IntFieldUpdateOperationsInput | number projectLimit?: IntFieldUpdateOperationsInput | number reportLimitMonthly?: IntFieldUpdateOperationsInput | number integrationLimit?: IntFieldUpdateOperationsInput | number storageMbLimit?: IntFieldUpdateOperationsInput | number adminOverride?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutSubscriptionsNestedInput } export type SubscriptionUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string source?: EnumSubscriptionSourceFieldUpdateOperationsInput | $Enums.SubscriptionSource status?: EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus planCode?: StringFieldUpdateOperationsInput | string stripeSubscriptionId?: NullableStringFieldUpdateOperationsInput | string | null currentPeriodEnd?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null userLimit?: IntFieldUpdateOperationsInput | number projectLimit?: IntFieldUpdateOperationsInput | number reportLimitMonthly?: IntFieldUpdateOperationsInput | number integrationLimit?: IntFieldUpdateOperationsInput | number storageMbLimit?: IntFieldUpdateOperationsInput | number adminOverride?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SubscriptionCreateManyInput = { id?: string organizationId: string source?: $Enums.SubscriptionSource status?: $Enums.SubscriptionStatus planCode?: string stripeSubscriptionId?: string | null currentPeriodEnd?: Date | string | null userLimit?: number projectLimit?: number reportLimitMonthly?: number integrationLimit?: number storageMbLimit?: number adminOverride?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SubscriptionUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string source?: EnumSubscriptionSourceFieldUpdateOperationsInput | $Enums.SubscriptionSource status?: EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus planCode?: StringFieldUpdateOperationsInput | string stripeSubscriptionId?: NullableStringFieldUpdateOperationsInput | string | null currentPeriodEnd?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null userLimit?: IntFieldUpdateOperationsInput | number projectLimit?: IntFieldUpdateOperationsInput | number reportLimitMonthly?: IntFieldUpdateOperationsInput | number integrationLimit?: IntFieldUpdateOperationsInput | number storageMbLimit?: IntFieldUpdateOperationsInput | number adminOverride?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SubscriptionUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string source?: EnumSubscriptionSourceFieldUpdateOperationsInput | $Enums.SubscriptionSource status?: EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus planCode?: StringFieldUpdateOperationsInput | string stripeSubscriptionId?: NullableStringFieldUpdateOperationsInput | string | null currentPeriodEnd?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null userLimit?: IntFieldUpdateOperationsInput | number projectLimit?: IntFieldUpdateOperationsInput | number reportLimitMonthly?: IntFieldUpdateOperationsInput | number integrationLimit?: IntFieldUpdateOperationsInput | number storageMbLimit?: IntFieldUpdateOperationsInput | number adminOverride?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ProjectCreateInput = { id?: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string workspace: WorkspaceCreateNestedOneWithoutProjectsInput lifecyclePhases?: LifecyclePhaseCreateNestedManyWithoutProjectInput risks?: RiskCreateNestedManyWithoutProjectInput indicators?: IndicatorCreateNestedManyWithoutProjectInput experiments?: ExperimentCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationCreateNestedManyWithoutProjectInput auditEvents?: AuditEventCreateNestedManyWithoutProjectInput reports?: ReportExportCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateInput = { id?: string workspaceId: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string lifecyclePhases?: LifecyclePhaseUncheckedCreateNestedManyWithoutProjectInput risks?: RiskUncheckedCreateNestedManyWithoutProjectInput indicators?: IndicatorUncheckedCreateNestedManyWithoutProjectInput experiments?: ExperimentUncheckedCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationUncheckedCreateNestedManyWithoutProjectInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutProjectInput reports?: ReportExportUncheckedCreateNestedManyWithoutProjectInput } export type ProjectUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneRequiredWithoutProjectsNestedInput lifecyclePhases?: LifecyclePhaseUpdateManyWithoutProjectNestedInput risks?: RiskUpdateManyWithoutProjectNestedInput indicators?: IndicatorUpdateManyWithoutProjectNestedInput experiments?: ExperimentUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUpdateManyWithoutProjectNestedInput reports?: ReportExportUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lifecyclePhases?: LifecyclePhaseUncheckedUpdateManyWithoutProjectNestedInput risks?: RiskUncheckedUpdateManyWithoutProjectNestedInput indicators?: IndicatorUncheckedUpdateManyWithoutProjectNestedInput experiments?: ExperimentUncheckedUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUncheckedUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutProjectNestedInput reports?: ReportExportUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectCreateManyInput = { id?: string workspaceId: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type ProjectUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ProjectUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LifecyclePhaseCreateInput = { id?: string name: string status: string readinessScore: number sequence: number createdAt?: Date | string updatedAt?: Date | string project: ProjectCreateNestedOneWithoutLifecyclePhasesInput } export type LifecyclePhaseUncheckedCreateInput = { id?: string projectId: string name: string status: string readinessScore: number sequence: number createdAt?: Date | string updatedAt?: Date | string } export type LifecyclePhaseUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string readinessScore?: IntFieldUpdateOperationsInput | number sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string project?: ProjectUpdateOneRequiredWithoutLifecyclePhasesNestedInput } export type LifecyclePhaseUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string readinessScore?: IntFieldUpdateOperationsInput | number sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LifecyclePhaseCreateManyInput = { id?: string projectId: string name: string status: string readinessScore: number sequence: number createdAt?: Date | string updatedAt?: Date | string } export type LifecyclePhaseUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string readinessScore?: IntFieldUpdateOperationsInput | number sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LifecyclePhaseUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string readinessScore?: IntFieldUpdateOperationsInput | number sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type RiskCreateInput = { id?: string ownerDisplayName?: string | null title: string description?: string | null dimension: string domain: string lifecyclePhase: string probability: number impact: number detectability: number status?: $Enums.RiskStatus approvalStatus?: $Enums.ApprovalStatus dueDate?: Date | string | null evidenceSummary?: string | null createdAt?: Date | string updatedAt?: Date | string project: ProjectCreateNestedOneWithoutRisksInput mitigations?: MitigationCreateNestedManyWithoutRiskInput evidence?: EvidenceCreateNestedManyWithoutRiskInput } export type RiskUncheckedCreateInput = { id?: string projectId: string ownerDisplayName?: string | null title: string description?: string | null dimension: string domain: string lifecyclePhase: string probability: number impact: number detectability: number status?: $Enums.RiskStatus approvalStatus?: $Enums.ApprovalStatus dueDate?: Date | string | null evidenceSummary?: string | null createdAt?: Date | string updatedAt?: Date | string mitigations?: MitigationUncheckedCreateNestedManyWithoutRiskInput evidence?: EvidenceUncheckedCreateNestedManyWithoutRiskInput } export type RiskUpdateInput = { id?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null dimension?: StringFieldUpdateOperationsInput | string domain?: StringFieldUpdateOperationsInput | string lifecyclePhase?: StringFieldUpdateOperationsInput | string probability?: IntFieldUpdateOperationsInput | number impact?: IntFieldUpdateOperationsInput | number detectability?: IntFieldUpdateOperationsInput | number status?: EnumRiskStatusFieldUpdateOperationsInput | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFieldUpdateOperationsInput | $Enums.ApprovalStatus dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evidenceSummary?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string project?: ProjectUpdateOneRequiredWithoutRisksNestedInput mitigations?: MitigationUpdateManyWithoutRiskNestedInput evidence?: EvidenceUpdateManyWithoutRiskNestedInput } export type RiskUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null dimension?: StringFieldUpdateOperationsInput | string domain?: StringFieldUpdateOperationsInput | string lifecyclePhase?: StringFieldUpdateOperationsInput | string probability?: IntFieldUpdateOperationsInput | number impact?: IntFieldUpdateOperationsInput | number detectability?: IntFieldUpdateOperationsInput | number status?: EnumRiskStatusFieldUpdateOperationsInput | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFieldUpdateOperationsInput | $Enums.ApprovalStatus dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evidenceSummary?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string mitigations?: MitigationUncheckedUpdateManyWithoutRiskNestedInput evidence?: EvidenceUncheckedUpdateManyWithoutRiskNestedInput } export type RiskCreateManyInput = { id?: string projectId: string ownerDisplayName?: string | null title: string description?: string | null dimension: string domain: string lifecyclePhase: string probability: number impact: number detectability: number status?: $Enums.RiskStatus approvalStatus?: $Enums.ApprovalStatus dueDate?: Date | string | null evidenceSummary?: string | null createdAt?: Date | string updatedAt?: Date | string } export type RiskUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null dimension?: StringFieldUpdateOperationsInput | string domain?: StringFieldUpdateOperationsInput | string lifecyclePhase?: StringFieldUpdateOperationsInput | string probability?: IntFieldUpdateOperationsInput | number impact?: IntFieldUpdateOperationsInput | number detectability?: IntFieldUpdateOperationsInput | number status?: EnumRiskStatusFieldUpdateOperationsInput | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFieldUpdateOperationsInput | $Enums.ApprovalStatus dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evidenceSummary?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type RiskUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null dimension?: StringFieldUpdateOperationsInput | string domain?: StringFieldUpdateOperationsInput | string lifecyclePhase?: StringFieldUpdateOperationsInput | string probability?: IntFieldUpdateOperationsInput | number impact?: IntFieldUpdateOperationsInput | number detectability?: IntFieldUpdateOperationsInput | number status?: EnumRiskStatusFieldUpdateOperationsInput | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFieldUpdateOperationsInput | $Enums.ApprovalStatus dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evidenceSummary?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MitigationCreateInput = { id?: string ownerDisplayName?: string | null title: string description?: string | null status?: $Enums.MitigationStatus progressPercent?: number effectivenessPercent?: number dueDate?: Date | string | null sequence?: number createdAt?: Date | string updatedAt?: Date | string risk: RiskCreateNestedOneWithoutMitigationsInput evidence?: EvidenceCreateNestedManyWithoutMitigationInput } export type MitigationUncheckedCreateInput = { id?: string riskId: string ownerDisplayName?: string | null title: string description?: string | null status?: $Enums.MitigationStatus progressPercent?: number effectivenessPercent?: number dueDate?: Date | string | null sequence?: number createdAt?: Date | string updatedAt?: Date | string evidence?: EvidenceUncheckedCreateNestedManyWithoutMitigationInput } export type MitigationUpdateInput = { id?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumMitigationStatusFieldUpdateOperationsInput | $Enums.MitigationStatus progressPercent?: IntFieldUpdateOperationsInput | number effectivenessPercent?: IntFieldUpdateOperationsInput | number dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string risk?: RiskUpdateOneRequiredWithoutMitigationsNestedInput evidence?: EvidenceUpdateManyWithoutMitigationNestedInput } export type MitigationUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string riskId?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumMitigationStatusFieldUpdateOperationsInput | $Enums.MitigationStatus progressPercent?: IntFieldUpdateOperationsInput | number effectivenessPercent?: IntFieldUpdateOperationsInput | number dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string evidence?: EvidenceUncheckedUpdateManyWithoutMitigationNestedInput } export type MitigationCreateManyInput = { id?: string riskId: string ownerDisplayName?: string | null title: string description?: string | null status?: $Enums.MitigationStatus progressPercent?: number effectivenessPercent?: number dueDate?: Date | string | null sequence?: number createdAt?: Date | string updatedAt?: Date | string } export type MitigationUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumMitigationStatusFieldUpdateOperationsInput | $Enums.MitigationStatus progressPercent?: IntFieldUpdateOperationsInput | number effectivenessPercent?: IntFieldUpdateOperationsInput | number dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MitigationUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string riskId?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumMitigationStatusFieldUpdateOperationsInput | $Enums.MitigationStatus progressPercent?: IntFieldUpdateOperationsInput | number effectivenessPercent?: IntFieldUpdateOperationsInput | number dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EvidenceCreateInput = { id?: string projectId: string type?: string title: string uri?: string | null createdById?: string | null createdAt?: Date | string updatedAt?: Date | string risk?: RiskCreateNestedOneWithoutEvidenceInput mitigation?: MitigationCreateNestedOneWithoutEvidenceInput } export type EvidenceUncheckedCreateInput = { id?: string projectId: string riskId?: string | null mitigationId?: string | null type?: string title: string uri?: string | null createdById?: string | null createdAt?: Date | string updatedAt?: Date | string } export type EvidenceUpdateInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string uri?: NullableStringFieldUpdateOperationsInput | string | null createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string risk?: RiskUpdateOneWithoutEvidenceNestedInput mitigation?: MitigationUpdateOneWithoutEvidenceNestedInput } export type EvidenceUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string riskId?: NullableStringFieldUpdateOperationsInput | string | null mitigationId?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string uri?: NullableStringFieldUpdateOperationsInput | string | null createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EvidenceCreateManyInput = { id?: string projectId: string riskId?: string | null mitigationId?: string | null type?: string title: string uri?: string | null createdById?: string | null createdAt?: Date | string updatedAt?: Date | string } export type EvidenceUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string uri?: NullableStringFieldUpdateOperationsInput | string | null createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EvidenceUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string riskId?: NullableStringFieldUpdateOperationsInput | string | null mitigationId?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string uri?: NullableStringFieldUpdateOperationsInput | string | null createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IndicatorCreateInput = { id?: string name: string dimension: string measurand: string unit: string target?: string | null interpretationRule?: string | null createdAt?: Date | string updatedAt?: Date | string project: ProjectCreateNestedOneWithoutIndicatorsInput } export type IndicatorUncheckedCreateInput = { id?: string projectId: string name: string dimension: string measurand: string unit: string target?: string | null interpretationRule?: string | null createdAt?: Date | string updatedAt?: Date | string } export type IndicatorUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string dimension?: StringFieldUpdateOperationsInput | string measurand?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string target?: NullableStringFieldUpdateOperationsInput | string | null interpretationRule?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string project?: ProjectUpdateOneRequiredWithoutIndicatorsNestedInput } export type IndicatorUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string dimension?: StringFieldUpdateOperationsInput | string measurand?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string target?: NullableStringFieldUpdateOperationsInput | string | null interpretationRule?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IndicatorCreateManyInput = { id?: string projectId: string name: string dimension: string measurand: string unit: string target?: string | null interpretationRule?: string | null createdAt?: Date | string updatedAt?: Date | string } export type IndicatorUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string dimension?: StringFieldUpdateOperationsInput | string measurand?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string target?: NullableStringFieldUpdateOperationsInput | string | null interpretationRule?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IndicatorUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string dimension?: StringFieldUpdateOperationsInput | string measurand?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string target?: NullableStringFieldUpdateOperationsInput | string | null interpretationRule?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ExperimentCreateInput = { id?: string name: string modelName?: string | null selected?: boolean createdAt?: Date | string updatedAt?: Date | string project: ProjectCreateNestedOneWithoutExperimentsInput metrics?: ModelMetricCreateNestedManyWithoutExperimentInput } export type ExperimentUncheckedCreateInput = { id?: string projectId: string name: string modelName?: string | null selected?: boolean createdAt?: Date | string updatedAt?: Date | string metrics?: ModelMetricUncheckedCreateNestedManyWithoutExperimentInput } export type ExperimentUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string modelName?: NullableStringFieldUpdateOperationsInput | string | null selected?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string project?: ProjectUpdateOneRequiredWithoutExperimentsNestedInput metrics?: ModelMetricUpdateManyWithoutExperimentNestedInput } export type ExperimentUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string modelName?: NullableStringFieldUpdateOperationsInput | string | null selected?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string metrics?: ModelMetricUncheckedUpdateManyWithoutExperimentNestedInput } export type ExperimentCreateManyInput = { id?: string projectId: string name: string modelName?: string | null selected?: boolean createdAt?: Date | string updatedAt?: Date | string } export type ExperimentUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string modelName?: NullableStringFieldUpdateOperationsInput | string | null selected?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ExperimentUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string modelName?: NullableStringFieldUpdateOperationsInput | string | null selected?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ModelMetricCreateInput = { id?: string metricName: string metricValue: number thresholdValue?: number | null status: string measuredAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string experiment: ExperimentCreateNestedOneWithoutMetricsInput } export type ModelMetricUncheckedCreateInput = { id?: string experimentId: string metricName: string metricValue: number thresholdValue?: number | null status: string measuredAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ModelMetricUpdateInput = { id?: StringFieldUpdateOperationsInput | string metricName?: StringFieldUpdateOperationsInput | string metricValue?: FloatFieldUpdateOperationsInput | number thresholdValue?: NullableFloatFieldUpdateOperationsInput | number | null status?: StringFieldUpdateOperationsInput | string measuredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string experiment?: ExperimentUpdateOneRequiredWithoutMetricsNestedInput } export type ModelMetricUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string experimentId?: StringFieldUpdateOperationsInput | string metricName?: StringFieldUpdateOperationsInput | string metricValue?: FloatFieldUpdateOperationsInput | number thresholdValue?: NullableFloatFieldUpdateOperationsInput | number | null status?: StringFieldUpdateOperationsInput | string measuredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ModelMetricCreateManyInput = { id?: string experimentId: string metricName: string metricValue: number thresholdValue?: number | null status: string measuredAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ModelMetricUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string metricName?: StringFieldUpdateOperationsInput | string metricValue?: FloatFieldUpdateOperationsInput | number thresholdValue?: NullableFloatFieldUpdateOperationsInput | number | null status?: StringFieldUpdateOperationsInput | string measuredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ModelMetricUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string experimentId?: StringFieldUpdateOperationsInput | string metricName?: StringFieldUpdateOperationsInput | string metricValue?: FloatFieldUpdateOperationsInput | number thresholdValue?: NullableFloatFieldUpdateOperationsInput | number | null status?: StringFieldUpdateOperationsInput | string measuredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateEvaluationCreateInput = { id?: string status: $Enums.GateStatus reviewStatus?: string summary: string evaluatedByUserId?: string | null evaluatedAt?: Date | string reviewedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string project: ProjectCreateNestedOneWithoutGateEvaluationsInput criteria?: GateCriterionCreateNestedManyWithoutGateInput decisions?: GateDecisionCreateNestedManyWithoutGateInput } export type GateEvaluationUncheckedCreateInput = { id?: string projectId: string status: $Enums.GateStatus reviewStatus?: string summary: string evaluatedByUserId?: string | null evaluatedAt?: Date | string reviewedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string criteria?: GateCriterionUncheckedCreateNestedManyWithoutGateInput decisions?: GateDecisionUncheckedCreateNestedManyWithoutGateInput } export type GateEvaluationUpdateInput = { id?: StringFieldUpdateOperationsInput | string status?: EnumGateStatusFieldUpdateOperationsInput | $Enums.GateStatus reviewStatus?: StringFieldUpdateOperationsInput | string summary?: StringFieldUpdateOperationsInput | string evaluatedByUserId?: NullableStringFieldUpdateOperationsInput | string | null evaluatedAt?: DateTimeFieldUpdateOperationsInput | Date | string reviewedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string project?: ProjectUpdateOneRequiredWithoutGateEvaluationsNestedInput criteria?: GateCriterionUpdateManyWithoutGateNestedInput decisions?: GateDecisionUpdateManyWithoutGateNestedInput } export type GateEvaluationUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string status?: EnumGateStatusFieldUpdateOperationsInput | $Enums.GateStatus reviewStatus?: StringFieldUpdateOperationsInput | string summary?: StringFieldUpdateOperationsInput | string evaluatedByUserId?: NullableStringFieldUpdateOperationsInput | string | null evaluatedAt?: DateTimeFieldUpdateOperationsInput | Date | string reviewedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string criteria?: GateCriterionUncheckedUpdateManyWithoutGateNestedInput decisions?: GateDecisionUncheckedUpdateManyWithoutGateNestedInput } export type GateEvaluationCreateManyInput = { id?: string projectId: string status: $Enums.GateStatus reviewStatus?: string summary: string evaluatedByUserId?: string | null evaluatedAt?: Date | string reviewedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type GateEvaluationUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string status?: EnumGateStatusFieldUpdateOperationsInput | $Enums.GateStatus reviewStatus?: StringFieldUpdateOperationsInput | string summary?: StringFieldUpdateOperationsInput | string evaluatedByUserId?: NullableStringFieldUpdateOperationsInput | string | null evaluatedAt?: DateTimeFieldUpdateOperationsInput | Date | string reviewedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateEvaluationUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string status?: EnumGateStatusFieldUpdateOperationsInput | $Enums.GateStatus reviewStatus?: StringFieldUpdateOperationsInput | string summary?: StringFieldUpdateOperationsInput | string evaluatedByUserId?: NullableStringFieldUpdateOperationsInput | string | null evaluatedAt?: DateTimeFieldUpdateOperationsInput | Date | string reviewedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateCriterionCreateInput = { id?: string name: string actualValue: string expectedRule: string status: string blocking?: boolean evidenceTitle?: string | null evidenceUri?: string | null reviewerStatus?: string reviewerNote?: string | null createdAt?: Date | string updatedAt?: Date | string gate: GateEvaluationCreateNestedOneWithoutCriteriaInput } export type GateCriterionUncheckedCreateInput = { id?: string gateId: string name: string actualValue: string expectedRule: string status: string blocking?: boolean evidenceTitle?: string | null evidenceUri?: string | null reviewerStatus?: string reviewerNote?: string | null createdAt?: Date | string updatedAt?: Date | string } export type GateCriterionUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string actualValue?: StringFieldUpdateOperationsInput | string expectedRule?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string blocking?: BoolFieldUpdateOperationsInput | boolean evidenceTitle?: NullableStringFieldUpdateOperationsInput | string | null evidenceUri?: NullableStringFieldUpdateOperationsInput | string | null reviewerStatus?: StringFieldUpdateOperationsInput | string reviewerNote?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string gate?: GateEvaluationUpdateOneRequiredWithoutCriteriaNestedInput } export type GateCriterionUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string gateId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string actualValue?: StringFieldUpdateOperationsInput | string expectedRule?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string blocking?: BoolFieldUpdateOperationsInput | boolean evidenceTitle?: NullableStringFieldUpdateOperationsInput | string | null evidenceUri?: NullableStringFieldUpdateOperationsInput | string | null reviewerStatus?: StringFieldUpdateOperationsInput | string reviewerNote?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateCriterionCreateManyInput = { id?: string gateId: string name: string actualValue: string expectedRule: string status: string blocking?: boolean evidenceTitle?: string | null evidenceUri?: string | null reviewerStatus?: string reviewerNote?: string | null createdAt?: Date | string updatedAt?: Date | string } export type GateCriterionUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string actualValue?: StringFieldUpdateOperationsInput | string expectedRule?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string blocking?: BoolFieldUpdateOperationsInput | boolean evidenceTitle?: NullableStringFieldUpdateOperationsInput | string | null evidenceUri?: NullableStringFieldUpdateOperationsInput | string | null reviewerStatus?: StringFieldUpdateOperationsInput | string reviewerNote?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateCriterionUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string gateId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string actualValue?: StringFieldUpdateOperationsInput | string expectedRule?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string blocking?: BoolFieldUpdateOperationsInput | boolean evidenceTitle?: NullableStringFieldUpdateOperationsInput | string | null evidenceUri?: NullableStringFieldUpdateOperationsInput | string | null reviewerStatus?: StringFieldUpdateOperationsInput | string reviewerNote?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateDecisionCreateInput = { id?: string decision: $Enums.GateDecisionValue reviewerName: string reason?: string | null createdByUserId?: string | null decidedAt?: Date | string createdAt?: Date | string gate: GateEvaluationCreateNestedOneWithoutDecisionsInput } export type GateDecisionUncheckedCreateInput = { id?: string gateId: string decision: $Enums.GateDecisionValue reviewerName: string reason?: string | null createdByUserId?: string | null decidedAt?: Date | string createdAt?: Date | string } export type GateDecisionUpdateInput = { id?: StringFieldUpdateOperationsInput | string decision?: EnumGateDecisionValueFieldUpdateOperationsInput | $Enums.GateDecisionValue reviewerName?: StringFieldUpdateOperationsInput | string reason?: NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: NullableStringFieldUpdateOperationsInput | string | null decidedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string gate?: GateEvaluationUpdateOneRequiredWithoutDecisionsNestedInput } export type GateDecisionUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string gateId?: StringFieldUpdateOperationsInput | string decision?: EnumGateDecisionValueFieldUpdateOperationsInput | $Enums.GateDecisionValue reviewerName?: StringFieldUpdateOperationsInput | string reason?: NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: NullableStringFieldUpdateOperationsInput | string | null decidedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateDecisionCreateManyInput = { id?: string gateId: string decision: $Enums.GateDecisionValue reviewerName: string reason?: string | null createdByUserId?: string | null decidedAt?: Date | string createdAt?: Date | string } export type GateDecisionUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string decision?: EnumGateDecisionValueFieldUpdateOperationsInput | $Enums.GateDecisionValue reviewerName?: StringFieldUpdateOperationsInput | string reason?: NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: NullableStringFieldUpdateOperationsInput | string | null decidedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateDecisionUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string gateId?: StringFieldUpdateOperationsInput | string decision?: EnumGateDecisionValueFieldUpdateOperationsInput | $Enums.GateDecisionValue reviewerName?: StringFieldUpdateOperationsInput | string reason?: NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: NullableStringFieldUpdateOperationsInput | string | null decidedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IntegrationCreateInput = { id?: string provider: $Enums.IntegrationProvider workspaceName: string externalProjectKey?: string | null baseUrl?: string | null authMode: string connectionStatus?: $Enums.IntegrationStatus syncDirection?: string liveEnabled?: boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string workspace: WorkspaceCreateNestedOneWithoutIntegrationsInput mappings?: ExternalWorkItemMappingCreateNestedManyWithoutIntegrationInput syncRuns?: IntegrationSyncRunCreateNestedManyWithoutIntegrationInput } export type IntegrationUncheckedCreateInput = { id?: string workspaceId: string provider: $Enums.IntegrationProvider workspaceName: string externalProjectKey?: string | null baseUrl?: string | null authMode: string connectionStatus?: $Enums.IntegrationStatus syncDirection?: string liveEnabled?: boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string mappings?: ExternalWorkItemMappingUncheckedCreateNestedManyWithoutIntegrationInput syncRuns?: IntegrationSyncRunUncheckedCreateNestedManyWithoutIntegrationInput } export type IntegrationUpdateInput = { id?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider workspaceName?: StringFieldUpdateOperationsInput | string externalProjectKey?: NullableStringFieldUpdateOperationsInput | string | null baseUrl?: NullableStringFieldUpdateOperationsInput | string | null authMode?: StringFieldUpdateOperationsInput | string connectionStatus?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus syncDirection?: StringFieldUpdateOperationsInput | string liveEnabled?: BoolFieldUpdateOperationsInput | boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneRequiredWithoutIntegrationsNestedInput mappings?: ExternalWorkItemMappingUpdateManyWithoutIntegrationNestedInput syncRuns?: IntegrationSyncRunUpdateManyWithoutIntegrationNestedInput } export type IntegrationUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider workspaceName?: StringFieldUpdateOperationsInput | string externalProjectKey?: NullableStringFieldUpdateOperationsInput | string | null baseUrl?: NullableStringFieldUpdateOperationsInput | string | null authMode?: StringFieldUpdateOperationsInput | string connectionStatus?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus syncDirection?: StringFieldUpdateOperationsInput | string liveEnabled?: BoolFieldUpdateOperationsInput | boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string mappings?: ExternalWorkItemMappingUncheckedUpdateManyWithoutIntegrationNestedInput syncRuns?: IntegrationSyncRunUncheckedUpdateManyWithoutIntegrationNestedInput } export type IntegrationCreateManyInput = { id?: string workspaceId: string provider: $Enums.IntegrationProvider workspaceName: string externalProjectKey?: string | null baseUrl?: string | null authMode: string connectionStatus?: $Enums.IntegrationStatus syncDirection?: string liveEnabled?: boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type IntegrationUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider workspaceName?: StringFieldUpdateOperationsInput | string externalProjectKey?: NullableStringFieldUpdateOperationsInput | string | null baseUrl?: NullableStringFieldUpdateOperationsInput | string | null authMode?: StringFieldUpdateOperationsInput | string connectionStatus?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus syncDirection?: StringFieldUpdateOperationsInput | string liveEnabled?: BoolFieldUpdateOperationsInput | boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IntegrationUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider workspaceName?: StringFieldUpdateOperationsInput | string externalProjectKey?: NullableStringFieldUpdateOperationsInput | string | null baseUrl?: NullableStringFieldUpdateOperationsInput | string | null authMode?: StringFieldUpdateOperationsInput | string connectionStatus?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus syncDirection?: StringFieldUpdateOperationsInput | string liveEnabled?: BoolFieldUpdateOperationsInput | boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ExternalWorkItemMappingCreateInput = { id?: string projectId: string localEntityType: string localEntityId: string localTitle: string externalItemType: string externalItemId: string externalItemKey: string externalUrl?: string | null externalStatus: string syncStatus: string fieldMapping?: JsonNullValueInput | InputJsonValue lastSyncedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string integration: IntegrationCreateNestedOneWithoutMappingsInput } export type ExternalWorkItemMappingUncheckedCreateInput = { id?: string integrationId: string projectId: string localEntityType: string localEntityId: string localTitle: string externalItemType: string externalItemId: string externalItemKey: string externalUrl?: string | null externalStatus: string syncStatus: string fieldMapping?: JsonNullValueInput | InputJsonValue lastSyncedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ExternalWorkItemMappingUpdateInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string localEntityType?: StringFieldUpdateOperationsInput | string localEntityId?: StringFieldUpdateOperationsInput | string localTitle?: StringFieldUpdateOperationsInput | string externalItemType?: StringFieldUpdateOperationsInput | string externalItemId?: StringFieldUpdateOperationsInput | string externalItemKey?: StringFieldUpdateOperationsInput | string externalUrl?: NullableStringFieldUpdateOperationsInput | string | null externalStatus?: StringFieldUpdateOperationsInput | string syncStatus?: StringFieldUpdateOperationsInput | string fieldMapping?: JsonNullValueInput | InputJsonValue lastSyncedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string integration?: IntegrationUpdateOneRequiredWithoutMappingsNestedInput } export type ExternalWorkItemMappingUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string integrationId?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string localEntityType?: StringFieldUpdateOperationsInput | string localEntityId?: StringFieldUpdateOperationsInput | string localTitle?: StringFieldUpdateOperationsInput | string externalItemType?: StringFieldUpdateOperationsInput | string externalItemId?: StringFieldUpdateOperationsInput | string externalItemKey?: StringFieldUpdateOperationsInput | string externalUrl?: NullableStringFieldUpdateOperationsInput | string | null externalStatus?: StringFieldUpdateOperationsInput | string syncStatus?: StringFieldUpdateOperationsInput | string fieldMapping?: JsonNullValueInput | InputJsonValue lastSyncedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ExternalWorkItemMappingCreateManyInput = { id?: string integrationId: string projectId: string localEntityType: string localEntityId: string localTitle: string externalItemType: string externalItemId: string externalItemKey: string externalUrl?: string | null externalStatus: string syncStatus: string fieldMapping?: JsonNullValueInput | InputJsonValue lastSyncedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ExternalWorkItemMappingUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string localEntityType?: StringFieldUpdateOperationsInput | string localEntityId?: StringFieldUpdateOperationsInput | string localTitle?: StringFieldUpdateOperationsInput | string externalItemType?: StringFieldUpdateOperationsInput | string externalItemId?: StringFieldUpdateOperationsInput | string externalItemKey?: StringFieldUpdateOperationsInput | string externalUrl?: NullableStringFieldUpdateOperationsInput | string | null externalStatus?: StringFieldUpdateOperationsInput | string syncStatus?: StringFieldUpdateOperationsInput | string fieldMapping?: JsonNullValueInput | InputJsonValue lastSyncedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ExternalWorkItemMappingUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string integrationId?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string localEntityType?: StringFieldUpdateOperationsInput | string localEntityId?: StringFieldUpdateOperationsInput | string localTitle?: StringFieldUpdateOperationsInput | string externalItemType?: StringFieldUpdateOperationsInput | string externalItemId?: StringFieldUpdateOperationsInput | string externalItemKey?: StringFieldUpdateOperationsInput | string externalUrl?: NullableStringFieldUpdateOperationsInput | string | null externalStatus?: StringFieldUpdateOperationsInput | string syncStatus?: StringFieldUpdateOperationsInput | string fieldMapping?: JsonNullValueInput | InputJsonValue lastSyncedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IntegrationSyncRunCreateInput = { id?: string projectId: string provider: $Enums.IntegrationProvider status: string startedAt: Date | string finishedAt?: Date | string | null createdCount?: number updatedCount?: number failedCount?: number summary?: string | null failureLog?: JsonNullValueInput | InputJsonValue createdAt?: Date | string integration: IntegrationCreateNestedOneWithoutSyncRunsInput } export type IntegrationSyncRunUncheckedCreateInput = { id?: string integrationId: string projectId: string provider: $Enums.IntegrationProvider status: string startedAt: Date | string finishedAt?: Date | string | null createdCount?: number updatedCount?: number failedCount?: number summary?: string | null failureLog?: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type IntegrationSyncRunUpdateInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider status?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdCount?: IntFieldUpdateOperationsInput | number updatedCount?: IntFieldUpdateOperationsInput | number failedCount?: IntFieldUpdateOperationsInput | number summary?: NullableStringFieldUpdateOperationsInput | string | null failureLog?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string integration?: IntegrationUpdateOneRequiredWithoutSyncRunsNestedInput } export type IntegrationSyncRunUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string integrationId?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider status?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdCount?: IntFieldUpdateOperationsInput | number updatedCount?: IntFieldUpdateOperationsInput | number failedCount?: IntFieldUpdateOperationsInput | number summary?: NullableStringFieldUpdateOperationsInput | string | null failureLog?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IntegrationSyncRunCreateManyInput = { id?: string integrationId: string projectId: string provider: $Enums.IntegrationProvider status: string startedAt: Date | string finishedAt?: Date | string | null createdCount?: number updatedCount?: number failedCount?: number summary?: string | null failureLog?: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type IntegrationSyncRunUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider status?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdCount?: IntFieldUpdateOperationsInput | number updatedCount?: IntFieldUpdateOperationsInput | number failedCount?: IntFieldUpdateOperationsInput | number summary?: NullableStringFieldUpdateOperationsInput | string | null failureLog?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IntegrationSyncRunUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string integrationId?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider status?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdCount?: IntFieldUpdateOperationsInput | number updatedCount?: IntFieldUpdateOperationsInput | number failedCount?: IntFieldUpdateOperationsInput | number summary?: NullableStringFieldUpdateOperationsInput | string | null failureLog?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type OAuthTokenCreateInput = { id?: string provider: $Enums.IntegrationProvider integrationId?: string | null encryptedToken: JsonNullValueInput | InputJsonValue redactedToken: string expiresAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string organization: OrganizationCreateNestedOneWithoutOauthTokensInput } export type OAuthTokenUncheckedCreateInput = { id?: string organizationId: string provider: $Enums.IntegrationProvider integrationId?: string | null encryptedToken: JsonNullValueInput | InputJsonValue redactedToken: string expiresAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type OAuthTokenUpdateInput = { id?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider integrationId?: NullableStringFieldUpdateOperationsInput | string | null encryptedToken?: JsonNullValueInput | InputJsonValue redactedToken?: StringFieldUpdateOperationsInput | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutOauthTokensNestedInput } export type OAuthTokenUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider integrationId?: NullableStringFieldUpdateOperationsInput | string | null encryptedToken?: JsonNullValueInput | InputJsonValue redactedToken?: StringFieldUpdateOperationsInput | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type OAuthTokenCreateManyInput = { id?: string organizationId: string provider: $Enums.IntegrationProvider integrationId?: string | null encryptedToken: JsonNullValueInput | InputJsonValue redactedToken: string expiresAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type OAuthTokenUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider integrationId?: NullableStringFieldUpdateOperationsInput | string | null encryptedToken?: JsonNullValueInput | InputJsonValue redactedToken?: StringFieldUpdateOperationsInput | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type OAuthTokenUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider integrationId?: NullableStringFieldUpdateOperationsInput | string | null encryptedToken?: JsonNullValueInput | InputJsonValue redactedToken?: StringFieldUpdateOperationsInput | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ReportExportCreateInput = { id?: string reportType: string format: string status?: string metadata?: JsonNullValueInput | InputJsonValue createdById?: string | null createdAt?: Date | string workspace: WorkspaceCreateNestedOneWithoutReportsInput project: ProjectCreateNestedOneWithoutReportsInput } export type ReportExportUncheckedCreateInput = { id?: string workspaceId: string projectId: string reportType: string format: string status?: string metadata?: JsonNullValueInput | InputJsonValue createdById?: string | null createdAt?: Date | string } export type ReportExportUpdateInput = { id?: StringFieldUpdateOperationsInput | string reportType?: StringFieldUpdateOperationsInput | string format?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string metadata?: JsonNullValueInput | InputJsonValue createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneRequiredWithoutReportsNestedInput project?: ProjectUpdateOneRequiredWithoutReportsNestedInput } export type ReportExportUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string reportType?: StringFieldUpdateOperationsInput | string format?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string metadata?: JsonNullValueInput | InputJsonValue createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ReportExportCreateManyInput = { id?: string workspaceId: string projectId: string reportType: string format: string status?: string metadata?: JsonNullValueInput | InputJsonValue createdById?: string | null createdAt?: Date | string } export type ReportExportUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string reportType?: StringFieldUpdateOperationsInput | string format?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string metadata?: JsonNullValueInput | InputJsonValue createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ReportExportUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string reportType?: StringFieldUpdateOperationsInput | string format?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string metadata?: JsonNullValueInput | InputJsonValue createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventCreateInput = { id?: string entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string organization: OrganizationCreateNestedOneWithoutAuditEventsInput workspace?: WorkspaceCreateNestedOneWithoutAuditEventsInput project?: ProjectCreateNestedOneWithoutAuditEventsInput actor?: UserCreateNestedOneWithoutAuditEventsInput } export type AuditEventUncheckedCreateInput = { id?: string organizationId: string workspaceId?: string | null projectId?: string | null actorUserId?: string | null entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string } export type AuditEventUpdateInput = { id?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutAuditEventsNestedInput workspace?: WorkspaceUpdateOneWithoutAuditEventsNestedInput project?: ProjectUpdateOneWithoutAuditEventsNestedInput actor?: UserUpdateOneWithoutAuditEventsNestedInput } export type AuditEventUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string workspaceId?: NullableStringFieldUpdateOperationsInput | string | null projectId?: NullableStringFieldUpdateOperationsInput | string | null actorUserId?: NullableStringFieldUpdateOperationsInput | string | null entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventCreateManyInput = { id?: string organizationId: string workspaceId?: string | null projectId?: string | null actorUserId?: string | null entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string } export type AuditEventUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string workspaceId?: NullableStringFieldUpdateOperationsInput | string | null projectId?: NullableStringFieldUpdateOperationsInput | string | null actorUserId?: NullableStringFieldUpdateOperationsInput | string | null entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UsageEventCreateInput = { id?: string metric: string quantity?: number metadata?: JsonNullValueInput | InputJsonValue createdAt?: Date | string organization: OrganizationCreateNestedOneWithoutUsageEventsInput } export type UsageEventUncheckedCreateInput = { id?: string organizationId: string metric: string quantity?: number metadata?: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type UsageEventUpdateInput = { id?: StringFieldUpdateOperationsInput | string metric?: StringFieldUpdateOperationsInput | string quantity?: IntFieldUpdateOperationsInput | number metadata?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutUsageEventsNestedInput } export type UsageEventUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string metric?: StringFieldUpdateOperationsInput | string quantity?: IntFieldUpdateOperationsInput | number metadata?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UsageEventCreateManyInput = { id?: string organizationId: string metric: string quantity?: number metadata?: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type UsageEventUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string metric?: StringFieldUpdateOperationsInput | string quantity?: IntFieldUpdateOperationsInput | number metadata?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UsageEventUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string metric?: StringFieldUpdateOperationsInput | string quantity?: IntFieldUpdateOperationsInput | number metadata?: JsonNullValueInput | InputJsonValue createdAt?: 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 EnumOrganizationStatusFilter<$PrismaModel = never> = { equals?: $Enums.OrganizationStatus | EnumOrganizationStatusFieldRefInput<$PrismaModel> in?: $Enums.OrganizationStatus[] | ListEnumOrganizationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.OrganizationStatus[] | ListEnumOrganizationStatusFieldRefInput<$PrismaModel> not?: NestedEnumOrganizationStatusFilter<$PrismaModel> | $Enums.OrganizationStatus } export type BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } 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 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 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 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 WorkspaceListRelationFilter = { every?: WorkspaceWhereInput some?: WorkspaceWhereInput none?: WorkspaceWhereInput } export type MembershipListRelationFilter = { every?: MembershipWhereInput some?: MembershipWhereInput none?: MembershipWhereInput } export type SubscriptionListRelationFilter = { every?: SubscriptionWhereInput some?: SubscriptionWhereInput none?: SubscriptionWhereInput } export type AuditEventListRelationFilter = { every?: AuditEventWhereInput some?: AuditEventWhereInput none?: AuditEventWhereInput } export type UsageEventListRelationFilter = { every?: UsageEventWhereInput some?: UsageEventWhereInput none?: UsageEventWhereInput } export type InvitationListRelationFilter = { every?: InvitationWhereInput some?: InvitationWhereInput none?: InvitationWhereInput } export type OAuthTokenListRelationFilter = { every?: OAuthTokenWhereInput some?: OAuthTokenWhereInput none?: OAuthTokenWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type WorkspaceOrderByRelationAggregateInput = { _count?: SortOrder } export type MembershipOrderByRelationAggregateInput = { _count?: SortOrder } export type SubscriptionOrderByRelationAggregateInput = { _count?: SortOrder } export type AuditEventOrderByRelationAggregateInput = { _count?: SortOrder } export type UsageEventOrderByRelationAggregateInput = { _count?: SortOrder } export type InvitationOrderByRelationAggregateInput = { _count?: SortOrder } export type OAuthTokenOrderByRelationAggregateInput = { _count?: SortOrder } export type OrganizationCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder slug?: SortOrder status?: SortOrder planCode?: SortOrder manualBilling?: SortOrder stripeCustomerId?: SortOrder ssoEnforced?: SortOrder allowedDomains?: SortOrder dataRetentionDays?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type OrganizationAvgOrderByAggregateInput = { dataRetentionDays?: SortOrder } export type OrganizationMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder slug?: SortOrder status?: SortOrder planCode?: SortOrder manualBilling?: SortOrder stripeCustomerId?: SortOrder ssoEnforced?: SortOrder dataRetentionDays?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type OrganizationMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder slug?: SortOrder status?: SortOrder planCode?: SortOrder manualBilling?: SortOrder stripeCustomerId?: SortOrder ssoEnforced?: SortOrder dataRetentionDays?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type OrganizationSumOrderByAggregateInput = { dataRetentionDays?: 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 EnumOrganizationStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.OrganizationStatus | EnumOrganizationStatusFieldRefInput<$PrismaModel> in?: $Enums.OrganizationStatus[] | ListEnumOrganizationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.OrganizationStatus[] | ListEnumOrganizationStatusFieldRefInput<$PrismaModel> not?: NestedEnumOrganizationStatusWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumOrganizationStatusFilter<$PrismaModel> _max?: NestedEnumOrganizationStatusFilter<$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 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 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 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 EnumWorkspaceTypeFilter<$PrismaModel = never> = { equals?: $Enums.WorkspaceType | EnumWorkspaceTypeFieldRefInput<$PrismaModel> in?: $Enums.WorkspaceType[] | ListEnumWorkspaceTypeFieldRefInput<$PrismaModel> notIn?: $Enums.WorkspaceType[] | ListEnumWorkspaceTypeFieldRefInput<$PrismaModel> not?: NestedEnumWorkspaceTypeFilter<$PrismaModel> | $Enums.WorkspaceType } export type OrganizationRelationFilter = { is?: OrganizationWhereInput isNot?: OrganizationWhereInput } export type ProjectListRelationFilter = { every?: ProjectWhereInput some?: ProjectWhereInput none?: ProjectWhereInput } export type IntegrationListRelationFilter = { every?: IntegrationWhereInput some?: IntegrationWhereInput none?: IntegrationWhereInput } export type ReportExportListRelationFilter = { every?: ReportExportWhereInput some?: ReportExportWhereInput none?: ReportExportWhereInput } export type ProjectOrderByRelationAggregateInput = { _count?: SortOrder } export type IntegrationOrderByRelationAggregateInput = { _count?: SortOrder } export type ReportExportOrderByRelationAggregateInput = { _count?: SortOrder } export type WorkspaceOrganizationIdSlugCompoundUniqueInput = { organizationId: string slug: string } export type WorkspaceCountOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder name?: SortOrder slug?: SortOrder type?: SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type WorkspaceMaxOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder name?: SortOrder slug?: SortOrder type?: SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type WorkspaceMinOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder name?: SortOrder slug?: SortOrder type?: SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EnumWorkspaceTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.WorkspaceType | EnumWorkspaceTypeFieldRefInput<$PrismaModel> in?: $Enums.WorkspaceType[] | ListEnumWorkspaceTypeFieldRefInput<$PrismaModel> notIn?: $Enums.WorkspaceType[] | ListEnumWorkspaceTypeFieldRefInput<$PrismaModel> not?: NestedEnumWorkspaceTypeWithAggregatesFilter<$PrismaModel> | $Enums.WorkspaceType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumWorkspaceTypeFilter<$PrismaModel> _max?: NestedEnumWorkspaceTypeFilter<$PrismaModel> } 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 SessionListRelationFilter = { every?: SessionWhereInput some?: SessionWhereInput none?: SessionWhereInput } export type SessionOrderByRelationAggregateInput = { _count?: SortOrder } export type UserCountOrderByAggregateInput = { id?: SortOrder email?: SortOrder displayName?: SortOrder passwordHash?: SortOrder emailVerifiedAt?: SortOrder lastLoginAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UserMaxOrderByAggregateInput = { id?: SortOrder email?: SortOrder displayName?: SortOrder passwordHash?: SortOrder emailVerifiedAt?: SortOrder lastLoginAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UserMinOrderByAggregateInput = { id?: SortOrder email?: SortOrder displayName?: SortOrder passwordHash?: SortOrder emailVerifiedAt?: SortOrder lastLoginAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } 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 UserRelationFilter = { is?: UserWhereInput isNot?: UserWhereInput } export type SessionCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder token?: SortOrder expiresAt?: SortOrder createdAt?: SortOrder } export type SessionMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder token?: SortOrder expiresAt?: SortOrder createdAt?: SortOrder } export type SessionMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder token?: SortOrder expiresAt?: SortOrder createdAt?: SortOrder } export type RoleCountOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder permissions?: SortOrder system?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type RoleMaxOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder system?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type RoleMinOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder system?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EnumMembershipStatusFilter<$PrismaModel = never> = { equals?: $Enums.MembershipStatus | EnumMembershipStatusFieldRefInput<$PrismaModel> in?: $Enums.MembershipStatus[] | ListEnumMembershipStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MembershipStatus[] | ListEnumMembershipStatusFieldRefInput<$PrismaModel> not?: NestedEnumMembershipStatusFilter<$PrismaModel> | $Enums.MembershipStatus } export type RoleRelationFilter = { is?: RoleWhereInput isNot?: RoleWhereInput } export type MembershipOrganizationIdUserIdCompoundUniqueInput = { organizationId: string userId: string } export type MembershipCountOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder userId?: SortOrder roleId?: SortOrder status?: SortOrder workspaceScope?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type MembershipMaxOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder userId?: SortOrder roleId?: SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type MembershipMinOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder userId?: SortOrder roleId?: SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EnumMembershipStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.MembershipStatus | EnumMembershipStatusFieldRefInput<$PrismaModel> in?: $Enums.MembershipStatus[] | ListEnumMembershipStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MembershipStatus[] | ListEnumMembershipStatusFieldRefInput<$PrismaModel> not?: NestedEnumMembershipStatusWithAggregatesFilter<$PrismaModel> | $Enums.MembershipStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumMembershipStatusFilter<$PrismaModel> _max?: NestedEnumMembershipStatusFilter<$PrismaModel> } export type UserNullableRelationFilter = { is?: UserWhereInput | null isNot?: UserWhereInput | null } export type InvitationCountOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder email?: SortOrder roleCode?: SortOrder tokenHash?: SortOrder expiresAt?: SortOrder acceptedAt?: SortOrder invitedById?: SortOrder createdAt?: SortOrder } export type InvitationMaxOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder email?: SortOrder roleCode?: SortOrder tokenHash?: SortOrder expiresAt?: SortOrder acceptedAt?: SortOrder invitedById?: SortOrder createdAt?: SortOrder } export type InvitationMinOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder email?: SortOrder roleCode?: SortOrder tokenHash?: SortOrder expiresAt?: SortOrder acceptedAt?: SortOrder invitedById?: SortOrder createdAt?: SortOrder } export type EnumSubscriptionSourceFilter<$PrismaModel = never> = { equals?: $Enums.SubscriptionSource | EnumSubscriptionSourceFieldRefInput<$PrismaModel> in?: $Enums.SubscriptionSource[] | ListEnumSubscriptionSourceFieldRefInput<$PrismaModel> notIn?: $Enums.SubscriptionSource[] | ListEnumSubscriptionSourceFieldRefInput<$PrismaModel> not?: NestedEnumSubscriptionSourceFilter<$PrismaModel> | $Enums.SubscriptionSource } export type EnumSubscriptionStatusFilter<$PrismaModel = never> = { equals?: $Enums.SubscriptionStatus | EnumSubscriptionStatusFieldRefInput<$PrismaModel> in?: $Enums.SubscriptionStatus[] | ListEnumSubscriptionStatusFieldRefInput<$PrismaModel> notIn?: $Enums.SubscriptionStatus[] | ListEnumSubscriptionStatusFieldRefInput<$PrismaModel> not?: NestedEnumSubscriptionStatusFilter<$PrismaModel> | $Enums.SubscriptionStatus } 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 SubscriptionCountOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder source?: SortOrder status?: SortOrder planCode?: SortOrder stripeSubscriptionId?: SortOrder currentPeriodEnd?: SortOrder userLimit?: SortOrder projectLimit?: SortOrder reportLimitMonthly?: SortOrder integrationLimit?: SortOrder storageMbLimit?: SortOrder adminOverride?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SubscriptionAvgOrderByAggregateInput = { userLimit?: SortOrder projectLimit?: SortOrder reportLimitMonthly?: SortOrder integrationLimit?: SortOrder storageMbLimit?: SortOrder } export type SubscriptionMaxOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder source?: SortOrder status?: SortOrder planCode?: SortOrder stripeSubscriptionId?: SortOrder currentPeriodEnd?: SortOrder userLimit?: SortOrder projectLimit?: SortOrder reportLimitMonthly?: SortOrder integrationLimit?: SortOrder storageMbLimit?: SortOrder adminOverride?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SubscriptionMinOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder source?: SortOrder status?: SortOrder planCode?: SortOrder stripeSubscriptionId?: SortOrder currentPeriodEnd?: SortOrder userLimit?: SortOrder projectLimit?: SortOrder reportLimitMonthly?: SortOrder integrationLimit?: SortOrder storageMbLimit?: SortOrder adminOverride?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SubscriptionSumOrderByAggregateInput = { userLimit?: SortOrder projectLimit?: SortOrder reportLimitMonthly?: SortOrder integrationLimit?: SortOrder storageMbLimit?: SortOrder } export type EnumSubscriptionSourceWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.SubscriptionSource | EnumSubscriptionSourceFieldRefInput<$PrismaModel> in?: $Enums.SubscriptionSource[] | ListEnumSubscriptionSourceFieldRefInput<$PrismaModel> notIn?: $Enums.SubscriptionSource[] | ListEnumSubscriptionSourceFieldRefInput<$PrismaModel> not?: NestedEnumSubscriptionSourceWithAggregatesFilter<$PrismaModel> | $Enums.SubscriptionSource _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumSubscriptionSourceFilter<$PrismaModel> _max?: NestedEnumSubscriptionSourceFilter<$PrismaModel> } export type EnumSubscriptionStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.SubscriptionStatus | EnumSubscriptionStatusFieldRefInput<$PrismaModel> in?: $Enums.SubscriptionStatus[] | ListEnumSubscriptionStatusFieldRefInput<$PrismaModel> notIn?: $Enums.SubscriptionStatus[] | ListEnumSubscriptionStatusFieldRefInput<$PrismaModel> not?: NestedEnumSubscriptionStatusWithAggregatesFilter<$PrismaModel> | $Enums.SubscriptionStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumSubscriptionStatusFilter<$PrismaModel> _max?: NestedEnumSubscriptionStatusFilter<$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 JsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: 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 WorkspaceRelationFilter = { is?: WorkspaceWhereInput isNot?: WorkspaceWhereInput } export type LifecyclePhaseListRelationFilter = { every?: LifecyclePhaseWhereInput some?: LifecyclePhaseWhereInput none?: LifecyclePhaseWhereInput } export type RiskListRelationFilter = { every?: RiskWhereInput some?: RiskWhereInput none?: RiskWhereInput } export type IndicatorListRelationFilter = { every?: IndicatorWhereInput some?: IndicatorWhereInput none?: IndicatorWhereInput } export type ExperimentListRelationFilter = { every?: ExperimentWhereInput some?: ExperimentWhereInput none?: ExperimentWhereInput } export type GateEvaluationListRelationFilter = { every?: GateEvaluationWhereInput some?: GateEvaluationWhereInput none?: GateEvaluationWhereInput } export type LifecyclePhaseOrderByRelationAggregateInput = { _count?: SortOrder } export type RiskOrderByRelationAggregateInput = { _count?: SortOrder } export type IndicatorOrderByRelationAggregateInput = { _count?: SortOrder } export type ExperimentOrderByRelationAggregateInput = { _count?: SortOrder } export type GateEvaluationOrderByRelationAggregateInput = { _count?: SortOrder } export type ProjectCountOrderByAggregateInput = { id?: SortOrder workspaceId?: SortOrder name?: SortOrder subtitle?: SortOrder projectType?: SortOrder currentLifecyclePhase?: SortOrder riskAppetite?: SortOrder assessmentDate?: SortOrder status?: SortOrder ownerDisplayName?: SortOrder description?: SortOrder thresholds?: SortOrder reviews?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ProjectAvgOrderByAggregateInput = { riskAppetite?: SortOrder } export type ProjectMaxOrderByAggregateInput = { id?: SortOrder workspaceId?: SortOrder name?: SortOrder subtitle?: SortOrder projectType?: SortOrder currentLifecyclePhase?: SortOrder riskAppetite?: SortOrder assessmentDate?: SortOrder status?: SortOrder ownerDisplayName?: SortOrder description?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ProjectMinOrderByAggregateInput = { id?: SortOrder workspaceId?: SortOrder name?: SortOrder subtitle?: SortOrder projectType?: SortOrder currentLifecyclePhase?: SortOrder riskAppetite?: SortOrder assessmentDate?: SortOrder status?: SortOrder ownerDisplayName?: SortOrder description?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ProjectSumOrderByAggregateInput = { riskAppetite?: SortOrder } export type JsonWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: 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 ProjectRelationFilter = { is?: ProjectWhereInput isNot?: ProjectWhereInput } export type LifecyclePhaseCountOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder status?: SortOrder readinessScore?: SortOrder sequence?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LifecyclePhaseAvgOrderByAggregateInput = { readinessScore?: SortOrder sequence?: SortOrder } export type LifecyclePhaseMaxOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder status?: SortOrder readinessScore?: SortOrder sequence?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LifecyclePhaseMinOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder status?: SortOrder readinessScore?: SortOrder sequence?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LifecyclePhaseSumOrderByAggregateInput = { readinessScore?: SortOrder sequence?: SortOrder } export type EnumRiskStatusFilter<$PrismaModel = never> = { equals?: $Enums.RiskStatus | EnumRiskStatusFieldRefInput<$PrismaModel> in?: $Enums.RiskStatus[] | ListEnumRiskStatusFieldRefInput<$PrismaModel> notIn?: $Enums.RiskStatus[] | ListEnumRiskStatusFieldRefInput<$PrismaModel> not?: NestedEnumRiskStatusFilter<$PrismaModel> | $Enums.RiskStatus } export type EnumApprovalStatusFilter<$PrismaModel = never> = { equals?: $Enums.ApprovalStatus | EnumApprovalStatusFieldRefInput<$PrismaModel> in?: $Enums.ApprovalStatus[] | ListEnumApprovalStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ApprovalStatus[] | ListEnumApprovalStatusFieldRefInput<$PrismaModel> not?: NestedEnumApprovalStatusFilter<$PrismaModel> | $Enums.ApprovalStatus } export type MitigationListRelationFilter = { every?: MitigationWhereInput some?: MitigationWhereInput none?: MitigationWhereInput } export type EvidenceListRelationFilter = { every?: EvidenceWhereInput some?: EvidenceWhereInput none?: EvidenceWhereInput } export type MitigationOrderByRelationAggregateInput = { _count?: SortOrder } export type EvidenceOrderByRelationAggregateInput = { _count?: SortOrder } export type RiskCountOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder ownerDisplayName?: SortOrder title?: SortOrder description?: SortOrder dimension?: SortOrder domain?: SortOrder lifecyclePhase?: SortOrder probability?: SortOrder impact?: SortOrder detectability?: SortOrder status?: SortOrder approvalStatus?: SortOrder dueDate?: SortOrder evidenceSummary?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type RiskAvgOrderByAggregateInput = { probability?: SortOrder impact?: SortOrder detectability?: SortOrder } export type RiskMaxOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder ownerDisplayName?: SortOrder title?: SortOrder description?: SortOrder dimension?: SortOrder domain?: SortOrder lifecyclePhase?: SortOrder probability?: SortOrder impact?: SortOrder detectability?: SortOrder status?: SortOrder approvalStatus?: SortOrder dueDate?: SortOrder evidenceSummary?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type RiskMinOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder ownerDisplayName?: SortOrder title?: SortOrder description?: SortOrder dimension?: SortOrder domain?: SortOrder lifecyclePhase?: SortOrder probability?: SortOrder impact?: SortOrder detectability?: SortOrder status?: SortOrder approvalStatus?: SortOrder dueDate?: SortOrder evidenceSummary?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type RiskSumOrderByAggregateInput = { probability?: SortOrder impact?: SortOrder detectability?: SortOrder } export type EnumRiskStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.RiskStatus | EnumRiskStatusFieldRefInput<$PrismaModel> in?: $Enums.RiskStatus[] | ListEnumRiskStatusFieldRefInput<$PrismaModel> notIn?: $Enums.RiskStatus[] | ListEnumRiskStatusFieldRefInput<$PrismaModel> not?: NestedEnumRiskStatusWithAggregatesFilter<$PrismaModel> | $Enums.RiskStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumRiskStatusFilter<$PrismaModel> _max?: NestedEnumRiskStatusFilter<$PrismaModel> } export type EnumApprovalStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ApprovalStatus | EnumApprovalStatusFieldRefInput<$PrismaModel> in?: $Enums.ApprovalStatus[] | ListEnumApprovalStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ApprovalStatus[] | ListEnumApprovalStatusFieldRefInput<$PrismaModel> not?: NestedEnumApprovalStatusWithAggregatesFilter<$PrismaModel> | $Enums.ApprovalStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumApprovalStatusFilter<$PrismaModel> _max?: NestedEnumApprovalStatusFilter<$PrismaModel> } export type EnumMitigationStatusFilter<$PrismaModel = never> = { equals?: $Enums.MitigationStatus | EnumMitigationStatusFieldRefInput<$PrismaModel> in?: $Enums.MitigationStatus[] | ListEnumMitigationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MitigationStatus[] | ListEnumMitigationStatusFieldRefInput<$PrismaModel> not?: NestedEnumMitigationStatusFilter<$PrismaModel> | $Enums.MitigationStatus } export type RiskRelationFilter = { is?: RiskWhereInput isNot?: RiskWhereInput } export type MitigationCountOrderByAggregateInput = { id?: SortOrder riskId?: SortOrder ownerDisplayName?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder progressPercent?: SortOrder effectivenessPercent?: SortOrder dueDate?: SortOrder sequence?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type MitigationAvgOrderByAggregateInput = { progressPercent?: SortOrder effectivenessPercent?: SortOrder sequence?: SortOrder } export type MitigationMaxOrderByAggregateInput = { id?: SortOrder riskId?: SortOrder ownerDisplayName?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder progressPercent?: SortOrder effectivenessPercent?: SortOrder dueDate?: SortOrder sequence?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type MitigationMinOrderByAggregateInput = { id?: SortOrder riskId?: SortOrder ownerDisplayName?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder progressPercent?: SortOrder effectivenessPercent?: SortOrder dueDate?: SortOrder sequence?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type MitigationSumOrderByAggregateInput = { progressPercent?: SortOrder effectivenessPercent?: SortOrder sequence?: SortOrder } export type EnumMitigationStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.MitigationStatus | EnumMitigationStatusFieldRefInput<$PrismaModel> in?: $Enums.MitigationStatus[] | ListEnumMitigationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MitigationStatus[] | ListEnumMitigationStatusFieldRefInput<$PrismaModel> not?: NestedEnumMitigationStatusWithAggregatesFilter<$PrismaModel> | $Enums.MitigationStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumMitigationStatusFilter<$PrismaModel> _max?: NestedEnumMitigationStatusFilter<$PrismaModel> } export type RiskNullableRelationFilter = { is?: RiskWhereInput | null isNot?: RiskWhereInput | null } export type MitigationNullableRelationFilter = { is?: MitigationWhereInput | null isNot?: MitigationWhereInput | null } export type EvidenceCountOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder riskId?: SortOrder mitigationId?: SortOrder type?: SortOrder title?: SortOrder uri?: SortOrder createdById?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EvidenceMaxOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder riskId?: SortOrder mitigationId?: SortOrder type?: SortOrder title?: SortOrder uri?: SortOrder createdById?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EvidenceMinOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder riskId?: SortOrder mitigationId?: SortOrder type?: SortOrder title?: SortOrder uri?: SortOrder createdById?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type IndicatorCountOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder dimension?: SortOrder measurand?: SortOrder unit?: SortOrder target?: SortOrder interpretationRule?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type IndicatorMaxOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder dimension?: SortOrder measurand?: SortOrder unit?: SortOrder target?: SortOrder interpretationRule?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type IndicatorMinOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder dimension?: SortOrder measurand?: SortOrder unit?: SortOrder target?: SortOrder interpretationRule?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ModelMetricListRelationFilter = { every?: ModelMetricWhereInput some?: ModelMetricWhereInput none?: ModelMetricWhereInput } export type ModelMetricOrderByRelationAggregateInput = { _count?: SortOrder } export type ExperimentCountOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder modelName?: SortOrder selected?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ExperimentMaxOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder modelName?: SortOrder selected?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ExperimentMinOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder name?: SortOrder modelName?: SortOrder selected?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } 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 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 ExperimentRelationFilter = { is?: ExperimentWhereInput isNot?: ExperimentWhereInput } export type ModelMetricCountOrderByAggregateInput = { id?: SortOrder experimentId?: SortOrder metricName?: SortOrder metricValue?: SortOrder thresholdValue?: SortOrder status?: SortOrder measuredAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ModelMetricAvgOrderByAggregateInput = { metricValue?: SortOrder thresholdValue?: SortOrder } export type ModelMetricMaxOrderByAggregateInput = { id?: SortOrder experimentId?: SortOrder metricName?: SortOrder metricValue?: SortOrder thresholdValue?: SortOrder status?: SortOrder measuredAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ModelMetricMinOrderByAggregateInput = { id?: SortOrder experimentId?: SortOrder metricName?: SortOrder metricValue?: SortOrder thresholdValue?: SortOrder status?: SortOrder measuredAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ModelMetricSumOrderByAggregateInput = { metricValue?: SortOrder thresholdValue?: SortOrder } export type FloatWithAggregatesFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedFloatFilter<$PrismaModel> _min?: NestedFloatFilter<$PrismaModel> _max?: NestedFloatFilter<$PrismaModel> } export type 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 EnumGateStatusFilter<$PrismaModel = never> = { equals?: $Enums.GateStatus | EnumGateStatusFieldRefInput<$PrismaModel> in?: $Enums.GateStatus[] | ListEnumGateStatusFieldRefInput<$PrismaModel> notIn?: $Enums.GateStatus[] | ListEnumGateStatusFieldRefInput<$PrismaModel> not?: NestedEnumGateStatusFilter<$PrismaModel> | $Enums.GateStatus } export type GateCriterionListRelationFilter = { every?: GateCriterionWhereInput some?: GateCriterionWhereInput none?: GateCriterionWhereInput } export type GateDecisionListRelationFilter = { every?: GateDecisionWhereInput some?: GateDecisionWhereInput none?: GateDecisionWhereInput } export type GateCriterionOrderByRelationAggregateInput = { _count?: SortOrder } export type GateDecisionOrderByRelationAggregateInput = { _count?: SortOrder } export type GateEvaluationCountOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder status?: SortOrder reviewStatus?: SortOrder summary?: SortOrder evaluatedByUserId?: SortOrder evaluatedAt?: SortOrder reviewedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type GateEvaluationMaxOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder status?: SortOrder reviewStatus?: SortOrder summary?: SortOrder evaluatedByUserId?: SortOrder evaluatedAt?: SortOrder reviewedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type GateEvaluationMinOrderByAggregateInput = { id?: SortOrder projectId?: SortOrder status?: SortOrder reviewStatus?: SortOrder summary?: SortOrder evaluatedByUserId?: SortOrder evaluatedAt?: SortOrder reviewedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EnumGateStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.GateStatus | EnumGateStatusFieldRefInput<$PrismaModel> in?: $Enums.GateStatus[] | ListEnumGateStatusFieldRefInput<$PrismaModel> notIn?: $Enums.GateStatus[] | ListEnumGateStatusFieldRefInput<$PrismaModel> not?: NestedEnumGateStatusWithAggregatesFilter<$PrismaModel> | $Enums.GateStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumGateStatusFilter<$PrismaModel> _max?: NestedEnumGateStatusFilter<$PrismaModel> } export type GateEvaluationRelationFilter = { is?: GateEvaluationWhereInput isNot?: GateEvaluationWhereInput } export type GateCriterionCountOrderByAggregateInput = { id?: SortOrder gateId?: SortOrder name?: SortOrder actualValue?: SortOrder expectedRule?: SortOrder status?: SortOrder blocking?: SortOrder evidenceTitle?: SortOrder evidenceUri?: SortOrder reviewerStatus?: SortOrder reviewerNote?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type GateCriterionMaxOrderByAggregateInput = { id?: SortOrder gateId?: SortOrder name?: SortOrder actualValue?: SortOrder expectedRule?: SortOrder status?: SortOrder blocking?: SortOrder evidenceTitle?: SortOrder evidenceUri?: SortOrder reviewerStatus?: SortOrder reviewerNote?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type GateCriterionMinOrderByAggregateInput = { id?: SortOrder gateId?: SortOrder name?: SortOrder actualValue?: SortOrder expectedRule?: SortOrder status?: SortOrder blocking?: SortOrder evidenceTitle?: SortOrder evidenceUri?: SortOrder reviewerStatus?: SortOrder reviewerNote?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EnumGateDecisionValueFilter<$PrismaModel = never> = { equals?: $Enums.GateDecisionValue | EnumGateDecisionValueFieldRefInput<$PrismaModel> in?: $Enums.GateDecisionValue[] | ListEnumGateDecisionValueFieldRefInput<$PrismaModel> notIn?: $Enums.GateDecisionValue[] | ListEnumGateDecisionValueFieldRefInput<$PrismaModel> not?: NestedEnumGateDecisionValueFilter<$PrismaModel> | $Enums.GateDecisionValue } export type GateDecisionCountOrderByAggregateInput = { id?: SortOrder gateId?: SortOrder decision?: SortOrder reviewerName?: SortOrder reason?: SortOrder createdByUserId?: SortOrder decidedAt?: SortOrder createdAt?: SortOrder } export type GateDecisionMaxOrderByAggregateInput = { id?: SortOrder gateId?: SortOrder decision?: SortOrder reviewerName?: SortOrder reason?: SortOrder createdByUserId?: SortOrder decidedAt?: SortOrder createdAt?: SortOrder } export type GateDecisionMinOrderByAggregateInput = { id?: SortOrder gateId?: SortOrder decision?: SortOrder reviewerName?: SortOrder reason?: SortOrder createdByUserId?: SortOrder decidedAt?: SortOrder createdAt?: SortOrder } export type EnumGateDecisionValueWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.GateDecisionValue | EnumGateDecisionValueFieldRefInput<$PrismaModel> in?: $Enums.GateDecisionValue[] | ListEnumGateDecisionValueFieldRefInput<$PrismaModel> notIn?: $Enums.GateDecisionValue[] | ListEnumGateDecisionValueFieldRefInput<$PrismaModel> not?: NestedEnumGateDecisionValueWithAggregatesFilter<$PrismaModel> | $Enums.GateDecisionValue _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumGateDecisionValueFilter<$PrismaModel> _max?: NestedEnumGateDecisionValueFilter<$PrismaModel> } export type EnumIntegrationProviderFilter<$PrismaModel = never> = { equals?: $Enums.IntegrationProvider | EnumIntegrationProviderFieldRefInput<$PrismaModel> in?: $Enums.IntegrationProvider[] | ListEnumIntegrationProviderFieldRefInput<$PrismaModel> notIn?: $Enums.IntegrationProvider[] | ListEnumIntegrationProviderFieldRefInput<$PrismaModel> not?: NestedEnumIntegrationProviderFilter<$PrismaModel> | $Enums.IntegrationProvider } export type EnumIntegrationStatusFilter<$PrismaModel = never> = { equals?: $Enums.IntegrationStatus | EnumIntegrationStatusFieldRefInput<$PrismaModel> in?: $Enums.IntegrationStatus[] | ListEnumIntegrationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.IntegrationStatus[] | ListEnumIntegrationStatusFieldRefInput<$PrismaModel> not?: NestedEnumIntegrationStatusFilter<$PrismaModel> | $Enums.IntegrationStatus } export type ExternalWorkItemMappingListRelationFilter = { every?: ExternalWorkItemMappingWhereInput some?: ExternalWorkItemMappingWhereInput none?: ExternalWorkItemMappingWhereInput } export type IntegrationSyncRunListRelationFilter = { every?: IntegrationSyncRunWhereInput some?: IntegrationSyncRunWhereInput none?: IntegrationSyncRunWhereInput } export type ExternalWorkItemMappingOrderByRelationAggregateInput = { _count?: SortOrder } export type IntegrationSyncRunOrderByRelationAggregateInput = { _count?: SortOrder } export type IntegrationWorkspaceIdProviderCompoundUniqueInput = { workspaceId: string provider: $Enums.IntegrationProvider } export type IntegrationCountOrderByAggregateInput = { id?: SortOrder workspaceId?: SortOrder provider?: SortOrder workspaceName?: SortOrder externalProjectKey?: SortOrder baseUrl?: SortOrder authMode?: SortOrder connectionStatus?: SortOrder syncDirection?: SortOrder liveEnabled?: SortOrder liveConfig?: SortOrder lastSyncAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type IntegrationMaxOrderByAggregateInput = { id?: SortOrder workspaceId?: SortOrder provider?: SortOrder workspaceName?: SortOrder externalProjectKey?: SortOrder baseUrl?: SortOrder authMode?: SortOrder connectionStatus?: SortOrder syncDirection?: SortOrder liveEnabled?: SortOrder lastSyncAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type IntegrationMinOrderByAggregateInput = { id?: SortOrder workspaceId?: SortOrder provider?: SortOrder workspaceName?: SortOrder externalProjectKey?: SortOrder baseUrl?: SortOrder authMode?: SortOrder connectionStatus?: SortOrder syncDirection?: SortOrder liveEnabled?: SortOrder lastSyncAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EnumIntegrationProviderWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.IntegrationProvider | EnumIntegrationProviderFieldRefInput<$PrismaModel> in?: $Enums.IntegrationProvider[] | ListEnumIntegrationProviderFieldRefInput<$PrismaModel> notIn?: $Enums.IntegrationProvider[] | ListEnumIntegrationProviderFieldRefInput<$PrismaModel> not?: NestedEnumIntegrationProviderWithAggregatesFilter<$PrismaModel> | $Enums.IntegrationProvider _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumIntegrationProviderFilter<$PrismaModel> _max?: NestedEnumIntegrationProviderFilter<$PrismaModel> } export type EnumIntegrationStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.IntegrationStatus | EnumIntegrationStatusFieldRefInput<$PrismaModel> in?: $Enums.IntegrationStatus[] | ListEnumIntegrationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.IntegrationStatus[] | ListEnumIntegrationStatusFieldRefInput<$PrismaModel> not?: NestedEnumIntegrationStatusWithAggregatesFilter<$PrismaModel> | $Enums.IntegrationStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumIntegrationStatusFilter<$PrismaModel> _max?: NestedEnumIntegrationStatusFilter<$PrismaModel> } export type IntegrationRelationFilter = { is?: IntegrationWhereInput isNot?: IntegrationWhereInput } export type ExternalWorkItemMappingCountOrderByAggregateInput = { id?: SortOrder integrationId?: SortOrder projectId?: SortOrder localEntityType?: SortOrder localEntityId?: SortOrder localTitle?: SortOrder externalItemType?: SortOrder externalItemId?: SortOrder externalItemKey?: SortOrder externalUrl?: SortOrder externalStatus?: SortOrder syncStatus?: SortOrder fieldMapping?: SortOrder lastSyncedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ExternalWorkItemMappingMaxOrderByAggregateInput = { id?: SortOrder integrationId?: SortOrder projectId?: SortOrder localEntityType?: SortOrder localEntityId?: SortOrder localTitle?: SortOrder externalItemType?: SortOrder externalItemId?: SortOrder externalItemKey?: SortOrder externalUrl?: SortOrder externalStatus?: SortOrder syncStatus?: SortOrder lastSyncedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ExternalWorkItemMappingMinOrderByAggregateInput = { id?: SortOrder integrationId?: SortOrder projectId?: SortOrder localEntityType?: SortOrder localEntityId?: SortOrder localTitle?: SortOrder externalItemType?: SortOrder externalItemId?: SortOrder externalItemKey?: SortOrder externalUrl?: SortOrder externalStatus?: SortOrder syncStatus?: SortOrder lastSyncedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type IntegrationSyncRunCountOrderByAggregateInput = { id?: SortOrder integrationId?: SortOrder projectId?: SortOrder provider?: SortOrder status?: SortOrder startedAt?: SortOrder finishedAt?: SortOrder createdCount?: SortOrder updatedCount?: SortOrder failedCount?: SortOrder summary?: SortOrder failureLog?: SortOrder createdAt?: SortOrder } export type IntegrationSyncRunAvgOrderByAggregateInput = { createdCount?: SortOrder updatedCount?: SortOrder failedCount?: SortOrder } export type IntegrationSyncRunMaxOrderByAggregateInput = { id?: SortOrder integrationId?: SortOrder projectId?: SortOrder provider?: SortOrder status?: SortOrder startedAt?: SortOrder finishedAt?: SortOrder createdCount?: SortOrder updatedCount?: SortOrder failedCount?: SortOrder summary?: SortOrder createdAt?: SortOrder } export type IntegrationSyncRunMinOrderByAggregateInput = { id?: SortOrder integrationId?: SortOrder projectId?: SortOrder provider?: SortOrder status?: SortOrder startedAt?: SortOrder finishedAt?: SortOrder createdCount?: SortOrder updatedCount?: SortOrder failedCount?: SortOrder summary?: SortOrder createdAt?: SortOrder } export type IntegrationSyncRunSumOrderByAggregateInput = { createdCount?: SortOrder updatedCount?: SortOrder failedCount?: SortOrder } export type OAuthTokenCountOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder provider?: SortOrder integrationId?: SortOrder encryptedToken?: SortOrder redactedToken?: SortOrder expiresAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type OAuthTokenMaxOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder provider?: SortOrder integrationId?: SortOrder redactedToken?: SortOrder expiresAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type OAuthTokenMinOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder provider?: SortOrder integrationId?: SortOrder redactedToken?: SortOrder expiresAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ReportExportCountOrderByAggregateInput = { id?: SortOrder workspaceId?: SortOrder projectId?: SortOrder reportType?: SortOrder format?: SortOrder status?: SortOrder metadata?: SortOrder createdById?: SortOrder createdAt?: SortOrder } export type ReportExportMaxOrderByAggregateInput = { id?: SortOrder workspaceId?: SortOrder projectId?: SortOrder reportType?: SortOrder format?: SortOrder status?: SortOrder createdById?: SortOrder createdAt?: SortOrder } export type ReportExportMinOrderByAggregateInput = { id?: SortOrder workspaceId?: SortOrder projectId?: SortOrder reportType?: SortOrder format?: SortOrder status?: SortOrder createdById?: SortOrder createdAt?: 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[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: 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 WorkspaceNullableRelationFilter = { is?: WorkspaceWhereInput | null isNot?: WorkspaceWhereInput | null } export type ProjectNullableRelationFilter = { is?: ProjectWhereInput | null isNot?: ProjectWhereInput | null } export type AuditEventCountOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder workspaceId?: SortOrder projectId?: SortOrder actorUserId?: SortOrder entityType?: SortOrder entityId?: SortOrder action?: SortOrder beforeJson?: SortOrder afterJson?: SortOrder ipAddress?: SortOrder userAgent?: SortOrder createdAt?: SortOrder } export type AuditEventMaxOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder workspaceId?: SortOrder projectId?: SortOrder actorUserId?: SortOrder entityType?: SortOrder entityId?: SortOrder action?: SortOrder ipAddress?: SortOrder userAgent?: SortOrder createdAt?: SortOrder } export type AuditEventMinOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder workspaceId?: SortOrder projectId?: SortOrder actorUserId?: SortOrder entityType?: SortOrder entityId?: SortOrder action?: SortOrder ipAddress?: SortOrder userAgent?: SortOrder createdAt?: 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[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: 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 UsageEventCountOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder metric?: SortOrder quantity?: SortOrder metadata?: SortOrder createdAt?: SortOrder } export type UsageEventAvgOrderByAggregateInput = { quantity?: SortOrder } export type UsageEventMaxOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder metric?: SortOrder quantity?: SortOrder createdAt?: SortOrder } export type UsageEventMinOrderByAggregateInput = { id?: SortOrder organizationId?: SortOrder metric?: SortOrder quantity?: SortOrder createdAt?: SortOrder } export type UsageEventSumOrderByAggregateInput = { quantity?: SortOrder } export type OrganizationCreateallowedDomainsInput = { set: string[] } export type WorkspaceCreateNestedManyWithoutOrganizationInput = { create?: XOR | WorkspaceCreateWithoutOrganizationInput[] | WorkspaceUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: WorkspaceCreateOrConnectWithoutOrganizationInput | WorkspaceCreateOrConnectWithoutOrganizationInput[] createMany?: WorkspaceCreateManyOrganizationInputEnvelope connect?: WorkspaceWhereUniqueInput | WorkspaceWhereUniqueInput[] } export type MembershipCreateNestedManyWithoutOrganizationInput = { create?: XOR | MembershipCreateWithoutOrganizationInput[] | MembershipUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: MembershipCreateOrConnectWithoutOrganizationInput | MembershipCreateOrConnectWithoutOrganizationInput[] createMany?: MembershipCreateManyOrganizationInputEnvelope connect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] } export type SubscriptionCreateNestedManyWithoutOrganizationInput = { create?: XOR | SubscriptionCreateWithoutOrganizationInput[] | SubscriptionUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: SubscriptionCreateOrConnectWithoutOrganizationInput | SubscriptionCreateOrConnectWithoutOrganizationInput[] createMany?: SubscriptionCreateManyOrganizationInputEnvelope connect?: SubscriptionWhereUniqueInput | SubscriptionWhereUniqueInput[] } export type AuditEventCreateNestedManyWithoutOrganizationInput = { create?: XOR | AuditEventCreateWithoutOrganizationInput[] | AuditEventUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutOrganizationInput | AuditEventCreateOrConnectWithoutOrganizationInput[] createMany?: AuditEventCreateManyOrganizationInputEnvelope connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] } export type UsageEventCreateNestedManyWithoutOrganizationInput = { create?: XOR | UsageEventCreateWithoutOrganizationInput[] | UsageEventUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: UsageEventCreateOrConnectWithoutOrganizationInput | UsageEventCreateOrConnectWithoutOrganizationInput[] createMany?: UsageEventCreateManyOrganizationInputEnvelope connect?: UsageEventWhereUniqueInput | UsageEventWhereUniqueInput[] } export type InvitationCreateNestedManyWithoutOrganizationInput = { create?: XOR | InvitationCreateWithoutOrganizationInput[] | InvitationUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: InvitationCreateOrConnectWithoutOrganizationInput | InvitationCreateOrConnectWithoutOrganizationInput[] createMany?: InvitationCreateManyOrganizationInputEnvelope connect?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] } export type OAuthTokenCreateNestedManyWithoutOrganizationInput = { create?: XOR | OAuthTokenCreateWithoutOrganizationInput[] | OAuthTokenUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: OAuthTokenCreateOrConnectWithoutOrganizationInput | OAuthTokenCreateOrConnectWithoutOrganizationInput[] createMany?: OAuthTokenCreateManyOrganizationInputEnvelope connect?: OAuthTokenWhereUniqueInput | OAuthTokenWhereUniqueInput[] } export type WorkspaceUncheckedCreateNestedManyWithoutOrganizationInput = { create?: XOR | WorkspaceCreateWithoutOrganizationInput[] | WorkspaceUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: WorkspaceCreateOrConnectWithoutOrganizationInput | WorkspaceCreateOrConnectWithoutOrganizationInput[] createMany?: WorkspaceCreateManyOrganizationInputEnvelope connect?: WorkspaceWhereUniqueInput | WorkspaceWhereUniqueInput[] } export type MembershipUncheckedCreateNestedManyWithoutOrganizationInput = { create?: XOR | MembershipCreateWithoutOrganizationInput[] | MembershipUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: MembershipCreateOrConnectWithoutOrganizationInput | MembershipCreateOrConnectWithoutOrganizationInput[] createMany?: MembershipCreateManyOrganizationInputEnvelope connect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] } export type SubscriptionUncheckedCreateNestedManyWithoutOrganizationInput = { create?: XOR | SubscriptionCreateWithoutOrganizationInput[] | SubscriptionUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: SubscriptionCreateOrConnectWithoutOrganizationInput | SubscriptionCreateOrConnectWithoutOrganizationInput[] createMany?: SubscriptionCreateManyOrganizationInputEnvelope connect?: SubscriptionWhereUniqueInput | SubscriptionWhereUniqueInput[] } export type AuditEventUncheckedCreateNestedManyWithoutOrganizationInput = { create?: XOR | AuditEventCreateWithoutOrganizationInput[] | AuditEventUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutOrganizationInput | AuditEventCreateOrConnectWithoutOrganizationInput[] createMany?: AuditEventCreateManyOrganizationInputEnvelope connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] } export type UsageEventUncheckedCreateNestedManyWithoutOrganizationInput = { create?: XOR | UsageEventCreateWithoutOrganizationInput[] | UsageEventUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: UsageEventCreateOrConnectWithoutOrganizationInput | UsageEventCreateOrConnectWithoutOrganizationInput[] createMany?: UsageEventCreateManyOrganizationInputEnvelope connect?: UsageEventWhereUniqueInput | UsageEventWhereUniqueInput[] } export type InvitationUncheckedCreateNestedManyWithoutOrganizationInput = { create?: XOR | InvitationCreateWithoutOrganizationInput[] | InvitationUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: InvitationCreateOrConnectWithoutOrganizationInput | InvitationCreateOrConnectWithoutOrganizationInput[] createMany?: InvitationCreateManyOrganizationInputEnvelope connect?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] } export type OAuthTokenUncheckedCreateNestedManyWithoutOrganizationInput = { create?: XOR | OAuthTokenCreateWithoutOrganizationInput[] | OAuthTokenUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: OAuthTokenCreateOrConnectWithoutOrganizationInput | OAuthTokenCreateOrConnectWithoutOrganizationInput[] createMany?: OAuthTokenCreateManyOrganizationInputEnvelope connect?: OAuthTokenWhereUniqueInput | OAuthTokenWhereUniqueInput[] } export type StringFieldUpdateOperationsInput = { set?: string } export type EnumOrganizationStatusFieldUpdateOperationsInput = { set?: $Enums.OrganizationStatus } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type OrganizationUpdateallowedDomainsInput = { set?: string[] push?: string | string[] } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type WorkspaceUpdateManyWithoutOrganizationNestedInput = { create?: XOR | WorkspaceCreateWithoutOrganizationInput[] | WorkspaceUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: WorkspaceCreateOrConnectWithoutOrganizationInput | WorkspaceCreateOrConnectWithoutOrganizationInput[] upsert?: WorkspaceUpsertWithWhereUniqueWithoutOrganizationInput | WorkspaceUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: WorkspaceCreateManyOrganizationInputEnvelope set?: WorkspaceWhereUniqueInput | WorkspaceWhereUniqueInput[] disconnect?: WorkspaceWhereUniqueInput | WorkspaceWhereUniqueInput[] delete?: WorkspaceWhereUniqueInput | WorkspaceWhereUniqueInput[] connect?: WorkspaceWhereUniqueInput | WorkspaceWhereUniqueInput[] update?: WorkspaceUpdateWithWhereUniqueWithoutOrganizationInput | WorkspaceUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: WorkspaceUpdateManyWithWhereWithoutOrganizationInput | WorkspaceUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: WorkspaceScalarWhereInput | WorkspaceScalarWhereInput[] } export type MembershipUpdateManyWithoutOrganizationNestedInput = { create?: XOR | MembershipCreateWithoutOrganizationInput[] | MembershipUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: MembershipCreateOrConnectWithoutOrganizationInput | MembershipCreateOrConnectWithoutOrganizationInput[] upsert?: MembershipUpsertWithWhereUniqueWithoutOrganizationInput | MembershipUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: MembershipCreateManyOrganizationInputEnvelope set?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] disconnect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] delete?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] connect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] update?: MembershipUpdateWithWhereUniqueWithoutOrganizationInput | MembershipUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: MembershipUpdateManyWithWhereWithoutOrganizationInput | MembershipUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: MembershipScalarWhereInput | MembershipScalarWhereInput[] } export type SubscriptionUpdateManyWithoutOrganizationNestedInput = { create?: XOR | SubscriptionCreateWithoutOrganizationInput[] | SubscriptionUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: SubscriptionCreateOrConnectWithoutOrganizationInput | SubscriptionCreateOrConnectWithoutOrganizationInput[] upsert?: SubscriptionUpsertWithWhereUniqueWithoutOrganizationInput | SubscriptionUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: SubscriptionCreateManyOrganizationInputEnvelope set?: SubscriptionWhereUniqueInput | SubscriptionWhereUniqueInput[] disconnect?: SubscriptionWhereUniqueInput | SubscriptionWhereUniqueInput[] delete?: SubscriptionWhereUniqueInput | SubscriptionWhereUniqueInput[] connect?: SubscriptionWhereUniqueInput | SubscriptionWhereUniqueInput[] update?: SubscriptionUpdateWithWhereUniqueWithoutOrganizationInput | SubscriptionUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: SubscriptionUpdateManyWithWhereWithoutOrganizationInput | SubscriptionUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: SubscriptionScalarWhereInput | SubscriptionScalarWhereInput[] } export type AuditEventUpdateManyWithoutOrganizationNestedInput = { create?: XOR | AuditEventCreateWithoutOrganizationInput[] | AuditEventUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutOrganizationInput | AuditEventCreateOrConnectWithoutOrganizationInput[] upsert?: AuditEventUpsertWithWhereUniqueWithoutOrganizationInput | AuditEventUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: AuditEventCreateManyOrganizationInputEnvelope set?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] disconnect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] delete?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] update?: AuditEventUpdateWithWhereUniqueWithoutOrganizationInput | AuditEventUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: AuditEventUpdateManyWithWhereWithoutOrganizationInput | AuditEventUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: AuditEventScalarWhereInput | AuditEventScalarWhereInput[] } export type UsageEventUpdateManyWithoutOrganizationNestedInput = { create?: XOR | UsageEventCreateWithoutOrganizationInput[] | UsageEventUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: UsageEventCreateOrConnectWithoutOrganizationInput | UsageEventCreateOrConnectWithoutOrganizationInput[] upsert?: UsageEventUpsertWithWhereUniqueWithoutOrganizationInput | UsageEventUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: UsageEventCreateManyOrganizationInputEnvelope set?: UsageEventWhereUniqueInput | UsageEventWhereUniqueInput[] disconnect?: UsageEventWhereUniqueInput | UsageEventWhereUniqueInput[] delete?: UsageEventWhereUniqueInput | UsageEventWhereUniqueInput[] connect?: UsageEventWhereUniqueInput | UsageEventWhereUniqueInput[] update?: UsageEventUpdateWithWhereUniqueWithoutOrganizationInput | UsageEventUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: UsageEventUpdateManyWithWhereWithoutOrganizationInput | UsageEventUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: UsageEventScalarWhereInput | UsageEventScalarWhereInput[] } export type InvitationUpdateManyWithoutOrganizationNestedInput = { create?: XOR | InvitationCreateWithoutOrganizationInput[] | InvitationUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: InvitationCreateOrConnectWithoutOrganizationInput | InvitationCreateOrConnectWithoutOrganizationInput[] upsert?: InvitationUpsertWithWhereUniqueWithoutOrganizationInput | InvitationUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: InvitationCreateManyOrganizationInputEnvelope set?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] disconnect?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] delete?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] connect?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] update?: InvitationUpdateWithWhereUniqueWithoutOrganizationInput | InvitationUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: InvitationUpdateManyWithWhereWithoutOrganizationInput | InvitationUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: InvitationScalarWhereInput | InvitationScalarWhereInput[] } export type OAuthTokenUpdateManyWithoutOrganizationNestedInput = { create?: XOR | OAuthTokenCreateWithoutOrganizationInput[] | OAuthTokenUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: OAuthTokenCreateOrConnectWithoutOrganizationInput | OAuthTokenCreateOrConnectWithoutOrganizationInput[] upsert?: OAuthTokenUpsertWithWhereUniqueWithoutOrganizationInput | OAuthTokenUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: OAuthTokenCreateManyOrganizationInputEnvelope set?: OAuthTokenWhereUniqueInput | OAuthTokenWhereUniqueInput[] disconnect?: OAuthTokenWhereUniqueInput | OAuthTokenWhereUniqueInput[] delete?: OAuthTokenWhereUniqueInput | OAuthTokenWhereUniqueInput[] connect?: OAuthTokenWhereUniqueInput | OAuthTokenWhereUniqueInput[] update?: OAuthTokenUpdateWithWhereUniqueWithoutOrganizationInput | OAuthTokenUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: OAuthTokenUpdateManyWithWhereWithoutOrganizationInput | OAuthTokenUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: OAuthTokenScalarWhereInput | OAuthTokenScalarWhereInput[] } export type WorkspaceUncheckedUpdateManyWithoutOrganizationNestedInput = { create?: XOR | WorkspaceCreateWithoutOrganizationInput[] | WorkspaceUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: WorkspaceCreateOrConnectWithoutOrganizationInput | WorkspaceCreateOrConnectWithoutOrganizationInput[] upsert?: WorkspaceUpsertWithWhereUniqueWithoutOrganizationInput | WorkspaceUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: WorkspaceCreateManyOrganizationInputEnvelope set?: WorkspaceWhereUniqueInput | WorkspaceWhereUniqueInput[] disconnect?: WorkspaceWhereUniqueInput | WorkspaceWhereUniqueInput[] delete?: WorkspaceWhereUniqueInput | WorkspaceWhereUniqueInput[] connect?: WorkspaceWhereUniqueInput | WorkspaceWhereUniqueInput[] update?: WorkspaceUpdateWithWhereUniqueWithoutOrganizationInput | WorkspaceUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: WorkspaceUpdateManyWithWhereWithoutOrganizationInput | WorkspaceUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: WorkspaceScalarWhereInput | WorkspaceScalarWhereInput[] } export type MembershipUncheckedUpdateManyWithoutOrganizationNestedInput = { create?: XOR | MembershipCreateWithoutOrganizationInput[] | MembershipUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: MembershipCreateOrConnectWithoutOrganizationInput | MembershipCreateOrConnectWithoutOrganizationInput[] upsert?: MembershipUpsertWithWhereUniqueWithoutOrganizationInput | MembershipUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: MembershipCreateManyOrganizationInputEnvelope set?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] disconnect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] delete?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] connect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] update?: MembershipUpdateWithWhereUniqueWithoutOrganizationInput | MembershipUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: MembershipUpdateManyWithWhereWithoutOrganizationInput | MembershipUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: MembershipScalarWhereInput | MembershipScalarWhereInput[] } export type SubscriptionUncheckedUpdateManyWithoutOrganizationNestedInput = { create?: XOR | SubscriptionCreateWithoutOrganizationInput[] | SubscriptionUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: SubscriptionCreateOrConnectWithoutOrganizationInput | SubscriptionCreateOrConnectWithoutOrganizationInput[] upsert?: SubscriptionUpsertWithWhereUniqueWithoutOrganizationInput | SubscriptionUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: SubscriptionCreateManyOrganizationInputEnvelope set?: SubscriptionWhereUniqueInput | SubscriptionWhereUniqueInput[] disconnect?: SubscriptionWhereUniqueInput | SubscriptionWhereUniqueInput[] delete?: SubscriptionWhereUniqueInput | SubscriptionWhereUniqueInput[] connect?: SubscriptionWhereUniqueInput | SubscriptionWhereUniqueInput[] update?: SubscriptionUpdateWithWhereUniqueWithoutOrganizationInput | SubscriptionUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: SubscriptionUpdateManyWithWhereWithoutOrganizationInput | SubscriptionUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: SubscriptionScalarWhereInput | SubscriptionScalarWhereInput[] } export type AuditEventUncheckedUpdateManyWithoutOrganizationNestedInput = { create?: XOR | AuditEventCreateWithoutOrganizationInput[] | AuditEventUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutOrganizationInput | AuditEventCreateOrConnectWithoutOrganizationInput[] upsert?: AuditEventUpsertWithWhereUniqueWithoutOrganizationInput | AuditEventUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: AuditEventCreateManyOrganizationInputEnvelope set?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] disconnect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] delete?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] update?: AuditEventUpdateWithWhereUniqueWithoutOrganizationInput | AuditEventUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: AuditEventUpdateManyWithWhereWithoutOrganizationInput | AuditEventUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: AuditEventScalarWhereInput | AuditEventScalarWhereInput[] } export type UsageEventUncheckedUpdateManyWithoutOrganizationNestedInput = { create?: XOR | UsageEventCreateWithoutOrganizationInput[] | UsageEventUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: UsageEventCreateOrConnectWithoutOrganizationInput | UsageEventCreateOrConnectWithoutOrganizationInput[] upsert?: UsageEventUpsertWithWhereUniqueWithoutOrganizationInput | UsageEventUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: UsageEventCreateManyOrganizationInputEnvelope set?: UsageEventWhereUniqueInput | UsageEventWhereUniqueInput[] disconnect?: UsageEventWhereUniqueInput | UsageEventWhereUniqueInput[] delete?: UsageEventWhereUniqueInput | UsageEventWhereUniqueInput[] connect?: UsageEventWhereUniqueInput | UsageEventWhereUniqueInput[] update?: UsageEventUpdateWithWhereUniqueWithoutOrganizationInput | UsageEventUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: UsageEventUpdateManyWithWhereWithoutOrganizationInput | UsageEventUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: UsageEventScalarWhereInput | UsageEventScalarWhereInput[] } export type InvitationUncheckedUpdateManyWithoutOrganizationNestedInput = { create?: XOR | InvitationCreateWithoutOrganizationInput[] | InvitationUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: InvitationCreateOrConnectWithoutOrganizationInput | InvitationCreateOrConnectWithoutOrganizationInput[] upsert?: InvitationUpsertWithWhereUniqueWithoutOrganizationInput | InvitationUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: InvitationCreateManyOrganizationInputEnvelope set?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] disconnect?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] delete?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] connect?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] update?: InvitationUpdateWithWhereUniqueWithoutOrganizationInput | InvitationUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: InvitationUpdateManyWithWhereWithoutOrganizationInput | InvitationUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: InvitationScalarWhereInput | InvitationScalarWhereInput[] } export type OAuthTokenUncheckedUpdateManyWithoutOrganizationNestedInput = { create?: XOR | OAuthTokenCreateWithoutOrganizationInput[] | OAuthTokenUncheckedCreateWithoutOrganizationInput[] connectOrCreate?: OAuthTokenCreateOrConnectWithoutOrganizationInput | OAuthTokenCreateOrConnectWithoutOrganizationInput[] upsert?: OAuthTokenUpsertWithWhereUniqueWithoutOrganizationInput | OAuthTokenUpsertWithWhereUniqueWithoutOrganizationInput[] createMany?: OAuthTokenCreateManyOrganizationInputEnvelope set?: OAuthTokenWhereUniqueInput | OAuthTokenWhereUniqueInput[] disconnect?: OAuthTokenWhereUniqueInput | OAuthTokenWhereUniqueInput[] delete?: OAuthTokenWhereUniqueInput | OAuthTokenWhereUniqueInput[] connect?: OAuthTokenWhereUniqueInput | OAuthTokenWhereUniqueInput[] update?: OAuthTokenUpdateWithWhereUniqueWithoutOrganizationInput | OAuthTokenUpdateWithWhereUniqueWithoutOrganizationInput[] updateMany?: OAuthTokenUpdateManyWithWhereWithoutOrganizationInput | OAuthTokenUpdateManyWithWhereWithoutOrganizationInput[] deleteMany?: OAuthTokenScalarWhereInput | OAuthTokenScalarWhereInput[] } export type OrganizationCreateNestedOneWithoutWorkspacesInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutWorkspacesInput connect?: OrganizationWhereUniqueInput } export type ProjectCreateNestedManyWithoutWorkspaceInput = { create?: XOR | ProjectCreateWithoutWorkspaceInput[] | ProjectUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: ProjectCreateOrConnectWithoutWorkspaceInput | ProjectCreateOrConnectWithoutWorkspaceInput[] createMany?: ProjectCreateManyWorkspaceInputEnvelope connect?: ProjectWhereUniqueInput | ProjectWhereUniqueInput[] } export type IntegrationCreateNestedManyWithoutWorkspaceInput = { create?: XOR | IntegrationCreateWithoutWorkspaceInput[] | IntegrationUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: IntegrationCreateOrConnectWithoutWorkspaceInput | IntegrationCreateOrConnectWithoutWorkspaceInput[] createMany?: IntegrationCreateManyWorkspaceInputEnvelope connect?: IntegrationWhereUniqueInput | IntegrationWhereUniqueInput[] } export type ReportExportCreateNestedManyWithoutWorkspaceInput = { create?: XOR | ReportExportCreateWithoutWorkspaceInput[] | ReportExportUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: ReportExportCreateOrConnectWithoutWorkspaceInput | ReportExportCreateOrConnectWithoutWorkspaceInput[] createMany?: ReportExportCreateManyWorkspaceInputEnvelope connect?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] } export type AuditEventCreateNestedManyWithoutWorkspaceInput = { create?: XOR | AuditEventCreateWithoutWorkspaceInput[] | AuditEventUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutWorkspaceInput | AuditEventCreateOrConnectWithoutWorkspaceInput[] createMany?: AuditEventCreateManyWorkspaceInputEnvelope connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] } export type ProjectUncheckedCreateNestedManyWithoutWorkspaceInput = { create?: XOR | ProjectCreateWithoutWorkspaceInput[] | ProjectUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: ProjectCreateOrConnectWithoutWorkspaceInput | ProjectCreateOrConnectWithoutWorkspaceInput[] createMany?: ProjectCreateManyWorkspaceInputEnvelope connect?: ProjectWhereUniqueInput | ProjectWhereUniqueInput[] } export type IntegrationUncheckedCreateNestedManyWithoutWorkspaceInput = { create?: XOR | IntegrationCreateWithoutWorkspaceInput[] | IntegrationUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: IntegrationCreateOrConnectWithoutWorkspaceInput | IntegrationCreateOrConnectWithoutWorkspaceInput[] createMany?: IntegrationCreateManyWorkspaceInputEnvelope connect?: IntegrationWhereUniqueInput | IntegrationWhereUniqueInput[] } export type ReportExportUncheckedCreateNestedManyWithoutWorkspaceInput = { create?: XOR | ReportExportCreateWithoutWorkspaceInput[] | ReportExportUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: ReportExportCreateOrConnectWithoutWorkspaceInput | ReportExportCreateOrConnectWithoutWorkspaceInput[] createMany?: ReportExportCreateManyWorkspaceInputEnvelope connect?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] } export type AuditEventUncheckedCreateNestedManyWithoutWorkspaceInput = { create?: XOR | AuditEventCreateWithoutWorkspaceInput[] | AuditEventUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutWorkspaceInput | AuditEventCreateOrConnectWithoutWorkspaceInput[] createMany?: AuditEventCreateManyWorkspaceInputEnvelope connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] } export type EnumWorkspaceTypeFieldUpdateOperationsInput = { set?: $Enums.WorkspaceType } export type OrganizationUpdateOneRequiredWithoutWorkspacesNestedInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutWorkspacesInput upsert?: OrganizationUpsertWithoutWorkspacesInput connect?: OrganizationWhereUniqueInput update?: XOR, OrganizationUncheckedUpdateWithoutWorkspacesInput> } export type ProjectUpdateManyWithoutWorkspaceNestedInput = { create?: XOR | ProjectCreateWithoutWorkspaceInput[] | ProjectUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: ProjectCreateOrConnectWithoutWorkspaceInput | ProjectCreateOrConnectWithoutWorkspaceInput[] upsert?: ProjectUpsertWithWhereUniqueWithoutWorkspaceInput | ProjectUpsertWithWhereUniqueWithoutWorkspaceInput[] createMany?: ProjectCreateManyWorkspaceInputEnvelope set?: ProjectWhereUniqueInput | ProjectWhereUniqueInput[] disconnect?: ProjectWhereUniqueInput | ProjectWhereUniqueInput[] delete?: ProjectWhereUniqueInput | ProjectWhereUniqueInput[] connect?: ProjectWhereUniqueInput | ProjectWhereUniqueInput[] update?: ProjectUpdateWithWhereUniqueWithoutWorkspaceInput | ProjectUpdateWithWhereUniqueWithoutWorkspaceInput[] updateMany?: ProjectUpdateManyWithWhereWithoutWorkspaceInput | ProjectUpdateManyWithWhereWithoutWorkspaceInput[] deleteMany?: ProjectScalarWhereInput | ProjectScalarWhereInput[] } export type IntegrationUpdateManyWithoutWorkspaceNestedInput = { create?: XOR | IntegrationCreateWithoutWorkspaceInput[] | IntegrationUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: IntegrationCreateOrConnectWithoutWorkspaceInput | IntegrationCreateOrConnectWithoutWorkspaceInput[] upsert?: IntegrationUpsertWithWhereUniqueWithoutWorkspaceInput | IntegrationUpsertWithWhereUniqueWithoutWorkspaceInput[] createMany?: IntegrationCreateManyWorkspaceInputEnvelope set?: IntegrationWhereUniqueInput | IntegrationWhereUniqueInput[] disconnect?: IntegrationWhereUniqueInput | IntegrationWhereUniqueInput[] delete?: IntegrationWhereUniqueInput | IntegrationWhereUniqueInput[] connect?: IntegrationWhereUniqueInput | IntegrationWhereUniqueInput[] update?: IntegrationUpdateWithWhereUniqueWithoutWorkspaceInput | IntegrationUpdateWithWhereUniqueWithoutWorkspaceInput[] updateMany?: IntegrationUpdateManyWithWhereWithoutWorkspaceInput | IntegrationUpdateManyWithWhereWithoutWorkspaceInput[] deleteMany?: IntegrationScalarWhereInput | IntegrationScalarWhereInput[] } export type ReportExportUpdateManyWithoutWorkspaceNestedInput = { create?: XOR | ReportExportCreateWithoutWorkspaceInput[] | ReportExportUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: ReportExportCreateOrConnectWithoutWorkspaceInput | ReportExportCreateOrConnectWithoutWorkspaceInput[] upsert?: ReportExportUpsertWithWhereUniqueWithoutWorkspaceInput | ReportExportUpsertWithWhereUniqueWithoutWorkspaceInput[] createMany?: ReportExportCreateManyWorkspaceInputEnvelope set?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] disconnect?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] delete?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] connect?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] update?: ReportExportUpdateWithWhereUniqueWithoutWorkspaceInput | ReportExportUpdateWithWhereUniqueWithoutWorkspaceInput[] updateMany?: ReportExportUpdateManyWithWhereWithoutWorkspaceInput | ReportExportUpdateManyWithWhereWithoutWorkspaceInput[] deleteMany?: ReportExportScalarWhereInput | ReportExportScalarWhereInput[] } export type AuditEventUpdateManyWithoutWorkspaceNestedInput = { create?: XOR | AuditEventCreateWithoutWorkspaceInput[] | AuditEventUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutWorkspaceInput | AuditEventCreateOrConnectWithoutWorkspaceInput[] upsert?: AuditEventUpsertWithWhereUniqueWithoutWorkspaceInput | AuditEventUpsertWithWhereUniqueWithoutWorkspaceInput[] createMany?: AuditEventCreateManyWorkspaceInputEnvelope set?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] disconnect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] delete?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] update?: AuditEventUpdateWithWhereUniqueWithoutWorkspaceInput | AuditEventUpdateWithWhereUniqueWithoutWorkspaceInput[] updateMany?: AuditEventUpdateManyWithWhereWithoutWorkspaceInput | AuditEventUpdateManyWithWhereWithoutWorkspaceInput[] deleteMany?: AuditEventScalarWhereInput | AuditEventScalarWhereInput[] } export type ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput = { create?: XOR | ProjectCreateWithoutWorkspaceInput[] | ProjectUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: ProjectCreateOrConnectWithoutWorkspaceInput | ProjectCreateOrConnectWithoutWorkspaceInput[] upsert?: ProjectUpsertWithWhereUniqueWithoutWorkspaceInput | ProjectUpsertWithWhereUniqueWithoutWorkspaceInput[] createMany?: ProjectCreateManyWorkspaceInputEnvelope set?: ProjectWhereUniqueInput | ProjectWhereUniqueInput[] disconnect?: ProjectWhereUniqueInput | ProjectWhereUniqueInput[] delete?: ProjectWhereUniqueInput | ProjectWhereUniqueInput[] connect?: ProjectWhereUniqueInput | ProjectWhereUniqueInput[] update?: ProjectUpdateWithWhereUniqueWithoutWorkspaceInput | ProjectUpdateWithWhereUniqueWithoutWorkspaceInput[] updateMany?: ProjectUpdateManyWithWhereWithoutWorkspaceInput | ProjectUpdateManyWithWhereWithoutWorkspaceInput[] deleteMany?: ProjectScalarWhereInput | ProjectScalarWhereInput[] } export type IntegrationUncheckedUpdateManyWithoutWorkspaceNestedInput = { create?: XOR | IntegrationCreateWithoutWorkspaceInput[] | IntegrationUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: IntegrationCreateOrConnectWithoutWorkspaceInput | IntegrationCreateOrConnectWithoutWorkspaceInput[] upsert?: IntegrationUpsertWithWhereUniqueWithoutWorkspaceInput | IntegrationUpsertWithWhereUniqueWithoutWorkspaceInput[] createMany?: IntegrationCreateManyWorkspaceInputEnvelope set?: IntegrationWhereUniqueInput | IntegrationWhereUniqueInput[] disconnect?: IntegrationWhereUniqueInput | IntegrationWhereUniqueInput[] delete?: IntegrationWhereUniqueInput | IntegrationWhereUniqueInput[] connect?: IntegrationWhereUniqueInput | IntegrationWhereUniqueInput[] update?: IntegrationUpdateWithWhereUniqueWithoutWorkspaceInput | IntegrationUpdateWithWhereUniqueWithoutWorkspaceInput[] updateMany?: IntegrationUpdateManyWithWhereWithoutWorkspaceInput | IntegrationUpdateManyWithWhereWithoutWorkspaceInput[] deleteMany?: IntegrationScalarWhereInput | IntegrationScalarWhereInput[] } export type ReportExportUncheckedUpdateManyWithoutWorkspaceNestedInput = { create?: XOR | ReportExportCreateWithoutWorkspaceInput[] | ReportExportUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: ReportExportCreateOrConnectWithoutWorkspaceInput | ReportExportCreateOrConnectWithoutWorkspaceInput[] upsert?: ReportExportUpsertWithWhereUniqueWithoutWorkspaceInput | ReportExportUpsertWithWhereUniqueWithoutWorkspaceInput[] createMany?: ReportExportCreateManyWorkspaceInputEnvelope set?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] disconnect?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] delete?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] connect?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] update?: ReportExportUpdateWithWhereUniqueWithoutWorkspaceInput | ReportExportUpdateWithWhereUniqueWithoutWorkspaceInput[] updateMany?: ReportExportUpdateManyWithWhereWithoutWorkspaceInput | ReportExportUpdateManyWithWhereWithoutWorkspaceInput[] deleteMany?: ReportExportScalarWhereInput | ReportExportScalarWhereInput[] } export type AuditEventUncheckedUpdateManyWithoutWorkspaceNestedInput = { create?: XOR | AuditEventCreateWithoutWorkspaceInput[] | AuditEventUncheckedCreateWithoutWorkspaceInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutWorkspaceInput | AuditEventCreateOrConnectWithoutWorkspaceInput[] upsert?: AuditEventUpsertWithWhereUniqueWithoutWorkspaceInput | AuditEventUpsertWithWhereUniqueWithoutWorkspaceInput[] createMany?: AuditEventCreateManyWorkspaceInputEnvelope set?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] disconnect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] delete?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] update?: AuditEventUpdateWithWhereUniqueWithoutWorkspaceInput | AuditEventUpdateWithWhereUniqueWithoutWorkspaceInput[] updateMany?: AuditEventUpdateManyWithWhereWithoutWorkspaceInput | AuditEventUpdateManyWithWhereWithoutWorkspaceInput[] deleteMany?: AuditEventScalarWhereInput | AuditEventScalarWhereInput[] } export type MembershipCreateNestedManyWithoutUserInput = { create?: XOR | MembershipCreateWithoutUserInput[] | MembershipUncheckedCreateWithoutUserInput[] connectOrCreate?: MembershipCreateOrConnectWithoutUserInput | MembershipCreateOrConnectWithoutUserInput[] createMany?: MembershipCreateManyUserInputEnvelope connect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] } export type InvitationCreateNestedManyWithoutInvitedByInput = { create?: XOR | InvitationCreateWithoutInvitedByInput[] | InvitationUncheckedCreateWithoutInvitedByInput[] connectOrCreate?: InvitationCreateOrConnectWithoutInvitedByInput | InvitationCreateOrConnectWithoutInvitedByInput[] createMany?: InvitationCreateManyInvitedByInputEnvelope connect?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] } export type AuditEventCreateNestedManyWithoutActorInput = { create?: XOR | AuditEventCreateWithoutActorInput[] | AuditEventUncheckedCreateWithoutActorInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutActorInput | AuditEventCreateOrConnectWithoutActorInput[] createMany?: AuditEventCreateManyActorInputEnvelope connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] } export type SessionCreateNestedManyWithoutUserInput = { create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] createMany?: SessionCreateManyUserInputEnvelope connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] } export type MembershipUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | MembershipCreateWithoutUserInput[] | MembershipUncheckedCreateWithoutUserInput[] connectOrCreate?: MembershipCreateOrConnectWithoutUserInput | MembershipCreateOrConnectWithoutUserInput[] createMany?: MembershipCreateManyUserInputEnvelope connect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] } export type InvitationUncheckedCreateNestedManyWithoutInvitedByInput = { create?: XOR | InvitationCreateWithoutInvitedByInput[] | InvitationUncheckedCreateWithoutInvitedByInput[] connectOrCreate?: InvitationCreateOrConnectWithoutInvitedByInput | InvitationCreateOrConnectWithoutInvitedByInput[] createMany?: InvitationCreateManyInvitedByInputEnvelope connect?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] } export type AuditEventUncheckedCreateNestedManyWithoutActorInput = { create?: XOR | AuditEventCreateWithoutActorInput[] | AuditEventUncheckedCreateWithoutActorInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutActorInput | AuditEventCreateOrConnectWithoutActorInput[] createMany?: AuditEventCreateManyActorInputEnvelope connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] } export type SessionUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] createMany?: SessionCreateManyUserInputEnvelope connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type MembershipUpdateManyWithoutUserNestedInput = { create?: XOR | MembershipCreateWithoutUserInput[] | MembershipUncheckedCreateWithoutUserInput[] connectOrCreate?: MembershipCreateOrConnectWithoutUserInput | MembershipCreateOrConnectWithoutUserInput[] upsert?: MembershipUpsertWithWhereUniqueWithoutUserInput | MembershipUpsertWithWhereUniqueWithoutUserInput[] createMany?: MembershipCreateManyUserInputEnvelope set?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] disconnect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] delete?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] connect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] update?: MembershipUpdateWithWhereUniqueWithoutUserInput | MembershipUpdateWithWhereUniqueWithoutUserInput[] updateMany?: MembershipUpdateManyWithWhereWithoutUserInput | MembershipUpdateManyWithWhereWithoutUserInput[] deleteMany?: MembershipScalarWhereInput | MembershipScalarWhereInput[] } export type InvitationUpdateManyWithoutInvitedByNestedInput = { create?: XOR | InvitationCreateWithoutInvitedByInput[] | InvitationUncheckedCreateWithoutInvitedByInput[] connectOrCreate?: InvitationCreateOrConnectWithoutInvitedByInput | InvitationCreateOrConnectWithoutInvitedByInput[] upsert?: InvitationUpsertWithWhereUniqueWithoutInvitedByInput | InvitationUpsertWithWhereUniqueWithoutInvitedByInput[] createMany?: InvitationCreateManyInvitedByInputEnvelope set?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] disconnect?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] delete?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] connect?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] update?: InvitationUpdateWithWhereUniqueWithoutInvitedByInput | InvitationUpdateWithWhereUniqueWithoutInvitedByInput[] updateMany?: InvitationUpdateManyWithWhereWithoutInvitedByInput | InvitationUpdateManyWithWhereWithoutInvitedByInput[] deleteMany?: InvitationScalarWhereInput | InvitationScalarWhereInput[] } export type AuditEventUpdateManyWithoutActorNestedInput = { create?: XOR | AuditEventCreateWithoutActorInput[] | AuditEventUncheckedCreateWithoutActorInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutActorInput | AuditEventCreateOrConnectWithoutActorInput[] upsert?: AuditEventUpsertWithWhereUniqueWithoutActorInput | AuditEventUpsertWithWhereUniqueWithoutActorInput[] createMany?: AuditEventCreateManyActorInputEnvelope set?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] disconnect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] delete?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] update?: AuditEventUpdateWithWhereUniqueWithoutActorInput | AuditEventUpdateWithWhereUniqueWithoutActorInput[] updateMany?: AuditEventUpdateManyWithWhereWithoutActorInput | AuditEventUpdateManyWithWhereWithoutActorInput[] deleteMany?: AuditEventScalarWhereInput | AuditEventScalarWhereInput[] } export type SessionUpdateManyWithoutUserNestedInput = { create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: SessionCreateManyUserInputEnvelope set?: SessionWhereUniqueInput | SessionWhereUniqueInput[] disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[] connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[] } export type MembershipUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | MembershipCreateWithoutUserInput[] | MembershipUncheckedCreateWithoutUserInput[] connectOrCreate?: MembershipCreateOrConnectWithoutUserInput | MembershipCreateOrConnectWithoutUserInput[] upsert?: MembershipUpsertWithWhereUniqueWithoutUserInput | MembershipUpsertWithWhereUniqueWithoutUserInput[] createMany?: MembershipCreateManyUserInputEnvelope set?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] disconnect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] delete?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] connect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] update?: MembershipUpdateWithWhereUniqueWithoutUserInput | MembershipUpdateWithWhereUniqueWithoutUserInput[] updateMany?: MembershipUpdateManyWithWhereWithoutUserInput | MembershipUpdateManyWithWhereWithoutUserInput[] deleteMany?: MembershipScalarWhereInput | MembershipScalarWhereInput[] } export type InvitationUncheckedUpdateManyWithoutInvitedByNestedInput = { create?: XOR | InvitationCreateWithoutInvitedByInput[] | InvitationUncheckedCreateWithoutInvitedByInput[] connectOrCreate?: InvitationCreateOrConnectWithoutInvitedByInput | InvitationCreateOrConnectWithoutInvitedByInput[] upsert?: InvitationUpsertWithWhereUniqueWithoutInvitedByInput | InvitationUpsertWithWhereUniqueWithoutInvitedByInput[] createMany?: InvitationCreateManyInvitedByInputEnvelope set?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] disconnect?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] delete?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] connect?: InvitationWhereUniqueInput | InvitationWhereUniqueInput[] update?: InvitationUpdateWithWhereUniqueWithoutInvitedByInput | InvitationUpdateWithWhereUniqueWithoutInvitedByInput[] updateMany?: InvitationUpdateManyWithWhereWithoutInvitedByInput | InvitationUpdateManyWithWhereWithoutInvitedByInput[] deleteMany?: InvitationScalarWhereInput | InvitationScalarWhereInput[] } export type AuditEventUncheckedUpdateManyWithoutActorNestedInput = { create?: XOR | AuditEventCreateWithoutActorInput[] | AuditEventUncheckedCreateWithoutActorInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutActorInput | AuditEventCreateOrConnectWithoutActorInput[] upsert?: AuditEventUpsertWithWhereUniqueWithoutActorInput | AuditEventUpsertWithWhereUniqueWithoutActorInput[] createMany?: AuditEventCreateManyActorInputEnvelope set?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] disconnect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] delete?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] update?: AuditEventUpdateWithWhereUniqueWithoutActorInput | AuditEventUpdateWithWhereUniqueWithoutActorInput[] updateMany?: AuditEventUpdateManyWithWhereWithoutActorInput | AuditEventUpdateManyWithWhereWithoutActorInput[] deleteMany?: AuditEventScalarWhereInput | AuditEventScalarWhereInput[] } export type SessionUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: SessionCreateManyUserInputEnvelope set?: SessionWhereUniqueInput | SessionWhereUniqueInput[] disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[] connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[] } export type UserCreateNestedOneWithoutSessionsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutSessionsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutSessionsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutSessionsInput upsert?: UserUpsertWithoutSessionsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutSessionsInput> } export type RoleCreatepermissionsInput = { set: string[] } export type MembershipCreateNestedManyWithoutRoleInput = { create?: XOR | MembershipCreateWithoutRoleInput[] | MembershipUncheckedCreateWithoutRoleInput[] connectOrCreate?: MembershipCreateOrConnectWithoutRoleInput | MembershipCreateOrConnectWithoutRoleInput[] createMany?: MembershipCreateManyRoleInputEnvelope connect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] } export type MembershipUncheckedCreateNestedManyWithoutRoleInput = { create?: XOR | MembershipCreateWithoutRoleInput[] | MembershipUncheckedCreateWithoutRoleInput[] connectOrCreate?: MembershipCreateOrConnectWithoutRoleInput | MembershipCreateOrConnectWithoutRoleInput[] createMany?: MembershipCreateManyRoleInputEnvelope connect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] } export type RoleUpdatepermissionsInput = { set?: string[] push?: string | string[] } export type MembershipUpdateManyWithoutRoleNestedInput = { create?: XOR | MembershipCreateWithoutRoleInput[] | MembershipUncheckedCreateWithoutRoleInput[] connectOrCreate?: MembershipCreateOrConnectWithoutRoleInput | MembershipCreateOrConnectWithoutRoleInput[] upsert?: MembershipUpsertWithWhereUniqueWithoutRoleInput | MembershipUpsertWithWhereUniqueWithoutRoleInput[] createMany?: MembershipCreateManyRoleInputEnvelope set?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] disconnect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] delete?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] connect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] update?: MembershipUpdateWithWhereUniqueWithoutRoleInput | MembershipUpdateWithWhereUniqueWithoutRoleInput[] updateMany?: MembershipUpdateManyWithWhereWithoutRoleInput | MembershipUpdateManyWithWhereWithoutRoleInput[] deleteMany?: MembershipScalarWhereInput | MembershipScalarWhereInput[] } export type MembershipUncheckedUpdateManyWithoutRoleNestedInput = { create?: XOR | MembershipCreateWithoutRoleInput[] | MembershipUncheckedCreateWithoutRoleInput[] connectOrCreate?: MembershipCreateOrConnectWithoutRoleInput | MembershipCreateOrConnectWithoutRoleInput[] upsert?: MembershipUpsertWithWhereUniqueWithoutRoleInput | MembershipUpsertWithWhereUniqueWithoutRoleInput[] createMany?: MembershipCreateManyRoleInputEnvelope set?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] disconnect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] delete?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] connect?: MembershipWhereUniqueInput | MembershipWhereUniqueInput[] update?: MembershipUpdateWithWhereUniqueWithoutRoleInput | MembershipUpdateWithWhereUniqueWithoutRoleInput[] updateMany?: MembershipUpdateManyWithWhereWithoutRoleInput | MembershipUpdateManyWithWhereWithoutRoleInput[] deleteMany?: MembershipScalarWhereInput | MembershipScalarWhereInput[] } export type MembershipCreateworkspaceScopeInput = { set: string[] } export type OrganizationCreateNestedOneWithoutMembershipsInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutMembershipsInput connect?: OrganizationWhereUniqueInput } export type UserCreateNestedOneWithoutMembershipsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutMembershipsInput connect?: UserWhereUniqueInput } export type RoleCreateNestedOneWithoutMembershipsInput = { create?: XOR connectOrCreate?: RoleCreateOrConnectWithoutMembershipsInput connect?: RoleWhereUniqueInput } export type EnumMembershipStatusFieldUpdateOperationsInput = { set?: $Enums.MembershipStatus } export type MembershipUpdateworkspaceScopeInput = { set?: string[] push?: string | string[] } export type OrganizationUpdateOneRequiredWithoutMembershipsNestedInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutMembershipsInput upsert?: OrganizationUpsertWithoutMembershipsInput connect?: OrganizationWhereUniqueInput update?: XOR, OrganizationUncheckedUpdateWithoutMembershipsInput> } export type UserUpdateOneRequiredWithoutMembershipsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutMembershipsInput upsert?: UserUpsertWithoutMembershipsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutMembershipsInput> } export type RoleUpdateOneRequiredWithoutMembershipsNestedInput = { create?: XOR connectOrCreate?: RoleCreateOrConnectWithoutMembershipsInput upsert?: RoleUpsertWithoutMembershipsInput connect?: RoleWhereUniqueInput update?: XOR, RoleUncheckedUpdateWithoutMembershipsInput> } export type OrganizationCreateNestedOneWithoutInvitationsInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutInvitationsInput connect?: OrganizationWhereUniqueInput } export type UserCreateNestedOneWithoutInvitationsSentInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutInvitationsSentInput connect?: UserWhereUniqueInput } export type OrganizationUpdateOneRequiredWithoutInvitationsNestedInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutInvitationsInput upsert?: OrganizationUpsertWithoutInvitationsInput connect?: OrganizationWhereUniqueInput update?: XOR, OrganizationUncheckedUpdateWithoutInvitationsInput> } export type UserUpdateOneWithoutInvitationsSentNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutInvitationsSentInput upsert?: UserUpsertWithoutInvitationsSentInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutInvitationsSentInput> } export type OrganizationCreateNestedOneWithoutSubscriptionsInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutSubscriptionsInput connect?: OrganizationWhereUniqueInput } export type EnumSubscriptionSourceFieldUpdateOperationsInput = { set?: $Enums.SubscriptionSource } export type EnumSubscriptionStatusFieldUpdateOperationsInput = { set?: $Enums.SubscriptionStatus } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type OrganizationUpdateOneRequiredWithoutSubscriptionsNestedInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutSubscriptionsInput upsert?: OrganizationUpsertWithoutSubscriptionsInput connect?: OrganizationWhereUniqueInput update?: XOR, OrganizationUncheckedUpdateWithoutSubscriptionsInput> } export type WorkspaceCreateNestedOneWithoutProjectsInput = { create?: XOR connectOrCreate?: WorkspaceCreateOrConnectWithoutProjectsInput connect?: WorkspaceWhereUniqueInput } export type LifecyclePhaseCreateNestedManyWithoutProjectInput = { create?: XOR | LifecyclePhaseCreateWithoutProjectInput[] | LifecyclePhaseUncheckedCreateWithoutProjectInput[] connectOrCreate?: LifecyclePhaseCreateOrConnectWithoutProjectInput | LifecyclePhaseCreateOrConnectWithoutProjectInput[] createMany?: LifecyclePhaseCreateManyProjectInputEnvelope connect?: LifecyclePhaseWhereUniqueInput | LifecyclePhaseWhereUniqueInput[] } export type RiskCreateNestedManyWithoutProjectInput = { create?: XOR | RiskCreateWithoutProjectInput[] | RiskUncheckedCreateWithoutProjectInput[] connectOrCreate?: RiskCreateOrConnectWithoutProjectInput | RiskCreateOrConnectWithoutProjectInput[] createMany?: RiskCreateManyProjectInputEnvelope connect?: RiskWhereUniqueInput | RiskWhereUniqueInput[] } export type IndicatorCreateNestedManyWithoutProjectInput = { create?: XOR | IndicatorCreateWithoutProjectInput[] | IndicatorUncheckedCreateWithoutProjectInput[] connectOrCreate?: IndicatorCreateOrConnectWithoutProjectInput | IndicatorCreateOrConnectWithoutProjectInput[] createMany?: IndicatorCreateManyProjectInputEnvelope connect?: IndicatorWhereUniqueInput | IndicatorWhereUniqueInput[] } export type ExperimentCreateNestedManyWithoutProjectInput = { create?: XOR | ExperimentCreateWithoutProjectInput[] | ExperimentUncheckedCreateWithoutProjectInput[] connectOrCreate?: ExperimentCreateOrConnectWithoutProjectInput | ExperimentCreateOrConnectWithoutProjectInput[] createMany?: ExperimentCreateManyProjectInputEnvelope connect?: ExperimentWhereUniqueInput | ExperimentWhereUniqueInput[] } export type GateEvaluationCreateNestedManyWithoutProjectInput = { create?: XOR | GateEvaluationCreateWithoutProjectInput[] | GateEvaluationUncheckedCreateWithoutProjectInput[] connectOrCreate?: GateEvaluationCreateOrConnectWithoutProjectInput | GateEvaluationCreateOrConnectWithoutProjectInput[] createMany?: GateEvaluationCreateManyProjectInputEnvelope connect?: GateEvaluationWhereUniqueInput | GateEvaluationWhereUniqueInput[] } export type AuditEventCreateNestedManyWithoutProjectInput = { create?: XOR | AuditEventCreateWithoutProjectInput[] | AuditEventUncheckedCreateWithoutProjectInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutProjectInput | AuditEventCreateOrConnectWithoutProjectInput[] createMany?: AuditEventCreateManyProjectInputEnvelope connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] } export type ReportExportCreateNestedManyWithoutProjectInput = { create?: XOR | ReportExportCreateWithoutProjectInput[] | ReportExportUncheckedCreateWithoutProjectInput[] connectOrCreate?: ReportExportCreateOrConnectWithoutProjectInput | ReportExportCreateOrConnectWithoutProjectInput[] createMany?: ReportExportCreateManyProjectInputEnvelope connect?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] } export type LifecyclePhaseUncheckedCreateNestedManyWithoutProjectInput = { create?: XOR | LifecyclePhaseCreateWithoutProjectInput[] | LifecyclePhaseUncheckedCreateWithoutProjectInput[] connectOrCreate?: LifecyclePhaseCreateOrConnectWithoutProjectInput | LifecyclePhaseCreateOrConnectWithoutProjectInput[] createMany?: LifecyclePhaseCreateManyProjectInputEnvelope connect?: LifecyclePhaseWhereUniqueInput | LifecyclePhaseWhereUniqueInput[] } export type RiskUncheckedCreateNestedManyWithoutProjectInput = { create?: XOR | RiskCreateWithoutProjectInput[] | RiskUncheckedCreateWithoutProjectInput[] connectOrCreate?: RiskCreateOrConnectWithoutProjectInput | RiskCreateOrConnectWithoutProjectInput[] createMany?: RiskCreateManyProjectInputEnvelope connect?: RiskWhereUniqueInput | RiskWhereUniqueInput[] } export type IndicatorUncheckedCreateNestedManyWithoutProjectInput = { create?: XOR | IndicatorCreateWithoutProjectInput[] | IndicatorUncheckedCreateWithoutProjectInput[] connectOrCreate?: IndicatorCreateOrConnectWithoutProjectInput | IndicatorCreateOrConnectWithoutProjectInput[] createMany?: IndicatorCreateManyProjectInputEnvelope connect?: IndicatorWhereUniqueInput | IndicatorWhereUniqueInput[] } export type ExperimentUncheckedCreateNestedManyWithoutProjectInput = { create?: XOR | ExperimentCreateWithoutProjectInput[] | ExperimentUncheckedCreateWithoutProjectInput[] connectOrCreate?: ExperimentCreateOrConnectWithoutProjectInput | ExperimentCreateOrConnectWithoutProjectInput[] createMany?: ExperimentCreateManyProjectInputEnvelope connect?: ExperimentWhereUniqueInput | ExperimentWhereUniqueInput[] } export type GateEvaluationUncheckedCreateNestedManyWithoutProjectInput = { create?: XOR | GateEvaluationCreateWithoutProjectInput[] | GateEvaluationUncheckedCreateWithoutProjectInput[] connectOrCreate?: GateEvaluationCreateOrConnectWithoutProjectInput | GateEvaluationCreateOrConnectWithoutProjectInput[] createMany?: GateEvaluationCreateManyProjectInputEnvelope connect?: GateEvaluationWhereUniqueInput | GateEvaluationWhereUniqueInput[] } export type AuditEventUncheckedCreateNestedManyWithoutProjectInput = { create?: XOR | AuditEventCreateWithoutProjectInput[] | AuditEventUncheckedCreateWithoutProjectInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutProjectInput | AuditEventCreateOrConnectWithoutProjectInput[] createMany?: AuditEventCreateManyProjectInputEnvelope connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] } export type ReportExportUncheckedCreateNestedManyWithoutProjectInput = { create?: XOR | ReportExportCreateWithoutProjectInput[] | ReportExportUncheckedCreateWithoutProjectInput[] connectOrCreate?: ReportExportCreateOrConnectWithoutProjectInput | ReportExportCreateOrConnectWithoutProjectInput[] createMany?: ReportExportCreateManyProjectInputEnvelope connect?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] } export type WorkspaceUpdateOneRequiredWithoutProjectsNestedInput = { create?: XOR connectOrCreate?: WorkspaceCreateOrConnectWithoutProjectsInput upsert?: WorkspaceUpsertWithoutProjectsInput connect?: WorkspaceWhereUniqueInput update?: XOR, WorkspaceUncheckedUpdateWithoutProjectsInput> } export type LifecyclePhaseUpdateManyWithoutProjectNestedInput = { create?: XOR | LifecyclePhaseCreateWithoutProjectInput[] | LifecyclePhaseUncheckedCreateWithoutProjectInput[] connectOrCreate?: LifecyclePhaseCreateOrConnectWithoutProjectInput | LifecyclePhaseCreateOrConnectWithoutProjectInput[] upsert?: LifecyclePhaseUpsertWithWhereUniqueWithoutProjectInput | LifecyclePhaseUpsertWithWhereUniqueWithoutProjectInput[] createMany?: LifecyclePhaseCreateManyProjectInputEnvelope set?: LifecyclePhaseWhereUniqueInput | LifecyclePhaseWhereUniqueInput[] disconnect?: LifecyclePhaseWhereUniqueInput | LifecyclePhaseWhereUniqueInput[] delete?: LifecyclePhaseWhereUniqueInput | LifecyclePhaseWhereUniqueInput[] connect?: LifecyclePhaseWhereUniqueInput | LifecyclePhaseWhereUniqueInput[] update?: LifecyclePhaseUpdateWithWhereUniqueWithoutProjectInput | LifecyclePhaseUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: LifecyclePhaseUpdateManyWithWhereWithoutProjectInput | LifecyclePhaseUpdateManyWithWhereWithoutProjectInput[] deleteMany?: LifecyclePhaseScalarWhereInput | LifecyclePhaseScalarWhereInput[] } export type RiskUpdateManyWithoutProjectNestedInput = { create?: XOR | RiskCreateWithoutProjectInput[] | RiskUncheckedCreateWithoutProjectInput[] connectOrCreate?: RiskCreateOrConnectWithoutProjectInput | RiskCreateOrConnectWithoutProjectInput[] upsert?: RiskUpsertWithWhereUniqueWithoutProjectInput | RiskUpsertWithWhereUniqueWithoutProjectInput[] createMany?: RiskCreateManyProjectInputEnvelope set?: RiskWhereUniqueInput | RiskWhereUniqueInput[] disconnect?: RiskWhereUniqueInput | RiskWhereUniqueInput[] delete?: RiskWhereUniqueInput | RiskWhereUniqueInput[] connect?: RiskWhereUniqueInput | RiskWhereUniqueInput[] update?: RiskUpdateWithWhereUniqueWithoutProjectInput | RiskUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: RiskUpdateManyWithWhereWithoutProjectInput | RiskUpdateManyWithWhereWithoutProjectInput[] deleteMany?: RiskScalarWhereInput | RiskScalarWhereInput[] } export type IndicatorUpdateManyWithoutProjectNestedInput = { create?: XOR | IndicatorCreateWithoutProjectInput[] | IndicatorUncheckedCreateWithoutProjectInput[] connectOrCreate?: IndicatorCreateOrConnectWithoutProjectInput | IndicatorCreateOrConnectWithoutProjectInput[] upsert?: IndicatorUpsertWithWhereUniqueWithoutProjectInput | IndicatorUpsertWithWhereUniqueWithoutProjectInput[] createMany?: IndicatorCreateManyProjectInputEnvelope set?: IndicatorWhereUniqueInput | IndicatorWhereUniqueInput[] disconnect?: IndicatorWhereUniqueInput | IndicatorWhereUniqueInput[] delete?: IndicatorWhereUniqueInput | IndicatorWhereUniqueInput[] connect?: IndicatorWhereUniqueInput | IndicatorWhereUniqueInput[] update?: IndicatorUpdateWithWhereUniqueWithoutProjectInput | IndicatorUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: IndicatorUpdateManyWithWhereWithoutProjectInput | IndicatorUpdateManyWithWhereWithoutProjectInput[] deleteMany?: IndicatorScalarWhereInput | IndicatorScalarWhereInput[] } export type ExperimentUpdateManyWithoutProjectNestedInput = { create?: XOR | ExperimentCreateWithoutProjectInput[] | ExperimentUncheckedCreateWithoutProjectInput[] connectOrCreate?: ExperimentCreateOrConnectWithoutProjectInput | ExperimentCreateOrConnectWithoutProjectInput[] upsert?: ExperimentUpsertWithWhereUniqueWithoutProjectInput | ExperimentUpsertWithWhereUniqueWithoutProjectInput[] createMany?: ExperimentCreateManyProjectInputEnvelope set?: ExperimentWhereUniqueInput | ExperimentWhereUniqueInput[] disconnect?: ExperimentWhereUniqueInput | ExperimentWhereUniqueInput[] delete?: ExperimentWhereUniqueInput | ExperimentWhereUniqueInput[] connect?: ExperimentWhereUniqueInput | ExperimentWhereUniqueInput[] update?: ExperimentUpdateWithWhereUniqueWithoutProjectInput | ExperimentUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: ExperimentUpdateManyWithWhereWithoutProjectInput | ExperimentUpdateManyWithWhereWithoutProjectInput[] deleteMany?: ExperimentScalarWhereInput | ExperimentScalarWhereInput[] } export type GateEvaluationUpdateManyWithoutProjectNestedInput = { create?: XOR | GateEvaluationCreateWithoutProjectInput[] | GateEvaluationUncheckedCreateWithoutProjectInput[] connectOrCreate?: GateEvaluationCreateOrConnectWithoutProjectInput | GateEvaluationCreateOrConnectWithoutProjectInput[] upsert?: GateEvaluationUpsertWithWhereUniqueWithoutProjectInput | GateEvaluationUpsertWithWhereUniqueWithoutProjectInput[] createMany?: GateEvaluationCreateManyProjectInputEnvelope set?: GateEvaluationWhereUniqueInput | GateEvaluationWhereUniqueInput[] disconnect?: GateEvaluationWhereUniqueInput | GateEvaluationWhereUniqueInput[] delete?: GateEvaluationWhereUniqueInput | GateEvaluationWhereUniqueInput[] connect?: GateEvaluationWhereUniqueInput | GateEvaluationWhereUniqueInput[] update?: GateEvaluationUpdateWithWhereUniqueWithoutProjectInput | GateEvaluationUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: GateEvaluationUpdateManyWithWhereWithoutProjectInput | GateEvaluationUpdateManyWithWhereWithoutProjectInput[] deleteMany?: GateEvaluationScalarWhereInput | GateEvaluationScalarWhereInput[] } export type AuditEventUpdateManyWithoutProjectNestedInput = { create?: XOR | AuditEventCreateWithoutProjectInput[] | AuditEventUncheckedCreateWithoutProjectInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutProjectInput | AuditEventCreateOrConnectWithoutProjectInput[] upsert?: AuditEventUpsertWithWhereUniqueWithoutProjectInput | AuditEventUpsertWithWhereUniqueWithoutProjectInput[] createMany?: AuditEventCreateManyProjectInputEnvelope set?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] disconnect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] delete?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] update?: AuditEventUpdateWithWhereUniqueWithoutProjectInput | AuditEventUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: AuditEventUpdateManyWithWhereWithoutProjectInput | AuditEventUpdateManyWithWhereWithoutProjectInput[] deleteMany?: AuditEventScalarWhereInput | AuditEventScalarWhereInput[] } export type ReportExportUpdateManyWithoutProjectNestedInput = { create?: XOR | ReportExportCreateWithoutProjectInput[] | ReportExportUncheckedCreateWithoutProjectInput[] connectOrCreate?: ReportExportCreateOrConnectWithoutProjectInput | ReportExportCreateOrConnectWithoutProjectInput[] upsert?: ReportExportUpsertWithWhereUniqueWithoutProjectInput | ReportExportUpsertWithWhereUniqueWithoutProjectInput[] createMany?: ReportExportCreateManyProjectInputEnvelope set?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] disconnect?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] delete?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] connect?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] update?: ReportExportUpdateWithWhereUniqueWithoutProjectInput | ReportExportUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: ReportExportUpdateManyWithWhereWithoutProjectInput | ReportExportUpdateManyWithWhereWithoutProjectInput[] deleteMany?: ReportExportScalarWhereInput | ReportExportScalarWhereInput[] } export type LifecyclePhaseUncheckedUpdateManyWithoutProjectNestedInput = { create?: XOR | LifecyclePhaseCreateWithoutProjectInput[] | LifecyclePhaseUncheckedCreateWithoutProjectInput[] connectOrCreate?: LifecyclePhaseCreateOrConnectWithoutProjectInput | LifecyclePhaseCreateOrConnectWithoutProjectInput[] upsert?: LifecyclePhaseUpsertWithWhereUniqueWithoutProjectInput | LifecyclePhaseUpsertWithWhereUniqueWithoutProjectInput[] createMany?: LifecyclePhaseCreateManyProjectInputEnvelope set?: LifecyclePhaseWhereUniqueInput | LifecyclePhaseWhereUniqueInput[] disconnect?: LifecyclePhaseWhereUniqueInput | LifecyclePhaseWhereUniqueInput[] delete?: LifecyclePhaseWhereUniqueInput | LifecyclePhaseWhereUniqueInput[] connect?: LifecyclePhaseWhereUniqueInput | LifecyclePhaseWhereUniqueInput[] update?: LifecyclePhaseUpdateWithWhereUniqueWithoutProjectInput | LifecyclePhaseUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: LifecyclePhaseUpdateManyWithWhereWithoutProjectInput | LifecyclePhaseUpdateManyWithWhereWithoutProjectInput[] deleteMany?: LifecyclePhaseScalarWhereInput | LifecyclePhaseScalarWhereInput[] } export type RiskUncheckedUpdateManyWithoutProjectNestedInput = { create?: XOR | RiskCreateWithoutProjectInput[] | RiskUncheckedCreateWithoutProjectInput[] connectOrCreate?: RiskCreateOrConnectWithoutProjectInput | RiskCreateOrConnectWithoutProjectInput[] upsert?: RiskUpsertWithWhereUniqueWithoutProjectInput | RiskUpsertWithWhereUniqueWithoutProjectInput[] createMany?: RiskCreateManyProjectInputEnvelope set?: RiskWhereUniqueInput | RiskWhereUniqueInput[] disconnect?: RiskWhereUniqueInput | RiskWhereUniqueInput[] delete?: RiskWhereUniqueInput | RiskWhereUniqueInput[] connect?: RiskWhereUniqueInput | RiskWhereUniqueInput[] update?: RiskUpdateWithWhereUniqueWithoutProjectInput | RiskUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: RiskUpdateManyWithWhereWithoutProjectInput | RiskUpdateManyWithWhereWithoutProjectInput[] deleteMany?: RiskScalarWhereInput | RiskScalarWhereInput[] } export type IndicatorUncheckedUpdateManyWithoutProjectNestedInput = { create?: XOR | IndicatorCreateWithoutProjectInput[] | IndicatorUncheckedCreateWithoutProjectInput[] connectOrCreate?: IndicatorCreateOrConnectWithoutProjectInput | IndicatorCreateOrConnectWithoutProjectInput[] upsert?: IndicatorUpsertWithWhereUniqueWithoutProjectInput | IndicatorUpsertWithWhereUniqueWithoutProjectInput[] createMany?: IndicatorCreateManyProjectInputEnvelope set?: IndicatorWhereUniqueInput | IndicatorWhereUniqueInput[] disconnect?: IndicatorWhereUniqueInput | IndicatorWhereUniqueInput[] delete?: IndicatorWhereUniqueInput | IndicatorWhereUniqueInput[] connect?: IndicatorWhereUniqueInput | IndicatorWhereUniqueInput[] update?: IndicatorUpdateWithWhereUniqueWithoutProjectInput | IndicatorUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: IndicatorUpdateManyWithWhereWithoutProjectInput | IndicatorUpdateManyWithWhereWithoutProjectInput[] deleteMany?: IndicatorScalarWhereInput | IndicatorScalarWhereInput[] } export type ExperimentUncheckedUpdateManyWithoutProjectNestedInput = { create?: XOR | ExperimentCreateWithoutProjectInput[] | ExperimentUncheckedCreateWithoutProjectInput[] connectOrCreate?: ExperimentCreateOrConnectWithoutProjectInput | ExperimentCreateOrConnectWithoutProjectInput[] upsert?: ExperimentUpsertWithWhereUniqueWithoutProjectInput | ExperimentUpsertWithWhereUniqueWithoutProjectInput[] createMany?: ExperimentCreateManyProjectInputEnvelope set?: ExperimentWhereUniqueInput | ExperimentWhereUniqueInput[] disconnect?: ExperimentWhereUniqueInput | ExperimentWhereUniqueInput[] delete?: ExperimentWhereUniqueInput | ExperimentWhereUniqueInput[] connect?: ExperimentWhereUniqueInput | ExperimentWhereUniqueInput[] update?: ExperimentUpdateWithWhereUniqueWithoutProjectInput | ExperimentUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: ExperimentUpdateManyWithWhereWithoutProjectInput | ExperimentUpdateManyWithWhereWithoutProjectInput[] deleteMany?: ExperimentScalarWhereInput | ExperimentScalarWhereInput[] } export type GateEvaluationUncheckedUpdateManyWithoutProjectNestedInput = { create?: XOR | GateEvaluationCreateWithoutProjectInput[] | GateEvaluationUncheckedCreateWithoutProjectInput[] connectOrCreate?: GateEvaluationCreateOrConnectWithoutProjectInput | GateEvaluationCreateOrConnectWithoutProjectInput[] upsert?: GateEvaluationUpsertWithWhereUniqueWithoutProjectInput | GateEvaluationUpsertWithWhereUniqueWithoutProjectInput[] createMany?: GateEvaluationCreateManyProjectInputEnvelope set?: GateEvaluationWhereUniqueInput | GateEvaluationWhereUniqueInput[] disconnect?: GateEvaluationWhereUniqueInput | GateEvaluationWhereUniqueInput[] delete?: GateEvaluationWhereUniqueInput | GateEvaluationWhereUniqueInput[] connect?: GateEvaluationWhereUniqueInput | GateEvaluationWhereUniqueInput[] update?: GateEvaluationUpdateWithWhereUniqueWithoutProjectInput | GateEvaluationUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: GateEvaluationUpdateManyWithWhereWithoutProjectInput | GateEvaluationUpdateManyWithWhereWithoutProjectInput[] deleteMany?: GateEvaluationScalarWhereInput | GateEvaluationScalarWhereInput[] } export type AuditEventUncheckedUpdateManyWithoutProjectNestedInput = { create?: XOR | AuditEventCreateWithoutProjectInput[] | AuditEventUncheckedCreateWithoutProjectInput[] connectOrCreate?: AuditEventCreateOrConnectWithoutProjectInput | AuditEventCreateOrConnectWithoutProjectInput[] upsert?: AuditEventUpsertWithWhereUniqueWithoutProjectInput | AuditEventUpsertWithWhereUniqueWithoutProjectInput[] createMany?: AuditEventCreateManyProjectInputEnvelope set?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] disconnect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] delete?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] connect?: AuditEventWhereUniqueInput | AuditEventWhereUniqueInput[] update?: AuditEventUpdateWithWhereUniqueWithoutProjectInput | AuditEventUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: AuditEventUpdateManyWithWhereWithoutProjectInput | AuditEventUpdateManyWithWhereWithoutProjectInput[] deleteMany?: AuditEventScalarWhereInput | AuditEventScalarWhereInput[] } export type ReportExportUncheckedUpdateManyWithoutProjectNestedInput = { create?: XOR | ReportExportCreateWithoutProjectInput[] | ReportExportUncheckedCreateWithoutProjectInput[] connectOrCreate?: ReportExportCreateOrConnectWithoutProjectInput | ReportExportCreateOrConnectWithoutProjectInput[] upsert?: ReportExportUpsertWithWhereUniqueWithoutProjectInput | ReportExportUpsertWithWhereUniqueWithoutProjectInput[] createMany?: ReportExportCreateManyProjectInputEnvelope set?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] disconnect?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] delete?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] connect?: ReportExportWhereUniqueInput | ReportExportWhereUniqueInput[] update?: ReportExportUpdateWithWhereUniqueWithoutProjectInput | ReportExportUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: ReportExportUpdateManyWithWhereWithoutProjectInput | ReportExportUpdateManyWithWhereWithoutProjectInput[] deleteMany?: ReportExportScalarWhereInput | ReportExportScalarWhereInput[] } export type ProjectCreateNestedOneWithoutLifecyclePhasesInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutLifecyclePhasesInput connect?: ProjectWhereUniqueInput } export type ProjectUpdateOneRequiredWithoutLifecyclePhasesNestedInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutLifecyclePhasesInput upsert?: ProjectUpsertWithoutLifecyclePhasesInput connect?: ProjectWhereUniqueInput update?: XOR, ProjectUncheckedUpdateWithoutLifecyclePhasesInput> } export type ProjectCreateNestedOneWithoutRisksInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutRisksInput connect?: ProjectWhereUniqueInput } export type MitigationCreateNestedManyWithoutRiskInput = { create?: XOR | MitigationCreateWithoutRiskInput[] | MitigationUncheckedCreateWithoutRiskInput[] connectOrCreate?: MitigationCreateOrConnectWithoutRiskInput | MitigationCreateOrConnectWithoutRiskInput[] createMany?: MitigationCreateManyRiskInputEnvelope connect?: MitigationWhereUniqueInput | MitigationWhereUniqueInput[] } export type EvidenceCreateNestedManyWithoutRiskInput = { create?: XOR | EvidenceCreateWithoutRiskInput[] | EvidenceUncheckedCreateWithoutRiskInput[] connectOrCreate?: EvidenceCreateOrConnectWithoutRiskInput | EvidenceCreateOrConnectWithoutRiskInput[] createMany?: EvidenceCreateManyRiskInputEnvelope connect?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] } export type MitigationUncheckedCreateNestedManyWithoutRiskInput = { create?: XOR | MitigationCreateWithoutRiskInput[] | MitigationUncheckedCreateWithoutRiskInput[] connectOrCreate?: MitigationCreateOrConnectWithoutRiskInput | MitigationCreateOrConnectWithoutRiskInput[] createMany?: MitigationCreateManyRiskInputEnvelope connect?: MitigationWhereUniqueInput | MitigationWhereUniqueInput[] } export type EvidenceUncheckedCreateNestedManyWithoutRiskInput = { create?: XOR | EvidenceCreateWithoutRiskInput[] | EvidenceUncheckedCreateWithoutRiskInput[] connectOrCreate?: EvidenceCreateOrConnectWithoutRiskInput | EvidenceCreateOrConnectWithoutRiskInput[] createMany?: EvidenceCreateManyRiskInputEnvelope connect?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] } export type EnumRiskStatusFieldUpdateOperationsInput = { set?: $Enums.RiskStatus } export type EnumApprovalStatusFieldUpdateOperationsInput = { set?: $Enums.ApprovalStatus } export type ProjectUpdateOneRequiredWithoutRisksNestedInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutRisksInput upsert?: ProjectUpsertWithoutRisksInput connect?: ProjectWhereUniqueInput update?: XOR, ProjectUncheckedUpdateWithoutRisksInput> } export type MitigationUpdateManyWithoutRiskNestedInput = { create?: XOR | MitigationCreateWithoutRiskInput[] | MitigationUncheckedCreateWithoutRiskInput[] connectOrCreate?: MitigationCreateOrConnectWithoutRiskInput | MitigationCreateOrConnectWithoutRiskInput[] upsert?: MitigationUpsertWithWhereUniqueWithoutRiskInput | MitigationUpsertWithWhereUniqueWithoutRiskInput[] createMany?: MitigationCreateManyRiskInputEnvelope set?: MitigationWhereUniqueInput | MitigationWhereUniqueInput[] disconnect?: MitigationWhereUniqueInput | MitigationWhereUniqueInput[] delete?: MitigationWhereUniqueInput | MitigationWhereUniqueInput[] connect?: MitigationWhereUniqueInput | MitigationWhereUniqueInput[] update?: MitigationUpdateWithWhereUniqueWithoutRiskInput | MitigationUpdateWithWhereUniqueWithoutRiskInput[] updateMany?: MitigationUpdateManyWithWhereWithoutRiskInput | MitigationUpdateManyWithWhereWithoutRiskInput[] deleteMany?: MitigationScalarWhereInput | MitigationScalarWhereInput[] } export type EvidenceUpdateManyWithoutRiskNestedInput = { create?: XOR | EvidenceCreateWithoutRiskInput[] | EvidenceUncheckedCreateWithoutRiskInput[] connectOrCreate?: EvidenceCreateOrConnectWithoutRiskInput | EvidenceCreateOrConnectWithoutRiskInput[] upsert?: EvidenceUpsertWithWhereUniqueWithoutRiskInput | EvidenceUpsertWithWhereUniqueWithoutRiskInput[] createMany?: EvidenceCreateManyRiskInputEnvelope set?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] disconnect?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] delete?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] connect?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] update?: EvidenceUpdateWithWhereUniqueWithoutRiskInput | EvidenceUpdateWithWhereUniqueWithoutRiskInput[] updateMany?: EvidenceUpdateManyWithWhereWithoutRiskInput | EvidenceUpdateManyWithWhereWithoutRiskInput[] deleteMany?: EvidenceScalarWhereInput | EvidenceScalarWhereInput[] } export type MitigationUncheckedUpdateManyWithoutRiskNestedInput = { create?: XOR | MitigationCreateWithoutRiskInput[] | MitigationUncheckedCreateWithoutRiskInput[] connectOrCreate?: MitigationCreateOrConnectWithoutRiskInput | MitigationCreateOrConnectWithoutRiskInput[] upsert?: MitigationUpsertWithWhereUniqueWithoutRiskInput | MitigationUpsertWithWhereUniqueWithoutRiskInput[] createMany?: MitigationCreateManyRiskInputEnvelope set?: MitigationWhereUniqueInput | MitigationWhereUniqueInput[] disconnect?: MitigationWhereUniqueInput | MitigationWhereUniqueInput[] delete?: MitigationWhereUniqueInput | MitigationWhereUniqueInput[] connect?: MitigationWhereUniqueInput | MitigationWhereUniqueInput[] update?: MitigationUpdateWithWhereUniqueWithoutRiskInput | MitigationUpdateWithWhereUniqueWithoutRiskInput[] updateMany?: MitigationUpdateManyWithWhereWithoutRiskInput | MitigationUpdateManyWithWhereWithoutRiskInput[] deleteMany?: MitigationScalarWhereInput | MitigationScalarWhereInput[] } export type EvidenceUncheckedUpdateManyWithoutRiskNestedInput = { create?: XOR | EvidenceCreateWithoutRiskInput[] | EvidenceUncheckedCreateWithoutRiskInput[] connectOrCreate?: EvidenceCreateOrConnectWithoutRiskInput | EvidenceCreateOrConnectWithoutRiskInput[] upsert?: EvidenceUpsertWithWhereUniqueWithoutRiskInput | EvidenceUpsertWithWhereUniqueWithoutRiskInput[] createMany?: EvidenceCreateManyRiskInputEnvelope set?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] disconnect?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] delete?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] connect?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] update?: EvidenceUpdateWithWhereUniqueWithoutRiskInput | EvidenceUpdateWithWhereUniqueWithoutRiskInput[] updateMany?: EvidenceUpdateManyWithWhereWithoutRiskInput | EvidenceUpdateManyWithWhereWithoutRiskInput[] deleteMany?: EvidenceScalarWhereInput | EvidenceScalarWhereInput[] } export type RiskCreateNestedOneWithoutMitigationsInput = { create?: XOR connectOrCreate?: RiskCreateOrConnectWithoutMitigationsInput connect?: RiskWhereUniqueInput } export type EvidenceCreateNestedManyWithoutMitigationInput = { create?: XOR | EvidenceCreateWithoutMitigationInput[] | EvidenceUncheckedCreateWithoutMitigationInput[] connectOrCreate?: EvidenceCreateOrConnectWithoutMitigationInput | EvidenceCreateOrConnectWithoutMitigationInput[] createMany?: EvidenceCreateManyMitigationInputEnvelope connect?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] } export type EvidenceUncheckedCreateNestedManyWithoutMitigationInput = { create?: XOR | EvidenceCreateWithoutMitigationInput[] | EvidenceUncheckedCreateWithoutMitigationInput[] connectOrCreate?: EvidenceCreateOrConnectWithoutMitigationInput | EvidenceCreateOrConnectWithoutMitigationInput[] createMany?: EvidenceCreateManyMitigationInputEnvelope connect?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] } export type EnumMitigationStatusFieldUpdateOperationsInput = { set?: $Enums.MitigationStatus } export type RiskUpdateOneRequiredWithoutMitigationsNestedInput = { create?: XOR connectOrCreate?: RiskCreateOrConnectWithoutMitigationsInput upsert?: RiskUpsertWithoutMitigationsInput connect?: RiskWhereUniqueInput update?: XOR, RiskUncheckedUpdateWithoutMitigationsInput> } export type EvidenceUpdateManyWithoutMitigationNestedInput = { create?: XOR | EvidenceCreateWithoutMitigationInput[] | EvidenceUncheckedCreateWithoutMitigationInput[] connectOrCreate?: EvidenceCreateOrConnectWithoutMitigationInput | EvidenceCreateOrConnectWithoutMitigationInput[] upsert?: EvidenceUpsertWithWhereUniqueWithoutMitigationInput | EvidenceUpsertWithWhereUniqueWithoutMitigationInput[] createMany?: EvidenceCreateManyMitigationInputEnvelope set?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] disconnect?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] delete?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] connect?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] update?: EvidenceUpdateWithWhereUniqueWithoutMitigationInput | EvidenceUpdateWithWhereUniqueWithoutMitigationInput[] updateMany?: EvidenceUpdateManyWithWhereWithoutMitigationInput | EvidenceUpdateManyWithWhereWithoutMitigationInput[] deleteMany?: EvidenceScalarWhereInput | EvidenceScalarWhereInput[] } export type EvidenceUncheckedUpdateManyWithoutMitigationNestedInput = { create?: XOR | EvidenceCreateWithoutMitigationInput[] | EvidenceUncheckedCreateWithoutMitigationInput[] connectOrCreate?: EvidenceCreateOrConnectWithoutMitigationInput | EvidenceCreateOrConnectWithoutMitigationInput[] upsert?: EvidenceUpsertWithWhereUniqueWithoutMitigationInput | EvidenceUpsertWithWhereUniqueWithoutMitigationInput[] createMany?: EvidenceCreateManyMitigationInputEnvelope set?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] disconnect?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] delete?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] connect?: EvidenceWhereUniqueInput | EvidenceWhereUniqueInput[] update?: EvidenceUpdateWithWhereUniqueWithoutMitigationInput | EvidenceUpdateWithWhereUniqueWithoutMitigationInput[] updateMany?: EvidenceUpdateManyWithWhereWithoutMitigationInput | EvidenceUpdateManyWithWhereWithoutMitigationInput[] deleteMany?: EvidenceScalarWhereInput | EvidenceScalarWhereInput[] } export type RiskCreateNestedOneWithoutEvidenceInput = { create?: XOR connectOrCreate?: RiskCreateOrConnectWithoutEvidenceInput connect?: RiskWhereUniqueInput } export type MitigationCreateNestedOneWithoutEvidenceInput = { create?: XOR connectOrCreate?: MitigationCreateOrConnectWithoutEvidenceInput connect?: MitigationWhereUniqueInput } export type RiskUpdateOneWithoutEvidenceNestedInput = { create?: XOR connectOrCreate?: RiskCreateOrConnectWithoutEvidenceInput upsert?: RiskUpsertWithoutEvidenceInput disconnect?: RiskWhereInput | boolean delete?: RiskWhereInput | boolean connect?: RiskWhereUniqueInput update?: XOR, RiskUncheckedUpdateWithoutEvidenceInput> } export type MitigationUpdateOneWithoutEvidenceNestedInput = { create?: XOR connectOrCreate?: MitigationCreateOrConnectWithoutEvidenceInput upsert?: MitigationUpsertWithoutEvidenceInput disconnect?: MitigationWhereInput | boolean delete?: MitigationWhereInput | boolean connect?: MitigationWhereUniqueInput update?: XOR, MitigationUncheckedUpdateWithoutEvidenceInput> } export type ProjectCreateNestedOneWithoutIndicatorsInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutIndicatorsInput connect?: ProjectWhereUniqueInput } export type ProjectUpdateOneRequiredWithoutIndicatorsNestedInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutIndicatorsInput upsert?: ProjectUpsertWithoutIndicatorsInput connect?: ProjectWhereUniqueInput update?: XOR, ProjectUncheckedUpdateWithoutIndicatorsInput> } export type ProjectCreateNestedOneWithoutExperimentsInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutExperimentsInput connect?: ProjectWhereUniqueInput } export type ModelMetricCreateNestedManyWithoutExperimentInput = { create?: XOR | ModelMetricCreateWithoutExperimentInput[] | ModelMetricUncheckedCreateWithoutExperimentInput[] connectOrCreate?: ModelMetricCreateOrConnectWithoutExperimentInput | ModelMetricCreateOrConnectWithoutExperimentInput[] createMany?: ModelMetricCreateManyExperimentInputEnvelope connect?: ModelMetricWhereUniqueInput | ModelMetricWhereUniqueInput[] } export type ModelMetricUncheckedCreateNestedManyWithoutExperimentInput = { create?: XOR | ModelMetricCreateWithoutExperimentInput[] | ModelMetricUncheckedCreateWithoutExperimentInput[] connectOrCreate?: ModelMetricCreateOrConnectWithoutExperimentInput | ModelMetricCreateOrConnectWithoutExperimentInput[] createMany?: ModelMetricCreateManyExperimentInputEnvelope connect?: ModelMetricWhereUniqueInput | ModelMetricWhereUniqueInput[] } export type ProjectUpdateOneRequiredWithoutExperimentsNestedInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutExperimentsInput upsert?: ProjectUpsertWithoutExperimentsInput connect?: ProjectWhereUniqueInput update?: XOR, ProjectUncheckedUpdateWithoutExperimentsInput> } export type ModelMetricUpdateManyWithoutExperimentNestedInput = { create?: XOR | ModelMetricCreateWithoutExperimentInput[] | ModelMetricUncheckedCreateWithoutExperimentInput[] connectOrCreate?: ModelMetricCreateOrConnectWithoutExperimentInput | ModelMetricCreateOrConnectWithoutExperimentInput[] upsert?: ModelMetricUpsertWithWhereUniqueWithoutExperimentInput | ModelMetricUpsertWithWhereUniqueWithoutExperimentInput[] createMany?: ModelMetricCreateManyExperimentInputEnvelope set?: ModelMetricWhereUniqueInput | ModelMetricWhereUniqueInput[] disconnect?: ModelMetricWhereUniqueInput | ModelMetricWhereUniqueInput[] delete?: ModelMetricWhereUniqueInput | ModelMetricWhereUniqueInput[] connect?: ModelMetricWhereUniqueInput | ModelMetricWhereUniqueInput[] update?: ModelMetricUpdateWithWhereUniqueWithoutExperimentInput | ModelMetricUpdateWithWhereUniqueWithoutExperimentInput[] updateMany?: ModelMetricUpdateManyWithWhereWithoutExperimentInput | ModelMetricUpdateManyWithWhereWithoutExperimentInput[] deleteMany?: ModelMetricScalarWhereInput | ModelMetricScalarWhereInput[] } export type ModelMetricUncheckedUpdateManyWithoutExperimentNestedInput = { create?: XOR | ModelMetricCreateWithoutExperimentInput[] | ModelMetricUncheckedCreateWithoutExperimentInput[] connectOrCreate?: ModelMetricCreateOrConnectWithoutExperimentInput | ModelMetricCreateOrConnectWithoutExperimentInput[] upsert?: ModelMetricUpsertWithWhereUniqueWithoutExperimentInput | ModelMetricUpsertWithWhereUniqueWithoutExperimentInput[] createMany?: ModelMetricCreateManyExperimentInputEnvelope set?: ModelMetricWhereUniqueInput | ModelMetricWhereUniqueInput[] disconnect?: ModelMetricWhereUniqueInput | ModelMetricWhereUniqueInput[] delete?: ModelMetricWhereUniqueInput | ModelMetricWhereUniqueInput[] connect?: ModelMetricWhereUniqueInput | ModelMetricWhereUniqueInput[] update?: ModelMetricUpdateWithWhereUniqueWithoutExperimentInput | ModelMetricUpdateWithWhereUniqueWithoutExperimentInput[] updateMany?: ModelMetricUpdateManyWithWhereWithoutExperimentInput | ModelMetricUpdateManyWithWhereWithoutExperimentInput[] deleteMany?: ModelMetricScalarWhereInput | ModelMetricScalarWhereInput[] } export type ExperimentCreateNestedOneWithoutMetricsInput = { create?: XOR connectOrCreate?: ExperimentCreateOrConnectWithoutMetricsInput connect?: ExperimentWhereUniqueInput } export type FloatFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type NullableFloatFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type ExperimentUpdateOneRequiredWithoutMetricsNestedInput = { create?: XOR connectOrCreate?: ExperimentCreateOrConnectWithoutMetricsInput upsert?: ExperimentUpsertWithoutMetricsInput connect?: ExperimentWhereUniqueInput update?: XOR, ExperimentUncheckedUpdateWithoutMetricsInput> } export type ProjectCreateNestedOneWithoutGateEvaluationsInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutGateEvaluationsInput connect?: ProjectWhereUniqueInput } export type GateCriterionCreateNestedManyWithoutGateInput = { create?: XOR | GateCriterionCreateWithoutGateInput[] | GateCriterionUncheckedCreateWithoutGateInput[] connectOrCreate?: GateCriterionCreateOrConnectWithoutGateInput | GateCriterionCreateOrConnectWithoutGateInput[] createMany?: GateCriterionCreateManyGateInputEnvelope connect?: GateCriterionWhereUniqueInput | GateCriterionWhereUniqueInput[] } export type GateDecisionCreateNestedManyWithoutGateInput = { create?: XOR | GateDecisionCreateWithoutGateInput[] | GateDecisionUncheckedCreateWithoutGateInput[] connectOrCreate?: GateDecisionCreateOrConnectWithoutGateInput | GateDecisionCreateOrConnectWithoutGateInput[] createMany?: GateDecisionCreateManyGateInputEnvelope connect?: GateDecisionWhereUniqueInput | GateDecisionWhereUniqueInput[] } export type GateCriterionUncheckedCreateNestedManyWithoutGateInput = { create?: XOR | GateCriterionCreateWithoutGateInput[] | GateCriterionUncheckedCreateWithoutGateInput[] connectOrCreate?: GateCriterionCreateOrConnectWithoutGateInput | GateCriterionCreateOrConnectWithoutGateInput[] createMany?: GateCriterionCreateManyGateInputEnvelope connect?: GateCriterionWhereUniqueInput | GateCriterionWhereUniqueInput[] } export type GateDecisionUncheckedCreateNestedManyWithoutGateInput = { create?: XOR | GateDecisionCreateWithoutGateInput[] | GateDecisionUncheckedCreateWithoutGateInput[] connectOrCreate?: GateDecisionCreateOrConnectWithoutGateInput | GateDecisionCreateOrConnectWithoutGateInput[] createMany?: GateDecisionCreateManyGateInputEnvelope connect?: GateDecisionWhereUniqueInput | GateDecisionWhereUniqueInput[] } export type EnumGateStatusFieldUpdateOperationsInput = { set?: $Enums.GateStatus } export type ProjectUpdateOneRequiredWithoutGateEvaluationsNestedInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutGateEvaluationsInput upsert?: ProjectUpsertWithoutGateEvaluationsInput connect?: ProjectWhereUniqueInput update?: XOR, ProjectUncheckedUpdateWithoutGateEvaluationsInput> } export type GateCriterionUpdateManyWithoutGateNestedInput = { create?: XOR | GateCriterionCreateWithoutGateInput[] | GateCriterionUncheckedCreateWithoutGateInput[] connectOrCreate?: GateCriterionCreateOrConnectWithoutGateInput | GateCriterionCreateOrConnectWithoutGateInput[] upsert?: GateCriterionUpsertWithWhereUniqueWithoutGateInput | GateCriterionUpsertWithWhereUniqueWithoutGateInput[] createMany?: GateCriterionCreateManyGateInputEnvelope set?: GateCriterionWhereUniqueInput | GateCriterionWhereUniqueInput[] disconnect?: GateCriterionWhereUniqueInput | GateCriterionWhereUniqueInput[] delete?: GateCriterionWhereUniqueInput | GateCriterionWhereUniqueInput[] connect?: GateCriterionWhereUniqueInput | GateCriterionWhereUniqueInput[] update?: GateCriterionUpdateWithWhereUniqueWithoutGateInput | GateCriterionUpdateWithWhereUniqueWithoutGateInput[] updateMany?: GateCriterionUpdateManyWithWhereWithoutGateInput | GateCriterionUpdateManyWithWhereWithoutGateInput[] deleteMany?: GateCriterionScalarWhereInput | GateCriterionScalarWhereInput[] } export type GateDecisionUpdateManyWithoutGateNestedInput = { create?: XOR | GateDecisionCreateWithoutGateInput[] | GateDecisionUncheckedCreateWithoutGateInput[] connectOrCreate?: GateDecisionCreateOrConnectWithoutGateInput | GateDecisionCreateOrConnectWithoutGateInput[] upsert?: GateDecisionUpsertWithWhereUniqueWithoutGateInput | GateDecisionUpsertWithWhereUniqueWithoutGateInput[] createMany?: GateDecisionCreateManyGateInputEnvelope set?: GateDecisionWhereUniqueInput | GateDecisionWhereUniqueInput[] disconnect?: GateDecisionWhereUniqueInput | GateDecisionWhereUniqueInput[] delete?: GateDecisionWhereUniqueInput | GateDecisionWhereUniqueInput[] connect?: GateDecisionWhereUniqueInput | GateDecisionWhereUniqueInput[] update?: GateDecisionUpdateWithWhereUniqueWithoutGateInput | GateDecisionUpdateWithWhereUniqueWithoutGateInput[] updateMany?: GateDecisionUpdateManyWithWhereWithoutGateInput | GateDecisionUpdateManyWithWhereWithoutGateInput[] deleteMany?: GateDecisionScalarWhereInput | GateDecisionScalarWhereInput[] } export type GateCriterionUncheckedUpdateManyWithoutGateNestedInput = { create?: XOR | GateCriterionCreateWithoutGateInput[] | GateCriterionUncheckedCreateWithoutGateInput[] connectOrCreate?: GateCriterionCreateOrConnectWithoutGateInput | GateCriterionCreateOrConnectWithoutGateInput[] upsert?: GateCriterionUpsertWithWhereUniqueWithoutGateInput | GateCriterionUpsertWithWhereUniqueWithoutGateInput[] createMany?: GateCriterionCreateManyGateInputEnvelope set?: GateCriterionWhereUniqueInput | GateCriterionWhereUniqueInput[] disconnect?: GateCriterionWhereUniqueInput | GateCriterionWhereUniqueInput[] delete?: GateCriterionWhereUniqueInput | GateCriterionWhereUniqueInput[] connect?: GateCriterionWhereUniqueInput | GateCriterionWhereUniqueInput[] update?: GateCriterionUpdateWithWhereUniqueWithoutGateInput | GateCriterionUpdateWithWhereUniqueWithoutGateInput[] updateMany?: GateCriterionUpdateManyWithWhereWithoutGateInput | GateCriterionUpdateManyWithWhereWithoutGateInput[] deleteMany?: GateCriterionScalarWhereInput | GateCriterionScalarWhereInput[] } export type GateDecisionUncheckedUpdateManyWithoutGateNestedInput = { create?: XOR | GateDecisionCreateWithoutGateInput[] | GateDecisionUncheckedCreateWithoutGateInput[] connectOrCreate?: GateDecisionCreateOrConnectWithoutGateInput | GateDecisionCreateOrConnectWithoutGateInput[] upsert?: GateDecisionUpsertWithWhereUniqueWithoutGateInput | GateDecisionUpsertWithWhereUniqueWithoutGateInput[] createMany?: GateDecisionCreateManyGateInputEnvelope set?: GateDecisionWhereUniqueInput | GateDecisionWhereUniqueInput[] disconnect?: GateDecisionWhereUniqueInput | GateDecisionWhereUniqueInput[] delete?: GateDecisionWhereUniqueInput | GateDecisionWhereUniqueInput[] connect?: GateDecisionWhereUniqueInput | GateDecisionWhereUniqueInput[] update?: GateDecisionUpdateWithWhereUniqueWithoutGateInput | GateDecisionUpdateWithWhereUniqueWithoutGateInput[] updateMany?: GateDecisionUpdateManyWithWhereWithoutGateInput | GateDecisionUpdateManyWithWhereWithoutGateInput[] deleteMany?: GateDecisionScalarWhereInput | GateDecisionScalarWhereInput[] } export type GateEvaluationCreateNestedOneWithoutCriteriaInput = { create?: XOR connectOrCreate?: GateEvaluationCreateOrConnectWithoutCriteriaInput connect?: GateEvaluationWhereUniqueInput } export type GateEvaluationUpdateOneRequiredWithoutCriteriaNestedInput = { create?: XOR connectOrCreate?: GateEvaluationCreateOrConnectWithoutCriteriaInput upsert?: GateEvaluationUpsertWithoutCriteriaInput connect?: GateEvaluationWhereUniqueInput update?: XOR, GateEvaluationUncheckedUpdateWithoutCriteriaInput> } export type GateEvaluationCreateNestedOneWithoutDecisionsInput = { create?: XOR connectOrCreate?: GateEvaluationCreateOrConnectWithoutDecisionsInput connect?: GateEvaluationWhereUniqueInput } export type EnumGateDecisionValueFieldUpdateOperationsInput = { set?: $Enums.GateDecisionValue } export type GateEvaluationUpdateOneRequiredWithoutDecisionsNestedInput = { create?: XOR connectOrCreate?: GateEvaluationCreateOrConnectWithoutDecisionsInput upsert?: GateEvaluationUpsertWithoutDecisionsInput connect?: GateEvaluationWhereUniqueInput update?: XOR, GateEvaluationUncheckedUpdateWithoutDecisionsInput> } export type WorkspaceCreateNestedOneWithoutIntegrationsInput = { create?: XOR connectOrCreate?: WorkspaceCreateOrConnectWithoutIntegrationsInput connect?: WorkspaceWhereUniqueInput } export type ExternalWorkItemMappingCreateNestedManyWithoutIntegrationInput = { create?: XOR | ExternalWorkItemMappingCreateWithoutIntegrationInput[] | ExternalWorkItemMappingUncheckedCreateWithoutIntegrationInput[] connectOrCreate?: ExternalWorkItemMappingCreateOrConnectWithoutIntegrationInput | ExternalWorkItemMappingCreateOrConnectWithoutIntegrationInput[] createMany?: ExternalWorkItemMappingCreateManyIntegrationInputEnvelope connect?: ExternalWorkItemMappingWhereUniqueInput | ExternalWorkItemMappingWhereUniqueInput[] } export type IntegrationSyncRunCreateNestedManyWithoutIntegrationInput = { create?: XOR | IntegrationSyncRunCreateWithoutIntegrationInput[] | IntegrationSyncRunUncheckedCreateWithoutIntegrationInput[] connectOrCreate?: IntegrationSyncRunCreateOrConnectWithoutIntegrationInput | IntegrationSyncRunCreateOrConnectWithoutIntegrationInput[] createMany?: IntegrationSyncRunCreateManyIntegrationInputEnvelope connect?: IntegrationSyncRunWhereUniqueInput | IntegrationSyncRunWhereUniqueInput[] } export type ExternalWorkItemMappingUncheckedCreateNestedManyWithoutIntegrationInput = { create?: XOR | ExternalWorkItemMappingCreateWithoutIntegrationInput[] | ExternalWorkItemMappingUncheckedCreateWithoutIntegrationInput[] connectOrCreate?: ExternalWorkItemMappingCreateOrConnectWithoutIntegrationInput | ExternalWorkItemMappingCreateOrConnectWithoutIntegrationInput[] createMany?: ExternalWorkItemMappingCreateManyIntegrationInputEnvelope connect?: ExternalWorkItemMappingWhereUniqueInput | ExternalWorkItemMappingWhereUniqueInput[] } export type IntegrationSyncRunUncheckedCreateNestedManyWithoutIntegrationInput = { create?: XOR | IntegrationSyncRunCreateWithoutIntegrationInput[] | IntegrationSyncRunUncheckedCreateWithoutIntegrationInput[] connectOrCreate?: IntegrationSyncRunCreateOrConnectWithoutIntegrationInput | IntegrationSyncRunCreateOrConnectWithoutIntegrationInput[] createMany?: IntegrationSyncRunCreateManyIntegrationInputEnvelope connect?: IntegrationSyncRunWhereUniqueInput | IntegrationSyncRunWhereUniqueInput[] } export type EnumIntegrationProviderFieldUpdateOperationsInput = { set?: $Enums.IntegrationProvider } export type EnumIntegrationStatusFieldUpdateOperationsInput = { set?: $Enums.IntegrationStatus } export type WorkspaceUpdateOneRequiredWithoutIntegrationsNestedInput = { create?: XOR connectOrCreate?: WorkspaceCreateOrConnectWithoutIntegrationsInput upsert?: WorkspaceUpsertWithoutIntegrationsInput connect?: WorkspaceWhereUniqueInput update?: XOR, WorkspaceUncheckedUpdateWithoutIntegrationsInput> } export type ExternalWorkItemMappingUpdateManyWithoutIntegrationNestedInput = { create?: XOR | ExternalWorkItemMappingCreateWithoutIntegrationInput[] | ExternalWorkItemMappingUncheckedCreateWithoutIntegrationInput[] connectOrCreate?: ExternalWorkItemMappingCreateOrConnectWithoutIntegrationInput | ExternalWorkItemMappingCreateOrConnectWithoutIntegrationInput[] upsert?: ExternalWorkItemMappingUpsertWithWhereUniqueWithoutIntegrationInput | ExternalWorkItemMappingUpsertWithWhereUniqueWithoutIntegrationInput[] createMany?: ExternalWorkItemMappingCreateManyIntegrationInputEnvelope set?: ExternalWorkItemMappingWhereUniqueInput | ExternalWorkItemMappingWhereUniqueInput[] disconnect?: ExternalWorkItemMappingWhereUniqueInput | ExternalWorkItemMappingWhereUniqueInput[] delete?: ExternalWorkItemMappingWhereUniqueInput | ExternalWorkItemMappingWhereUniqueInput[] connect?: ExternalWorkItemMappingWhereUniqueInput | ExternalWorkItemMappingWhereUniqueInput[] update?: ExternalWorkItemMappingUpdateWithWhereUniqueWithoutIntegrationInput | ExternalWorkItemMappingUpdateWithWhereUniqueWithoutIntegrationInput[] updateMany?: ExternalWorkItemMappingUpdateManyWithWhereWithoutIntegrationInput | ExternalWorkItemMappingUpdateManyWithWhereWithoutIntegrationInput[] deleteMany?: ExternalWorkItemMappingScalarWhereInput | ExternalWorkItemMappingScalarWhereInput[] } export type IntegrationSyncRunUpdateManyWithoutIntegrationNestedInput = { create?: XOR | IntegrationSyncRunCreateWithoutIntegrationInput[] | IntegrationSyncRunUncheckedCreateWithoutIntegrationInput[] connectOrCreate?: IntegrationSyncRunCreateOrConnectWithoutIntegrationInput | IntegrationSyncRunCreateOrConnectWithoutIntegrationInput[] upsert?: IntegrationSyncRunUpsertWithWhereUniqueWithoutIntegrationInput | IntegrationSyncRunUpsertWithWhereUniqueWithoutIntegrationInput[] createMany?: IntegrationSyncRunCreateManyIntegrationInputEnvelope set?: IntegrationSyncRunWhereUniqueInput | IntegrationSyncRunWhereUniqueInput[] disconnect?: IntegrationSyncRunWhereUniqueInput | IntegrationSyncRunWhereUniqueInput[] delete?: IntegrationSyncRunWhereUniqueInput | IntegrationSyncRunWhereUniqueInput[] connect?: IntegrationSyncRunWhereUniqueInput | IntegrationSyncRunWhereUniqueInput[] update?: IntegrationSyncRunUpdateWithWhereUniqueWithoutIntegrationInput | IntegrationSyncRunUpdateWithWhereUniqueWithoutIntegrationInput[] updateMany?: IntegrationSyncRunUpdateManyWithWhereWithoutIntegrationInput | IntegrationSyncRunUpdateManyWithWhereWithoutIntegrationInput[] deleteMany?: IntegrationSyncRunScalarWhereInput | IntegrationSyncRunScalarWhereInput[] } export type ExternalWorkItemMappingUncheckedUpdateManyWithoutIntegrationNestedInput = { create?: XOR | ExternalWorkItemMappingCreateWithoutIntegrationInput[] | ExternalWorkItemMappingUncheckedCreateWithoutIntegrationInput[] connectOrCreate?: ExternalWorkItemMappingCreateOrConnectWithoutIntegrationInput | ExternalWorkItemMappingCreateOrConnectWithoutIntegrationInput[] upsert?: ExternalWorkItemMappingUpsertWithWhereUniqueWithoutIntegrationInput | ExternalWorkItemMappingUpsertWithWhereUniqueWithoutIntegrationInput[] createMany?: ExternalWorkItemMappingCreateManyIntegrationInputEnvelope set?: ExternalWorkItemMappingWhereUniqueInput | ExternalWorkItemMappingWhereUniqueInput[] disconnect?: ExternalWorkItemMappingWhereUniqueInput | ExternalWorkItemMappingWhereUniqueInput[] delete?: ExternalWorkItemMappingWhereUniqueInput | ExternalWorkItemMappingWhereUniqueInput[] connect?: ExternalWorkItemMappingWhereUniqueInput | ExternalWorkItemMappingWhereUniqueInput[] update?: ExternalWorkItemMappingUpdateWithWhereUniqueWithoutIntegrationInput | ExternalWorkItemMappingUpdateWithWhereUniqueWithoutIntegrationInput[] updateMany?: ExternalWorkItemMappingUpdateManyWithWhereWithoutIntegrationInput | ExternalWorkItemMappingUpdateManyWithWhereWithoutIntegrationInput[] deleteMany?: ExternalWorkItemMappingScalarWhereInput | ExternalWorkItemMappingScalarWhereInput[] } export type IntegrationSyncRunUncheckedUpdateManyWithoutIntegrationNestedInput = { create?: XOR | IntegrationSyncRunCreateWithoutIntegrationInput[] | IntegrationSyncRunUncheckedCreateWithoutIntegrationInput[] connectOrCreate?: IntegrationSyncRunCreateOrConnectWithoutIntegrationInput | IntegrationSyncRunCreateOrConnectWithoutIntegrationInput[] upsert?: IntegrationSyncRunUpsertWithWhereUniqueWithoutIntegrationInput | IntegrationSyncRunUpsertWithWhereUniqueWithoutIntegrationInput[] createMany?: IntegrationSyncRunCreateManyIntegrationInputEnvelope set?: IntegrationSyncRunWhereUniqueInput | IntegrationSyncRunWhereUniqueInput[] disconnect?: IntegrationSyncRunWhereUniqueInput | IntegrationSyncRunWhereUniqueInput[] delete?: IntegrationSyncRunWhereUniqueInput | IntegrationSyncRunWhereUniqueInput[] connect?: IntegrationSyncRunWhereUniqueInput | IntegrationSyncRunWhereUniqueInput[] update?: IntegrationSyncRunUpdateWithWhereUniqueWithoutIntegrationInput | IntegrationSyncRunUpdateWithWhereUniqueWithoutIntegrationInput[] updateMany?: IntegrationSyncRunUpdateManyWithWhereWithoutIntegrationInput | IntegrationSyncRunUpdateManyWithWhereWithoutIntegrationInput[] deleteMany?: IntegrationSyncRunScalarWhereInput | IntegrationSyncRunScalarWhereInput[] } export type IntegrationCreateNestedOneWithoutMappingsInput = { create?: XOR connectOrCreate?: IntegrationCreateOrConnectWithoutMappingsInput connect?: IntegrationWhereUniqueInput } export type IntegrationUpdateOneRequiredWithoutMappingsNestedInput = { create?: XOR connectOrCreate?: IntegrationCreateOrConnectWithoutMappingsInput upsert?: IntegrationUpsertWithoutMappingsInput connect?: IntegrationWhereUniqueInput update?: XOR, IntegrationUncheckedUpdateWithoutMappingsInput> } export type IntegrationCreateNestedOneWithoutSyncRunsInput = { create?: XOR connectOrCreate?: IntegrationCreateOrConnectWithoutSyncRunsInput connect?: IntegrationWhereUniqueInput } export type IntegrationUpdateOneRequiredWithoutSyncRunsNestedInput = { create?: XOR connectOrCreate?: IntegrationCreateOrConnectWithoutSyncRunsInput upsert?: IntegrationUpsertWithoutSyncRunsInput connect?: IntegrationWhereUniqueInput update?: XOR, IntegrationUncheckedUpdateWithoutSyncRunsInput> } export type OrganizationCreateNestedOneWithoutOauthTokensInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutOauthTokensInput connect?: OrganizationWhereUniqueInput } export type OrganizationUpdateOneRequiredWithoutOauthTokensNestedInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutOauthTokensInput upsert?: OrganizationUpsertWithoutOauthTokensInput connect?: OrganizationWhereUniqueInput update?: XOR, OrganizationUncheckedUpdateWithoutOauthTokensInput> } export type WorkspaceCreateNestedOneWithoutReportsInput = { create?: XOR connectOrCreate?: WorkspaceCreateOrConnectWithoutReportsInput connect?: WorkspaceWhereUniqueInput } export type ProjectCreateNestedOneWithoutReportsInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutReportsInput connect?: ProjectWhereUniqueInput } export type WorkspaceUpdateOneRequiredWithoutReportsNestedInput = { create?: XOR connectOrCreate?: WorkspaceCreateOrConnectWithoutReportsInput upsert?: WorkspaceUpsertWithoutReportsInput connect?: WorkspaceWhereUniqueInput update?: XOR, WorkspaceUncheckedUpdateWithoutReportsInput> } export type ProjectUpdateOneRequiredWithoutReportsNestedInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutReportsInput upsert?: ProjectUpsertWithoutReportsInput connect?: ProjectWhereUniqueInput update?: XOR, ProjectUncheckedUpdateWithoutReportsInput> } export type OrganizationCreateNestedOneWithoutAuditEventsInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutAuditEventsInput connect?: OrganizationWhereUniqueInput } export type WorkspaceCreateNestedOneWithoutAuditEventsInput = { create?: XOR connectOrCreate?: WorkspaceCreateOrConnectWithoutAuditEventsInput connect?: WorkspaceWhereUniqueInput } export type ProjectCreateNestedOneWithoutAuditEventsInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutAuditEventsInput connect?: ProjectWhereUniqueInput } export type UserCreateNestedOneWithoutAuditEventsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAuditEventsInput connect?: UserWhereUniqueInput } export type OrganizationUpdateOneRequiredWithoutAuditEventsNestedInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutAuditEventsInput upsert?: OrganizationUpsertWithoutAuditEventsInput connect?: OrganizationWhereUniqueInput update?: XOR, OrganizationUncheckedUpdateWithoutAuditEventsInput> } export type WorkspaceUpdateOneWithoutAuditEventsNestedInput = { create?: XOR connectOrCreate?: WorkspaceCreateOrConnectWithoutAuditEventsInput upsert?: WorkspaceUpsertWithoutAuditEventsInput disconnect?: WorkspaceWhereInput | boolean delete?: WorkspaceWhereInput | boolean connect?: WorkspaceWhereUniqueInput update?: XOR, WorkspaceUncheckedUpdateWithoutAuditEventsInput> } export type ProjectUpdateOneWithoutAuditEventsNestedInput = { create?: XOR connectOrCreate?: ProjectCreateOrConnectWithoutAuditEventsInput upsert?: ProjectUpsertWithoutAuditEventsInput disconnect?: ProjectWhereInput | boolean delete?: ProjectWhereInput | boolean connect?: ProjectWhereUniqueInput update?: XOR, ProjectUncheckedUpdateWithoutAuditEventsInput> } export type UserUpdateOneWithoutAuditEventsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAuditEventsInput upsert?: UserUpsertWithoutAuditEventsInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutAuditEventsInput> } export type OrganizationCreateNestedOneWithoutUsageEventsInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutUsageEventsInput connect?: OrganizationWhereUniqueInput } export type OrganizationUpdateOneRequiredWithoutUsageEventsNestedInput = { create?: XOR connectOrCreate?: OrganizationCreateOrConnectWithoutUsageEventsInput upsert?: OrganizationUpsertWithoutUsageEventsInput connect?: OrganizationWhereUniqueInput update?: XOR, OrganizationUncheckedUpdateWithoutUsageEventsInput> } 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 NestedEnumOrganizationStatusFilter<$PrismaModel = never> = { equals?: $Enums.OrganizationStatus | EnumOrganizationStatusFieldRefInput<$PrismaModel> in?: $Enums.OrganizationStatus[] | ListEnumOrganizationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.OrganizationStatus[] | ListEnumOrganizationStatusFieldRefInput<$PrismaModel> not?: NestedEnumOrganizationStatusFilter<$PrismaModel> | $Enums.OrganizationStatus } export type NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } 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 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 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 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 NestedEnumOrganizationStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.OrganizationStatus | EnumOrganizationStatusFieldRefInput<$PrismaModel> in?: $Enums.OrganizationStatus[] | ListEnumOrganizationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.OrganizationStatus[] | ListEnumOrganizationStatusFieldRefInput<$PrismaModel> not?: NestedEnumOrganizationStatusWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumOrganizationStatusFilter<$PrismaModel> _max?: NestedEnumOrganizationStatusFilter<$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 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 NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type NestedFloatNullableFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableFilter<$PrismaModel> | number | null } export type 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 NestedEnumWorkspaceTypeFilter<$PrismaModel = never> = { equals?: $Enums.WorkspaceType | EnumWorkspaceTypeFieldRefInput<$PrismaModel> in?: $Enums.WorkspaceType[] | ListEnumWorkspaceTypeFieldRefInput<$PrismaModel> notIn?: $Enums.WorkspaceType[] | ListEnumWorkspaceTypeFieldRefInput<$PrismaModel> not?: NestedEnumWorkspaceTypeFilter<$PrismaModel> | $Enums.WorkspaceType } export type NestedEnumWorkspaceTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.WorkspaceType | EnumWorkspaceTypeFieldRefInput<$PrismaModel> in?: $Enums.WorkspaceType[] | ListEnumWorkspaceTypeFieldRefInput<$PrismaModel> notIn?: $Enums.WorkspaceType[] | ListEnumWorkspaceTypeFieldRefInput<$PrismaModel> not?: NestedEnumWorkspaceTypeWithAggregatesFilter<$PrismaModel> | $Enums.WorkspaceType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumWorkspaceTypeFilter<$PrismaModel> _max?: NestedEnumWorkspaceTypeFilter<$PrismaModel> } 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 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 NestedEnumMembershipStatusFilter<$PrismaModel = never> = { equals?: $Enums.MembershipStatus | EnumMembershipStatusFieldRefInput<$PrismaModel> in?: $Enums.MembershipStatus[] | ListEnumMembershipStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MembershipStatus[] | ListEnumMembershipStatusFieldRefInput<$PrismaModel> not?: NestedEnumMembershipStatusFilter<$PrismaModel> | $Enums.MembershipStatus } export type NestedEnumMembershipStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.MembershipStatus | EnumMembershipStatusFieldRefInput<$PrismaModel> in?: $Enums.MembershipStatus[] | ListEnumMembershipStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MembershipStatus[] | ListEnumMembershipStatusFieldRefInput<$PrismaModel> not?: NestedEnumMembershipStatusWithAggregatesFilter<$PrismaModel> | $Enums.MembershipStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumMembershipStatusFilter<$PrismaModel> _max?: NestedEnumMembershipStatusFilter<$PrismaModel> } export type NestedEnumSubscriptionSourceFilter<$PrismaModel = never> = { equals?: $Enums.SubscriptionSource | EnumSubscriptionSourceFieldRefInput<$PrismaModel> in?: $Enums.SubscriptionSource[] | ListEnumSubscriptionSourceFieldRefInput<$PrismaModel> notIn?: $Enums.SubscriptionSource[] | ListEnumSubscriptionSourceFieldRefInput<$PrismaModel> not?: NestedEnumSubscriptionSourceFilter<$PrismaModel> | $Enums.SubscriptionSource } export type NestedEnumSubscriptionStatusFilter<$PrismaModel = never> = { equals?: $Enums.SubscriptionStatus | EnumSubscriptionStatusFieldRefInput<$PrismaModel> in?: $Enums.SubscriptionStatus[] | ListEnumSubscriptionStatusFieldRefInput<$PrismaModel> notIn?: $Enums.SubscriptionStatus[] | ListEnumSubscriptionStatusFieldRefInput<$PrismaModel> not?: NestedEnumSubscriptionStatusFilter<$PrismaModel> | $Enums.SubscriptionStatus } export type NestedEnumSubscriptionSourceWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.SubscriptionSource | EnumSubscriptionSourceFieldRefInput<$PrismaModel> in?: $Enums.SubscriptionSource[] | ListEnumSubscriptionSourceFieldRefInput<$PrismaModel> notIn?: $Enums.SubscriptionSource[] | ListEnumSubscriptionSourceFieldRefInput<$PrismaModel> not?: NestedEnumSubscriptionSourceWithAggregatesFilter<$PrismaModel> | $Enums.SubscriptionSource _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumSubscriptionSourceFilter<$PrismaModel> _max?: NestedEnumSubscriptionSourceFilter<$PrismaModel> } export type NestedEnumSubscriptionStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.SubscriptionStatus | EnumSubscriptionStatusFieldRefInput<$PrismaModel> in?: $Enums.SubscriptionStatus[] | ListEnumSubscriptionStatusFieldRefInput<$PrismaModel> notIn?: $Enums.SubscriptionStatus[] | ListEnumSubscriptionStatusFieldRefInput<$PrismaModel> not?: NestedEnumSubscriptionStatusWithAggregatesFilter<$PrismaModel> | $Enums.SubscriptionStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumSubscriptionStatusFilter<$PrismaModel> _max?: NestedEnumSubscriptionStatusFilter<$PrismaModel> } export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type NestedFloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type NestedJsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: 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 NestedEnumRiskStatusFilter<$PrismaModel = never> = { equals?: $Enums.RiskStatus | EnumRiskStatusFieldRefInput<$PrismaModel> in?: $Enums.RiskStatus[] | ListEnumRiskStatusFieldRefInput<$PrismaModel> notIn?: $Enums.RiskStatus[] | ListEnumRiskStatusFieldRefInput<$PrismaModel> not?: NestedEnumRiskStatusFilter<$PrismaModel> | $Enums.RiskStatus } export type NestedEnumApprovalStatusFilter<$PrismaModel = never> = { equals?: $Enums.ApprovalStatus | EnumApprovalStatusFieldRefInput<$PrismaModel> in?: $Enums.ApprovalStatus[] | ListEnumApprovalStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ApprovalStatus[] | ListEnumApprovalStatusFieldRefInput<$PrismaModel> not?: NestedEnumApprovalStatusFilter<$PrismaModel> | $Enums.ApprovalStatus } export type NestedEnumRiskStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.RiskStatus | EnumRiskStatusFieldRefInput<$PrismaModel> in?: $Enums.RiskStatus[] | ListEnumRiskStatusFieldRefInput<$PrismaModel> notIn?: $Enums.RiskStatus[] | ListEnumRiskStatusFieldRefInput<$PrismaModel> not?: NestedEnumRiskStatusWithAggregatesFilter<$PrismaModel> | $Enums.RiskStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumRiskStatusFilter<$PrismaModel> _max?: NestedEnumRiskStatusFilter<$PrismaModel> } export type NestedEnumApprovalStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ApprovalStatus | EnumApprovalStatusFieldRefInput<$PrismaModel> in?: $Enums.ApprovalStatus[] | ListEnumApprovalStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ApprovalStatus[] | ListEnumApprovalStatusFieldRefInput<$PrismaModel> not?: NestedEnumApprovalStatusWithAggregatesFilter<$PrismaModel> | $Enums.ApprovalStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumApprovalStatusFilter<$PrismaModel> _max?: NestedEnumApprovalStatusFilter<$PrismaModel> } export type NestedEnumMitigationStatusFilter<$PrismaModel = never> = { equals?: $Enums.MitigationStatus | EnumMitigationStatusFieldRefInput<$PrismaModel> in?: $Enums.MitigationStatus[] | ListEnumMitigationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MitigationStatus[] | ListEnumMitigationStatusFieldRefInput<$PrismaModel> not?: NestedEnumMitigationStatusFilter<$PrismaModel> | $Enums.MitigationStatus } export type NestedEnumMitigationStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.MitigationStatus | EnumMitigationStatusFieldRefInput<$PrismaModel> in?: $Enums.MitigationStatus[] | ListEnumMitigationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MitigationStatus[] | ListEnumMitigationStatusFieldRefInput<$PrismaModel> not?: NestedEnumMitigationStatusWithAggregatesFilter<$PrismaModel> | $Enums.MitigationStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumMitigationStatusFilter<$PrismaModel> _max?: NestedEnumMitigationStatusFilter<$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 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 NestedEnumGateStatusFilter<$PrismaModel = never> = { equals?: $Enums.GateStatus | EnumGateStatusFieldRefInput<$PrismaModel> in?: $Enums.GateStatus[] | ListEnumGateStatusFieldRefInput<$PrismaModel> notIn?: $Enums.GateStatus[] | ListEnumGateStatusFieldRefInput<$PrismaModel> not?: NestedEnumGateStatusFilter<$PrismaModel> | $Enums.GateStatus } export type NestedEnumGateStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.GateStatus | EnumGateStatusFieldRefInput<$PrismaModel> in?: $Enums.GateStatus[] | ListEnumGateStatusFieldRefInput<$PrismaModel> notIn?: $Enums.GateStatus[] | ListEnumGateStatusFieldRefInput<$PrismaModel> not?: NestedEnumGateStatusWithAggregatesFilter<$PrismaModel> | $Enums.GateStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumGateStatusFilter<$PrismaModel> _max?: NestedEnumGateStatusFilter<$PrismaModel> } export type NestedEnumGateDecisionValueFilter<$PrismaModel = never> = { equals?: $Enums.GateDecisionValue | EnumGateDecisionValueFieldRefInput<$PrismaModel> in?: $Enums.GateDecisionValue[] | ListEnumGateDecisionValueFieldRefInput<$PrismaModel> notIn?: $Enums.GateDecisionValue[] | ListEnumGateDecisionValueFieldRefInput<$PrismaModel> not?: NestedEnumGateDecisionValueFilter<$PrismaModel> | $Enums.GateDecisionValue } export type NestedEnumGateDecisionValueWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.GateDecisionValue | EnumGateDecisionValueFieldRefInput<$PrismaModel> in?: $Enums.GateDecisionValue[] | ListEnumGateDecisionValueFieldRefInput<$PrismaModel> notIn?: $Enums.GateDecisionValue[] | ListEnumGateDecisionValueFieldRefInput<$PrismaModel> not?: NestedEnumGateDecisionValueWithAggregatesFilter<$PrismaModel> | $Enums.GateDecisionValue _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumGateDecisionValueFilter<$PrismaModel> _max?: NestedEnumGateDecisionValueFilter<$PrismaModel> } export type NestedEnumIntegrationProviderFilter<$PrismaModel = never> = { equals?: $Enums.IntegrationProvider | EnumIntegrationProviderFieldRefInput<$PrismaModel> in?: $Enums.IntegrationProvider[] | ListEnumIntegrationProviderFieldRefInput<$PrismaModel> notIn?: $Enums.IntegrationProvider[] | ListEnumIntegrationProviderFieldRefInput<$PrismaModel> not?: NestedEnumIntegrationProviderFilter<$PrismaModel> | $Enums.IntegrationProvider } export type NestedEnumIntegrationStatusFilter<$PrismaModel = never> = { equals?: $Enums.IntegrationStatus | EnumIntegrationStatusFieldRefInput<$PrismaModel> in?: $Enums.IntegrationStatus[] | ListEnumIntegrationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.IntegrationStatus[] | ListEnumIntegrationStatusFieldRefInput<$PrismaModel> not?: NestedEnumIntegrationStatusFilter<$PrismaModel> | $Enums.IntegrationStatus } export type NestedEnumIntegrationProviderWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.IntegrationProvider | EnumIntegrationProviderFieldRefInput<$PrismaModel> in?: $Enums.IntegrationProvider[] | ListEnumIntegrationProviderFieldRefInput<$PrismaModel> notIn?: $Enums.IntegrationProvider[] | ListEnumIntegrationProviderFieldRefInput<$PrismaModel> not?: NestedEnumIntegrationProviderWithAggregatesFilter<$PrismaModel> | $Enums.IntegrationProvider _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumIntegrationProviderFilter<$PrismaModel> _max?: NestedEnumIntegrationProviderFilter<$PrismaModel> } export type NestedEnumIntegrationStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.IntegrationStatus | EnumIntegrationStatusFieldRefInput<$PrismaModel> in?: $Enums.IntegrationStatus[] | ListEnumIntegrationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.IntegrationStatus[] | ListEnumIntegrationStatusFieldRefInput<$PrismaModel> not?: NestedEnumIntegrationStatusWithAggregatesFilter<$PrismaModel> | $Enums.IntegrationStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumIntegrationStatusFilter<$PrismaModel> _max?: NestedEnumIntegrationStatusFilter<$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[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: 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 WorkspaceCreateWithoutOrganizationInput = { id?: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string projects?: ProjectCreateNestedManyWithoutWorkspaceInput integrations?: IntegrationCreateNestedManyWithoutWorkspaceInput reports?: ReportExportCreateNestedManyWithoutWorkspaceInput auditEvents?: AuditEventCreateNestedManyWithoutWorkspaceInput } export type WorkspaceUncheckedCreateWithoutOrganizationInput = { id?: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string projects?: ProjectUncheckedCreateNestedManyWithoutWorkspaceInput integrations?: IntegrationUncheckedCreateNestedManyWithoutWorkspaceInput reports?: ReportExportUncheckedCreateNestedManyWithoutWorkspaceInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutWorkspaceInput } export type WorkspaceCreateOrConnectWithoutOrganizationInput = { where: WorkspaceWhereUniqueInput create: XOR } export type WorkspaceCreateManyOrganizationInputEnvelope = { data: WorkspaceCreateManyOrganizationInput | WorkspaceCreateManyOrganizationInput[] skipDuplicates?: boolean } export type MembershipCreateWithoutOrganizationInput = { id?: string status?: $Enums.MembershipStatus workspaceScope?: MembershipCreateworkspaceScopeInput | string[] createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutMembershipsInput role: RoleCreateNestedOneWithoutMembershipsInput } export type MembershipUncheckedCreateWithoutOrganizationInput = { id?: string userId: string roleId: string status?: $Enums.MembershipStatus workspaceScope?: MembershipCreateworkspaceScopeInput | string[] createdAt?: Date | string updatedAt?: Date | string } export type MembershipCreateOrConnectWithoutOrganizationInput = { where: MembershipWhereUniqueInput create: XOR } export type MembershipCreateManyOrganizationInputEnvelope = { data: MembershipCreateManyOrganizationInput | MembershipCreateManyOrganizationInput[] skipDuplicates?: boolean } export type SubscriptionCreateWithoutOrganizationInput = { id?: string source?: $Enums.SubscriptionSource status?: $Enums.SubscriptionStatus planCode?: string stripeSubscriptionId?: string | null currentPeriodEnd?: Date | string | null userLimit?: number projectLimit?: number reportLimitMonthly?: number integrationLimit?: number storageMbLimit?: number adminOverride?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SubscriptionUncheckedCreateWithoutOrganizationInput = { id?: string source?: $Enums.SubscriptionSource status?: $Enums.SubscriptionStatus planCode?: string stripeSubscriptionId?: string | null currentPeriodEnd?: Date | string | null userLimit?: number projectLimit?: number reportLimitMonthly?: number integrationLimit?: number storageMbLimit?: number adminOverride?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SubscriptionCreateOrConnectWithoutOrganizationInput = { where: SubscriptionWhereUniqueInput create: XOR } export type SubscriptionCreateManyOrganizationInputEnvelope = { data: SubscriptionCreateManyOrganizationInput | SubscriptionCreateManyOrganizationInput[] skipDuplicates?: boolean } export type AuditEventCreateWithoutOrganizationInput = { id?: string entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string workspace?: WorkspaceCreateNestedOneWithoutAuditEventsInput project?: ProjectCreateNestedOneWithoutAuditEventsInput actor?: UserCreateNestedOneWithoutAuditEventsInput } export type AuditEventUncheckedCreateWithoutOrganizationInput = { id?: string workspaceId?: string | null projectId?: string | null actorUserId?: string | null entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string } export type AuditEventCreateOrConnectWithoutOrganizationInput = { where: AuditEventWhereUniqueInput create: XOR } export type AuditEventCreateManyOrganizationInputEnvelope = { data: AuditEventCreateManyOrganizationInput | AuditEventCreateManyOrganizationInput[] skipDuplicates?: boolean } export type UsageEventCreateWithoutOrganizationInput = { id?: string metric: string quantity?: number metadata?: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type UsageEventUncheckedCreateWithoutOrganizationInput = { id?: string metric: string quantity?: number metadata?: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type UsageEventCreateOrConnectWithoutOrganizationInput = { where: UsageEventWhereUniqueInput create: XOR } export type UsageEventCreateManyOrganizationInputEnvelope = { data: UsageEventCreateManyOrganizationInput | UsageEventCreateManyOrganizationInput[] skipDuplicates?: boolean } export type InvitationCreateWithoutOrganizationInput = { id?: string email: string roleCode: string tokenHash: string expiresAt: Date | string acceptedAt?: Date | string | null createdAt?: Date | string invitedBy?: UserCreateNestedOneWithoutInvitationsSentInput } export type InvitationUncheckedCreateWithoutOrganizationInput = { id?: string email: string roleCode: string tokenHash: string expiresAt: Date | string acceptedAt?: Date | string | null invitedById?: string | null createdAt?: Date | string } export type InvitationCreateOrConnectWithoutOrganizationInput = { where: InvitationWhereUniqueInput create: XOR } export type InvitationCreateManyOrganizationInputEnvelope = { data: InvitationCreateManyOrganizationInput | InvitationCreateManyOrganizationInput[] skipDuplicates?: boolean } export type OAuthTokenCreateWithoutOrganizationInput = { id?: string provider: $Enums.IntegrationProvider integrationId?: string | null encryptedToken: JsonNullValueInput | InputJsonValue redactedToken: string expiresAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type OAuthTokenUncheckedCreateWithoutOrganizationInput = { id?: string provider: $Enums.IntegrationProvider integrationId?: string | null encryptedToken: JsonNullValueInput | InputJsonValue redactedToken: string expiresAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type OAuthTokenCreateOrConnectWithoutOrganizationInput = { where: OAuthTokenWhereUniqueInput create: XOR } export type OAuthTokenCreateManyOrganizationInputEnvelope = { data: OAuthTokenCreateManyOrganizationInput | OAuthTokenCreateManyOrganizationInput[] skipDuplicates?: boolean } export type WorkspaceUpsertWithWhereUniqueWithoutOrganizationInput = { where: WorkspaceWhereUniqueInput update: XOR create: XOR } export type WorkspaceUpdateWithWhereUniqueWithoutOrganizationInput = { where: WorkspaceWhereUniqueInput data: XOR } export type WorkspaceUpdateManyWithWhereWithoutOrganizationInput = { where: WorkspaceScalarWhereInput data: XOR } export type WorkspaceScalarWhereInput = { AND?: WorkspaceScalarWhereInput | WorkspaceScalarWhereInput[] OR?: WorkspaceScalarWhereInput[] NOT?: WorkspaceScalarWhereInput | WorkspaceScalarWhereInput[] id?: StringFilter<"Workspace"> | string organizationId?: StringFilter<"Workspace"> | string name?: StringFilter<"Workspace"> | string slug?: StringFilter<"Workspace"> | string type?: EnumWorkspaceTypeFilter<"Workspace"> | $Enums.WorkspaceType status?: EnumOrganizationStatusFilter<"Workspace"> | $Enums.OrganizationStatus createdAt?: DateTimeFilter<"Workspace"> | Date | string updatedAt?: DateTimeFilter<"Workspace"> | Date | string } export type MembershipUpsertWithWhereUniqueWithoutOrganizationInput = { where: MembershipWhereUniqueInput update: XOR create: XOR } export type MembershipUpdateWithWhereUniqueWithoutOrganizationInput = { where: MembershipWhereUniqueInput data: XOR } export type MembershipUpdateManyWithWhereWithoutOrganizationInput = { where: MembershipScalarWhereInput data: XOR } export type MembershipScalarWhereInput = { AND?: MembershipScalarWhereInput | MembershipScalarWhereInput[] OR?: MembershipScalarWhereInput[] NOT?: MembershipScalarWhereInput | MembershipScalarWhereInput[] id?: StringFilter<"Membership"> | string organizationId?: StringFilter<"Membership"> | string userId?: StringFilter<"Membership"> | string roleId?: StringFilter<"Membership"> | string status?: EnumMembershipStatusFilter<"Membership"> | $Enums.MembershipStatus workspaceScope?: StringNullableListFilter<"Membership"> createdAt?: DateTimeFilter<"Membership"> | Date | string updatedAt?: DateTimeFilter<"Membership"> | Date | string } export type SubscriptionUpsertWithWhereUniqueWithoutOrganizationInput = { where: SubscriptionWhereUniqueInput update: XOR create: XOR } export type SubscriptionUpdateWithWhereUniqueWithoutOrganizationInput = { where: SubscriptionWhereUniqueInput data: XOR } export type SubscriptionUpdateManyWithWhereWithoutOrganizationInput = { where: SubscriptionScalarWhereInput data: XOR } export type SubscriptionScalarWhereInput = { AND?: SubscriptionScalarWhereInput | SubscriptionScalarWhereInput[] OR?: SubscriptionScalarWhereInput[] NOT?: SubscriptionScalarWhereInput | SubscriptionScalarWhereInput[] id?: StringFilter<"Subscription"> | string organizationId?: StringFilter<"Subscription"> | string source?: EnumSubscriptionSourceFilter<"Subscription"> | $Enums.SubscriptionSource status?: EnumSubscriptionStatusFilter<"Subscription"> | $Enums.SubscriptionStatus planCode?: StringFilter<"Subscription"> | string stripeSubscriptionId?: StringNullableFilter<"Subscription"> | string | null currentPeriodEnd?: DateTimeNullableFilter<"Subscription"> | Date | string | null userLimit?: IntFilter<"Subscription"> | number projectLimit?: IntFilter<"Subscription"> | number reportLimitMonthly?: IntFilter<"Subscription"> | number integrationLimit?: IntFilter<"Subscription"> | number storageMbLimit?: IntFilter<"Subscription"> | number adminOverride?: BoolFilter<"Subscription"> | boolean createdAt?: DateTimeFilter<"Subscription"> | Date | string updatedAt?: DateTimeFilter<"Subscription"> | Date | string } export type AuditEventUpsertWithWhereUniqueWithoutOrganizationInput = { where: AuditEventWhereUniqueInput update: XOR create: XOR } export type AuditEventUpdateWithWhereUniqueWithoutOrganizationInput = { where: AuditEventWhereUniqueInput data: XOR } export type AuditEventUpdateManyWithWhereWithoutOrganizationInput = { where: AuditEventScalarWhereInput data: XOR } export type AuditEventScalarWhereInput = { AND?: AuditEventScalarWhereInput | AuditEventScalarWhereInput[] OR?: AuditEventScalarWhereInput[] NOT?: AuditEventScalarWhereInput | AuditEventScalarWhereInput[] id?: StringFilter<"AuditEvent"> | string organizationId?: StringFilter<"AuditEvent"> | string workspaceId?: StringNullableFilter<"AuditEvent"> | string | null projectId?: StringNullableFilter<"AuditEvent"> | string | null actorUserId?: StringNullableFilter<"AuditEvent"> | string | null entityType?: StringFilter<"AuditEvent"> | string entityId?: StringFilter<"AuditEvent"> | string action?: StringFilter<"AuditEvent"> | string beforeJson?: JsonNullableFilter<"AuditEvent"> afterJson?: JsonNullableFilter<"AuditEvent"> ipAddress?: StringNullableFilter<"AuditEvent"> | string | null userAgent?: StringNullableFilter<"AuditEvent"> | string | null createdAt?: DateTimeFilter<"AuditEvent"> | Date | string } export type UsageEventUpsertWithWhereUniqueWithoutOrganizationInput = { where: UsageEventWhereUniqueInput update: XOR create: XOR } export type UsageEventUpdateWithWhereUniqueWithoutOrganizationInput = { where: UsageEventWhereUniqueInput data: XOR } export type UsageEventUpdateManyWithWhereWithoutOrganizationInput = { where: UsageEventScalarWhereInput data: XOR } export type UsageEventScalarWhereInput = { AND?: UsageEventScalarWhereInput | UsageEventScalarWhereInput[] OR?: UsageEventScalarWhereInput[] NOT?: UsageEventScalarWhereInput | UsageEventScalarWhereInput[] id?: StringFilter<"UsageEvent"> | string organizationId?: StringFilter<"UsageEvent"> | string metric?: StringFilter<"UsageEvent"> | string quantity?: IntFilter<"UsageEvent"> | number metadata?: JsonFilter<"UsageEvent"> createdAt?: DateTimeFilter<"UsageEvent"> | Date | string } export type InvitationUpsertWithWhereUniqueWithoutOrganizationInput = { where: InvitationWhereUniqueInput update: XOR create: XOR } export type InvitationUpdateWithWhereUniqueWithoutOrganizationInput = { where: InvitationWhereUniqueInput data: XOR } export type InvitationUpdateManyWithWhereWithoutOrganizationInput = { where: InvitationScalarWhereInput data: XOR } export type InvitationScalarWhereInput = { AND?: InvitationScalarWhereInput | InvitationScalarWhereInput[] OR?: InvitationScalarWhereInput[] NOT?: InvitationScalarWhereInput | InvitationScalarWhereInput[] id?: StringFilter<"Invitation"> | string organizationId?: StringFilter<"Invitation"> | string email?: StringFilter<"Invitation"> | string roleCode?: StringFilter<"Invitation"> | string tokenHash?: StringFilter<"Invitation"> | string expiresAt?: DateTimeFilter<"Invitation"> | Date | string acceptedAt?: DateTimeNullableFilter<"Invitation"> | Date | string | null invitedById?: StringNullableFilter<"Invitation"> | string | null createdAt?: DateTimeFilter<"Invitation"> | Date | string } export type OAuthTokenUpsertWithWhereUniqueWithoutOrganizationInput = { where: OAuthTokenWhereUniqueInput update: XOR create: XOR } export type OAuthTokenUpdateWithWhereUniqueWithoutOrganizationInput = { where: OAuthTokenWhereUniqueInput data: XOR } export type OAuthTokenUpdateManyWithWhereWithoutOrganizationInput = { where: OAuthTokenScalarWhereInput data: XOR } export type OAuthTokenScalarWhereInput = { AND?: OAuthTokenScalarWhereInput | OAuthTokenScalarWhereInput[] OR?: OAuthTokenScalarWhereInput[] NOT?: OAuthTokenScalarWhereInput | OAuthTokenScalarWhereInput[] id?: StringFilter<"OAuthToken"> | string organizationId?: StringFilter<"OAuthToken"> | string provider?: EnumIntegrationProviderFilter<"OAuthToken"> | $Enums.IntegrationProvider integrationId?: StringNullableFilter<"OAuthToken"> | string | null encryptedToken?: JsonFilter<"OAuthToken"> redactedToken?: StringFilter<"OAuthToken"> | string expiresAt?: DateTimeNullableFilter<"OAuthToken"> | Date | string | null createdAt?: DateTimeFilter<"OAuthToken"> | Date | string updatedAt?: DateTimeFilter<"OAuthToken"> | Date | string } export type OrganizationCreateWithoutWorkspacesInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string memberships?: MembershipCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventCreateNestedManyWithoutOrganizationInput invitations?: InvitationCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenCreateNestedManyWithoutOrganizationInput } export type OrganizationUncheckedCreateWithoutWorkspacesInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string memberships?: MembershipUncheckedCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionUncheckedCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventUncheckedCreateNestedManyWithoutOrganizationInput invitations?: InvitationUncheckedCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenUncheckedCreateNestedManyWithoutOrganizationInput } export type OrganizationCreateOrConnectWithoutWorkspacesInput = { where: OrganizationWhereUniqueInput create: XOR } export type ProjectCreateWithoutWorkspaceInput = { id?: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string lifecyclePhases?: LifecyclePhaseCreateNestedManyWithoutProjectInput risks?: RiskCreateNestedManyWithoutProjectInput indicators?: IndicatorCreateNestedManyWithoutProjectInput experiments?: ExperimentCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationCreateNestedManyWithoutProjectInput auditEvents?: AuditEventCreateNestedManyWithoutProjectInput reports?: ReportExportCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutWorkspaceInput = { id?: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string lifecyclePhases?: LifecyclePhaseUncheckedCreateNestedManyWithoutProjectInput risks?: RiskUncheckedCreateNestedManyWithoutProjectInput indicators?: IndicatorUncheckedCreateNestedManyWithoutProjectInput experiments?: ExperimentUncheckedCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationUncheckedCreateNestedManyWithoutProjectInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutProjectInput reports?: ReportExportUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutWorkspaceInput = { where: ProjectWhereUniqueInput create: XOR } export type ProjectCreateManyWorkspaceInputEnvelope = { data: ProjectCreateManyWorkspaceInput | ProjectCreateManyWorkspaceInput[] skipDuplicates?: boolean } export type IntegrationCreateWithoutWorkspaceInput = { id?: string provider: $Enums.IntegrationProvider workspaceName: string externalProjectKey?: string | null baseUrl?: string | null authMode: string connectionStatus?: $Enums.IntegrationStatus syncDirection?: string liveEnabled?: boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string mappings?: ExternalWorkItemMappingCreateNestedManyWithoutIntegrationInput syncRuns?: IntegrationSyncRunCreateNestedManyWithoutIntegrationInput } export type IntegrationUncheckedCreateWithoutWorkspaceInput = { id?: string provider: $Enums.IntegrationProvider workspaceName: string externalProjectKey?: string | null baseUrl?: string | null authMode: string connectionStatus?: $Enums.IntegrationStatus syncDirection?: string liveEnabled?: boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string mappings?: ExternalWorkItemMappingUncheckedCreateNestedManyWithoutIntegrationInput syncRuns?: IntegrationSyncRunUncheckedCreateNestedManyWithoutIntegrationInput } export type IntegrationCreateOrConnectWithoutWorkspaceInput = { where: IntegrationWhereUniqueInput create: XOR } export type IntegrationCreateManyWorkspaceInputEnvelope = { data: IntegrationCreateManyWorkspaceInput | IntegrationCreateManyWorkspaceInput[] skipDuplicates?: boolean } export type ReportExportCreateWithoutWorkspaceInput = { id?: string reportType: string format: string status?: string metadata?: JsonNullValueInput | InputJsonValue createdById?: string | null createdAt?: Date | string project: ProjectCreateNestedOneWithoutReportsInput } export type ReportExportUncheckedCreateWithoutWorkspaceInput = { id?: string projectId: string reportType: string format: string status?: string metadata?: JsonNullValueInput | InputJsonValue createdById?: string | null createdAt?: Date | string } export type ReportExportCreateOrConnectWithoutWorkspaceInput = { where: ReportExportWhereUniqueInput create: XOR } export type ReportExportCreateManyWorkspaceInputEnvelope = { data: ReportExportCreateManyWorkspaceInput | ReportExportCreateManyWorkspaceInput[] skipDuplicates?: boolean } export type AuditEventCreateWithoutWorkspaceInput = { id?: string entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string organization: OrganizationCreateNestedOneWithoutAuditEventsInput project?: ProjectCreateNestedOneWithoutAuditEventsInput actor?: UserCreateNestedOneWithoutAuditEventsInput } export type AuditEventUncheckedCreateWithoutWorkspaceInput = { id?: string organizationId: string projectId?: string | null actorUserId?: string | null entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string } export type AuditEventCreateOrConnectWithoutWorkspaceInput = { where: AuditEventWhereUniqueInput create: XOR } export type AuditEventCreateManyWorkspaceInputEnvelope = { data: AuditEventCreateManyWorkspaceInput | AuditEventCreateManyWorkspaceInput[] skipDuplicates?: boolean } export type OrganizationUpsertWithoutWorkspacesInput = { update: XOR create: XOR where?: OrganizationWhereInput } export type OrganizationUpdateToOneWithWhereWithoutWorkspacesInput = { where?: OrganizationWhereInput data: XOR } export type OrganizationUpdateWithoutWorkspacesInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string memberships?: MembershipUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUpdateManyWithoutOrganizationNestedInput } export type OrganizationUncheckedUpdateWithoutWorkspacesInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string memberships?: MembershipUncheckedUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUncheckedUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUncheckedUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUncheckedUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUncheckedUpdateManyWithoutOrganizationNestedInput } export type ProjectUpsertWithWhereUniqueWithoutWorkspaceInput = { where: ProjectWhereUniqueInput update: XOR create: XOR } export type ProjectUpdateWithWhereUniqueWithoutWorkspaceInput = { where: ProjectWhereUniqueInput data: XOR } export type ProjectUpdateManyWithWhereWithoutWorkspaceInput = { where: ProjectScalarWhereInput data: XOR } export type ProjectScalarWhereInput = { AND?: ProjectScalarWhereInput | ProjectScalarWhereInput[] OR?: ProjectScalarWhereInput[] NOT?: ProjectScalarWhereInput | ProjectScalarWhereInput[] id?: StringFilter<"Project"> | string workspaceId?: StringFilter<"Project"> | string name?: StringFilter<"Project"> | string subtitle?: StringNullableFilter<"Project"> | string | null projectType?: StringFilter<"Project"> | string currentLifecyclePhase?: StringNullableFilter<"Project"> | string | null riskAppetite?: IntFilter<"Project"> | number assessmentDate?: DateTimeNullableFilter<"Project"> | Date | string | null status?: StringFilter<"Project"> | string ownerDisplayName?: StringNullableFilter<"Project"> | string | null description?: StringNullableFilter<"Project"> | string | null thresholds?: JsonFilter<"Project"> reviews?: JsonFilter<"Project"> createdAt?: DateTimeFilter<"Project"> | Date | string updatedAt?: DateTimeFilter<"Project"> | Date | string } export type IntegrationUpsertWithWhereUniqueWithoutWorkspaceInput = { where: IntegrationWhereUniqueInput update: XOR create: XOR } export type IntegrationUpdateWithWhereUniqueWithoutWorkspaceInput = { where: IntegrationWhereUniqueInput data: XOR } export type IntegrationUpdateManyWithWhereWithoutWorkspaceInput = { where: IntegrationScalarWhereInput data: XOR } export type IntegrationScalarWhereInput = { AND?: IntegrationScalarWhereInput | IntegrationScalarWhereInput[] OR?: IntegrationScalarWhereInput[] NOT?: IntegrationScalarWhereInput | IntegrationScalarWhereInput[] id?: StringFilter<"Integration"> | string workspaceId?: StringFilter<"Integration"> | string provider?: EnumIntegrationProviderFilter<"Integration"> | $Enums.IntegrationProvider workspaceName?: StringFilter<"Integration"> | string externalProjectKey?: StringNullableFilter<"Integration"> | string | null baseUrl?: StringNullableFilter<"Integration"> | string | null authMode?: StringFilter<"Integration"> | string connectionStatus?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus syncDirection?: StringFilter<"Integration"> | string liveEnabled?: BoolFilter<"Integration"> | boolean liveConfig?: JsonFilter<"Integration"> lastSyncAt?: DateTimeNullableFilter<"Integration"> | Date | string | null createdAt?: DateTimeFilter<"Integration"> | Date | string updatedAt?: DateTimeFilter<"Integration"> | Date | string } export type ReportExportUpsertWithWhereUniqueWithoutWorkspaceInput = { where: ReportExportWhereUniqueInput update: XOR create: XOR } export type ReportExportUpdateWithWhereUniqueWithoutWorkspaceInput = { where: ReportExportWhereUniqueInput data: XOR } export type ReportExportUpdateManyWithWhereWithoutWorkspaceInput = { where: ReportExportScalarWhereInput data: XOR } export type ReportExportScalarWhereInput = { AND?: ReportExportScalarWhereInput | ReportExportScalarWhereInput[] OR?: ReportExportScalarWhereInput[] NOT?: ReportExportScalarWhereInput | ReportExportScalarWhereInput[] id?: StringFilter<"ReportExport"> | string workspaceId?: StringFilter<"ReportExport"> | string projectId?: StringFilter<"ReportExport"> | string reportType?: StringFilter<"ReportExport"> | string format?: StringFilter<"ReportExport"> | string status?: StringFilter<"ReportExport"> | string metadata?: JsonFilter<"ReportExport"> createdById?: StringNullableFilter<"ReportExport"> | string | null createdAt?: DateTimeFilter<"ReportExport"> | Date | string } export type AuditEventUpsertWithWhereUniqueWithoutWorkspaceInput = { where: AuditEventWhereUniqueInput update: XOR create: XOR } export type AuditEventUpdateWithWhereUniqueWithoutWorkspaceInput = { where: AuditEventWhereUniqueInput data: XOR } export type AuditEventUpdateManyWithWhereWithoutWorkspaceInput = { where: AuditEventScalarWhereInput data: XOR } export type MembershipCreateWithoutUserInput = { id?: string status?: $Enums.MembershipStatus workspaceScope?: MembershipCreateworkspaceScopeInput | string[] createdAt?: Date | string updatedAt?: Date | string organization: OrganizationCreateNestedOneWithoutMembershipsInput role: RoleCreateNestedOneWithoutMembershipsInput } export type MembershipUncheckedCreateWithoutUserInput = { id?: string organizationId: string roleId: string status?: $Enums.MembershipStatus workspaceScope?: MembershipCreateworkspaceScopeInput | string[] createdAt?: Date | string updatedAt?: Date | string } export type MembershipCreateOrConnectWithoutUserInput = { where: MembershipWhereUniqueInput create: XOR } export type MembershipCreateManyUserInputEnvelope = { data: MembershipCreateManyUserInput | MembershipCreateManyUserInput[] skipDuplicates?: boolean } export type InvitationCreateWithoutInvitedByInput = { id?: string email: string roleCode: string tokenHash: string expiresAt: Date | string acceptedAt?: Date | string | null createdAt?: Date | string organization: OrganizationCreateNestedOneWithoutInvitationsInput } export type InvitationUncheckedCreateWithoutInvitedByInput = { id?: string organizationId: string email: string roleCode: string tokenHash: string expiresAt: Date | string acceptedAt?: Date | string | null createdAt?: Date | string } export type InvitationCreateOrConnectWithoutInvitedByInput = { where: InvitationWhereUniqueInput create: XOR } export type InvitationCreateManyInvitedByInputEnvelope = { data: InvitationCreateManyInvitedByInput | InvitationCreateManyInvitedByInput[] skipDuplicates?: boolean } export type AuditEventCreateWithoutActorInput = { id?: string entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string organization: OrganizationCreateNestedOneWithoutAuditEventsInput workspace?: WorkspaceCreateNestedOneWithoutAuditEventsInput project?: ProjectCreateNestedOneWithoutAuditEventsInput } export type AuditEventUncheckedCreateWithoutActorInput = { id?: string organizationId: string workspaceId?: string | null projectId?: string | null entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string } export type AuditEventCreateOrConnectWithoutActorInput = { where: AuditEventWhereUniqueInput create: XOR } export type AuditEventCreateManyActorInputEnvelope = { data: AuditEventCreateManyActorInput | AuditEventCreateManyActorInput[] skipDuplicates?: boolean } export type SessionCreateWithoutUserInput = { id?: string token: string expiresAt: Date | string createdAt?: Date | string } export type SessionUncheckedCreateWithoutUserInput = { id?: string token: string expiresAt: Date | string createdAt?: Date | string } export type SessionCreateOrConnectWithoutUserInput = { where: SessionWhereUniqueInput create: XOR } export type SessionCreateManyUserInputEnvelope = { data: SessionCreateManyUserInput | SessionCreateManyUserInput[] skipDuplicates?: boolean } export type MembershipUpsertWithWhereUniqueWithoutUserInput = { where: MembershipWhereUniqueInput update: XOR create: XOR } export type MembershipUpdateWithWhereUniqueWithoutUserInput = { where: MembershipWhereUniqueInput data: XOR } export type MembershipUpdateManyWithWhereWithoutUserInput = { where: MembershipScalarWhereInput data: XOR } export type InvitationUpsertWithWhereUniqueWithoutInvitedByInput = { where: InvitationWhereUniqueInput update: XOR create: XOR } export type InvitationUpdateWithWhereUniqueWithoutInvitedByInput = { where: InvitationWhereUniqueInput data: XOR } export type InvitationUpdateManyWithWhereWithoutInvitedByInput = { where: InvitationScalarWhereInput data: XOR } export type AuditEventUpsertWithWhereUniqueWithoutActorInput = { where: AuditEventWhereUniqueInput update: XOR create: XOR } export type AuditEventUpdateWithWhereUniqueWithoutActorInput = { where: AuditEventWhereUniqueInput data: XOR } export type AuditEventUpdateManyWithWhereWithoutActorInput = { where: AuditEventScalarWhereInput data: XOR } export type SessionUpsertWithWhereUniqueWithoutUserInput = { where: SessionWhereUniqueInput update: XOR create: XOR } export type SessionUpdateWithWhereUniqueWithoutUserInput = { where: SessionWhereUniqueInput data: XOR } export type SessionUpdateManyWithWhereWithoutUserInput = { where: SessionScalarWhereInput data: XOR } export type SessionScalarWhereInput = { AND?: SessionScalarWhereInput | SessionScalarWhereInput[] OR?: SessionScalarWhereInput[] NOT?: SessionScalarWhereInput | SessionScalarWhereInput[] id?: StringFilter<"Session"> | string userId?: StringFilter<"Session"> | string token?: StringFilter<"Session"> | string expiresAt?: DateTimeFilter<"Session"> | Date | string createdAt?: DateTimeFilter<"Session"> | Date | string } export type UserCreateWithoutSessionsInput = { id?: string email: string displayName: string passwordHash?: string | null emailVerifiedAt?: Date | string | null lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string memberships?: MembershipCreateNestedManyWithoutUserInput invitationsSent?: InvitationCreateNestedManyWithoutInvitedByInput auditEvents?: AuditEventCreateNestedManyWithoutActorInput } export type UserUncheckedCreateWithoutSessionsInput = { id?: string email: string displayName: string passwordHash?: string | null emailVerifiedAt?: Date | string | null lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string memberships?: MembershipUncheckedCreateNestedManyWithoutUserInput invitationsSent?: InvitationUncheckedCreateNestedManyWithoutInvitedByInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutActorInput } export type UserCreateOrConnectWithoutSessionsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutSessionsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutSessionsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutSessionsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string displayName?: StringFieldUpdateOperationsInput | string passwordHash?: NullableStringFieldUpdateOperationsInput | string | null emailVerifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string memberships?: MembershipUpdateManyWithoutUserNestedInput invitationsSent?: InvitationUpdateManyWithoutInvitedByNestedInput auditEvents?: AuditEventUpdateManyWithoutActorNestedInput } export type UserUncheckedUpdateWithoutSessionsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string displayName?: StringFieldUpdateOperationsInput | string passwordHash?: NullableStringFieldUpdateOperationsInput | string | null emailVerifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string memberships?: MembershipUncheckedUpdateManyWithoutUserNestedInput invitationsSent?: InvitationUncheckedUpdateManyWithoutInvitedByNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutActorNestedInput } export type MembershipCreateWithoutRoleInput = { id?: string status?: $Enums.MembershipStatus workspaceScope?: MembershipCreateworkspaceScopeInput | string[] createdAt?: Date | string updatedAt?: Date | string organization: OrganizationCreateNestedOneWithoutMembershipsInput user: UserCreateNestedOneWithoutMembershipsInput } export type MembershipUncheckedCreateWithoutRoleInput = { id?: string organizationId: string userId: string status?: $Enums.MembershipStatus workspaceScope?: MembershipCreateworkspaceScopeInput | string[] createdAt?: Date | string updatedAt?: Date | string } export type MembershipCreateOrConnectWithoutRoleInput = { where: MembershipWhereUniqueInput create: XOR } export type MembershipCreateManyRoleInputEnvelope = { data: MembershipCreateManyRoleInput | MembershipCreateManyRoleInput[] skipDuplicates?: boolean } export type MembershipUpsertWithWhereUniqueWithoutRoleInput = { where: MembershipWhereUniqueInput update: XOR create: XOR } export type MembershipUpdateWithWhereUniqueWithoutRoleInput = { where: MembershipWhereUniqueInput data: XOR } export type MembershipUpdateManyWithWhereWithoutRoleInput = { where: MembershipScalarWhereInput data: XOR } export type OrganizationCreateWithoutMembershipsInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventCreateNestedManyWithoutOrganizationInput invitations?: InvitationCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenCreateNestedManyWithoutOrganizationInput } export type OrganizationUncheckedCreateWithoutMembershipsInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceUncheckedCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionUncheckedCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventUncheckedCreateNestedManyWithoutOrganizationInput invitations?: InvitationUncheckedCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenUncheckedCreateNestedManyWithoutOrganizationInput } export type OrganizationCreateOrConnectWithoutMembershipsInput = { where: OrganizationWhereUniqueInput create: XOR } export type UserCreateWithoutMembershipsInput = { id?: string email: string displayName: string passwordHash?: string | null emailVerifiedAt?: Date | string | null lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string invitationsSent?: InvitationCreateNestedManyWithoutInvitedByInput auditEvents?: AuditEventCreateNestedManyWithoutActorInput sessions?: SessionCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutMembershipsInput = { id?: string email: string displayName: string passwordHash?: string | null emailVerifiedAt?: Date | string | null lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string invitationsSent?: InvitationUncheckedCreateNestedManyWithoutInvitedByInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutActorInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutMembershipsInput = { where: UserWhereUniqueInput create: XOR } export type RoleCreateWithoutMembershipsInput = { id?: string code: string name: string permissions?: RoleCreatepermissionsInput | string[] system?: boolean createdAt?: Date | string updatedAt?: Date | string } export type RoleUncheckedCreateWithoutMembershipsInput = { id?: string code: string name: string permissions?: RoleCreatepermissionsInput | string[] system?: boolean createdAt?: Date | string updatedAt?: Date | string } export type RoleCreateOrConnectWithoutMembershipsInput = { where: RoleWhereUniqueInput create: XOR } export type OrganizationUpsertWithoutMembershipsInput = { update: XOR create: XOR where?: OrganizationWhereInput } export type OrganizationUpdateToOneWithWhereWithoutMembershipsInput = { where?: OrganizationWhereInput data: XOR } export type OrganizationUpdateWithoutMembershipsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUpdateManyWithoutOrganizationNestedInput } export type OrganizationUncheckedUpdateWithoutMembershipsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUncheckedUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUncheckedUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUncheckedUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUncheckedUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUncheckedUpdateManyWithoutOrganizationNestedInput } export type UserUpsertWithoutMembershipsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutMembershipsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutMembershipsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string displayName?: StringFieldUpdateOperationsInput | string passwordHash?: NullableStringFieldUpdateOperationsInput | string | null emailVerifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string invitationsSent?: InvitationUpdateManyWithoutInvitedByNestedInput auditEvents?: AuditEventUpdateManyWithoutActorNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutMembershipsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string displayName?: StringFieldUpdateOperationsInput | string passwordHash?: NullableStringFieldUpdateOperationsInput | string | null emailVerifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string invitationsSent?: InvitationUncheckedUpdateManyWithoutInvitedByNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutActorNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput } export type RoleUpsertWithoutMembershipsInput = { update: XOR create: XOR where?: RoleWhereInput } export type RoleUpdateToOneWithWhereWithoutMembershipsInput = { where?: RoleWhereInput data: XOR } export type RoleUpdateWithoutMembershipsInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string permissions?: RoleUpdatepermissionsInput | string[] system?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type RoleUncheckedUpdateWithoutMembershipsInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string permissions?: RoleUpdatepermissionsInput | string[] system?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type OrganizationCreateWithoutInvitationsInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceCreateNestedManyWithoutOrganizationInput memberships?: MembershipCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenCreateNestedManyWithoutOrganizationInput } export type OrganizationUncheckedCreateWithoutInvitationsInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceUncheckedCreateNestedManyWithoutOrganizationInput memberships?: MembershipUncheckedCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionUncheckedCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventUncheckedCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenUncheckedCreateNestedManyWithoutOrganizationInput } export type OrganizationCreateOrConnectWithoutInvitationsInput = { where: OrganizationWhereUniqueInput create: XOR } export type UserCreateWithoutInvitationsSentInput = { id?: string email: string displayName: string passwordHash?: string | null emailVerifiedAt?: Date | string | null lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string memberships?: MembershipCreateNestedManyWithoutUserInput auditEvents?: AuditEventCreateNestedManyWithoutActorInput sessions?: SessionCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutInvitationsSentInput = { id?: string email: string displayName: string passwordHash?: string | null emailVerifiedAt?: Date | string | null lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string memberships?: MembershipUncheckedCreateNestedManyWithoutUserInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutActorInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutInvitationsSentInput = { where: UserWhereUniqueInput create: XOR } export type OrganizationUpsertWithoutInvitationsInput = { update: XOR create: XOR where?: OrganizationWhereInput } export type OrganizationUpdateToOneWithWhereWithoutInvitationsInput = { where?: OrganizationWhereInput data: XOR } export type OrganizationUpdateWithoutInvitationsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUpdateManyWithoutOrganizationNestedInput memberships?: MembershipUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUpdateManyWithoutOrganizationNestedInput } export type OrganizationUncheckedUpdateWithoutInvitationsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUncheckedUpdateManyWithoutOrganizationNestedInput memberships?: MembershipUncheckedUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUncheckedUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUncheckedUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUncheckedUpdateManyWithoutOrganizationNestedInput } export type UserUpsertWithoutInvitationsSentInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutInvitationsSentInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutInvitationsSentInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string displayName?: StringFieldUpdateOperationsInput | string passwordHash?: NullableStringFieldUpdateOperationsInput | string | null emailVerifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string memberships?: MembershipUpdateManyWithoutUserNestedInput auditEvents?: AuditEventUpdateManyWithoutActorNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutInvitationsSentInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string displayName?: StringFieldUpdateOperationsInput | string passwordHash?: NullableStringFieldUpdateOperationsInput | string | null emailVerifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string memberships?: MembershipUncheckedUpdateManyWithoutUserNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutActorNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput } export type OrganizationCreateWithoutSubscriptionsInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceCreateNestedManyWithoutOrganizationInput memberships?: MembershipCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventCreateNestedManyWithoutOrganizationInput invitations?: InvitationCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenCreateNestedManyWithoutOrganizationInput } export type OrganizationUncheckedCreateWithoutSubscriptionsInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceUncheckedCreateNestedManyWithoutOrganizationInput memberships?: MembershipUncheckedCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventUncheckedCreateNestedManyWithoutOrganizationInput invitations?: InvitationUncheckedCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenUncheckedCreateNestedManyWithoutOrganizationInput } export type OrganizationCreateOrConnectWithoutSubscriptionsInput = { where: OrganizationWhereUniqueInput create: XOR } export type OrganizationUpsertWithoutSubscriptionsInput = { update: XOR create: XOR where?: OrganizationWhereInput } export type OrganizationUpdateToOneWithWhereWithoutSubscriptionsInput = { where?: OrganizationWhereInput data: XOR } export type OrganizationUpdateWithoutSubscriptionsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUpdateManyWithoutOrganizationNestedInput memberships?: MembershipUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUpdateManyWithoutOrganizationNestedInput } export type OrganizationUncheckedUpdateWithoutSubscriptionsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUncheckedUpdateManyWithoutOrganizationNestedInput memberships?: MembershipUncheckedUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUncheckedUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUncheckedUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUncheckedUpdateManyWithoutOrganizationNestedInput } export type WorkspaceCreateWithoutProjectsInput = { id?: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string organization: OrganizationCreateNestedOneWithoutWorkspacesInput integrations?: IntegrationCreateNestedManyWithoutWorkspaceInput reports?: ReportExportCreateNestedManyWithoutWorkspaceInput auditEvents?: AuditEventCreateNestedManyWithoutWorkspaceInput } export type WorkspaceUncheckedCreateWithoutProjectsInput = { id?: string organizationId: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string integrations?: IntegrationUncheckedCreateNestedManyWithoutWorkspaceInput reports?: ReportExportUncheckedCreateNestedManyWithoutWorkspaceInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutWorkspaceInput } export type WorkspaceCreateOrConnectWithoutProjectsInput = { where: WorkspaceWhereUniqueInput create: XOR } export type LifecyclePhaseCreateWithoutProjectInput = { id?: string name: string status: string readinessScore: number sequence: number createdAt?: Date | string updatedAt?: Date | string } export type LifecyclePhaseUncheckedCreateWithoutProjectInput = { id?: string name: string status: string readinessScore: number sequence: number createdAt?: Date | string updatedAt?: Date | string } export type LifecyclePhaseCreateOrConnectWithoutProjectInput = { where: LifecyclePhaseWhereUniqueInput create: XOR } export type LifecyclePhaseCreateManyProjectInputEnvelope = { data: LifecyclePhaseCreateManyProjectInput | LifecyclePhaseCreateManyProjectInput[] skipDuplicates?: boolean } export type RiskCreateWithoutProjectInput = { id?: string ownerDisplayName?: string | null title: string description?: string | null dimension: string domain: string lifecyclePhase: string probability: number impact: number detectability: number status?: $Enums.RiskStatus approvalStatus?: $Enums.ApprovalStatus dueDate?: Date | string | null evidenceSummary?: string | null createdAt?: Date | string updatedAt?: Date | string mitigations?: MitigationCreateNestedManyWithoutRiskInput evidence?: EvidenceCreateNestedManyWithoutRiskInput } export type RiskUncheckedCreateWithoutProjectInput = { id?: string ownerDisplayName?: string | null title: string description?: string | null dimension: string domain: string lifecyclePhase: string probability: number impact: number detectability: number status?: $Enums.RiskStatus approvalStatus?: $Enums.ApprovalStatus dueDate?: Date | string | null evidenceSummary?: string | null createdAt?: Date | string updatedAt?: Date | string mitigations?: MitigationUncheckedCreateNestedManyWithoutRiskInput evidence?: EvidenceUncheckedCreateNestedManyWithoutRiskInput } export type RiskCreateOrConnectWithoutProjectInput = { where: RiskWhereUniqueInput create: XOR } export type RiskCreateManyProjectInputEnvelope = { data: RiskCreateManyProjectInput | RiskCreateManyProjectInput[] skipDuplicates?: boolean } export type IndicatorCreateWithoutProjectInput = { id?: string name: string dimension: string measurand: string unit: string target?: string | null interpretationRule?: string | null createdAt?: Date | string updatedAt?: Date | string } export type IndicatorUncheckedCreateWithoutProjectInput = { id?: string name: string dimension: string measurand: string unit: string target?: string | null interpretationRule?: string | null createdAt?: Date | string updatedAt?: Date | string } export type IndicatorCreateOrConnectWithoutProjectInput = { where: IndicatorWhereUniqueInput create: XOR } export type IndicatorCreateManyProjectInputEnvelope = { data: IndicatorCreateManyProjectInput | IndicatorCreateManyProjectInput[] skipDuplicates?: boolean } export type ExperimentCreateWithoutProjectInput = { id?: string name: string modelName?: string | null selected?: boolean createdAt?: Date | string updatedAt?: Date | string metrics?: ModelMetricCreateNestedManyWithoutExperimentInput } export type ExperimentUncheckedCreateWithoutProjectInput = { id?: string name: string modelName?: string | null selected?: boolean createdAt?: Date | string updatedAt?: Date | string metrics?: ModelMetricUncheckedCreateNestedManyWithoutExperimentInput } export type ExperimentCreateOrConnectWithoutProjectInput = { where: ExperimentWhereUniqueInput create: XOR } export type ExperimentCreateManyProjectInputEnvelope = { data: ExperimentCreateManyProjectInput | ExperimentCreateManyProjectInput[] skipDuplicates?: boolean } export type GateEvaluationCreateWithoutProjectInput = { id?: string status: $Enums.GateStatus reviewStatus?: string summary: string evaluatedByUserId?: string | null evaluatedAt?: Date | string reviewedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string criteria?: GateCriterionCreateNestedManyWithoutGateInput decisions?: GateDecisionCreateNestedManyWithoutGateInput } export type GateEvaluationUncheckedCreateWithoutProjectInput = { id?: string status: $Enums.GateStatus reviewStatus?: string summary: string evaluatedByUserId?: string | null evaluatedAt?: Date | string reviewedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string criteria?: GateCriterionUncheckedCreateNestedManyWithoutGateInput decisions?: GateDecisionUncheckedCreateNestedManyWithoutGateInput } export type GateEvaluationCreateOrConnectWithoutProjectInput = { where: GateEvaluationWhereUniqueInput create: XOR } export type GateEvaluationCreateManyProjectInputEnvelope = { data: GateEvaluationCreateManyProjectInput | GateEvaluationCreateManyProjectInput[] skipDuplicates?: boolean } export type AuditEventCreateWithoutProjectInput = { id?: string entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string organization: OrganizationCreateNestedOneWithoutAuditEventsInput workspace?: WorkspaceCreateNestedOneWithoutAuditEventsInput actor?: UserCreateNestedOneWithoutAuditEventsInput } export type AuditEventUncheckedCreateWithoutProjectInput = { id?: string organizationId: string workspaceId?: string | null actorUserId?: string | null entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string } export type AuditEventCreateOrConnectWithoutProjectInput = { where: AuditEventWhereUniqueInput create: XOR } export type AuditEventCreateManyProjectInputEnvelope = { data: AuditEventCreateManyProjectInput | AuditEventCreateManyProjectInput[] skipDuplicates?: boolean } export type ReportExportCreateWithoutProjectInput = { id?: string reportType: string format: string status?: string metadata?: JsonNullValueInput | InputJsonValue createdById?: string | null createdAt?: Date | string workspace: WorkspaceCreateNestedOneWithoutReportsInput } export type ReportExportUncheckedCreateWithoutProjectInput = { id?: string workspaceId: string reportType: string format: string status?: string metadata?: JsonNullValueInput | InputJsonValue createdById?: string | null createdAt?: Date | string } export type ReportExportCreateOrConnectWithoutProjectInput = { where: ReportExportWhereUniqueInput create: XOR } export type ReportExportCreateManyProjectInputEnvelope = { data: ReportExportCreateManyProjectInput | ReportExportCreateManyProjectInput[] skipDuplicates?: boolean } export type WorkspaceUpsertWithoutProjectsInput = { update: XOR create: XOR where?: WorkspaceWhereInput } export type WorkspaceUpdateToOneWithWhereWithoutProjectsInput = { where?: WorkspaceWhereInput data: XOR } export type WorkspaceUpdateWithoutProjectsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutWorkspacesNestedInput integrations?: IntegrationUpdateManyWithoutWorkspaceNestedInput reports?: ReportExportUpdateManyWithoutWorkspaceNestedInput auditEvents?: AuditEventUpdateManyWithoutWorkspaceNestedInput } export type WorkspaceUncheckedUpdateWithoutProjectsInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string integrations?: IntegrationUncheckedUpdateManyWithoutWorkspaceNestedInput reports?: ReportExportUncheckedUpdateManyWithoutWorkspaceNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutWorkspaceNestedInput } export type LifecyclePhaseUpsertWithWhereUniqueWithoutProjectInput = { where: LifecyclePhaseWhereUniqueInput update: XOR create: XOR } export type LifecyclePhaseUpdateWithWhereUniqueWithoutProjectInput = { where: LifecyclePhaseWhereUniqueInput data: XOR } export type LifecyclePhaseUpdateManyWithWhereWithoutProjectInput = { where: LifecyclePhaseScalarWhereInput data: XOR } export type LifecyclePhaseScalarWhereInput = { AND?: LifecyclePhaseScalarWhereInput | LifecyclePhaseScalarWhereInput[] OR?: LifecyclePhaseScalarWhereInput[] NOT?: LifecyclePhaseScalarWhereInput | LifecyclePhaseScalarWhereInput[] id?: StringFilter<"LifecyclePhase"> | string projectId?: StringFilter<"LifecyclePhase"> | string name?: StringFilter<"LifecyclePhase"> | string status?: StringFilter<"LifecyclePhase"> | string readinessScore?: IntFilter<"LifecyclePhase"> | number sequence?: IntFilter<"LifecyclePhase"> | number createdAt?: DateTimeFilter<"LifecyclePhase"> | Date | string updatedAt?: DateTimeFilter<"LifecyclePhase"> | Date | string } export type RiskUpsertWithWhereUniqueWithoutProjectInput = { where: RiskWhereUniqueInput update: XOR create: XOR } export type RiskUpdateWithWhereUniqueWithoutProjectInput = { where: RiskWhereUniqueInput data: XOR } export type RiskUpdateManyWithWhereWithoutProjectInput = { where: RiskScalarWhereInput data: XOR } export type RiskScalarWhereInput = { AND?: RiskScalarWhereInput | RiskScalarWhereInput[] OR?: RiskScalarWhereInput[] NOT?: RiskScalarWhereInput | RiskScalarWhereInput[] id?: StringFilter<"Risk"> | string projectId?: StringFilter<"Risk"> | string ownerDisplayName?: StringNullableFilter<"Risk"> | string | null title?: StringFilter<"Risk"> | string description?: StringNullableFilter<"Risk"> | string | null dimension?: StringFilter<"Risk"> | string domain?: StringFilter<"Risk"> | string lifecyclePhase?: StringFilter<"Risk"> | string probability?: IntFilter<"Risk"> | number impact?: IntFilter<"Risk"> | number detectability?: IntFilter<"Risk"> | number status?: EnumRiskStatusFilter<"Risk"> | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFilter<"Risk"> | $Enums.ApprovalStatus dueDate?: DateTimeNullableFilter<"Risk"> | Date | string | null evidenceSummary?: StringNullableFilter<"Risk"> | string | null createdAt?: DateTimeFilter<"Risk"> | Date | string updatedAt?: DateTimeFilter<"Risk"> | Date | string } export type IndicatorUpsertWithWhereUniqueWithoutProjectInput = { where: IndicatorWhereUniqueInput update: XOR create: XOR } export type IndicatorUpdateWithWhereUniqueWithoutProjectInput = { where: IndicatorWhereUniqueInput data: XOR } export type IndicatorUpdateManyWithWhereWithoutProjectInput = { where: IndicatorScalarWhereInput data: XOR } export type IndicatorScalarWhereInput = { AND?: IndicatorScalarWhereInput | IndicatorScalarWhereInput[] OR?: IndicatorScalarWhereInput[] NOT?: IndicatorScalarWhereInput | IndicatorScalarWhereInput[] id?: StringFilter<"Indicator"> | string projectId?: StringFilter<"Indicator"> | string name?: StringFilter<"Indicator"> | string dimension?: StringFilter<"Indicator"> | string measurand?: StringFilter<"Indicator"> | string unit?: StringFilter<"Indicator"> | string target?: StringNullableFilter<"Indicator"> | string | null interpretationRule?: StringNullableFilter<"Indicator"> | string | null createdAt?: DateTimeFilter<"Indicator"> | Date | string updatedAt?: DateTimeFilter<"Indicator"> | Date | string } export type ExperimentUpsertWithWhereUniqueWithoutProjectInput = { where: ExperimentWhereUniqueInput update: XOR create: XOR } export type ExperimentUpdateWithWhereUniqueWithoutProjectInput = { where: ExperimentWhereUniqueInput data: XOR } export type ExperimentUpdateManyWithWhereWithoutProjectInput = { where: ExperimentScalarWhereInput data: XOR } export type ExperimentScalarWhereInput = { AND?: ExperimentScalarWhereInput | ExperimentScalarWhereInput[] OR?: ExperimentScalarWhereInput[] NOT?: ExperimentScalarWhereInput | ExperimentScalarWhereInput[] id?: StringFilter<"Experiment"> | string projectId?: StringFilter<"Experiment"> | string name?: StringFilter<"Experiment"> | string modelName?: StringNullableFilter<"Experiment"> | string | null selected?: BoolFilter<"Experiment"> | boolean createdAt?: DateTimeFilter<"Experiment"> | Date | string updatedAt?: DateTimeFilter<"Experiment"> | Date | string } export type GateEvaluationUpsertWithWhereUniqueWithoutProjectInput = { where: GateEvaluationWhereUniqueInput update: XOR create: XOR } export type GateEvaluationUpdateWithWhereUniqueWithoutProjectInput = { where: GateEvaluationWhereUniqueInput data: XOR } export type GateEvaluationUpdateManyWithWhereWithoutProjectInput = { where: GateEvaluationScalarWhereInput data: XOR } export type GateEvaluationScalarWhereInput = { AND?: GateEvaluationScalarWhereInput | GateEvaluationScalarWhereInput[] OR?: GateEvaluationScalarWhereInput[] NOT?: GateEvaluationScalarWhereInput | GateEvaluationScalarWhereInput[] id?: StringFilter<"GateEvaluation"> | string projectId?: StringFilter<"GateEvaluation"> | string status?: EnumGateStatusFilter<"GateEvaluation"> | $Enums.GateStatus reviewStatus?: StringFilter<"GateEvaluation"> | string summary?: StringFilter<"GateEvaluation"> | string evaluatedByUserId?: StringNullableFilter<"GateEvaluation"> | string | null evaluatedAt?: DateTimeFilter<"GateEvaluation"> | Date | string reviewedAt?: DateTimeNullableFilter<"GateEvaluation"> | Date | string | null createdAt?: DateTimeFilter<"GateEvaluation"> | Date | string updatedAt?: DateTimeFilter<"GateEvaluation"> | Date | string } export type AuditEventUpsertWithWhereUniqueWithoutProjectInput = { where: AuditEventWhereUniqueInput update: XOR create: XOR } export type AuditEventUpdateWithWhereUniqueWithoutProjectInput = { where: AuditEventWhereUniqueInput data: XOR } export type AuditEventUpdateManyWithWhereWithoutProjectInput = { where: AuditEventScalarWhereInput data: XOR } export type ReportExportUpsertWithWhereUniqueWithoutProjectInput = { where: ReportExportWhereUniqueInput update: XOR create: XOR } export type ReportExportUpdateWithWhereUniqueWithoutProjectInput = { where: ReportExportWhereUniqueInput data: XOR } export type ReportExportUpdateManyWithWhereWithoutProjectInput = { where: ReportExportScalarWhereInput data: XOR } export type ProjectCreateWithoutLifecyclePhasesInput = { id?: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string workspace: WorkspaceCreateNestedOneWithoutProjectsInput risks?: RiskCreateNestedManyWithoutProjectInput indicators?: IndicatorCreateNestedManyWithoutProjectInput experiments?: ExperimentCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationCreateNestedManyWithoutProjectInput auditEvents?: AuditEventCreateNestedManyWithoutProjectInput reports?: ReportExportCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutLifecyclePhasesInput = { id?: string workspaceId: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string risks?: RiskUncheckedCreateNestedManyWithoutProjectInput indicators?: IndicatorUncheckedCreateNestedManyWithoutProjectInput experiments?: ExperimentUncheckedCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationUncheckedCreateNestedManyWithoutProjectInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutProjectInput reports?: ReportExportUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutLifecyclePhasesInput = { where: ProjectWhereUniqueInput create: XOR } export type ProjectUpsertWithoutLifecyclePhasesInput = { update: XOR create: XOR where?: ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutLifecyclePhasesInput = { where?: ProjectWhereInput data: XOR } export type ProjectUpdateWithoutLifecyclePhasesInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneRequiredWithoutProjectsNestedInput risks?: RiskUpdateManyWithoutProjectNestedInput indicators?: IndicatorUpdateManyWithoutProjectNestedInput experiments?: ExperimentUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUpdateManyWithoutProjectNestedInput reports?: ReportExportUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutLifecyclePhasesInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string risks?: RiskUncheckedUpdateManyWithoutProjectNestedInput indicators?: IndicatorUncheckedUpdateManyWithoutProjectNestedInput experiments?: ExperimentUncheckedUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUncheckedUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutProjectNestedInput reports?: ReportExportUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectCreateWithoutRisksInput = { id?: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string workspace: WorkspaceCreateNestedOneWithoutProjectsInput lifecyclePhases?: LifecyclePhaseCreateNestedManyWithoutProjectInput indicators?: IndicatorCreateNestedManyWithoutProjectInput experiments?: ExperimentCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationCreateNestedManyWithoutProjectInput auditEvents?: AuditEventCreateNestedManyWithoutProjectInput reports?: ReportExportCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutRisksInput = { id?: string workspaceId: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string lifecyclePhases?: LifecyclePhaseUncheckedCreateNestedManyWithoutProjectInput indicators?: IndicatorUncheckedCreateNestedManyWithoutProjectInput experiments?: ExperimentUncheckedCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationUncheckedCreateNestedManyWithoutProjectInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutProjectInput reports?: ReportExportUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutRisksInput = { where: ProjectWhereUniqueInput create: XOR } export type MitigationCreateWithoutRiskInput = { id?: string ownerDisplayName?: string | null title: string description?: string | null status?: $Enums.MitigationStatus progressPercent?: number effectivenessPercent?: number dueDate?: Date | string | null sequence?: number createdAt?: Date | string updatedAt?: Date | string evidence?: EvidenceCreateNestedManyWithoutMitigationInput } export type MitigationUncheckedCreateWithoutRiskInput = { id?: string ownerDisplayName?: string | null title: string description?: string | null status?: $Enums.MitigationStatus progressPercent?: number effectivenessPercent?: number dueDate?: Date | string | null sequence?: number createdAt?: Date | string updatedAt?: Date | string evidence?: EvidenceUncheckedCreateNestedManyWithoutMitigationInput } export type MitigationCreateOrConnectWithoutRiskInput = { where: MitigationWhereUniqueInput create: XOR } export type MitigationCreateManyRiskInputEnvelope = { data: MitigationCreateManyRiskInput | MitigationCreateManyRiskInput[] skipDuplicates?: boolean } export type EvidenceCreateWithoutRiskInput = { id?: string projectId: string type?: string title: string uri?: string | null createdById?: string | null createdAt?: Date | string updatedAt?: Date | string mitigation?: MitigationCreateNestedOneWithoutEvidenceInput } export type EvidenceUncheckedCreateWithoutRiskInput = { id?: string projectId: string mitigationId?: string | null type?: string title: string uri?: string | null createdById?: string | null createdAt?: Date | string updatedAt?: Date | string } export type EvidenceCreateOrConnectWithoutRiskInput = { where: EvidenceWhereUniqueInput create: XOR } export type EvidenceCreateManyRiskInputEnvelope = { data: EvidenceCreateManyRiskInput | EvidenceCreateManyRiskInput[] skipDuplicates?: boolean } export type ProjectUpsertWithoutRisksInput = { update: XOR create: XOR where?: ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutRisksInput = { where?: ProjectWhereInput data: XOR } export type ProjectUpdateWithoutRisksInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneRequiredWithoutProjectsNestedInput lifecyclePhases?: LifecyclePhaseUpdateManyWithoutProjectNestedInput indicators?: IndicatorUpdateManyWithoutProjectNestedInput experiments?: ExperimentUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUpdateManyWithoutProjectNestedInput reports?: ReportExportUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutRisksInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lifecyclePhases?: LifecyclePhaseUncheckedUpdateManyWithoutProjectNestedInput indicators?: IndicatorUncheckedUpdateManyWithoutProjectNestedInput experiments?: ExperimentUncheckedUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUncheckedUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutProjectNestedInput reports?: ReportExportUncheckedUpdateManyWithoutProjectNestedInput } export type MitigationUpsertWithWhereUniqueWithoutRiskInput = { where: MitigationWhereUniqueInput update: XOR create: XOR } export type MitigationUpdateWithWhereUniqueWithoutRiskInput = { where: MitigationWhereUniqueInput data: XOR } export type MitigationUpdateManyWithWhereWithoutRiskInput = { where: MitigationScalarWhereInput data: XOR } export type MitigationScalarWhereInput = { AND?: MitigationScalarWhereInput | MitigationScalarWhereInput[] OR?: MitigationScalarWhereInput[] NOT?: MitigationScalarWhereInput | MitigationScalarWhereInput[] id?: StringFilter<"Mitigation"> | string riskId?: StringFilter<"Mitigation"> | string ownerDisplayName?: StringNullableFilter<"Mitigation"> | string | null title?: StringFilter<"Mitigation"> | string description?: StringNullableFilter<"Mitigation"> | string | null status?: EnumMitigationStatusFilter<"Mitigation"> | $Enums.MitigationStatus progressPercent?: IntFilter<"Mitigation"> | number effectivenessPercent?: IntFilter<"Mitigation"> | number dueDate?: DateTimeNullableFilter<"Mitigation"> | Date | string | null sequence?: IntFilter<"Mitigation"> | number createdAt?: DateTimeFilter<"Mitigation"> | Date | string updatedAt?: DateTimeFilter<"Mitigation"> | Date | string } export type EvidenceUpsertWithWhereUniqueWithoutRiskInput = { where: EvidenceWhereUniqueInput update: XOR create: XOR } export type EvidenceUpdateWithWhereUniqueWithoutRiskInput = { where: EvidenceWhereUniqueInput data: XOR } export type EvidenceUpdateManyWithWhereWithoutRiskInput = { where: EvidenceScalarWhereInput data: XOR } export type EvidenceScalarWhereInput = { AND?: EvidenceScalarWhereInput | EvidenceScalarWhereInput[] OR?: EvidenceScalarWhereInput[] NOT?: EvidenceScalarWhereInput | EvidenceScalarWhereInput[] id?: StringFilter<"Evidence"> | string projectId?: StringFilter<"Evidence"> | string riskId?: StringNullableFilter<"Evidence"> | string | null mitigationId?: StringNullableFilter<"Evidence"> | string | null type?: StringFilter<"Evidence"> | string title?: StringFilter<"Evidence"> | string uri?: StringNullableFilter<"Evidence"> | string | null createdById?: StringNullableFilter<"Evidence"> | string | null createdAt?: DateTimeFilter<"Evidence"> | Date | string updatedAt?: DateTimeFilter<"Evidence"> | Date | string } export type RiskCreateWithoutMitigationsInput = { id?: string ownerDisplayName?: string | null title: string description?: string | null dimension: string domain: string lifecyclePhase: string probability: number impact: number detectability: number status?: $Enums.RiskStatus approvalStatus?: $Enums.ApprovalStatus dueDate?: Date | string | null evidenceSummary?: string | null createdAt?: Date | string updatedAt?: Date | string project: ProjectCreateNestedOneWithoutRisksInput evidence?: EvidenceCreateNestedManyWithoutRiskInput } export type RiskUncheckedCreateWithoutMitigationsInput = { id?: string projectId: string ownerDisplayName?: string | null title: string description?: string | null dimension: string domain: string lifecyclePhase: string probability: number impact: number detectability: number status?: $Enums.RiskStatus approvalStatus?: $Enums.ApprovalStatus dueDate?: Date | string | null evidenceSummary?: string | null createdAt?: Date | string updatedAt?: Date | string evidence?: EvidenceUncheckedCreateNestedManyWithoutRiskInput } export type RiskCreateOrConnectWithoutMitigationsInput = { where: RiskWhereUniqueInput create: XOR } export type EvidenceCreateWithoutMitigationInput = { id?: string projectId: string type?: string title: string uri?: string | null createdById?: string | null createdAt?: Date | string updatedAt?: Date | string risk?: RiskCreateNestedOneWithoutEvidenceInput } export type EvidenceUncheckedCreateWithoutMitigationInput = { id?: string projectId: string riskId?: string | null type?: string title: string uri?: string | null createdById?: string | null createdAt?: Date | string updatedAt?: Date | string } export type EvidenceCreateOrConnectWithoutMitigationInput = { where: EvidenceWhereUniqueInput create: XOR } export type EvidenceCreateManyMitigationInputEnvelope = { data: EvidenceCreateManyMitigationInput | EvidenceCreateManyMitigationInput[] skipDuplicates?: boolean } export type RiskUpsertWithoutMitigationsInput = { update: XOR create: XOR where?: RiskWhereInput } export type RiskUpdateToOneWithWhereWithoutMitigationsInput = { where?: RiskWhereInput data: XOR } export type RiskUpdateWithoutMitigationsInput = { id?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null dimension?: StringFieldUpdateOperationsInput | string domain?: StringFieldUpdateOperationsInput | string lifecyclePhase?: StringFieldUpdateOperationsInput | string probability?: IntFieldUpdateOperationsInput | number impact?: IntFieldUpdateOperationsInput | number detectability?: IntFieldUpdateOperationsInput | number status?: EnumRiskStatusFieldUpdateOperationsInput | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFieldUpdateOperationsInput | $Enums.ApprovalStatus dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evidenceSummary?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string project?: ProjectUpdateOneRequiredWithoutRisksNestedInput evidence?: EvidenceUpdateManyWithoutRiskNestedInput } export type RiskUncheckedUpdateWithoutMitigationsInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null dimension?: StringFieldUpdateOperationsInput | string domain?: StringFieldUpdateOperationsInput | string lifecyclePhase?: StringFieldUpdateOperationsInput | string probability?: IntFieldUpdateOperationsInput | number impact?: IntFieldUpdateOperationsInput | number detectability?: IntFieldUpdateOperationsInput | number status?: EnumRiskStatusFieldUpdateOperationsInput | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFieldUpdateOperationsInput | $Enums.ApprovalStatus dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evidenceSummary?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string evidence?: EvidenceUncheckedUpdateManyWithoutRiskNestedInput } export type EvidenceUpsertWithWhereUniqueWithoutMitigationInput = { where: EvidenceWhereUniqueInput update: XOR create: XOR } export type EvidenceUpdateWithWhereUniqueWithoutMitigationInput = { where: EvidenceWhereUniqueInput data: XOR } export type EvidenceUpdateManyWithWhereWithoutMitigationInput = { where: EvidenceScalarWhereInput data: XOR } export type RiskCreateWithoutEvidenceInput = { id?: string ownerDisplayName?: string | null title: string description?: string | null dimension: string domain: string lifecyclePhase: string probability: number impact: number detectability: number status?: $Enums.RiskStatus approvalStatus?: $Enums.ApprovalStatus dueDate?: Date | string | null evidenceSummary?: string | null createdAt?: Date | string updatedAt?: Date | string project: ProjectCreateNestedOneWithoutRisksInput mitigations?: MitigationCreateNestedManyWithoutRiskInput } export type RiskUncheckedCreateWithoutEvidenceInput = { id?: string projectId: string ownerDisplayName?: string | null title: string description?: string | null dimension: string domain: string lifecyclePhase: string probability: number impact: number detectability: number status?: $Enums.RiskStatus approvalStatus?: $Enums.ApprovalStatus dueDate?: Date | string | null evidenceSummary?: string | null createdAt?: Date | string updatedAt?: Date | string mitigations?: MitigationUncheckedCreateNestedManyWithoutRiskInput } export type RiskCreateOrConnectWithoutEvidenceInput = { where: RiskWhereUniqueInput create: XOR } export type MitigationCreateWithoutEvidenceInput = { id?: string ownerDisplayName?: string | null title: string description?: string | null status?: $Enums.MitigationStatus progressPercent?: number effectivenessPercent?: number dueDate?: Date | string | null sequence?: number createdAt?: Date | string updatedAt?: Date | string risk: RiskCreateNestedOneWithoutMitigationsInput } export type MitigationUncheckedCreateWithoutEvidenceInput = { id?: string riskId: string ownerDisplayName?: string | null title: string description?: string | null status?: $Enums.MitigationStatus progressPercent?: number effectivenessPercent?: number dueDate?: Date | string | null sequence?: number createdAt?: Date | string updatedAt?: Date | string } export type MitigationCreateOrConnectWithoutEvidenceInput = { where: MitigationWhereUniqueInput create: XOR } export type RiskUpsertWithoutEvidenceInput = { update: XOR create: XOR where?: RiskWhereInput } export type RiskUpdateToOneWithWhereWithoutEvidenceInput = { where?: RiskWhereInput data: XOR } export type RiskUpdateWithoutEvidenceInput = { id?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null dimension?: StringFieldUpdateOperationsInput | string domain?: StringFieldUpdateOperationsInput | string lifecyclePhase?: StringFieldUpdateOperationsInput | string probability?: IntFieldUpdateOperationsInput | number impact?: IntFieldUpdateOperationsInput | number detectability?: IntFieldUpdateOperationsInput | number status?: EnumRiskStatusFieldUpdateOperationsInput | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFieldUpdateOperationsInput | $Enums.ApprovalStatus dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evidenceSummary?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string project?: ProjectUpdateOneRequiredWithoutRisksNestedInput mitigations?: MitigationUpdateManyWithoutRiskNestedInput } export type RiskUncheckedUpdateWithoutEvidenceInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null dimension?: StringFieldUpdateOperationsInput | string domain?: StringFieldUpdateOperationsInput | string lifecyclePhase?: StringFieldUpdateOperationsInput | string probability?: IntFieldUpdateOperationsInput | number impact?: IntFieldUpdateOperationsInput | number detectability?: IntFieldUpdateOperationsInput | number status?: EnumRiskStatusFieldUpdateOperationsInput | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFieldUpdateOperationsInput | $Enums.ApprovalStatus dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evidenceSummary?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string mitigations?: MitigationUncheckedUpdateManyWithoutRiskNestedInput } export type MitigationUpsertWithoutEvidenceInput = { update: XOR create: XOR where?: MitigationWhereInput } export type MitigationUpdateToOneWithWhereWithoutEvidenceInput = { where?: MitigationWhereInput data: XOR } export type MitigationUpdateWithoutEvidenceInput = { id?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumMitigationStatusFieldUpdateOperationsInput | $Enums.MitigationStatus progressPercent?: IntFieldUpdateOperationsInput | number effectivenessPercent?: IntFieldUpdateOperationsInput | number dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string risk?: RiskUpdateOneRequiredWithoutMitigationsNestedInput } export type MitigationUncheckedUpdateWithoutEvidenceInput = { id?: StringFieldUpdateOperationsInput | string riskId?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumMitigationStatusFieldUpdateOperationsInput | $Enums.MitigationStatus progressPercent?: IntFieldUpdateOperationsInput | number effectivenessPercent?: IntFieldUpdateOperationsInput | number dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ProjectCreateWithoutIndicatorsInput = { id?: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string workspace: WorkspaceCreateNestedOneWithoutProjectsInput lifecyclePhases?: LifecyclePhaseCreateNestedManyWithoutProjectInput risks?: RiskCreateNestedManyWithoutProjectInput experiments?: ExperimentCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationCreateNestedManyWithoutProjectInput auditEvents?: AuditEventCreateNestedManyWithoutProjectInput reports?: ReportExportCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutIndicatorsInput = { id?: string workspaceId: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string lifecyclePhases?: LifecyclePhaseUncheckedCreateNestedManyWithoutProjectInput risks?: RiskUncheckedCreateNestedManyWithoutProjectInput experiments?: ExperimentUncheckedCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationUncheckedCreateNestedManyWithoutProjectInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutProjectInput reports?: ReportExportUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutIndicatorsInput = { where: ProjectWhereUniqueInput create: XOR } export type ProjectUpsertWithoutIndicatorsInput = { update: XOR create: XOR where?: ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutIndicatorsInput = { where?: ProjectWhereInput data: XOR } export type ProjectUpdateWithoutIndicatorsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneRequiredWithoutProjectsNestedInput lifecyclePhases?: LifecyclePhaseUpdateManyWithoutProjectNestedInput risks?: RiskUpdateManyWithoutProjectNestedInput experiments?: ExperimentUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUpdateManyWithoutProjectNestedInput reports?: ReportExportUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutIndicatorsInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lifecyclePhases?: LifecyclePhaseUncheckedUpdateManyWithoutProjectNestedInput risks?: RiskUncheckedUpdateManyWithoutProjectNestedInput experiments?: ExperimentUncheckedUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUncheckedUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutProjectNestedInput reports?: ReportExportUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectCreateWithoutExperimentsInput = { id?: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string workspace: WorkspaceCreateNestedOneWithoutProjectsInput lifecyclePhases?: LifecyclePhaseCreateNestedManyWithoutProjectInput risks?: RiskCreateNestedManyWithoutProjectInput indicators?: IndicatorCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationCreateNestedManyWithoutProjectInput auditEvents?: AuditEventCreateNestedManyWithoutProjectInput reports?: ReportExportCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutExperimentsInput = { id?: string workspaceId: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string lifecyclePhases?: LifecyclePhaseUncheckedCreateNestedManyWithoutProjectInput risks?: RiskUncheckedCreateNestedManyWithoutProjectInput indicators?: IndicatorUncheckedCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationUncheckedCreateNestedManyWithoutProjectInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutProjectInput reports?: ReportExportUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutExperimentsInput = { where: ProjectWhereUniqueInput create: XOR } export type ModelMetricCreateWithoutExperimentInput = { id?: string metricName: string metricValue: number thresholdValue?: number | null status: string measuredAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ModelMetricUncheckedCreateWithoutExperimentInput = { id?: string metricName: string metricValue: number thresholdValue?: number | null status: string measuredAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ModelMetricCreateOrConnectWithoutExperimentInput = { where: ModelMetricWhereUniqueInput create: XOR } export type ModelMetricCreateManyExperimentInputEnvelope = { data: ModelMetricCreateManyExperimentInput | ModelMetricCreateManyExperimentInput[] skipDuplicates?: boolean } export type ProjectUpsertWithoutExperimentsInput = { update: XOR create: XOR where?: ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutExperimentsInput = { where?: ProjectWhereInput data: XOR } export type ProjectUpdateWithoutExperimentsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneRequiredWithoutProjectsNestedInput lifecyclePhases?: LifecyclePhaseUpdateManyWithoutProjectNestedInput risks?: RiskUpdateManyWithoutProjectNestedInput indicators?: IndicatorUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUpdateManyWithoutProjectNestedInput reports?: ReportExportUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutExperimentsInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lifecyclePhases?: LifecyclePhaseUncheckedUpdateManyWithoutProjectNestedInput risks?: RiskUncheckedUpdateManyWithoutProjectNestedInput indicators?: IndicatorUncheckedUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUncheckedUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutProjectNestedInput reports?: ReportExportUncheckedUpdateManyWithoutProjectNestedInput } export type ModelMetricUpsertWithWhereUniqueWithoutExperimentInput = { where: ModelMetricWhereUniqueInput update: XOR create: XOR } export type ModelMetricUpdateWithWhereUniqueWithoutExperimentInput = { where: ModelMetricWhereUniqueInput data: XOR } export type ModelMetricUpdateManyWithWhereWithoutExperimentInput = { where: ModelMetricScalarWhereInput data: XOR } export type ModelMetricScalarWhereInput = { AND?: ModelMetricScalarWhereInput | ModelMetricScalarWhereInput[] OR?: ModelMetricScalarWhereInput[] NOT?: ModelMetricScalarWhereInput | ModelMetricScalarWhereInput[] id?: StringFilter<"ModelMetric"> | string experimentId?: StringFilter<"ModelMetric"> | string metricName?: StringFilter<"ModelMetric"> | string metricValue?: FloatFilter<"ModelMetric"> | number thresholdValue?: FloatNullableFilter<"ModelMetric"> | number | null status?: StringFilter<"ModelMetric"> | string measuredAt?: DateTimeNullableFilter<"ModelMetric"> | Date | string | null createdAt?: DateTimeFilter<"ModelMetric"> | Date | string updatedAt?: DateTimeFilter<"ModelMetric"> | Date | string } export type ExperimentCreateWithoutMetricsInput = { id?: string name: string modelName?: string | null selected?: boolean createdAt?: Date | string updatedAt?: Date | string project: ProjectCreateNestedOneWithoutExperimentsInput } export type ExperimentUncheckedCreateWithoutMetricsInput = { id?: string projectId: string name: string modelName?: string | null selected?: boolean createdAt?: Date | string updatedAt?: Date | string } export type ExperimentCreateOrConnectWithoutMetricsInput = { where: ExperimentWhereUniqueInput create: XOR } export type ExperimentUpsertWithoutMetricsInput = { update: XOR create: XOR where?: ExperimentWhereInput } export type ExperimentUpdateToOneWithWhereWithoutMetricsInput = { where?: ExperimentWhereInput data: XOR } export type ExperimentUpdateWithoutMetricsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string modelName?: NullableStringFieldUpdateOperationsInput | string | null selected?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string project?: ProjectUpdateOneRequiredWithoutExperimentsNestedInput } export type ExperimentUncheckedUpdateWithoutMetricsInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string modelName?: NullableStringFieldUpdateOperationsInput | string | null selected?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ProjectCreateWithoutGateEvaluationsInput = { id?: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string workspace: WorkspaceCreateNestedOneWithoutProjectsInput lifecyclePhases?: LifecyclePhaseCreateNestedManyWithoutProjectInput risks?: RiskCreateNestedManyWithoutProjectInput indicators?: IndicatorCreateNestedManyWithoutProjectInput experiments?: ExperimentCreateNestedManyWithoutProjectInput auditEvents?: AuditEventCreateNestedManyWithoutProjectInput reports?: ReportExportCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutGateEvaluationsInput = { id?: string workspaceId: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string lifecyclePhases?: LifecyclePhaseUncheckedCreateNestedManyWithoutProjectInput risks?: RiskUncheckedCreateNestedManyWithoutProjectInput indicators?: IndicatorUncheckedCreateNestedManyWithoutProjectInput experiments?: ExperimentUncheckedCreateNestedManyWithoutProjectInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutProjectInput reports?: ReportExportUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutGateEvaluationsInput = { where: ProjectWhereUniqueInput create: XOR } export type GateCriterionCreateWithoutGateInput = { id?: string name: string actualValue: string expectedRule: string status: string blocking?: boolean evidenceTitle?: string | null evidenceUri?: string | null reviewerStatus?: string reviewerNote?: string | null createdAt?: Date | string updatedAt?: Date | string } export type GateCriterionUncheckedCreateWithoutGateInput = { id?: string name: string actualValue: string expectedRule: string status: string blocking?: boolean evidenceTitle?: string | null evidenceUri?: string | null reviewerStatus?: string reviewerNote?: string | null createdAt?: Date | string updatedAt?: Date | string } export type GateCriterionCreateOrConnectWithoutGateInput = { where: GateCriterionWhereUniqueInput create: XOR } export type GateCriterionCreateManyGateInputEnvelope = { data: GateCriterionCreateManyGateInput | GateCriterionCreateManyGateInput[] skipDuplicates?: boolean } export type GateDecisionCreateWithoutGateInput = { id?: string decision: $Enums.GateDecisionValue reviewerName: string reason?: string | null createdByUserId?: string | null decidedAt?: Date | string createdAt?: Date | string } export type GateDecisionUncheckedCreateWithoutGateInput = { id?: string decision: $Enums.GateDecisionValue reviewerName: string reason?: string | null createdByUserId?: string | null decidedAt?: Date | string createdAt?: Date | string } export type GateDecisionCreateOrConnectWithoutGateInput = { where: GateDecisionWhereUniqueInput create: XOR } export type GateDecisionCreateManyGateInputEnvelope = { data: GateDecisionCreateManyGateInput | GateDecisionCreateManyGateInput[] skipDuplicates?: boolean } export type ProjectUpsertWithoutGateEvaluationsInput = { update: XOR create: XOR where?: ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutGateEvaluationsInput = { where?: ProjectWhereInput data: XOR } export type ProjectUpdateWithoutGateEvaluationsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneRequiredWithoutProjectsNestedInput lifecyclePhases?: LifecyclePhaseUpdateManyWithoutProjectNestedInput risks?: RiskUpdateManyWithoutProjectNestedInput indicators?: IndicatorUpdateManyWithoutProjectNestedInput experiments?: ExperimentUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUpdateManyWithoutProjectNestedInput reports?: ReportExportUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutGateEvaluationsInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lifecyclePhases?: LifecyclePhaseUncheckedUpdateManyWithoutProjectNestedInput risks?: RiskUncheckedUpdateManyWithoutProjectNestedInput indicators?: IndicatorUncheckedUpdateManyWithoutProjectNestedInput experiments?: ExperimentUncheckedUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutProjectNestedInput reports?: ReportExportUncheckedUpdateManyWithoutProjectNestedInput } export type GateCriterionUpsertWithWhereUniqueWithoutGateInput = { where: GateCriterionWhereUniqueInput update: XOR create: XOR } export type GateCriterionUpdateWithWhereUniqueWithoutGateInput = { where: GateCriterionWhereUniqueInput data: XOR } export type GateCriterionUpdateManyWithWhereWithoutGateInput = { where: GateCriterionScalarWhereInput data: XOR } export type GateCriterionScalarWhereInput = { AND?: GateCriterionScalarWhereInput | GateCriterionScalarWhereInput[] OR?: GateCriterionScalarWhereInput[] NOT?: GateCriterionScalarWhereInput | GateCriterionScalarWhereInput[] id?: StringFilter<"GateCriterion"> | string gateId?: StringFilter<"GateCriterion"> | string name?: StringFilter<"GateCriterion"> | string actualValue?: StringFilter<"GateCriterion"> | string expectedRule?: StringFilter<"GateCriterion"> | string status?: StringFilter<"GateCriterion"> | string blocking?: BoolFilter<"GateCriterion"> | boolean evidenceTitle?: StringNullableFilter<"GateCriterion"> | string | null evidenceUri?: StringNullableFilter<"GateCriterion"> | string | null reviewerStatus?: StringFilter<"GateCriterion"> | string reviewerNote?: StringNullableFilter<"GateCriterion"> | string | null createdAt?: DateTimeFilter<"GateCriterion"> | Date | string updatedAt?: DateTimeFilter<"GateCriterion"> | Date | string } export type GateDecisionUpsertWithWhereUniqueWithoutGateInput = { where: GateDecisionWhereUniqueInput update: XOR create: XOR } export type GateDecisionUpdateWithWhereUniqueWithoutGateInput = { where: GateDecisionWhereUniqueInput data: XOR } export type GateDecisionUpdateManyWithWhereWithoutGateInput = { where: GateDecisionScalarWhereInput data: XOR } export type GateDecisionScalarWhereInput = { AND?: GateDecisionScalarWhereInput | GateDecisionScalarWhereInput[] OR?: GateDecisionScalarWhereInput[] NOT?: GateDecisionScalarWhereInput | GateDecisionScalarWhereInput[] id?: StringFilter<"GateDecision"> | string gateId?: StringFilter<"GateDecision"> | string decision?: EnumGateDecisionValueFilter<"GateDecision"> | $Enums.GateDecisionValue reviewerName?: StringFilter<"GateDecision"> | string reason?: StringNullableFilter<"GateDecision"> | string | null createdByUserId?: StringNullableFilter<"GateDecision"> | string | null decidedAt?: DateTimeFilter<"GateDecision"> | Date | string createdAt?: DateTimeFilter<"GateDecision"> | Date | string } export type GateEvaluationCreateWithoutCriteriaInput = { id?: string status: $Enums.GateStatus reviewStatus?: string summary: string evaluatedByUserId?: string | null evaluatedAt?: Date | string reviewedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string project: ProjectCreateNestedOneWithoutGateEvaluationsInput decisions?: GateDecisionCreateNestedManyWithoutGateInput } export type GateEvaluationUncheckedCreateWithoutCriteriaInput = { id?: string projectId: string status: $Enums.GateStatus reviewStatus?: string summary: string evaluatedByUserId?: string | null evaluatedAt?: Date | string reviewedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string decisions?: GateDecisionUncheckedCreateNestedManyWithoutGateInput } export type GateEvaluationCreateOrConnectWithoutCriteriaInput = { where: GateEvaluationWhereUniqueInput create: XOR } export type GateEvaluationUpsertWithoutCriteriaInput = { update: XOR create: XOR where?: GateEvaluationWhereInput } export type GateEvaluationUpdateToOneWithWhereWithoutCriteriaInput = { where?: GateEvaluationWhereInput data: XOR } export type GateEvaluationUpdateWithoutCriteriaInput = { id?: StringFieldUpdateOperationsInput | string status?: EnumGateStatusFieldUpdateOperationsInput | $Enums.GateStatus reviewStatus?: StringFieldUpdateOperationsInput | string summary?: StringFieldUpdateOperationsInput | string evaluatedByUserId?: NullableStringFieldUpdateOperationsInput | string | null evaluatedAt?: DateTimeFieldUpdateOperationsInput | Date | string reviewedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string project?: ProjectUpdateOneRequiredWithoutGateEvaluationsNestedInput decisions?: GateDecisionUpdateManyWithoutGateNestedInput } export type GateEvaluationUncheckedUpdateWithoutCriteriaInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string status?: EnumGateStatusFieldUpdateOperationsInput | $Enums.GateStatus reviewStatus?: StringFieldUpdateOperationsInput | string summary?: StringFieldUpdateOperationsInput | string evaluatedByUserId?: NullableStringFieldUpdateOperationsInput | string | null evaluatedAt?: DateTimeFieldUpdateOperationsInput | Date | string reviewedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string decisions?: GateDecisionUncheckedUpdateManyWithoutGateNestedInput } export type GateEvaluationCreateWithoutDecisionsInput = { id?: string status: $Enums.GateStatus reviewStatus?: string summary: string evaluatedByUserId?: string | null evaluatedAt?: Date | string reviewedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string project: ProjectCreateNestedOneWithoutGateEvaluationsInput criteria?: GateCriterionCreateNestedManyWithoutGateInput } export type GateEvaluationUncheckedCreateWithoutDecisionsInput = { id?: string projectId: string status: $Enums.GateStatus reviewStatus?: string summary: string evaluatedByUserId?: string | null evaluatedAt?: Date | string reviewedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string criteria?: GateCriterionUncheckedCreateNestedManyWithoutGateInput } export type GateEvaluationCreateOrConnectWithoutDecisionsInput = { where: GateEvaluationWhereUniqueInput create: XOR } export type GateEvaluationUpsertWithoutDecisionsInput = { update: XOR create: XOR where?: GateEvaluationWhereInput } export type GateEvaluationUpdateToOneWithWhereWithoutDecisionsInput = { where?: GateEvaluationWhereInput data: XOR } export type GateEvaluationUpdateWithoutDecisionsInput = { id?: StringFieldUpdateOperationsInput | string status?: EnumGateStatusFieldUpdateOperationsInput | $Enums.GateStatus reviewStatus?: StringFieldUpdateOperationsInput | string summary?: StringFieldUpdateOperationsInput | string evaluatedByUserId?: NullableStringFieldUpdateOperationsInput | string | null evaluatedAt?: DateTimeFieldUpdateOperationsInput | Date | string reviewedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string project?: ProjectUpdateOneRequiredWithoutGateEvaluationsNestedInput criteria?: GateCriterionUpdateManyWithoutGateNestedInput } export type GateEvaluationUncheckedUpdateWithoutDecisionsInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string status?: EnumGateStatusFieldUpdateOperationsInput | $Enums.GateStatus reviewStatus?: StringFieldUpdateOperationsInput | string summary?: StringFieldUpdateOperationsInput | string evaluatedByUserId?: NullableStringFieldUpdateOperationsInput | string | null evaluatedAt?: DateTimeFieldUpdateOperationsInput | Date | string reviewedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string criteria?: GateCriterionUncheckedUpdateManyWithoutGateNestedInput } export type WorkspaceCreateWithoutIntegrationsInput = { id?: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string organization: OrganizationCreateNestedOneWithoutWorkspacesInput projects?: ProjectCreateNestedManyWithoutWorkspaceInput reports?: ReportExportCreateNestedManyWithoutWorkspaceInput auditEvents?: AuditEventCreateNestedManyWithoutWorkspaceInput } export type WorkspaceUncheckedCreateWithoutIntegrationsInput = { id?: string organizationId: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string projects?: ProjectUncheckedCreateNestedManyWithoutWorkspaceInput reports?: ReportExportUncheckedCreateNestedManyWithoutWorkspaceInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutWorkspaceInput } export type WorkspaceCreateOrConnectWithoutIntegrationsInput = { where: WorkspaceWhereUniqueInput create: XOR } export type ExternalWorkItemMappingCreateWithoutIntegrationInput = { id?: string projectId: string localEntityType: string localEntityId: string localTitle: string externalItemType: string externalItemId: string externalItemKey: string externalUrl?: string | null externalStatus: string syncStatus: string fieldMapping?: JsonNullValueInput | InputJsonValue lastSyncedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ExternalWorkItemMappingUncheckedCreateWithoutIntegrationInput = { id?: string projectId: string localEntityType: string localEntityId: string localTitle: string externalItemType: string externalItemId: string externalItemKey: string externalUrl?: string | null externalStatus: string syncStatus: string fieldMapping?: JsonNullValueInput | InputJsonValue lastSyncedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ExternalWorkItemMappingCreateOrConnectWithoutIntegrationInput = { where: ExternalWorkItemMappingWhereUniqueInput create: XOR } export type ExternalWorkItemMappingCreateManyIntegrationInputEnvelope = { data: ExternalWorkItemMappingCreateManyIntegrationInput | ExternalWorkItemMappingCreateManyIntegrationInput[] skipDuplicates?: boolean } export type IntegrationSyncRunCreateWithoutIntegrationInput = { id?: string projectId: string provider: $Enums.IntegrationProvider status: string startedAt: Date | string finishedAt?: Date | string | null createdCount?: number updatedCount?: number failedCount?: number summary?: string | null failureLog?: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type IntegrationSyncRunUncheckedCreateWithoutIntegrationInput = { id?: string projectId: string provider: $Enums.IntegrationProvider status: string startedAt: Date | string finishedAt?: Date | string | null createdCount?: number updatedCount?: number failedCount?: number summary?: string | null failureLog?: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type IntegrationSyncRunCreateOrConnectWithoutIntegrationInput = { where: IntegrationSyncRunWhereUniqueInput create: XOR } export type IntegrationSyncRunCreateManyIntegrationInputEnvelope = { data: IntegrationSyncRunCreateManyIntegrationInput | IntegrationSyncRunCreateManyIntegrationInput[] skipDuplicates?: boolean } export type WorkspaceUpsertWithoutIntegrationsInput = { update: XOR create: XOR where?: WorkspaceWhereInput } export type WorkspaceUpdateToOneWithWhereWithoutIntegrationsInput = { where?: WorkspaceWhereInput data: XOR } export type WorkspaceUpdateWithoutIntegrationsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutWorkspacesNestedInput projects?: ProjectUpdateManyWithoutWorkspaceNestedInput reports?: ReportExportUpdateManyWithoutWorkspaceNestedInput auditEvents?: AuditEventUpdateManyWithoutWorkspaceNestedInput } export type WorkspaceUncheckedUpdateWithoutIntegrationsInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string projects?: ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput reports?: ReportExportUncheckedUpdateManyWithoutWorkspaceNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutWorkspaceNestedInput } export type ExternalWorkItemMappingUpsertWithWhereUniqueWithoutIntegrationInput = { where: ExternalWorkItemMappingWhereUniqueInput update: XOR create: XOR } export type ExternalWorkItemMappingUpdateWithWhereUniqueWithoutIntegrationInput = { where: ExternalWorkItemMappingWhereUniqueInput data: XOR } export type ExternalWorkItemMappingUpdateManyWithWhereWithoutIntegrationInput = { where: ExternalWorkItemMappingScalarWhereInput data: XOR } export type ExternalWorkItemMappingScalarWhereInput = { AND?: ExternalWorkItemMappingScalarWhereInput | ExternalWorkItemMappingScalarWhereInput[] OR?: ExternalWorkItemMappingScalarWhereInput[] NOT?: ExternalWorkItemMappingScalarWhereInput | ExternalWorkItemMappingScalarWhereInput[] id?: StringFilter<"ExternalWorkItemMapping"> | string integrationId?: StringFilter<"ExternalWorkItemMapping"> | string projectId?: StringFilter<"ExternalWorkItemMapping"> | string localEntityType?: StringFilter<"ExternalWorkItemMapping"> | string localEntityId?: StringFilter<"ExternalWorkItemMapping"> | string localTitle?: StringFilter<"ExternalWorkItemMapping"> | string externalItemType?: StringFilter<"ExternalWorkItemMapping"> | string externalItemId?: StringFilter<"ExternalWorkItemMapping"> | string externalItemKey?: StringFilter<"ExternalWorkItemMapping"> | string externalUrl?: StringNullableFilter<"ExternalWorkItemMapping"> | string | null externalStatus?: StringFilter<"ExternalWorkItemMapping"> | string syncStatus?: StringFilter<"ExternalWorkItemMapping"> | string fieldMapping?: JsonFilter<"ExternalWorkItemMapping"> lastSyncedAt?: DateTimeNullableFilter<"ExternalWorkItemMapping"> | Date | string | null createdAt?: DateTimeFilter<"ExternalWorkItemMapping"> | Date | string updatedAt?: DateTimeFilter<"ExternalWorkItemMapping"> | Date | string } export type IntegrationSyncRunUpsertWithWhereUniqueWithoutIntegrationInput = { where: IntegrationSyncRunWhereUniqueInput update: XOR create: XOR } export type IntegrationSyncRunUpdateWithWhereUniqueWithoutIntegrationInput = { where: IntegrationSyncRunWhereUniqueInput data: XOR } export type IntegrationSyncRunUpdateManyWithWhereWithoutIntegrationInput = { where: IntegrationSyncRunScalarWhereInput data: XOR } export type IntegrationSyncRunScalarWhereInput = { AND?: IntegrationSyncRunScalarWhereInput | IntegrationSyncRunScalarWhereInput[] OR?: IntegrationSyncRunScalarWhereInput[] NOT?: IntegrationSyncRunScalarWhereInput | IntegrationSyncRunScalarWhereInput[] id?: StringFilter<"IntegrationSyncRun"> | string integrationId?: StringFilter<"IntegrationSyncRun"> | string projectId?: StringFilter<"IntegrationSyncRun"> | string provider?: EnumIntegrationProviderFilter<"IntegrationSyncRun"> | $Enums.IntegrationProvider status?: StringFilter<"IntegrationSyncRun"> | string startedAt?: DateTimeFilter<"IntegrationSyncRun"> | Date | string finishedAt?: DateTimeNullableFilter<"IntegrationSyncRun"> | Date | string | null createdCount?: IntFilter<"IntegrationSyncRun"> | number updatedCount?: IntFilter<"IntegrationSyncRun"> | number failedCount?: IntFilter<"IntegrationSyncRun"> | number summary?: StringNullableFilter<"IntegrationSyncRun"> | string | null failureLog?: JsonFilter<"IntegrationSyncRun"> createdAt?: DateTimeFilter<"IntegrationSyncRun"> | Date | string } export type IntegrationCreateWithoutMappingsInput = { id?: string provider: $Enums.IntegrationProvider workspaceName: string externalProjectKey?: string | null baseUrl?: string | null authMode: string connectionStatus?: $Enums.IntegrationStatus syncDirection?: string liveEnabled?: boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string workspace: WorkspaceCreateNestedOneWithoutIntegrationsInput syncRuns?: IntegrationSyncRunCreateNestedManyWithoutIntegrationInput } export type IntegrationUncheckedCreateWithoutMappingsInput = { id?: string workspaceId: string provider: $Enums.IntegrationProvider workspaceName: string externalProjectKey?: string | null baseUrl?: string | null authMode: string connectionStatus?: $Enums.IntegrationStatus syncDirection?: string liveEnabled?: boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string syncRuns?: IntegrationSyncRunUncheckedCreateNestedManyWithoutIntegrationInput } export type IntegrationCreateOrConnectWithoutMappingsInput = { where: IntegrationWhereUniqueInput create: XOR } export type IntegrationUpsertWithoutMappingsInput = { update: XOR create: XOR where?: IntegrationWhereInput } export type IntegrationUpdateToOneWithWhereWithoutMappingsInput = { where?: IntegrationWhereInput data: XOR } export type IntegrationUpdateWithoutMappingsInput = { id?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider workspaceName?: StringFieldUpdateOperationsInput | string externalProjectKey?: NullableStringFieldUpdateOperationsInput | string | null baseUrl?: NullableStringFieldUpdateOperationsInput | string | null authMode?: StringFieldUpdateOperationsInput | string connectionStatus?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus syncDirection?: StringFieldUpdateOperationsInput | string liveEnabled?: BoolFieldUpdateOperationsInput | boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneRequiredWithoutIntegrationsNestedInput syncRuns?: IntegrationSyncRunUpdateManyWithoutIntegrationNestedInput } export type IntegrationUncheckedUpdateWithoutMappingsInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider workspaceName?: StringFieldUpdateOperationsInput | string externalProjectKey?: NullableStringFieldUpdateOperationsInput | string | null baseUrl?: NullableStringFieldUpdateOperationsInput | string | null authMode?: StringFieldUpdateOperationsInput | string connectionStatus?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus syncDirection?: StringFieldUpdateOperationsInput | string liveEnabled?: BoolFieldUpdateOperationsInput | boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string syncRuns?: IntegrationSyncRunUncheckedUpdateManyWithoutIntegrationNestedInput } export type IntegrationCreateWithoutSyncRunsInput = { id?: string provider: $Enums.IntegrationProvider workspaceName: string externalProjectKey?: string | null baseUrl?: string | null authMode: string connectionStatus?: $Enums.IntegrationStatus syncDirection?: string liveEnabled?: boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string workspace: WorkspaceCreateNestedOneWithoutIntegrationsInput mappings?: ExternalWorkItemMappingCreateNestedManyWithoutIntegrationInput } export type IntegrationUncheckedCreateWithoutSyncRunsInput = { id?: string workspaceId: string provider: $Enums.IntegrationProvider workspaceName: string externalProjectKey?: string | null baseUrl?: string | null authMode: string connectionStatus?: $Enums.IntegrationStatus syncDirection?: string liveEnabled?: boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string mappings?: ExternalWorkItemMappingUncheckedCreateNestedManyWithoutIntegrationInput } export type IntegrationCreateOrConnectWithoutSyncRunsInput = { where: IntegrationWhereUniqueInput create: XOR } export type IntegrationUpsertWithoutSyncRunsInput = { update: XOR create: XOR where?: IntegrationWhereInput } export type IntegrationUpdateToOneWithWhereWithoutSyncRunsInput = { where?: IntegrationWhereInput data: XOR } export type IntegrationUpdateWithoutSyncRunsInput = { id?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider workspaceName?: StringFieldUpdateOperationsInput | string externalProjectKey?: NullableStringFieldUpdateOperationsInput | string | null baseUrl?: NullableStringFieldUpdateOperationsInput | string | null authMode?: StringFieldUpdateOperationsInput | string connectionStatus?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus syncDirection?: StringFieldUpdateOperationsInput | string liveEnabled?: BoolFieldUpdateOperationsInput | boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneRequiredWithoutIntegrationsNestedInput mappings?: ExternalWorkItemMappingUpdateManyWithoutIntegrationNestedInput } export type IntegrationUncheckedUpdateWithoutSyncRunsInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider workspaceName?: StringFieldUpdateOperationsInput | string externalProjectKey?: NullableStringFieldUpdateOperationsInput | string | null baseUrl?: NullableStringFieldUpdateOperationsInput | string | null authMode?: StringFieldUpdateOperationsInput | string connectionStatus?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus syncDirection?: StringFieldUpdateOperationsInput | string liveEnabled?: BoolFieldUpdateOperationsInput | boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string mappings?: ExternalWorkItemMappingUncheckedUpdateManyWithoutIntegrationNestedInput } export type OrganizationCreateWithoutOauthTokensInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceCreateNestedManyWithoutOrganizationInput memberships?: MembershipCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventCreateNestedManyWithoutOrganizationInput invitations?: InvitationCreateNestedManyWithoutOrganizationInput } export type OrganizationUncheckedCreateWithoutOauthTokensInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceUncheckedCreateNestedManyWithoutOrganizationInput memberships?: MembershipUncheckedCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionUncheckedCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventUncheckedCreateNestedManyWithoutOrganizationInput invitations?: InvitationUncheckedCreateNestedManyWithoutOrganizationInput } export type OrganizationCreateOrConnectWithoutOauthTokensInput = { where: OrganizationWhereUniqueInput create: XOR } export type OrganizationUpsertWithoutOauthTokensInput = { update: XOR create: XOR where?: OrganizationWhereInput } export type OrganizationUpdateToOneWithWhereWithoutOauthTokensInput = { where?: OrganizationWhereInput data: XOR } export type OrganizationUpdateWithoutOauthTokensInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUpdateManyWithoutOrganizationNestedInput memberships?: MembershipUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUpdateManyWithoutOrganizationNestedInput } export type OrganizationUncheckedUpdateWithoutOauthTokensInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUncheckedUpdateManyWithoutOrganizationNestedInput memberships?: MembershipUncheckedUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUncheckedUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUncheckedUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUncheckedUpdateManyWithoutOrganizationNestedInput } export type WorkspaceCreateWithoutReportsInput = { id?: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string organization: OrganizationCreateNestedOneWithoutWorkspacesInput projects?: ProjectCreateNestedManyWithoutWorkspaceInput integrations?: IntegrationCreateNestedManyWithoutWorkspaceInput auditEvents?: AuditEventCreateNestedManyWithoutWorkspaceInput } export type WorkspaceUncheckedCreateWithoutReportsInput = { id?: string organizationId: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string projects?: ProjectUncheckedCreateNestedManyWithoutWorkspaceInput integrations?: IntegrationUncheckedCreateNestedManyWithoutWorkspaceInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutWorkspaceInput } export type WorkspaceCreateOrConnectWithoutReportsInput = { where: WorkspaceWhereUniqueInput create: XOR } export type ProjectCreateWithoutReportsInput = { id?: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string workspace: WorkspaceCreateNestedOneWithoutProjectsInput lifecyclePhases?: LifecyclePhaseCreateNestedManyWithoutProjectInput risks?: RiskCreateNestedManyWithoutProjectInput indicators?: IndicatorCreateNestedManyWithoutProjectInput experiments?: ExperimentCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationCreateNestedManyWithoutProjectInput auditEvents?: AuditEventCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutReportsInput = { id?: string workspaceId: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string lifecyclePhases?: LifecyclePhaseUncheckedCreateNestedManyWithoutProjectInput risks?: RiskUncheckedCreateNestedManyWithoutProjectInput indicators?: IndicatorUncheckedCreateNestedManyWithoutProjectInput experiments?: ExperimentUncheckedCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationUncheckedCreateNestedManyWithoutProjectInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutReportsInput = { where: ProjectWhereUniqueInput create: XOR } export type WorkspaceUpsertWithoutReportsInput = { update: XOR create: XOR where?: WorkspaceWhereInput } export type WorkspaceUpdateToOneWithWhereWithoutReportsInput = { where?: WorkspaceWhereInput data: XOR } export type WorkspaceUpdateWithoutReportsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutWorkspacesNestedInput projects?: ProjectUpdateManyWithoutWorkspaceNestedInput integrations?: IntegrationUpdateManyWithoutWorkspaceNestedInput auditEvents?: AuditEventUpdateManyWithoutWorkspaceNestedInput } export type WorkspaceUncheckedUpdateWithoutReportsInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string projects?: ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput integrations?: IntegrationUncheckedUpdateManyWithoutWorkspaceNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutWorkspaceNestedInput } export type ProjectUpsertWithoutReportsInput = { update: XOR create: XOR where?: ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutReportsInput = { where?: ProjectWhereInput data: XOR } export type ProjectUpdateWithoutReportsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneRequiredWithoutProjectsNestedInput lifecyclePhases?: LifecyclePhaseUpdateManyWithoutProjectNestedInput risks?: RiskUpdateManyWithoutProjectNestedInput indicators?: IndicatorUpdateManyWithoutProjectNestedInput experiments?: ExperimentUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutReportsInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lifecyclePhases?: LifecyclePhaseUncheckedUpdateManyWithoutProjectNestedInput risks?: RiskUncheckedUpdateManyWithoutProjectNestedInput indicators?: IndicatorUncheckedUpdateManyWithoutProjectNestedInput experiments?: ExperimentUncheckedUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUncheckedUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutProjectNestedInput } export type OrganizationCreateWithoutAuditEventsInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceCreateNestedManyWithoutOrganizationInput memberships?: MembershipCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventCreateNestedManyWithoutOrganizationInput invitations?: InvitationCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenCreateNestedManyWithoutOrganizationInput } export type OrganizationUncheckedCreateWithoutAuditEventsInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceUncheckedCreateNestedManyWithoutOrganizationInput memberships?: MembershipUncheckedCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionUncheckedCreateNestedManyWithoutOrganizationInput usageEvents?: UsageEventUncheckedCreateNestedManyWithoutOrganizationInput invitations?: InvitationUncheckedCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenUncheckedCreateNestedManyWithoutOrganizationInput } export type OrganizationCreateOrConnectWithoutAuditEventsInput = { where: OrganizationWhereUniqueInput create: XOR } export type WorkspaceCreateWithoutAuditEventsInput = { id?: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string organization: OrganizationCreateNestedOneWithoutWorkspacesInput projects?: ProjectCreateNestedManyWithoutWorkspaceInput integrations?: IntegrationCreateNestedManyWithoutWorkspaceInput reports?: ReportExportCreateNestedManyWithoutWorkspaceInput } export type WorkspaceUncheckedCreateWithoutAuditEventsInput = { id?: string organizationId: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string projects?: ProjectUncheckedCreateNestedManyWithoutWorkspaceInput integrations?: IntegrationUncheckedCreateNestedManyWithoutWorkspaceInput reports?: ReportExportUncheckedCreateNestedManyWithoutWorkspaceInput } export type WorkspaceCreateOrConnectWithoutAuditEventsInput = { where: WorkspaceWhereUniqueInput create: XOR } export type ProjectCreateWithoutAuditEventsInput = { id?: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string workspace: WorkspaceCreateNestedOneWithoutProjectsInput lifecyclePhases?: LifecyclePhaseCreateNestedManyWithoutProjectInput risks?: RiskCreateNestedManyWithoutProjectInput indicators?: IndicatorCreateNestedManyWithoutProjectInput experiments?: ExperimentCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationCreateNestedManyWithoutProjectInput reports?: ReportExportCreateNestedManyWithoutProjectInput } export type ProjectUncheckedCreateWithoutAuditEventsInput = { id?: string workspaceId: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string lifecyclePhases?: LifecyclePhaseUncheckedCreateNestedManyWithoutProjectInput risks?: RiskUncheckedCreateNestedManyWithoutProjectInput indicators?: IndicatorUncheckedCreateNestedManyWithoutProjectInput experiments?: ExperimentUncheckedCreateNestedManyWithoutProjectInput gateEvaluations?: GateEvaluationUncheckedCreateNestedManyWithoutProjectInput reports?: ReportExportUncheckedCreateNestedManyWithoutProjectInput } export type ProjectCreateOrConnectWithoutAuditEventsInput = { where: ProjectWhereUniqueInput create: XOR } export type UserCreateWithoutAuditEventsInput = { id?: string email: string displayName: string passwordHash?: string | null emailVerifiedAt?: Date | string | null lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string memberships?: MembershipCreateNestedManyWithoutUserInput invitationsSent?: InvitationCreateNestedManyWithoutInvitedByInput sessions?: SessionCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutAuditEventsInput = { id?: string email: string displayName: string passwordHash?: string | null emailVerifiedAt?: Date | string | null lastLoginAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string memberships?: MembershipUncheckedCreateNestedManyWithoutUserInput invitationsSent?: InvitationUncheckedCreateNestedManyWithoutInvitedByInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutAuditEventsInput = { where: UserWhereUniqueInput create: XOR } export type OrganizationUpsertWithoutAuditEventsInput = { update: XOR create: XOR where?: OrganizationWhereInput } export type OrganizationUpdateToOneWithWhereWithoutAuditEventsInput = { where?: OrganizationWhereInput data: XOR } export type OrganizationUpdateWithoutAuditEventsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUpdateManyWithoutOrganizationNestedInput memberships?: MembershipUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUpdateManyWithoutOrganizationNestedInput } export type OrganizationUncheckedUpdateWithoutAuditEventsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUncheckedUpdateManyWithoutOrganizationNestedInput memberships?: MembershipUncheckedUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUncheckedUpdateManyWithoutOrganizationNestedInput usageEvents?: UsageEventUncheckedUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUncheckedUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUncheckedUpdateManyWithoutOrganizationNestedInput } export type WorkspaceUpsertWithoutAuditEventsInput = { update: XOR create: XOR where?: WorkspaceWhereInput } export type WorkspaceUpdateToOneWithWhereWithoutAuditEventsInput = { where?: WorkspaceWhereInput data: XOR } export type WorkspaceUpdateWithoutAuditEventsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutWorkspacesNestedInput projects?: ProjectUpdateManyWithoutWorkspaceNestedInput integrations?: IntegrationUpdateManyWithoutWorkspaceNestedInput reports?: ReportExportUpdateManyWithoutWorkspaceNestedInput } export type WorkspaceUncheckedUpdateWithoutAuditEventsInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string projects?: ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput integrations?: IntegrationUncheckedUpdateManyWithoutWorkspaceNestedInput reports?: ReportExportUncheckedUpdateManyWithoutWorkspaceNestedInput } export type ProjectUpsertWithoutAuditEventsInput = { update: XOR create: XOR where?: ProjectWhereInput } export type ProjectUpdateToOneWithWhereWithoutAuditEventsInput = { where?: ProjectWhereInput data: XOR } export type ProjectUpdateWithoutAuditEventsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneRequiredWithoutProjectsNestedInput lifecyclePhases?: LifecyclePhaseUpdateManyWithoutProjectNestedInput risks?: RiskUpdateManyWithoutProjectNestedInput indicators?: IndicatorUpdateManyWithoutProjectNestedInput experiments?: ExperimentUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUpdateManyWithoutProjectNestedInput reports?: ReportExportUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutAuditEventsInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lifecyclePhases?: LifecyclePhaseUncheckedUpdateManyWithoutProjectNestedInput risks?: RiskUncheckedUpdateManyWithoutProjectNestedInput indicators?: IndicatorUncheckedUpdateManyWithoutProjectNestedInput experiments?: ExperimentUncheckedUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUncheckedUpdateManyWithoutProjectNestedInput reports?: ReportExportUncheckedUpdateManyWithoutProjectNestedInput } export type UserUpsertWithoutAuditEventsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutAuditEventsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutAuditEventsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string displayName?: StringFieldUpdateOperationsInput | string passwordHash?: NullableStringFieldUpdateOperationsInput | string | null emailVerifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string memberships?: MembershipUpdateManyWithoutUserNestedInput invitationsSent?: InvitationUpdateManyWithoutInvitedByNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutAuditEventsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string displayName?: StringFieldUpdateOperationsInput | string passwordHash?: NullableStringFieldUpdateOperationsInput | string | null emailVerifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string memberships?: MembershipUncheckedUpdateManyWithoutUserNestedInput invitationsSent?: InvitationUncheckedUpdateManyWithoutInvitedByNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput } export type OrganizationCreateWithoutUsageEventsInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceCreateNestedManyWithoutOrganizationInput memberships?: MembershipCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventCreateNestedManyWithoutOrganizationInput invitations?: InvitationCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenCreateNestedManyWithoutOrganizationInput } export type OrganizationUncheckedCreateWithoutUsageEventsInput = { id?: string name: string slug: string status?: $Enums.OrganizationStatus planCode?: string manualBilling?: boolean stripeCustomerId?: string | null ssoEnforced?: boolean allowedDomains?: OrganizationCreateallowedDomainsInput | string[] dataRetentionDays?: number | null createdAt?: Date | string updatedAt?: Date | string workspaces?: WorkspaceUncheckedCreateNestedManyWithoutOrganizationInput memberships?: MembershipUncheckedCreateNestedManyWithoutOrganizationInput subscriptions?: SubscriptionUncheckedCreateNestedManyWithoutOrganizationInput auditEvents?: AuditEventUncheckedCreateNestedManyWithoutOrganizationInput invitations?: InvitationUncheckedCreateNestedManyWithoutOrganizationInput oauthTokens?: OAuthTokenUncheckedCreateNestedManyWithoutOrganizationInput } export type OrganizationCreateOrConnectWithoutUsageEventsInput = { where: OrganizationWhereUniqueInput create: XOR } export type OrganizationUpsertWithoutUsageEventsInput = { update: XOR create: XOR where?: OrganizationWhereInput } export type OrganizationUpdateToOneWithWhereWithoutUsageEventsInput = { where?: OrganizationWhereInput data: XOR } export type OrganizationUpdateWithoutUsageEventsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUpdateManyWithoutOrganizationNestedInput memberships?: MembershipUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUpdateManyWithoutOrganizationNestedInput } export type OrganizationUncheckedUpdateWithoutUsageEventsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus planCode?: StringFieldUpdateOperationsInput | string manualBilling?: BoolFieldUpdateOperationsInput | boolean stripeCustomerId?: NullableStringFieldUpdateOperationsInput | string | null ssoEnforced?: BoolFieldUpdateOperationsInput | boolean allowedDomains?: OrganizationUpdateallowedDomainsInput | string[] dataRetentionDays?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string workspaces?: WorkspaceUncheckedUpdateManyWithoutOrganizationNestedInput memberships?: MembershipUncheckedUpdateManyWithoutOrganizationNestedInput subscriptions?: SubscriptionUncheckedUpdateManyWithoutOrganizationNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutOrganizationNestedInput invitations?: InvitationUncheckedUpdateManyWithoutOrganizationNestedInput oauthTokens?: OAuthTokenUncheckedUpdateManyWithoutOrganizationNestedInput } export type WorkspaceCreateManyOrganizationInput = { id?: string name: string slug: string type?: $Enums.WorkspaceType status?: $Enums.OrganizationStatus createdAt?: Date | string updatedAt?: Date | string } export type MembershipCreateManyOrganizationInput = { id?: string userId: string roleId: string status?: $Enums.MembershipStatus workspaceScope?: MembershipCreateworkspaceScopeInput | string[] createdAt?: Date | string updatedAt?: Date | string } export type SubscriptionCreateManyOrganizationInput = { id?: string source?: $Enums.SubscriptionSource status?: $Enums.SubscriptionStatus planCode?: string stripeSubscriptionId?: string | null currentPeriodEnd?: Date | string | null userLimit?: number projectLimit?: number reportLimitMonthly?: number integrationLimit?: number storageMbLimit?: number adminOverride?: boolean createdAt?: Date | string updatedAt?: Date | string } export type AuditEventCreateManyOrganizationInput = { id?: string workspaceId?: string | null projectId?: string | null actorUserId?: string | null entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string } export type UsageEventCreateManyOrganizationInput = { id?: string metric: string quantity?: number metadata?: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type InvitationCreateManyOrganizationInput = { id?: string email: string roleCode: string tokenHash: string expiresAt: Date | string acceptedAt?: Date | string | null invitedById?: string | null createdAt?: Date | string } export type OAuthTokenCreateManyOrganizationInput = { id?: string provider: $Enums.IntegrationProvider integrationId?: string | null encryptedToken: JsonNullValueInput | InputJsonValue redactedToken: string expiresAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type WorkspaceUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string projects?: ProjectUpdateManyWithoutWorkspaceNestedInput integrations?: IntegrationUpdateManyWithoutWorkspaceNestedInput reports?: ReportExportUpdateManyWithoutWorkspaceNestedInput auditEvents?: AuditEventUpdateManyWithoutWorkspaceNestedInput } export type WorkspaceUncheckedUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string projects?: ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput integrations?: IntegrationUncheckedUpdateManyWithoutWorkspaceNestedInput reports?: ReportExportUncheckedUpdateManyWithoutWorkspaceNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutWorkspaceNestedInput } export type WorkspaceUncheckedUpdateManyWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string slug?: StringFieldUpdateOperationsInput | string type?: EnumWorkspaceTypeFieldUpdateOperationsInput | $Enums.WorkspaceType status?: EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MembershipUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string status?: EnumMembershipStatusFieldUpdateOperationsInput | $Enums.MembershipStatus workspaceScope?: MembershipUpdateworkspaceScopeInput | string[] createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutMembershipsNestedInput role?: RoleUpdateOneRequiredWithoutMembershipsNestedInput } export type MembershipUncheckedUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string roleId?: StringFieldUpdateOperationsInput | string status?: EnumMembershipStatusFieldUpdateOperationsInput | $Enums.MembershipStatus workspaceScope?: MembershipUpdateworkspaceScopeInput | string[] createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MembershipUncheckedUpdateManyWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string roleId?: StringFieldUpdateOperationsInput | string status?: EnumMembershipStatusFieldUpdateOperationsInput | $Enums.MembershipStatus workspaceScope?: MembershipUpdateworkspaceScopeInput | string[] createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SubscriptionUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string source?: EnumSubscriptionSourceFieldUpdateOperationsInput | $Enums.SubscriptionSource status?: EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus planCode?: StringFieldUpdateOperationsInput | string stripeSubscriptionId?: NullableStringFieldUpdateOperationsInput | string | null currentPeriodEnd?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null userLimit?: IntFieldUpdateOperationsInput | number projectLimit?: IntFieldUpdateOperationsInput | number reportLimitMonthly?: IntFieldUpdateOperationsInput | number integrationLimit?: IntFieldUpdateOperationsInput | number storageMbLimit?: IntFieldUpdateOperationsInput | number adminOverride?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SubscriptionUncheckedUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string source?: EnumSubscriptionSourceFieldUpdateOperationsInput | $Enums.SubscriptionSource status?: EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus planCode?: StringFieldUpdateOperationsInput | string stripeSubscriptionId?: NullableStringFieldUpdateOperationsInput | string | null currentPeriodEnd?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null userLimit?: IntFieldUpdateOperationsInput | number projectLimit?: IntFieldUpdateOperationsInput | number reportLimitMonthly?: IntFieldUpdateOperationsInput | number integrationLimit?: IntFieldUpdateOperationsInput | number storageMbLimit?: IntFieldUpdateOperationsInput | number adminOverride?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SubscriptionUncheckedUpdateManyWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string source?: EnumSubscriptionSourceFieldUpdateOperationsInput | $Enums.SubscriptionSource status?: EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus planCode?: StringFieldUpdateOperationsInput | string stripeSubscriptionId?: NullableStringFieldUpdateOperationsInput | string | null currentPeriodEnd?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null userLimit?: IntFieldUpdateOperationsInput | number projectLimit?: IntFieldUpdateOperationsInput | number reportLimitMonthly?: IntFieldUpdateOperationsInput | number integrationLimit?: IntFieldUpdateOperationsInput | number storageMbLimit?: IntFieldUpdateOperationsInput | number adminOverride?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneWithoutAuditEventsNestedInput project?: ProjectUpdateOneWithoutAuditEventsNestedInput actor?: UserUpdateOneWithoutAuditEventsNestedInput } export type AuditEventUncheckedUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: NullableStringFieldUpdateOperationsInput | string | null projectId?: NullableStringFieldUpdateOperationsInput | string | null actorUserId?: NullableStringFieldUpdateOperationsInput | string | null entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventUncheckedUpdateManyWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: NullableStringFieldUpdateOperationsInput | string | null projectId?: NullableStringFieldUpdateOperationsInput | string | null actorUserId?: NullableStringFieldUpdateOperationsInput | string | null entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UsageEventUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string metric?: StringFieldUpdateOperationsInput | string quantity?: IntFieldUpdateOperationsInput | number metadata?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UsageEventUncheckedUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string metric?: StringFieldUpdateOperationsInput | string quantity?: IntFieldUpdateOperationsInput | number metadata?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UsageEventUncheckedUpdateManyWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string metric?: StringFieldUpdateOperationsInput | string quantity?: IntFieldUpdateOperationsInput | number metadata?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InvitationUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string roleCode?: StringFieldUpdateOperationsInput | string tokenHash?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string acceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string invitedBy?: UserUpdateOneWithoutInvitationsSentNestedInput } export type InvitationUncheckedUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string roleCode?: StringFieldUpdateOperationsInput | string tokenHash?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string acceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null invitedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InvitationUncheckedUpdateManyWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string roleCode?: StringFieldUpdateOperationsInput | string tokenHash?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string acceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null invitedById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type OAuthTokenUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider integrationId?: NullableStringFieldUpdateOperationsInput | string | null encryptedToken?: JsonNullValueInput | InputJsonValue redactedToken?: StringFieldUpdateOperationsInput | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type OAuthTokenUncheckedUpdateWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider integrationId?: NullableStringFieldUpdateOperationsInput | string | null encryptedToken?: JsonNullValueInput | InputJsonValue redactedToken?: StringFieldUpdateOperationsInput | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type OAuthTokenUncheckedUpdateManyWithoutOrganizationInput = { id?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider integrationId?: NullableStringFieldUpdateOperationsInput | string | null encryptedToken?: JsonNullValueInput | InputJsonValue redactedToken?: StringFieldUpdateOperationsInput | string expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ProjectCreateManyWorkspaceInput = { id?: string name: string subtitle?: string | null projectType?: string currentLifecyclePhase?: string | null riskAppetite?: number assessmentDate?: Date | string | null status?: string ownerDisplayName?: string | null description?: string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type IntegrationCreateManyWorkspaceInput = { id?: string provider: $Enums.IntegrationProvider workspaceName: string externalProjectKey?: string | null baseUrl?: string | null authMode: string connectionStatus?: $Enums.IntegrationStatus syncDirection?: string liveEnabled?: boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ReportExportCreateManyWorkspaceInput = { id?: string projectId: string reportType: string format: string status?: string metadata?: JsonNullValueInput | InputJsonValue createdById?: string | null createdAt?: Date | string } export type AuditEventCreateManyWorkspaceInput = { id?: string organizationId: string projectId?: string | null actorUserId?: string | null entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string } export type ProjectUpdateWithoutWorkspaceInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lifecyclePhases?: LifecyclePhaseUpdateManyWithoutProjectNestedInput risks?: RiskUpdateManyWithoutProjectNestedInput indicators?: IndicatorUpdateManyWithoutProjectNestedInput experiments?: ExperimentUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUpdateManyWithoutProjectNestedInput reports?: ReportExportUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateWithoutWorkspaceInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lifecyclePhases?: LifecyclePhaseUncheckedUpdateManyWithoutProjectNestedInput risks?: RiskUncheckedUpdateManyWithoutProjectNestedInput indicators?: IndicatorUncheckedUpdateManyWithoutProjectNestedInput experiments?: ExperimentUncheckedUpdateManyWithoutProjectNestedInput gateEvaluations?: GateEvaluationUncheckedUpdateManyWithoutProjectNestedInput auditEvents?: AuditEventUncheckedUpdateManyWithoutProjectNestedInput reports?: ReportExportUncheckedUpdateManyWithoutProjectNestedInput } export type ProjectUncheckedUpdateManyWithoutWorkspaceInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string subtitle?: NullableStringFieldUpdateOperationsInput | string | null projectType?: StringFieldUpdateOperationsInput | string currentLifecyclePhase?: NullableStringFieldUpdateOperationsInput | string | null riskAppetite?: IntFieldUpdateOperationsInput | number assessmentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null status?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null description?: NullableStringFieldUpdateOperationsInput | string | null thresholds?: JsonNullValueInput | InputJsonValue reviews?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IntegrationUpdateWithoutWorkspaceInput = { id?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider workspaceName?: StringFieldUpdateOperationsInput | string externalProjectKey?: NullableStringFieldUpdateOperationsInput | string | null baseUrl?: NullableStringFieldUpdateOperationsInput | string | null authMode?: StringFieldUpdateOperationsInput | string connectionStatus?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus syncDirection?: StringFieldUpdateOperationsInput | string liveEnabled?: BoolFieldUpdateOperationsInput | boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string mappings?: ExternalWorkItemMappingUpdateManyWithoutIntegrationNestedInput syncRuns?: IntegrationSyncRunUpdateManyWithoutIntegrationNestedInput } export type IntegrationUncheckedUpdateWithoutWorkspaceInput = { id?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider workspaceName?: StringFieldUpdateOperationsInput | string externalProjectKey?: NullableStringFieldUpdateOperationsInput | string | null baseUrl?: NullableStringFieldUpdateOperationsInput | string | null authMode?: StringFieldUpdateOperationsInput | string connectionStatus?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus syncDirection?: StringFieldUpdateOperationsInput | string liveEnabled?: BoolFieldUpdateOperationsInput | boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string mappings?: ExternalWorkItemMappingUncheckedUpdateManyWithoutIntegrationNestedInput syncRuns?: IntegrationSyncRunUncheckedUpdateManyWithoutIntegrationNestedInput } export type IntegrationUncheckedUpdateManyWithoutWorkspaceInput = { id?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider workspaceName?: StringFieldUpdateOperationsInput | string externalProjectKey?: NullableStringFieldUpdateOperationsInput | string | null baseUrl?: NullableStringFieldUpdateOperationsInput | string | null authMode?: StringFieldUpdateOperationsInput | string connectionStatus?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus syncDirection?: StringFieldUpdateOperationsInput | string liveEnabled?: BoolFieldUpdateOperationsInput | boolean liveConfig?: JsonNullValueInput | InputJsonValue lastSyncAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ReportExportUpdateWithoutWorkspaceInput = { id?: StringFieldUpdateOperationsInput | string reportType?: StringFieldUpdateOperationsInput | string format?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string metadata?: JsonNullValueInput | InputJsonValue createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string project?: ProjectUpdateOneRequiredWithoutReportsNestedInput } export type ReportExportUncheckedUpdateWithoutWorkspaceInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string reportType?: StringFieldUpdateOperationsInput | string format?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string metadata?: JsonNullValueInput | InputJsonValue createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ReportExportUncheckedUpdateManyWithoutWorkspaceInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string reportType?: StringFieldUpdateOperationsInput | string format?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string metadata?: JsonNullValueInput | InputJsonValue createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventUpdateWithoutWorkspaceInput = { id?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutAuditEventsNestedInput project?: ProjectUpdateOneWithoutAuditEventsNestedInput actor?: UserUpdateOneWithoutAuditEventsNestedInput } export type AuditEventUncheckedUpdateWithoutWorkspaceInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string projectId?: NullableStringFieldUpdateOperationsInput | string | null actorUserId?: NullableStringFieldUpdateOperationsInput | string | null entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventUncheckedUpdateManyWithoutWorkspaceInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string projectId?: NullableStringFieldUpdateOperationsInput | string | null actorUserId?: NullableStringFieldUpdateOperationsInput | string | null entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MembershipCreateManyUserInput = { id?: string organizationId: string roleId: string status?: $Enums.MembershipStatus workspaceScope?: MembershipCreateworkspaceScopeInput | string[] createdAt?: Date | string updatedAt?: Date | string } export type InvitationCreateManyInvitedByInput = { id?: string organizationId: string email: string roleCode: string tokenHash: string expiresAt: Date | string acceptedAt?: Date | string | null createdAt?: Date | string } export type AuditEventCreateManyActorInput = { id?: string organizationId: string workspaceId?: string | null projectId?: string | null entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string } export type SessionCreateManyUserInput = { id?: string token: string expiresAt: Date | string createdAt?: Date | string } export type MembershipUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string status?: EnumMembershipStatusFieldUpdateOperationsInput | $Enums.MembershipStatus workspaceScope?: MembershipUpdateworkspaceScopeInput | string[] createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutMembershipsNestedInput role?: RoleUpdateOneRequiredWithoutMembershipsNestedInput } export type MembershipUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string roleId?: StringFieldUpdateOperationsInput | string status?: EnumMembershipStatusFieldUpdateOperationsInput | $Enums.MembershipStatus workspaceScope?: MembershipUpdateworkspaceScopeInput | string[] createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MembershipUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string roleId?: StringFieldUpdateOperationsInput | string status?: EnumMembershipStatusFieldUpdateOperationsInput | $Enums.MembershipStatus workspaceScope?: MembershipUpdateworkspaceScopeInput | string[] createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InvitationUpdateWithoutInvitedByInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string roleCode?: StringFieldUpdateOperationsInput | string tokenHash?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string acceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutInvitationsNestedInput } export type InvitationUncheckedUpdateWithoutInvitedByInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string roleCode?: StringFieldUpdateOperationsInput | string tokenHash?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string acceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InvitationUncheckedUpdateManyWithoutInvitedByInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string roleCode?: StringFieldUpdateOperationsInput | string tokenHash?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string acceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventUpdateWithoutActorInput = { id?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutAuditEventsNestedInput workspace?: WorkspaceUpdateOneWithoutAuditEventsNestedInput project?: ProjectUpdateOneWithoutAuditEventsNestedInput } export type AuditEventUncheckedUpdateWithoutActorInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string workspaceId?: NullableStringFieldUpdateOperationsInput | string | null projectId?: NullableStringFieldUpdateOperationsInput | string | null entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventUncheckedUpdateManyWithoutActorInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string workspaceId?: NullableStringFieldUpdateOperationsInput | string | null projectId?: NullableStringFieldUpdateOperationsInput | string | null entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string token?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string token?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string token?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MembershipCreateManyRoleInput = { id?: string organizationId: string userId: string status?: $Enums.MembershipStatus workspaceScope?: MembershipCreateworkspaceScopeInput | string[] createdAt?: Date | string updatedAt?: Date | string } export type MembershipUpdateWithoutRoleInput = { id?: StringFieldUpdateOperationsInput | string status?: EnumMembershipStatusFieldUpdateOperationsInput | $Enums.MembershipStatus workspaceScope?: MembershipUpdateworkspaceScopeInput | string[] createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutMembershipsNestedInput user?: UserUpdateOneRequiredWithoutMembershipsNestedInput } export type MembershipUncheckedUpdateWithoutRoleInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string status?: EnumMembershipStatusFieldUpdateOperationsInput | $Enums.MembershipStatus workspaceScope?: MembershipUpdateworkspaceScopeInput | string[] createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MembershipUncheckedUpdateManyWithoutRoleInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string status?: EnumMembershipStatusFieldUpdateOperationsInput | $Enums.MembershipStatus workspaceScope?: MembershipUpdateworkspaceScopeInput | string[] createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LifecyclePhaseCreateManyProjectInput = { id?: string name: string status: string readinessScore: number sequence: number createdAt?: Date | string updatedAt?: Date | string } export type RiskCreateManyProjectInput = { id?: string ownerDisplayName?: string | null title: string description?: string | null dimension: string domain: string lifecyclePhase: string probability: number impact: number detectability: number status?: $Enums.RiskStatus approvalStatus?: $Enums.ApprovalStatus dueDate?: Date | string | null evidenceSummary?: string | null createdAt?: Date | string updatedAt?: Date | string } export type IndicatorCreateManyProjectInput = { id?: string name: string dimension: string measurand: string unit: string target?: string | null interpretationRule?: string | null createdAt?: Date | string updatedAt?: Date | string } export type ExperimentCreateManyProjectInput = { id?: string name: string modelName?: string | null selected?: boolean createdAt?: Date | string updatedAt?: Date | string } export type GateEvaluationCreateManyProjectInput = { id?: string status: $Enums.GateStatus reviewStatus?: string summary: string evaluatedByUserId?: string | null evaluatedAt?: Date | string reviewedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type AuditEventCreateManyProjectInput = { id?: string organizationId: string workspaceId?: string | null actorUserId?: string | null entityType: string entityId: string action: string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: string | null userAgent?: string | null createdAt?: Date | string } export type ReportExportCreateManyProjectInput = { id?: string workspaceId: string reportType: string format: string status?: string metadata?: JsonNullValueInput | InputJsonValue createdById?: string | null createdAt?: Date | string } export type LifecyclePhaseUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string readinessScore?: IntFieldUpdateOperationsInput | number sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LifecyclePhaseUncheckedUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string readinessScore?: IntFieldUpdateOperationsInput | number sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LifecyclePhaseUncheckedUpdateManyWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string readinessScore?: IntFieldUpdateOperationsInput | number sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type RiskUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null dimension?: StringFieldUpdateOperationsInput | string domain?: StringFieldUpdateOperationsInput | string lifecyclePhase?: StringFieldUpdateOperationsInput | string probability?: IntFieldUpdateOperationsInput | number impact?: IntFieldUpdateOperationsInput | number detectability?: IntFieldUpdateOperationsInput | number status?: EnumRiskStatusFieldUpdateOperationsInput | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFieldUpdateOperationsInput | $Enums.ApprovalStatus dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evidenceSummary?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string mitigations?: MitigationUpdateManyWithoutRiskNestedInput evidence?: EvidenceUpdateManyWithoutRiskNestedInput } export type RiskUncheckedUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null dimension?: StringFieldUpdateOperationsInput | string domain?: StringFieldUpdateOperationsInput | string lifecyclePhase?: StringFieldUpdateOperationsInput | string probability?: IntFieldUpdateOperationsInput | number impact?: IntFieldUpdateOperationsInput | number detectability?: IntFieldUpdateOperationsInput | number status?: EnumRiskStatusFieldUpdateOperationsInput | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFieldUpdateOperationsInput | $Enums.ApprovalStatus dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evidenceSummary?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string mitigations?: MitigationUncheckedUpdateManyWithoutRiskNestedInput evidence?: EvidenceUncheckedUpdateManyWithoutRiskNestedInput } export type RiskUncheckedUpdateManyWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null dimension?: StringFieldUpdateOperationsInput | string domain?: StringFieldUpdateOperationsInput | string lifecyclePhase?: StringFieldUpdateOperationsInput | string probability?: IntFieldUpdateOperationsInput | number impact?: IntFieldUpdateOperationsInput | number detectability?: IntFieldUpdateOperationsInput | number status?: EnumRiskStatusFieldUpdateOperationsInput | $Enums.RiskStatus approvalStatus?: EnumApprovalStatusFieldUpdateOperationsInput | $Enums.ApprovalStatus dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null evidenceSummary?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IndicatorUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string dimension?: StringFieldUpdateOperationsInput | string measurand?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string target?: NullableStringFieldUpdateOperationsInput | string | null interpretationRule?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IndicatorUncheckedUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string dimension?: StringFieldUpdateOperationsInput | string measurand?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string target?: NullableStringFieldUpdateOperationsInput | string | null interpretationRule?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IndicatorUncheckedUpdateManyWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string dimension?: StringFieldUpdateOperationsInput | string measurand?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string target?: NullableStringFieldUpdateOperationsInput | string | null interpretationRule?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ExperimentUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string modelName?: NullableStringFieldUpdateOperationsInput | string | null selected?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string metrics?: ModelMetricUpdateManyWithoutExperimentNestedInput } export type ExperimentUncheckedUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string modelName?: NullableStringFieldUpdateOperationsInput | string | null selected?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string metrics?: ModelMetricUncheckedUpdateManyWithoutExperimentNestedInput } export type ExperimentUncheckedUpdateManyWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string modelName?: NullableStringFieldUpdateOperationsInput | string | null selected?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateEvaluationUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string status?: EnumGateStatusFieldUpdateOperationsInput | $Enums.GateStatus reviewStatus?: StringFieldUpdateOperationsInput | string summary?: StringFieldUpdateOperationsInput | string evaluatedByUserId?: NullableStringFieldUpdateOperationsInput | string | null evaluatedAt?: DateTimeFieldUpdateOperationsInput | Date | string reviewedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string criteria?: GateCriterionUpdateManyWithoutGateNestedInput decisions?: GateDecisionUpdateManyWithoutGateNestedInput } export type GateEvaluationUncheckedUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string status?: EnumGateStatusFieldUpdateOperationsInput | $Enums.GateStatus reviewStatus?: StringFieldUpdateOperationsInput | string summary?: StringFieldUpdateOperationsInput | string evaluatedByUserId?: NullableStringFieldUpdateOperationsInput | string | null evaluatedAt?: DateTimeFieldUpdateOperationsInput | Date | string reviewedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string criteria?: GateCriterionUncheckedUpdateManyWithoutGateNestedInput decisions?: GateDecisionUncheckedUpdateManyWithoutGateNestedInput } export type GateEvaluationUncheckedUpdateManyWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string status?: EnumGateStatusFieldUpdateOperationsInput | $Enums.GateStatus reviewStatus?: StringFieldUpdateOperationsInput | string summary?: StringFieldUpdateOperationsInput | string evaluatedByUserId?: NullableStringFieldUpdateOperationsInput | string | null evaluatedAt?: DateTimeFieldUpdateOperationsInput | Date | string reviewedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string organization?: OrganizationUpdateOneRequiredWithoutAuditEventsNestedInput workspace?: WorkspaceUpdateOneWithoutAuditEventsNestedInput actor?: UserUpdateOneWithoutAuditEventsNestedInput } export type AuditEventUncheckedUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string workspaceId?: NullableStringFieldUpdateOperationsInput | string | null actorUserId?: NullableStringFieldUpdateOperationsInput | string | null entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AuditEventUncheckedUpdateManyWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string organizationId?: StringFieldUpdateOperationsInput | string workspaceId?: NullableStringFieldUpdateOperationsInput | string | null actorUserId?: NullableStringFieldUpdateOperationsInput | string | null entityType?: StringFieldUpdateOperationsInput | string entityId?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string beforeJson?: NullableJsonNullValueInput | InputJsonValue afterJson?: NullableJsonNullValueInput | InputJsonValue ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ReportExportUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string reportType?: StringFieldUpdateOperationsInput | string format?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string metadata?: JsonNullValueInput | InputJsonValue createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string workspace?: WorkspaceUpdateOneRequiredWithoutReportsNestedInput } export type ReportExportUncheckedUpdateWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string reportType?: StringFieldUpdateOperationsInput | string format?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string metadata?: JsonNullValueInput | InputJsonValue createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ReportExportUncheckedUpdateManyWithoutProjectInput = { id?: StringFieldUpdateOperationsInput | string workspaceId?: StringFieldUpdateOperationsInput | string reportType?: StringFieldUpdateOperationsInput | string format?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string metadata?: JsonNullValueInput | InputJsonValue createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MitigationCreateManyRiskInput = { id?: string ownerDisplayName?: string | null title: string description?: string | null status?: $Enums.MitigationStatus progressPercent?: number effectivenessPercent?: number dueDate?: Date | string | null sequence?: number createdAt?: Date | string updatedAt?: Date | string } export type EvidenceCreateManyRiskInput = { id?: string projectId: string mitigationId?: string | null type?: string title: string uri?: string | null createdById?: string | null createdAt?: Date | string updatedAt?: Date | string } export type MitigationUpdateWithoutRiskInput = { id?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumMitigationStatusFieldUpdateOperationsInput | $Enums.MitigationStatus progressPercent?: IntFieldUpdateOperationsInput | number effectivenessPercent?: IntFieldUpdateOperationsInput | number dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string evidence?: EvidenceUpdateManyWithoutMitigationNestedInput } export type MitigationUncheckedUpdateWithoutRiskInput = { id?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumMitigationStatusFieldUpdateOperationsInput | $Enums.MitigationStatus progressPercent?: IntFieldUpdateOperationsInput | number effectivenessPercent?: IntFieldUpdateOperationsInput | number dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string evidence?: EvidenceUncheckedUpdateManyWithoutMitigationNestedInput } export type MitigationUncheckedUpdateManyWithoutRiskInput = { id?: StringFieldUpdateOperationsInput | string ownerDisplayName?: NullableStringFieldUpdateOperationsInput | string | null title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumMitigationStatusFieldUpdateOperationsInput | $Enums.MitigationStatus progressPercent?: IntFieldUpdateOperationsInput | number effectivenessPercent?: IntFieldUpdateOperationsInput | number dueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null sequence?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EvidenceUpdateWithoutRiskInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string uri?: NullableStringFieldUpdateOperationsInput | string | null createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string mitigation?: MitigationUpdateOneWithoutEvidenceNestedInput } export type EvidenceUncheckedUpdateWithoutRiskInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string mitigationId?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string uri?: NullableStringFieldUpdateOperationsInput | string | null createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EvidenceUncheckedUpdateManyWithoutRiskInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string mitigationId?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string uri?: NullableStringFieldUpdateOperationsInput | string | null createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EvidenceCreateManyMitigationInput = { id?: string projectId: string riskId?: string | null type?: string title: string uri?: string | null createdById?: string | null createdAt?: Date | string updatedAt?: Date | string } export type EvidenceUpdateWithoutMitigationInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string uri?: NullableStringFieldUpdateOperationsInput | string | null createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string risk?: RiskUpdateOneWithoutEvidenceNestedInput } export type EvidenceUncheckedUpdateWithoutMitigationInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string riskId?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string uri?: NullableStringFieldUpdateOperationsInput | string | null createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EvidenceUncheckedUpdateManyWithoutMitigationInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string riskId?: NullableStringFieldUpdateOperationsInput | string | null type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string uri?: NullableStringFieldUpdateOperationsInput | string | null createdById?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ModelMetricCreateManyExperimentInput = { id?: string metricName: string metricValue: number thresholdValue?: number | null status: string measuredAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ModelMetricUpdateWithoutExperimentInput = { id?: StringFieldUpdateOperationsInput | string metricName?: StringFieldUpdateOperationsInput | string metricValue?: FloatFieldUpdateOperationsInput | number thresholdValue?: NullableFloatFieldUpdateOperationsInput | number | null status?: StringFieldUpdateOperationsInput | string measuredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ModelMetricUncheckedUpdateWithoutExperimentInput = { id?: StringFieldUpdateOperationsInput | string metricName?: StringFieldUpdateOperationsInput | string metricValue?: FloatFieldUpdateOperationsInput | number thresholdValue?: NullableFloatFieldUpdateOperationsInput | number | null status?: StringFieldUpdateOperationsInput | string measuredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ModelMetricUncheckedUpdateManyWithoutExperimentInput = { id?: StringFieldUpdateOperationsInput | string metricName?: StringFieldUpdateOperationsInput | string metricValue?: FloatFieldUpdateOperationsInput | number thresholdValue?: NullableFloatFieldUpdateOperationsInput | number | null status?: StringFieldUpdateOperationsInput | string measuredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateCriterionCreateManyGateInput = { id?: string name: string actualValue: string expectedRule: string status: string blocking?: boolean evidenceTitle?: string | null evidenceUri?: string | null reviewerStatus?: string reviewerNote?: string | null createdAt?: Date | string updatedAt?: Date | string } export type GateDecisionCreateManyGateInput = { id?: string decision: $Enums.GateDecisionValue reviewerName: string reason?: string | null createdByUserId?: string | null decidedAt?: Date | string createdAt?: Date | string } export type GateCriterionUpdateWithoutGateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string actualValue?: StringFieldUpdateOperationsInput | string expectedRule?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string blocking?: BoolFieldUpdateOperationsInput | boolean evidenceTitle?: NullableStringFieldUpdateOperationsInput | string | null evidenceUri?: NullableStringFieldUpdateOperationsInput | string | null reviewerStatus?: StringFieldUpdateOperationsInput | string reviewerNote?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateCriterionUncheckedUpdateWithoutGateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string actualValue?: StringFieldUpdateOperationsInput | string expectedRule?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string blocking?: BoolFieldUpdateOperationsInput | boolean evidenceTitle?: NullableStringFieldUpdateOperationsInput | string | null evidenceUri?: NullableStringFieldUpdateOperationsInput | string | null reviewerStatus?: StringFieldUpdateOperationsInput | string reviewerNote?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateCriterionUncheckedUpdateManyWithoutGateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string actualValue?: StringFieldUpdateOperationsInput | string expectedRule?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string blocking?: BoolFieldUpdateOperationsInput | boolean evidenceTitle?: NullableStringFieldUpdateOperationsInput | string | null evidenceUri?: NullableStringFieldUpdateOperationsInput | string | null reviewerStatus?: StringFieldUpdateOperationsInput | string reviewerNote?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateDecisionUpdateWithoutGateInput = { id?: StringFieldUpdateOperationsInput | string decision?: EnumGateDecisionValueFieldUpdateOperationsInput | $Enums.GateDecisionValue reviewerName?: StringFieldUpdateOperationsInput | string reason?: NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: NullableStringFieldUpdateOperationsInput | string | null decidedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateDecisionUncheckedUpdateWithoutGateInput = { id?: StringFieldUpdateOperationsInput | string decision?: EnumGateDecisionValueFieldUpdateOperationsInput | $Enums.GateDecisionValue reviewerName?: StringFieldUpdateOperationsInput | string reason?: NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: NullableStringFieldUpdateOperationsInput | string | null decidedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type GateDecisionUncheckedUpdateManyWithoutGateInput = { id?: StringFieldUpdateOperationsInput | string decision?: EnumGateDecisionValueFieldUpdateOperationsInput | $Enums.GateDecisionValue reviewerName?: StringFieldUpdateOperationsInput | string reason?: NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: NullableStringFieldUpdateOperationsInput | string | null decidedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ExternalWorkItemMappingCreateManyIntegrationInput = { id?: string projectId: string localEntityType: string localEntityId: string localTitle: string externalItemType: string externalItemId: string externalItemKey: string externalUrl?: string | null externalStatus: string syncStatus: string fieldMapping?: JsonNullValueInput | InputJsonValue lastSyncedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type IntegrationSyncRunCreateManyIntegrationInput = { id?: string projectId: string provider: $Enums.IntegrationProvider status: string startedAt: Date | string finishedAt?: Date | string | null createdCount?: number updatedCount?: number failedCount?: number summary?: string | null failureLog?: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type ExternalWorkItemMappingUpdateWithoutIntegrationInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string localEntityType?: StringFieldUpdateOperationsInput | string localEntityId?: StringFieldUpdateOperationsInput | string localTitle?: StringFieldUpdateOperationsInput | string externalItemType?: StringFieldUpdateOperationsInput | string externalItemId?: StringFieldUpdateOperationsInput | string externalItemKey?: StringFieldUpdateOperationsInput | string externalUrl?: NullableStringFieldUpdateOperationsInput | string | null externalStatus?: StringFieldUpdateOperationsInput | string syncStatus?: StringFieldUpdateOperationsInput | string fieldMapping?: JsonNullValueInput | InputJsonValue lastSyncedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ExternalWorkItemMappingUncheckedUpdateWithoutIntegrationInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string localEntityType?: StringFieldUpdateOperationsInput | string localEntityId?: StringFieldUpdateOperationsInput | string localTitle?: StringFieldUpdateOperationsInput | string externalItemType?: StringFieldUpdateOperationsInput | string externalItemId?: StringFieldUpdateOperationsInput | string externalItemKey?: StringFieldUpdateOperationsInput | string externalUrl?: NullableStringFieldUpdateOperationsInput | string | null externalStatus?: StringFieldUpdateOperationsInput | string syncStatus?: StringFieldUpdateOperationsInput | string fieldMapping?: JsonNullValueInput | InputJsonValue lastSyncedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ExternalWorkItemMappingUncheckedUpdateManyWithoutIntegrationInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string localEntityType?: StringFieldUpdateOperationsInput | string localEntityId?: StringFieldUpdateOperationsInput | string localTitle?: StringFieldUpdateOperationsInput | string externalItemType?: StringFieldUpdateOperationsInput | string externalItemId?: StringFieldUpdateOperationsInput | string externalItemKey?: StringFieldUpdateOperationsInput | string externalUrl?: NullableStringFieldUpdateOperationsInput | string | null externalStatus?: StringFieldUpdateOperationsInput | string syncStatus?: StringFieldUpdateOperationsInput | string fieldMapping?: JsonNullValueInput | InputJsonValue lastSyncedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IntegrationSyncRunUpdateWithoutIntegrationInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider status?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdCount?: IntFieldUpdateOperationsInput | number updatedCount?: IntFieldUpdateOperationsInput | number failedCount?: IntFieldUpdateOperationsInput | number summary?: NullableStringFieldUpdateOperationsInput | string | null failureLog?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IntegrationSyncRunUncheckedUpdateWithoutIntegrationInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider status?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdCount?: IntFieldUpdateOperationsInput | number updatedCount?: IntFieldUpdateOperationsInput | number failedCount?: IntFieldUpdateOperationsInput | number summary?: NullableStringFieldUpdateOperationsInput | string | null failureLog?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IntegrationSyncRunUncheckedUpdateManyWithoutIntegrationInput = { id?: StringFieldUpdateOperationsInput | string projectId?: StringFieldUpdateOperationsInput | string provider?: EnumIntegrationProviderFieldUpdateOperationsInput | $Enums.IntegrationProvider status?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string finishedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdCount?: IntFieldUpdateOperationsInput | number updatedCount?: IntFieldUpdateOperationsInput | number failedCount?: IntFieldUpdateOperationsInput | number summary?: NullableStringFieldUpdateOperationsInput | string | null failureLog?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } /** * Aliases for legacy arg types */ /** * @deprecated Use OrganizationCountOutputTypeDefaultArgs instead */ export type OrganizationCountOutputTypeArgs = OrganizationCountOutputTypeDefaultArgs /** * @deprecated Use WorkspaceCountOutputTypeDefaultArgs instead */ export type WorkspaceCountOutputTypeArgs = WorkspaceCountOutputTypeDefaultArgs /** * @deprecated Use UserCountOutputTypeDefaultArgs instead */ export type UserCountOutputTypeArgs = UserCountOutputTypeDefaultArgs /** * @deprecated Use RoleCountOutputTypeDefaultArgs instead */ export type RoleCountOutputTypeArgs = RoleCountOutputTypeDefaultArgs /** * @deprecated Use ProjectCountOutputTypeDefaultArgs instead */ export type ProjectCountOutputTypeArgs = ProjectCountOutputTypeDefaultArgs /** * @deprecated Use RiskCountOutputTypeDefaultArgs instead */ export type RiskCountOutputTypeArgs = RiskCountOutputTypeDefaultArgs /** * @deprecated Use MitigationCountOutputTypeDefaultArgs instead */ export type MitigationCountOutputTypeArgs = MitigationCountOutputTypeDefaultArgs /** * @deprecated Use ExperimentCountOutputTypeDefaultArgs instead */ export type ExperimentCountOutputTypeArgs = ExperimentCountOutputTypeDefaultArgs /** * @deprecated Use GateEvaluationCountOutputTypeDefaultArgs instead */ export type GateEvaluationCountOutputTypeArgs = GateEvaluationCountOutputTypeDefaultArgs /** * @deprecated Use IntegrationCountOutputTypeDefaultArgs instead */ export type IntegrationCountOutputTypeArgs = IntegrationCountOutputTypeDefaultArgs /** * @deprecated Use OrganizationDefaultArgs instead */ export type OrganizationArgs = OrganizationDefaultArgs /** * @deprecated Use WorkspaceDefaultArgs instead */ export type WorkspaceArgs = WorkspaceDefaultArgs /** * @deprecated Use UserDefaultArgs instead */ export type UserArgs = UserDefaultArgs /** * @deprecated Use SessionDefaultArgs instead */ export type SessionArgs = SessionDefaultArgs /** * @deprecated Use RoleDefaultArgs instead */ export type RoleArgs = RoleDefaultArgs /** * @deprecated Use MembershipDefaultArgs instead */ export type MembershipArgs = MembershipDefaultArgs /** * @deprecated Use InvitationDefaultArgs instead */ export type InvitationArgs = InvitationDefaultArgs /** * @deprecated Use SubscriptionDefaultArgs instead */ export type SubscriptionArgs = SubscriptionDefaultArgs /** * @deprecated Use ProjectDefaultArgs instead */ export type ProjectArgs = ProjectDefaultArgs /** * @deprecated Use LifecyclePhaseDefaultArgs instead */ export type LifecyclePhaseArgs = LifecyclePhaseDefaultArgs /** * @deprecated Use RiskDefaultArgs instead */ export type RiskArgs = RiskDefaultArgs /** * @deprecated Use MitigationDefaultArgs instead */ export type MitigationArgs = MitigationDefaultArgs /** * @deprecated Use EvidenceDefaultArgs instead */ export type EvidenceArgs = EvidenceDefaultArgs /** * @deprecated Use IndicatorDefaultArgs instead */ export type IndicatorArgs = IndicatorDefaultArgs /** * @deprecated Use ExperimentDefaultArgs instead */ export type ExperimentArgs = ExperimentDefaultArgs /** * @deprecated Use ModelMetricDefaultArgs instead */ export type ModelMetricArgs = ModelMetricDefaultArgs /** * @deprecated Use GateEvaluationDefaultArgs instead */ export type GateEvaluationArgs = GateEvaluationDefaultArgs /** * @deprecated Use GateCriterionDefaultArgs instead */ export type GateCriterionArgs = GateCriterionDefaultArgs /** * @deprecated Use GateDecisionDefaultArgs instead */ export type GateDecisionArgs = GateDecisionDefaultArgs /** * @deprecated Use IntegrationDefaultArgs instead */ export type IntegrationArgs = IntegrationDefaultArgs /** * @deprecated Use ExternalWorkItemMappingDefaultArgs instead */ export type ExternalWorkItemMappingArgs = ExternalWorkItemMappingDefaultArgs /** * @deprecated Use IntegrationSyncRunDefaultArgs instead */ export type IntegrationSyncRunArgs = IntegrationSyncRunDefaultArgs /** * @deprecated Use OAuthTokenDefaultArgs instead */ export type OAuthTokenArgs = OAuthTokenDefaultArgs /** * @deprecated Use ReportExportDefaultArgs instead */ export type ReportExportArgs = ReportExportDefaultArgs /** * @deprecated Use AuditEventDefaultArgs instead */ export type AuditEventArgs = AuditEventDefaultArgs /** * @deprecated Use UsageEventDefaultArgs instead */ export type UsageEventArgs = UsageEventDefaultArgs /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }